Browse Source

ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro

The default trigger for the amber lights on lan1 and lan3 were
mistakenly swapped after the device's migration to DSA. This
caused activity on one port to trigger the amber light on the
other port. Swapping their default trigger in the DTS file
fixes that.

Signed-off-by: Adam Elyas <[email protected]>
[minor commit title adjustment, wrap commit message]
Signed-off-by: Adrian Schmutzler <[email protected]>
Adam Elyas 4 years ago
parent
commit
edaf432bf4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts

+ 2 - 2
target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts

@@ -48,7 +48,7 @@
 		lan3_amber {
 		lan3_amber {
 			label = "amber:lan3";
 			label = "amber:lan3";
 			gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
 			gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
-			linux,default-trigger = "dsa-0.0:01:1Gbps";
+			linux,default-trigger = "dsa-0.0:03:1Gbps";
 		};
 		};
 
 
 		lan2_amber {
 		lan2_amber {
@@ -60,7 +60,7 @@
 		lan1_amber {
 		lan1_amber {
 			label = "amber:lan1";
 			label = "amber:lan1";
 			gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
 			gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
-			linux,default-trigger = "dsa-0.0:03:1Gbps";
+			linux,default-trigger = "dsa-0.0:01:1Gbps";
 		};
 		};
 	};
 	};