From 14cb05909a8dc6e42008697b4fe47b8fa00789d8 Mon Sep 17 00:00:00 2001 From: Johann Neuhauser Date: Sat, 16 Jun 2018 08:13:09 +0200 Subject: 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 --- target/linux/ath79/dts/ar9330_glinet_ar150.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'target/linux/ath79/dts/ar9330_glinet_ar150.dts') diff --git a/target/linux/ath79/dts/ar9330_glinet_ar150.dts b/target/linux/ath79/dts/ar9330_glinet_ar150.dts index 1a97a0da30..721cbe7da5 100644 --- a/target/linux/ath79/dts/ar9330_glinet_ar150.dts +++ b/target/linux/ath79/dts/ar9330_glinet_ar150.dts @@ -12,6 +12,7 @@ aliases { serial0 = &uart; + led-status = &wlan; }; memory@0 { @@ -22,10 +23,11 @@ leds { compatible = "gpio-leds"; - wlan { + wlan: wlan { label = "gl-ar150:orange:wlan"; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; default-state = "off"; + linux,default-trigger = "phy0tpt"; }; lan { -- cgit v1.2.3