ramips: fix lan leds for Wavlink WL-WN535K1
authorDavide Fioravanti <pantanastyle@gmail.com>
Wed, 21 Jun 2023 19:53:07 +0000 (21:53 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 25 Jun 2023 09:02:04 +0000 (11:02 +0200)
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@gmail.com>
Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts
target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
target/linux/ramips/mt7620/base-files/etc/board.d/02_network

index 67a7d8d4889bf2a4be16af550222ae8f6dd401c7..bbb3e01add9673883d3d13fbf26952443b127ff1 100644 (file)
 
                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 {
index 2deda0861a933e2533f09152c63551f71386d881..6a097ab8e3dc1d9934765f9303ff91175be1e599 100644 (file)
@@ -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)
index 787e123e31be10ea1761fba83a0901cafb67be5c..e571dc1f6f5fea124f7314a3264770f91f7a9218 100644 (file)
@@ -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" \