diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-08-17 14:57:52 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-08-17 15:00:43 +0200 |
commit | 03cdbb20404410ef9cd0daea45fe3f17e1b745b5 (patch) | |
tree | 4f3bf877899542d575ae16b202ff745dba274052 /target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts | |
parent | e38d89ea55ec8da3f94c2dbb80ed5d75f8e41c20 (diff) | |
download | upstream-03cdbb20404410ef9cd0daea45fe3f17e1b745b5.tar.gz upstream-03cdbb20404410ef9cd0daea45fe3f17e1b745b5.tar.bz2 upstream-03cdbb20404410ef9cd0daea45fe3f17e1b745b5.zip |
ramips: fix LED labels for Asus RT-AC65P
The leds block was copied over from the RT-AC85P DTS to the common
DTSI while keeping the device-specific model name in the label.
This moves the LEDs back to the DTS files and adjusts the names to
properly resemble the model name of the devices used at, just like
it is handled on most other devices.
Fixes: 7c5f712e4fec ("ramips: add support for Asus RT-AC65P")
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts b/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts index 07a714a840..eaa82012c2 100644 --- a/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts +++ b/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts @@ -6,4 +6,32 @@ / { compatible = "asus,rt-ac65p", "mediatek,mt7621-soc"; model = "ASUS RT-AC65P"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "rt-ac65p:blue:power"; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + wlan5g { + label = "rt-ac65p:blue:wlan5g"; + gpios = <&gpio 8 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1radio"; + }; + + wlan2g { + label = "rt-ac65p:blue:wlan2g"; + gpios = <&gpio 10 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0radio"; + }; + }; }; |