Skip to content

Commit

Permalink
ramips: fix lan leds for Wavlink WL-WN535K1
Browse files Browse the repository at this point in the history
Previously both lan1 and lan2 leds were wrongly labelled as lan2.
Moreover they were connected to the wrong lan port.
Fixes 8fde820 ("ramips: add support for Wavlink WL-WN535K1")

Reported-by: Nicolò Maria Semprini <nicosemp@gmail.com>
Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
  • Loading branch information
DavideFioravanti authored and hauke committed Jun 25, 2023
1 parent 14293dd commit c71dada
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ ramips_setup_interfaces()
;;
wavlink,wl-wn535k1)
ucidef_add_switch "switch0" \
"2:lan" "5:lan" "4:wan" "6@eth0"
"2:lan:2" "5:lan:1" "4:wan" "6@eth0"
;;
wavlink,wl-wn579x3)
ucidef_add_switch "switch0" \
Expand Down

0 comments on commit c71dada

Please sign in to comment.