[openwrt/openwrt] ramips: fix lan leds for Wavlink WL-WN535K1
LEDE Commits
lede-commits at lists.infradead.org
Sun Jun 25 02:03:42 PDT 2023
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/c71dada92654a53c63bbc5bebcc40fe924750ed7
commit c71dada92654a53c63bbc5bebcc40fe924750ed7
Author: Davide Fioravanti <pantanastyle at gmail.com>
AuthorDate: Wed Jun 21 21:53:07 2023 +0200
ramips: fix lan leds for Wavlink WL-WN535K1
Previously both lan1 and lan2 leds were wrongly labelled as lan2.
Moreover they were connected to the wrong lan port.
Fixes 8fde82095ba0 ("ramips: add support for Wavlink WL-WN535K1")
Reported-by: Nicolò Maria Semprini <nicosemp at gmail.com>
Signed-off-by: Davide Fioravanti <pantanastyle at gmail.com>
---
target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts | 4 ++--
target/linux/ramips/mt7620/base-files/etc/board.d/01_leds | 4 ++--
target/linux/ramips/mt7620/base-files/etc/board.d/02_network | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts b/target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts
index 67a7d8d488..bbb3e01add 100644
--- a/target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts
+++ b/target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts
@@ -48,12 +48,12 @@
lan1 {
label = "green:lan1";
- gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "green:lan2";
- gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
};
wan {
diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
index 2deda0861a..6a097ab8e3 100644
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
@@ -219,8 +219,8 @@ tplink,re200-v1)
ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0"
;;
wavlink,wl-wn535k1)
- ucidef_set_led_switch "lan1" "lan2" "green:lan1" "switch0" "0x04"
- ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x20"
+ ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x20"
+ ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x04"
ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10"
;;
wavlink,wl-wn579x3)
diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
index 787e123e31..e571dc1f6f 100644
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
@@ -235,7 +235,7 @@ ramips_setup_interfaces()
;;
wavlink,wl-wn535k1)
ucidef_add_switch "switch0" \
- "2:lan" "5:lan" "4:wan" "6 at eth0"
+ "2:lan:2" "5:lan:1" "4:wan" "6 at eth0"
;;
wavlink,wl-wn579x3)
ucidef_add_switch "switch0" \
More information about the lede-commits
mailing list