summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski2025-02-17 18:25:02 +0000
committerDaniel Golle2025-03-01 03:03:02 +0000
commitd50d51d74e93a057c607c9a4081ff3f29cbab38f (patch)
tree36212da916167a70dff5bb46687149e5f8b1a1e5
parentce68f61cb67a4701a108f838f510e72ca63ed78e (diff)
downloadopenwrt-d50d51d74e93a057c607c9a4081ff3f29cbab38f.tar.gz
mediatek: filogic: migrate Zyxel NWA50AX Pro 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/mt7981b-zyxel-nwa50ax-pro.dts18
-rw-r--r--target/linux/mediatek/filogic/base-files/etc/board.d/01_leds4
2 files changed, 20 insertions, 2 deletions
diff --git a/target/linux/mediatek/dts/mt7981b-zyxel-nwa50ax-pro.dts b/target/linux/mediatek/dts/mt7981b-zyxel-nwa50ax-pro.dts
index 95247eba9d..ef72ca4ba3 100644
--- a/target/linux/mediatek/dts/mt7981b-zyxel-nwa50ax-pro.dts
+++ b/target/linux/mediatek/dts/mt7981b-zyxel-nwa50ax-pro.dts
@@ -85,8 +85,22 @@
reg = <5>;
compatible = "ethernet-phy-ieee802.3-c45";
- /* LED0: Amber ; LED1: nc ; LED2: nc ; LED3: Green */
- mxl,led-config = <0x3b0 0x0 0x0 0x3c0>;
+ leds {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led-0 {
+ reg = <0>;
+ color = <LED_COLOR_ID_AMBER>;
+ function = LED_FUNCTION_WAN;
+ };
+
+ led-3 {
+ reg = <3>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_WAN;
+ };
+ };
};
};
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 4e1d10a4dc..3287cfe29b 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
@@ -150,6 +150,10 @@ zyxel,ex5601-t0-ubootmod)
ucidef_set_led_netdev "wifi-24g" "WIFI-2.4G" "green:wifi24g" "phy0-ap0" "link tx rx"
ucidef_set_led_netdev "wifi-5g" "WIFI-5G" "green:wifi5g" "phy1-ap0" "link tx rx"
;;
+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"
+ ;;
esac
board_config_flush