diff options
| author | Aleksander Jan Bajkowski | 2025-03-01 14:28:33 +0000 |
|---|---|---|
| committer | Daniel Golle | 2025-03-21 00:39:08 +0000 |
| commit | b88de5d50729dda421657f425f1dd0f1fb446c55 (patch) | |
| tree | 1b9ed3b9693150d7ee0f0ecffb900c9ed6e9b686 | |
| parent | 4f5f56b702fed3221d31131383c37293b091d317 (diff) | |
| download | openwrt-b88de5d50729dda421657f425f1dd0f1fb446c55.tar.gz | |
mediatek: filogic: migrate Zyxel EX5700 to upstream PHY LED control
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>
| -rw-r--r-- | target/linux/mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts | 36 | ||||
| -rw-r--r-- | target/linux/mediatek/filogic/base-files/etc/board.d/01_leds | 6 |
2 files changed, 40 insertions, 2 deletions
diff --git a/target/linux/mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts b/target/linux/mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts index 51147c1d81..c36cc58d5d 100644 --- a/target/linux/mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts +++ b/target/linux/mediatek/dts/mt7986a-zyxel-ex5700-telenor.dts @@ -158,13 +158,45 @@ phy5: phy@5 { compatible = "ethernet-phy-ieee802.3-c45"; reg = <5>; - mxl,led-config = <0x3f0 0x330 0x0 0x0>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led-0 { + reg = <0>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_LAN; + }; + + led-1 { + reg = <1>; + color = <LED_COLOR_ID_AMBER>; + function = LED_FUNCTION_LAN; + }; + }; }; phy6: phy@6 { compatible = "ethernet-phy-ieee802.3-c45"; reg = <6>; - mxl,led-config = <0x3f0 0x330 0x0 0x0>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led-0 { + reg = <0>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_WAN; + }; + + led-1 { + reg = <1>; + color = <LED_COLOR_ID_AMBER>; + function = LED_FUNCTION_WAN; + }; + }; }; switch: switch@1f { diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds index 5f56685343..a1205e9556 100644 --- a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds @@ -163,6 +163,12 @@ zyxel,nwa50ax-pro) ucidef_set_led_netdev "uplink" "UPLINK" "mdio-bus:05:amber:wan" "eth0" "link_10 link_100 link_2500 tx rx" ucidef_set_led_netdev "uplink" "UPLINK" "mdio-bus:05:green:wan" "eth0" "link_1000 link_2500 tx rx" ;; +zyxel,ex5700-telenor) + ucidef_set_led_netdev "lan4" "LAN4" "mdio-bus:05:amber:lan" "lan4" "link_10 link_100 tx rx" + ucidef_set_led_netdev "lan4" "LAN4" "mdio-bus:05:green:lan" "lan4" "link tx rx" + ucidef_set_led_netdev "wan" "WAN" "mdio-bus:06:amber:wan" "eth1" "link_10 link_100 tx rx" + ucidef_set_led_netdev "wan" "WAN" "mdio-bus:06:green:wan" "eth1" "link tx rx" + ;; esac board_config_flush |