ath79: support switch LEDs on Archer C7 family
authorLech Perczak <[email protected]>
Tue, 14 Sep 2021 21:48:51 +0000 (23:48 +0200)
committerHauke Mehrtens <[email protected]>
Mon, 17 Mar 2025 15:40:46 +0000 (16:40 +0100)
Add switch LED definitions for TP-Link Archer C7 v1/2/3 family, based on data
extracted from ar71xx board file. Update the LED labels to match current
pattern, i.e. drop the "tp-link:" prefix.

Signed-off-by: Lech Perczak <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/12487
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi

index c1bd3f759bb708502b648db4cd772ebcb6b6b708..7c84f3e21df872627a3acabe804f93ae55699d18 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                        0x7c 0x0000007e /* PORT0_STATUS */
                        0x94 0x0000007e /* PORT6 STATUS */
                        >;
+
+               leds {
+                       led@0 {
+                               reg = <0>;
+                               color = <LED_COLOR_ID_GREEN>;
+                               function = LED_FUNCTION_WAN;
+                               qca,led-mode = <0>;
+                       };
+
+                       led@3 {
+                               reg = <3>;
+                               color = <LED_COLOR_ID_GREEN>;
+                               function = LED_FUNCTION_LAN;
+                               function-enumerator = <1>;
+                               qca,led-mode = <0>;
+                       };
+
+                       led@6 {
+                               reg = <6>;
+                               color = <LED_COLOR_ID_GREEN>;
+                               function = LED_FUNCTION_LAN;
+                               function-enumerator = <2>;
+                               qca,led-mode = <0>;
+                       };
+
+                       led@9 {
+                               reg = <9>;
+                               color = <LED_COLOR_ID_GREEN>;
+                               function = LED_FUNCTION_LAN;
+                               function-enumerator = <3>;
+                               qca,led-mode = <0>;
+                       };
+
+                       led@12 {
+                               reg = <12>;
+                               color = <LED_COLOR_ID_GREEN>;
+                               function = LED_FUNCTION_LAN;
+                               function-enumerator = <4>;
+                               qca,led-mode = <0>;
+                       };
+               };
        };
 };
 
OSZAR »