[openwrt/openwrt] ath79: support switch LEDs on Archer C7 family
LEDE Commits
lede-commits at lists.infradead.org
Mon Mar 17 08:42:12 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/a6bde79c91b813ea29c3a0b1c84bc4fe4c3a00a1
commit a6bde79c91b813ea29c3a0b1c84bc4fe4c3a00a1
Author: Lech Perczak <lech.perczak at gmail.com>
AuthorDate: Tue Sep 14 23:48:51 2021 +0200
ath79: support switch LEDs on Archer C7 family
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 <lech.perczak at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/12487
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../linux/ath79/dts/qca9558_tplink_archer-c.dtsi | 42 ++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi b/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi
index c1bd3f759b..7c84f3e21d 100644
--- a/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi
+++ b/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi
@@ -4,6 +4,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
aliases {
@@ -129,6 +130,47 @@
0x7c 0x0000007e /* PORT0_STATUS */
0x94 0x0000007e /* PORT6 STATUS */
>;
+
+ leds {
+ led at 0 {
+ reg = <0>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_WAN;
+ qca,led-mode = <0>;
+ };
+
+ led at 3 {
+ reg = <3>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_LAN;
+ function-enumerator = <1>;
+ qca,led-mode = <0>;
+ };
+
+ led at 6 {
+ reg = <6>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_LAN;
+ function-enumerator = <2>;
+ qca,led-mode = <0>;
+ };
+
+ led at 9 {
+ reg = <9>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_LAN;
+ function-enumerator = <3>;
+ qca,led-mode = <0>;
+ };
+
+ led at 12 {
+ reg = <12>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_LAN;
+ function-enumerator = <4>;
+ qca,led-mode = <0>;
+ };
+ };
};
};
More information about the lede-commits
mailing list