brcm63xx: VH4032N: fix the power led and the wlan button
authorDaniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Sun, 30 Dec 2018 13:59:30 +0000 (14:59 +0100)
committerMathias Kresin <dev@kresin.me>
Sun, 27 Jan 2019 10:52:24 +0000 (11:52 +0100)
- use the blue LED for power, since the red LED is already used by
  CFE in emergency mode.
- use the correct code for the wlan button

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
target/linux/brcm63xx/base-files/etc/diag.sh
target/linux/brcm63xx/dts/vh4032n.dts

index afb347818f14ec2d7f997c81234b8e0b9fb4bee3..34464ec44ae804a0d98200aa1944a843370a50e2 100644 (file)
@@ -43,7 +43,7 @@ set_state() {
                status_led="spw303v:green:power+adsl"
                ;;
        vh4032n)
-               status_led="VH4032N:red:power"
+               status_led="VH4032N:blue:power"
                ;;
        vr-3025un)
                status_led="VR-3025un:green:power"
index 6788026d625e1e018badadd0aee3d31a977f5793..fd5a1828abc93f346a6ad43f884bd0e278434152 100644 (file)
                        debounce-interval = <60>;
                };
 
-               wps {
-                       label = "wps";
+               wlan {
+                       label = "wlan";
                        gpios = <&pinctrl 35 1>;
-                       linux,code = <KEY_WPS_BUTTON>;
+                       linux,code = <KEY_WLAN>;
                        debounce-interval = <60>;
                };
        };
                power_blue {
                        label = "VH4032N:blue:power";
                        gpios = <&pinctrl 22 0>;
+                       default-state = "on";
                };
                power_red {
                        label = "VH4032N:red:power";
                        gpios = <&pinctrl 24 0>;
-                       default-state = "on";
                };
                voice_blue {
                        label = "VH4032N:blue:voice";