Thanks for your patience. So i can rebuild gadget to change GPIO, and I find gpio have already defined in gadget’s snapcraft.yaml file.But only 27 pins defined in it.
slots: bcm-gpio-0: interface: gpio number: 0 bcm-gpio-1: interface: gpio number: 1 bcm-gpio-2: interface: gpio number: 2 … bcm-gpio-27: interface: gpio number: 27
But i can change gpio-30 output and input which is not defined in snapcraft.yaml. And is it possible to change Soc functions while not change dts/dtb files just change snapcraft.yaml? I find some function defined in it, but i don’t know how. I’m not understand relationship between kernel.snap and gadget.snap. While generating other kernel.snap, it also defines about kernel-device-tree. If I snapcraft two different dts/dtb kernel and gadget, which dts/dtb will be available?