aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar7241_ubnt_unifi.dts
diff options
context:
space:
mode:
authorJohann Neuhauser <johann@it-neuhauser.de>2018-06-16 08:13:09 +0200
committerMathias Kresin <dev@kresin.me>2018-06-16 10:08:51 +0200
commit14cb05909a8dc6e42008697b4fe47b8fa00789d8 (patch)
tree725dd3d2a12a6f8f0770f9c18a6d7aeaa1f8451c /target/linux/ath79/dts/ar7241_ubnt_unifi.dts
parent25ea21d765fd49631ab64bac75bfb98f076483e6 (diff)
downloadupstream-14cb05909a8dc6e42008697b4fe47b8fa00789d8.tar.gz
upstream-14cb05909a8dc6e42008697b4fe47b8fa00789d8.tar.bz2
upstream-14cb05909a8dc6e42008697b4fe47b8fa00789d8.zip
ath79: clean up led config script files for all devices
1. Move all status led definitions out of diag.sh into device dt as we use here a generic script hook. 2. Encode "phy0ptp" led trigger in dt of device for all ath79 devices. Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
Diffstat (limited to 'target/linux/ath79/dts/ar7241_ubnt_unifi.dts')
-rw-r--r--target/linux/ath79/dts/ar7241_ubnt_unifi.dts6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ath79/dts/ar7241_ubnt_unifi.dts b/target/linux/ath79/dts/ar7241_ubnt_unifi.dts
index bb42017c54..923b3df770 100644
--- a/target/linux/ath79/dts/ar7241_ubnt_unifi.dts
+++ b/target/linux/ath79/dts/ar7241_ubnt_unifi.dts
@@ -10,6 +10,10 @@
compatible = "ubnt,unifi", "qca,ar7241";
model = "Ubiquiti UniFi AP";
+ aliases {
+ led-status = &dome_green;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x4000000>;
@@ -36,7 +40,7 @@
leds {
compatible = "gpio-leds";
- dome-green {
+ dome_green: dome-green {
label = "ubnt:green:dome";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};