diff options
| author | Lech Perczak | 2021-09-14 21:47:02 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-03-17 15:40:46 +0000 |
| commit | b5367180b9f1fbde55d3ec2cca6d77f034b1bc11 (patch) | |
| tree | 820f02f3b6f6aa673930ecf4d7f71c74ba303828 | |
| parent | acd6f48e8715db3ac7648a94e94791527feaef18 (diff) | |
| download | openwrt-b5367180b9f1fbde55d3ec2cca6d77f034b1bc11.tar.gz | |
ath79: support switch LEDs on TL-WDR4300 family
Add switch LED definitions for TP-Link TL-WDR4300 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@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/12487
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi index 734f72a9c5..8411a9b061 100644 --- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi +++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT #include "ar9344_tplink_tl-wdrxxxx.dtsi" +#include <dt-bindings/leds/common.h> / { aliases { @@ -110,6 +111,47 @@ 0x5c 0x0030c300 /* LED_CTRL3 */ 0x7c 0x0000007e /* PORT0_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>; + }; + }; }; }; |