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/ar7242_avm_fritz300e.dts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'target/linux/ath79/dts/ar7242_avm_fritz300e.dts') diff --git a/target/linux/ath79/dts/ar7242_avm_fritz300e.dts b/target/linux/ath79/dts/ar7242_avm_fritz300e.dts index 1dd1698714..07c1f637cb 100644 --- a/target/linux/ath79/dts/ar7242_avm_fritz300e.dts +++ b/target/linux/ath79/dts/ar7242_avm_fritz300e.dts @@ -10,6 +10,10 @@ compatible = "avm,fritz300e", "qca,ar7242"; model = "AVM FRITZ!WLAN Repeater 300E"; + aliases { + led-status = &power; + }; + memory@0 { device_type = "memory"; reg = <0x0 0x4000000>; @@ -32,7 +36,7 @@ leds { compatible = "gpio-leds"; - power { + power: power { label = "fritz300e:green:power"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; default-state = "on"; @@ -46,6 +50,7 @@ wlan { label = "fritz300e:green:wlan"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; }; }; -- cgit v1.2.3