[OpenWrt-Devel] [PATCH 2/3] brcm63xx: VH4032N: fix the power led and the wlan button

Daniel Gonzalez Cabanelas dgcbueu at gmail.com
Tue Nov 13 19:47:51 EST 2018


  - 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 at gmail.com>
---
 target/linux/brcm63xx/base-files/etc/diag.sh | 2 +-
 target/linux/brcm63xx/dts/vh4032n.dts        | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh b/target/linux/brcm63xx/base-files/etc/diag.sh
index afb3478..34464ec 100644
--- a/target/linux/brcm63xx/base-files/etc/diag.sh
+++ b/target/linux/brcm63xx/base-files/etc/diag.sh
@@ -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"
diff --git a/target/linux/brcm63xx/dts/vh4032n.dts b/target/linux/brcm63xx/dts/vh4032n.dts
index 156d103..682d9d6 100644
--- a/target/linux/brcm63xx/dts/vh4032n.dts
+++ b/target/linux/brcm63xx/dts/vh4032n.dts
@@ -25,10 +25,10 @@
 			gpios = <&pinctrl 34 1>;
 			linux,code = <KEY_RESTART>;
 		};
-		wps {
-			label = "wps";
+		wlan {
+			label = "wlan";
 			gpios = <&pinctrl 35 1>;
-			linux,code = <KEY_WPS_BUTTON>;
+			linux,code = <KEY_WLAN>;
 		};
 	};
 
@@ -54,11 +54,11 @@
 		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";

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list