summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev2025-08-12 18:22:27 +0000
committerRobert Marko2025-08-13 07:57:05 +0000
commitcc0ff28f235a14283138559249d413b7aa2a9a4d (patch)
tree92d5280879ff0b062010c97db2e78f9b67d048d5
parentbe1c301cdcbca0c3be05d30fe157a7db8675443b (diff)
downloadopenwrt-cc0ff28f235a14283138559249d413b7aa2a9a4d.tar.gz
mpc85xx: tl-wdr4900: add back 5ghz LED
In the conversion to dts, qca,led-pin was used for both interfaces. Unfortunately, it's mutually exclusive with gpio-controller which made it not do anything. Fixes: 949e1a0 ("mpc85xx: tl-wdr4900: move platform code to dts") Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/19758 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts13
1 files changed, 10 insertions, 3 deletions
diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
index 6569d7ff72..598c1822fe 100644
--- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
+++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
@@ -398,18 +398,25 @@
compatible = "gpio-leds";
led-0 {
+ gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_WLAN_5GHZ;
+ linux,default-trigger = "phy0tpt";
+ };
+
+ led-1 {
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WPS;
};
- system_green: led-1 {
+ system_green: led-2 {
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
};
- led-2 {
+ led-3 {
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_USB;
@@ -418,7 +425,7 @@
trigger-sources = <&hub_port1>;
};
- led-3 {
+ led-4 {
gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_USB;