lantiq: P2812HNUFX - move usb leds to P2812HNU-F1
authorJohn Crispin <john@openwrt.org>
Fri, 1 Jan 2016 21:18:59 +0000 (21:18 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 1 Jan 2016 21:18:59 +0000 (21:18 +0000)
The P2812HNU-F3 doesn't have usb leds. Only the P2812HNU-F1 has those
leds.

Reported-by: Sylwester Petela <sscapi@gmail.com>
Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 48043

target/linux/lantiq/dts/P2812HNUF1.dts
target/linux/lantiq/dts/P2812HNUFX.dtsi

index 4dcaf27dabfc8f484d5101dc748e5cd1869d6b43..317499bbdcff10c31233857dc6e33a5355aaaefd 100644 (file)
@@ -5,6 +5,13 @@
 / {
        model = "P2812HNUF1 - ZyXEL P-2812HNU-F1";
 
+       chosen {
+               leds {
+                       usb = &usb1;
+                       usb2 = &usb2;
+               };
+       };
+
        fpi@10000000 {
                localbus@0 {
                        nand-parts@0 {
                compatible = "ralink,eeprom";
                ralink,eeprom = "RT3062.eeprom";
        };
+
+       gpio-leds {
+               usb1: usb1 {
+                       label = "p2812hnuf1:green:usb1";
+                       gpios = <&gpio 38 1>;
+               };
+               usb2: usb2 {
+                       label = "p2812hnuf1:green:usb2";
+                       gpios = <&gpio 44 1>;
+               };
+       };
 };
index a626e69776b524a873ea89cae18cc833171897e3..06636a54dd014ab086a7a8adc2f52d98a4c76e91 100644 (file)
@@ -11,8 +11,6 @@
 
                        dsl = &dsl_green;
                        internet = &internet_green;
-                       usb = &usb1;
-                       usb2 = &usb2;
                        wifi = &wireless_green;
                };
        };
                        gpios = <&stp 23 1>;
                        default-state = "keep";
                };
-               usb1: usb1 {
-                       label = "p2812hnufx:green:usb1";
-                       gpios = <&gpio 38 1>;
-               };
-               usb2: usb2 {
-                       label = "p2812hnufx:green:usb2";
-                       gpios = <&gpio 44 1>;
-               };
                phone1 {
                        label = "p2812hnufx:green:phone";
                        gpios = <&gpio 11 1>;