]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: filogic: migrate Netgate N60 to upstream PHY LED control 18152/head
authorAleksander Jan Bajkowski <olek2@wp.pl>
Sat, 1 Mar 2025 14:14:33 +0000 (15:14 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 21 Mar 2025 00:42:04 +0000 (00:42 +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-netcore-n60.dts
target/linux/mediatek/filogic/base-files/etc/board.d/01_leds

index 2c129acbbabb051f1092b00987ba9d211a7c40cf..9686b43b8d428adf6918be482cf6188853c9ebad 100644 (file)
        phy6: phy@6 {
                compatible = "ethernet-phy-ieee802.3-c45";
                reg = <6>;
-               mxl,led-config = <0x0 0x0 0x0 0x3f0>;
+
+               leds {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       led-3 {
+                               reg = <3>;
+                               color = <LED_COLOR_ID_GREEN>;
+                               function = LED_FUNCTION_WAN;
+                       };
+               };
        };
 
        switch: switch@1f {
index a1205e9556e80f65a9b83d50227e3cbf616e8dbc..91a7892aa7d9ccf23cd202a22a51695253f4cf25 100644 (file)
@@ -76,6 +76,9 @@ mercusys,mr90x-v1-ubi)
        ucidef_set_led_netdev "lan-2" "lan-2" "green:lan-2" "lan2" "link tx rx"
        ucidef_set_led_netdev "wan" "wan" "green:wan" "eth1" "link tx rx"
        ;;
+netcore,n60|)
+       ucidef_set_led_netdev "wan" "WAN" "mdio-bus:06:green:wan" "eth1" "link tx rx"
+       ;;
 netgear,wax220)
        ucidef_set_led_netdev "eth0" "LAN" "green:lan" "eth0"
        ;;