From acaa9cd4f0d28400543ef5b3aee7f6b30c58cefe Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 1 Jan 2016 21:18:08 +0000 Subject: lantiq: define default leds in dts files - ARV7525PW: use the power led as dsl led as done by the stock firmware - FRITZ3370: use the info led as internet led - FRITZ7320: use the power led as dsl led as done by the stock firmware Signed-off-by: Mathias Kresin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48037 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/lantiq/dts/P2812HNUFX.dtsi | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'target/linux/lantiq/dts/P2812HNUFX.dtsi') diff --git a/target/linux/lantiq/dts/P2812HNUFX.dtsi b/target/linux/lantiq/dts/P2812HNUFX.dtsi index 8c10acc994..a03129f59e 100644 --- a/target/linux/lantiq/dts/P2812HNUFX.dtsi +++ b/target/linux/lantiq/dts/P2812HNUFX.dtsi @@ -3,6 +3,16 @@ / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &internet_green; + power = &power; + power2 = &power2; + usb = &usb1; + usb2 = &usb2; + wifi = &wireless_green; + }; }; memory@0 { @@ -267,11 +277,11 @@ label = "internet_red"; gpios = <&stp 16 1>; }; - internet_green { + internet_green: internet_green { label = "internet_green"; /* green */ gpios = <&stp 17 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&stp 18 1>; }; @@ -283,23 +293,23 @@ label = "wireless_red"; gpios = <&stp 20 1>; }; - wireless_green { /* green */ + wireless_green: wireless_green { /* green */ label = "wireless_green"; gpios = <&stp 21 1>; }; - power { /* red */ + power: power { /* red */ label = "power"; gpios = <&stp 22 1>; }; - power2 { /* green */ + power2: power2 { /* green */ label = "power2"; gpios = <&stp 23 1>; }; - usb1 { /* green */ + usb1: usb1 { /* green */ label = "usb1"; gpios = <&gpio 38 1>; }; - usb2 { /* green */ + usb2: usb2 { /* green */ label = "usb2"; gpios = <&gpio 44 1>; }; -- cgit v1.2.3