[OpenWrt-Devel] [PATCH 1/3] ramips: fix Netgear R6120 LED mapping
David Bauer
mail at david-bauer.net
Wed Jan 30 15:38:35 EST 2019
The R6120 has no 5GHz WLAN LED, the assigned GPIO in fact controls
the WAN LED.
Renames the LED accordingly in the device-tree.
Removes the 5GHz WLAN LED trigger.
Adds the correct WAN port LED trigger.
Signed-off-by: David Bauer <mail at david-bauer.net>
---
target/linux/ramips/base-files/etc/board.d/01_leds | 2 +-
target/linux/ramips/dts/R6120.dts | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index e36f125126..056443c49d 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -248,8 +248,8 @@ mzk-ex750np)
;;
netgear,r6120)
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
+ ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
- ucidef_set_led_wlan "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "phy1tpt"
;;
oy-0001)
set_wifi_led "$boardname:green:wifi"
diff --git a/target/linux/ramips/dts/R6120.dts b/target/linux/ramips/dts/R6120.dts
index 375e400299..9897d8d9e5 100644
--- a/target/linux/ramips/dts/R6120.dts
+++ b/target/linux/ramips/dts/R6120.dts
@@ -55,13 +55,13 @@
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
};
- wlan5 {
- label = "r6120:green:wlan5g";
+ wan {
+ label = "r6120:green:wan";
gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
};
- wlan5_orange {
- label = "r6120:orange:wlan5g";
+ wan_orange {
+ label = "r6120:orange:wan";
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
};
};
--
2.20.1
_______________________________________________
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