ramips: change status LED for Buffalo WHR-G300N
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sun, 3 Feb 2019 02:18:09 +0000 (11:18 +0900)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 14 Feb 2019 15:56:15 +0000 (16:56 +0100)
Buffalo WHR-G300N has a LED for power status indication, but it is not
connected to the GPIO and cannot be controlled by the kernel. So,
WHR-G300N uses "ROUTER" LED as the system status LED instead.

This commit changes it to use "DIAG" LED insted of "ROUTER" like
WHR-G301N in ath79 target.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
target/linux/ramips/dts/WHR-G300N.dts

index c8afe3c865cc9af7af1385e3862061b4cf2e44b2..3871b55495aa09d6498e1347df4983854ba1e492 100644 (file)
        model = "Buffalo WHR-G300N";
 
        aliases {
-               led-boot = &led_router;
-               led-failsafe = &led_router;
-               led-running = &led_router;
-               led-upgrade = &led_router;
+               led-boot = &led_diag;
+               led-failsafe = &led_diag;
+               led-upgrade = &led_diag;
        };
 
        cfi@1f000000 {
        leds {
                compatible = "gpio-leds";
 
-               diag {
+               led_diag: diag {
                        label = "whr-g300n:red:diag";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
-               led_router: router {
+               router {
                        label = "whr-g300n:green:router";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };