Part Number: BEAGLEBK
Hi,
I have a customized design that is based on Beaglebone Black, but some of GPIOs are changed for other purposes. For example, GPIO2_30 is used as a GPIO input. I modified the device tree in-place in dts/am335x-bone-common.dtsi like below:
mmc1_pins: pinmux_mmc1_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spio0_cs1.gpio0_6 */
...
AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE7) /* mmc0_clk.gpio2_30 */
AM33XX_IOPAD(0x9a0, PIN_INPUT | MUX_MODE4) /* mcasp0_aclkr.mmc0_sdwp */
>;
};
Question: I know this works, but I wonder what is the typical way (best practice) to modify default device tree for customized GPIOs? The software is built from meta-ti Rocko branch tag "ti2018.03" using Yocto build system.
Thank you for your help.