Part Number: AM625SIP
Other Parts Discussed in Thread: DA8XX
I'm wanting to read a few GPIO pins in uboot to decide what devicetree to load in a similar way to the the different am62 sk boards.
default_device_tree=ti/k3-am625-sk.dtb
findfdt=
setenv name_fdt ${default_device_tree};
if test $board_name = am62x_skevm; then
setenv name_fdt ti/k3-am625-sk.dtb; fi;
if test $board_name = am62b_p1_skevm; then
setenv name_fdt ti/k3-am625-sk.dtb; fi;
if test $board_name = am62x_sip_skevm; then
setenv name_fdt ti/k3-am625-sk.dtb; fi;
if test $board_name = am62x_lp_skevm; then
setenv name_fdt ti/k3-am62-lp-sk.dtb; fi;
if test $board_name = am62x_beagleplay; then
setenv name_fdt ti/k3-am625-beagleplay.dtb; fi;
setenv fdtfile ${name_fdt}
I added the needed pins in the uboot devicetree
gpio0_pins_default: gpio0-default-pins {
pinctrl-single,pins = <
AM62X_IOPAD(0x0084, PIN_OUTPUT, 7) /* (L23) GPMC0_ADVn_ALE.GPIO0_32/
AM62X_IOPAD(0x00a8, PIN_OUTPUT, 7) /* (M21) GPMC0_CSn0.GPIO0_41*/
AM62X_IOPAD(0x00ac, PIN_INPUT, 7) /* (L21) GPMC0_CSn1.GPIO0_42 */
AM62X_IOPAD(0x00b0, PIN_INPUT, 7) /* (K22) GPMC0_CSn2.GPIO0_43 */
AM62X_IOPAD(0x00b4, PIN_INPUT, 7) /* (K24) GPMC0_CSn3.GPIO0_44 */
>;
};
&main_gpio0 {
pinctrl-names = "default";
pinctrl-0 = <&gpio0_pins_default>;
};
But I can't seem to see any gpio in uboot.
using gpio status -a
Is there an uboot TI gpio driver that needs to be selected?
Thanks
Bryce