Part Number: PROCESSOR-SDK-AM62X
HI,
I have asked this question before and have resolved this issue previously.
But it's not working again. The following configuration should be turning on the LEDs as soon as the board is boot up but it's not.
I can see "line 42: unnamed "test" output active-high [use]"
But when i tried to set the brightness to 1 and check again with cat brightness, it always show 0.
Please advise.
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&usr_led_pins_test>;
led-0 {
label = "test";
gpios = <&main_gpio0 42 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
function = LED_FUNCTION_HEARTBEAT;
default-state = "on";
};
};
&main_pmx0 {
usr_led_pins_test: usr-led-pins-test {
pinctrl-single,pins = <
AM62X_IOPAD(0x00ac, PIN_OUTPUT, 7) /* (L21) GPMC0_CSn1.GPIO0_42 */
>;
};
};