mediatek: filogic: migrate ASUS TUF AX6000 to upstream PHY LED control main master
authorAleksander Jan Bajkowski <olek2@wp.pl>
Wed, 12 Feb 2025 21:12:28 +0000 (22:12 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 1 Mar 2025 03:05:18 +0000 (03:05 +0000)
This commit switches the control of the leds connected to the Maxlinear
GPY211C PHY to an upstream solution. There should be no functional changes.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts
target/linux/mediatek/filogic/base-files/etc/board.d/01_leds

index 9a0f7594c92c24c73290f1bd7c10b75d3de30e22..5a615aa238e585e74ffff0bb7c2889998f583864 100644 (file)
                compatible = "ethernet-phy-ieee802.3-c45";
                reg = <5>;
 
-               mxl,led-drive-vdd;
-               mxl,led-config = <0x03f0 0x0 0x0 0x0>;
+               leds {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       led-0 {
+                               reg = <0>;
+                               active-high;
+                               color = <LED_COLOR_ID_WHITE>;
+                               function = LED_FUNCTION_LAN;
+                       };
+               };
        };
 
        phy6: phy@6 {
                compatible = "ethernet-phy-ieee802.3-c45";
                reg = <6>;
 
-               /* LED0: CONN (WAN white) */
-               mxl,led-config = <0x03f0 0x0 0x0 0x0>;
+               leds {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       led-0 {
+                               reg = <0>;
+                               color = <LED_COLOR_ID_WHITE>;
+                               function = LED_FUNCTION_WAN;
+                       };
+               };
        };
 
        switch: switch@1f {
index 53a0e1ad6f01cb4508f43971db9b8f112af9c25e..5f5668534337c630f6474fe04b19dc618eb26a90 100644 (file)
@@ -19,6 +19,10 @@ acer,predator-w6d)
 asus,tuf-ax4200)
        ucidef_set_led_netdev "wan" "WAN" "mdio-bus:06:white:wan" "eth1" "link tx rx"
        ;;
+asus,tuf-ax6000)
+       ucidef_set_led_netdev "lan5" "LAN5" "mdio-bus:05:white:lan" "lan5" "link tx rx"
+       ucidef_set_led_netdev "wan" "WAN" "mdio-bus:06:white:wan" "eth1" "link tx rx"
+       ;;
 confiabits,mt7981)
        ucidef_set_led_netdev "lan1" "lan1" "blue:lan-1" "lan1" "link tx rx"
        ucidef_set_led_netdev "lan2" "lan2" "blue:lan-2" "lan2" "link tx rx"