So, what your really missing from your current overlay: BeagleBoard-DeviceTrees/src/arm/overlays/BONE-LED-P9-19.dtso at v6.16.x · beagleboard/BeagleBoard-DeviceTrees · GitHub
P9.19/P9.1x: remove pinmux from i2c2: (overlays can’t delete, so we cheat by “appending” empty…)
&i2c2 {
pinctrl-0 = <>;
status = "disabled";
};
This free’s up P9.19 for normal use.
In the BONE-LED-P9-19.dtso i tied P9.19 to thru:
leds {
pinctrl-names = "default";
pinctrl-0 = <&bb_gpio_p9_19_pins>;
compatible = "gpio-leds";
pin@919 {
label = "P9_19";
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
};
But really, you could add it to your BB-UART1-00A0 overlay.. It just has to be called from somewhere in am33xx_pinmux…
&am33xx_pinmux {
pinctrl-names = "default";
pinctrl-0 = <&rts_p9_19_pins>;
rts_p9_19_pins: pinmux_rts_p9_19_pins {
pinctrl-single,pins = <0x17C 0x07>; /* P9_19 as GPIO */
};
};