I would like specifics if possible. I am going to include my version of what I think it should be I would really like to make sure that I am correct.
I am attempting to modify some of the GPIO via the device tree so that it comes up in that configuration on boot.
P62 GPIO 1 12 Needs to be input weak pull low
S142 GPIO12 TCA9528@71 needs to be an output pulled low
P118 GPIO11 TCA9528@71 needs to be an output pulled high
P111 GPIO 3 IOMUXC_SAI3_RXC__GPIO4_IO29
First I added to the pin hog group. Then I added a GPIO LED group.
Did I do it correctly? does the led group need to be gpio-leds or &gpio-leds
&iomuxc {
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_hog>;
pinctrl_hog: hoggrp {
fsl,pins = <
MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL 0x400001c3
MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA 0x400001c3
MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD 0x40000019
//MX8MP_IOMUXC_SAI1_TXD6__GPIO4_IO18 0x19 /* GPIO0 / CAM0_PWR# */
//MX8MP_IOMUXC_SAI1_TXD7__GPIO4_IO19 0x19 /* GPIO1 / CAM1_PWR# */
//MX8MP_IOMUXC_SAI3_RXFS__GPIO4_IO28 0x19 /* GPIO2 / CAM0_RST# */
//MX8MP_IOMUXC_SAI3_RXC__GPIO4_IO29 0x19 /* GPIO3 / CAM1_RST# */
MX8MP_IOMUXC_SAI2_MCLK__GPIO4_IO27 0x19 /* GPIO4 */
MX8MP_IOMUXC_SPDIF_EXT_CLK__GPIO5_IO05 0x19 /* GPIO5 */
MX8MP_IOMUXC_UART3_RXD__GPIO5_IO26 0x19 /* GPIO6 */
MX8MP_IOMUXC_UART3_TXD__GPIO5_IO27 0x19 /* GPIO7 */
MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x11D /* GPIO 1 12 */
>;
};
gpio-leds {
compatible = “gpio-leds”;
led {
label = "gpio-backplane";
gpios = <&tca9538_a71 3 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
led {
label = "gpio-amplifier";
gpios = <&tca9538_a71 4 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
};