Hi,
I am using imx8mp processor
Two leds connected to uart4 (Rx and Tx) respectively on gpio5. They are configure in dts file.
After building and uploaded image the led-1 and led-2 are not found in /sys/class/leds folder
It is necessary Leds should visible in sys/class/leds directory
Led is not working if i put the gpio pin value 0.
Following are the source code for your reference.
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_led_gpio>;
led-0 {
gpios = <&gpio5 28 GPIO_ACTIVE_LOW>;
label = "Uart4 Rx-pin28";
default-state = "off";
};
led-1 {
gpios = <&gpio5 29 GPIO_ACTIVE_LOW>;
label = "Uart4 Tx-pin29";
default-state = "off";
};
};
pinctrl_led_gpio: ledkey {
fsl,pins = <
MX8MP_IOMUXC_UART4_TXD__GPIO5_IO29 0x146
MX8MP_IOMUXC_UART4_RXD__GPIO5_IO28 0x146
>;
};
You are requested to provide some solution on above problem
thanks
Manoj Makhe