aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2023-04-28 01:59:25 +0200
committerDavid Bauer <mail@david-bauer.net>2023-05-11 23:09:04 +0200
commit3492517f3794c69aa08d426ef69c5ab7a911a041 (patch)
treefbd31bc343d0c3af3030b75cb08211ed182d1618
parent242fe8634eba4832877d42960ade58b60d739434 (diff)
downloadupstream-3492517f3794c69aa08d426ef69c5ab7a911a041.tar.gz
upstream-3492517f3794c69aa08d426ef69c5ab7a911a041.tar.bz2
upstream-3492517f3794c69aa08d426ef69c5ab7a911a041.zip
mediatek: configure TUF-AX4200 LAN LEDs
As we can now configure the switch LED configuration, write the switch LED configuration values from the vendor firmware to the switch-IC. Previously, the switch-LEDs did not show any acitvity or link-status whatsoever. Signed-off-by: David Bauer <mail@david-bauer.net>
-rw-r--r--target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts61
1 files changed, 61 insertions, 0 deletions
diff --git a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
index 0a2f1d1d59..ccbabc4fea 100644
--- a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
+++ b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
@@ -267,6 +267,67 @@
};
};
};
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ phy@1 {
+ reg = <1>;
+
+ mediatek,led-config = <
+ 0x21 0x8009 /* BASIC_CTRL */
+ 0x22 0x0c00 /* ON_DURATION */
+ 0x23 0x1400 /* BLINK_DURATION */
+ 0x24 0x8000 /* LED0_ON_CTRL */
+ 0x25 0x0000 /* LED0_BLINK_CTRL */
+ 0x26 0xc007 /* LED1_ON_CTRL */
+ 0x27 0x003f /* LED1_BLINK_CTRL */
+ >;
+ };
+
+ phy@2 {
+ reg = <2>;
+
+ mediatek,led-config = <
+ 0x21 0x8009 /* BASIC_CTRL */
+ 0x22 0x0c00 /* ON_DURATION */
+ 0x23 0x1400 /* BLINK_DURATION */
+ 0x24 0x8000 /* LED0_ON_CTRL */
+ 0x25 0x0000 /* LED0_BLINK_CTRL */
+ 0x26 0xc007 /* LED1_ON_CTRL */
+ 0x27 0x003f /* LED1_BLINK_CTRL */
+ >;
+ };
+
+ phy@3 {
+ reg = <3>;
+
+ mediatek,led-config = <
+ 0x21 0x8009 /* BASIC_CTRL */
+ 0x22 0x0c00 /* ON_DURATION */
+ 0x23 0x1400 /* BLINK_DURATION */
+ 0x24 0x8000 /* LED0_ON_CTRL */
+ 0x25 0x0000 /* LED0_BLINK_CTRL */
+ 0x26 0xc007 /* LED1_ON_CTRL */
+ 0x27 0x003f /* LED1_BLINK_CTRL */
+ >;
+ };
+
+ phy@4 {
+ reg = <4>;
+
+ mediatek,led-config = <
+ 0x21 0x8009 /* BASIC_CTRL */
+ 0x22 0x0c00 /* ON_DURATION */
+ 0x23 0x1400 /* BLINK_DURATION */
+ 0x24 0x8000 /* LED0_ON_CTRL */
+ 0x25 0x0000 /* LED0_BLINK_CTRL */
+ 0x26 0xc007 /* LED1_ON_CTRL */
+ 0x27 0x003f /* LED1_BLINK_CTRL */
+ >;
+ };
+ };
};
&wmac {