/target/linux/ramips/dts/mt7621_thunder_timecloud.dts
aliases {
led-boot = &led_statuso;
led-failsafe = &led_statuso;
led-running = &led_statuso;
led-upgrade = &led_statuso;
};
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
statw {
label = "timecloud:white:status";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
led_statuso: stato {
label = "timecloud:orange:status";
gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
};
};
Using the following command "timecloud:white:status" does not work either
but "timecloud:orange:status" is ok
root@XZB:/sys/devices/platform/leds/leds/timecloud:orange:status# echo 0 > brightness
root@XZB:/sys/devices/platform/leds/leds/timecloud:orange:status# echo 1 > brightness