[openwrt/openwrt] mediatek: filogic: migrate Netgate N60 to upstream PHY LED control
LEDE Commits
lede-commits at lists.infradead.org
Thu Mar 20 17:42:58 PDT 2025
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/63d56af6c6567f08e18e1f1c8a69f1fac263235b
commit 63d56af6c6567f08e18e1f1c8a69f1fac263235b
Author: Aleksander Jan Bajkowski <olek2 at wp.pl>
AuthorDate: Sat Mar 1 15:14:33 2025 +0100
mediatek: filogic: migrate Netgate N60 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 at wp.pl>
---
target/linux/mediatek/dts/mt7986a-netcore-n60.dts | 12 +++++++++++-
target/linux/mediatek/filogic/base-files/etc/board.d/01_leds | 3 +++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/target/linux/mediatek/dts/mt7986a-netcore-n60.dts b/target/linux/mediatek/dts/mt7986a-netcore-n60.dts
index 2c129acbba..9686b43b8d 100644
--- a/target/linux/mediatek/dts/mt7986a-netcore-n60.dts
+++ b/target/linux/mediatek/dts/mt7986a-netcore-n60.dts
@@ -109,7 +109,17 @@
phy6: phy at 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 at 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 a1205e9556..91a7892aa7 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
@@ -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"
;;
More information about the lede-commits
mailing list