[openwrt/openwrt] mediatek: filogic: migrate ASUS TUF AX6000 to upstream PHY LED control
LEDE Commits
lede-commits at lists.infradead.org
Fri Feb 28 19:05:38 PST 2025
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/7560af7647d12ac41d4fb2d179f1940ad13196fe
commit 7560af7647d12ac41d4fb2d179f1940ad13196fe
Author: Aleksander Jan Bajkowski <olek2 at wp.pl>
AuthorDate: Wed Feb 12 22:12:28 2025 +0100
mediatek: filogic: migrate ASUS TUF AX6000 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>
---
.../linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts | 25 ++++++++++++++++++----
.../filogic/base-files/etc/board.d/01_leds | 4 ++++
2 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts
index 9a0f7594c9..5a615aa238 100644
--- a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts
+++ b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts
@@ -146,16 +146,33 @@
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 at 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 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 53a0e1ad6f..5f56685343 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
@@ -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"
More information about the lede-commits
mailing list