[OpenWrt-Devel] [PATCH v2] lantiq: P2812HNUFX - move usb leds to P2812HNU-F1

Mathias Kresin openwrt at kresin.me
Mon Dec 28 18:22:47 EST 2015


The P2812HNU-F3 doesn't have usb leds. Only the P2812HNU-F1 has those
leds.

Reported-by: Sylwester Petela <sscapi at gmail.com>
Signed-off-by: Mathias Kresin <openwrt at kresin.me>
---

Changes in v2:

  - change the leds device prefix as well

 target/linux/lantiq/dts/P2812HNUF1.dts  | 18 ++++++++++++++++++
 target/linux/lantiq/dts/P2812HNUFX.dtsi | 10 ----------
 2 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/target/linux/lantiq/dts/P2812HNUF1.dts b/target/linux/lantiq/dts/P2812HNUF1.dts
index 4dcaf27..317499b 100644
--- a/target/linux/lantiq/dts/P2812HNUF1.dts
+++ b/target/linux/lantiq/dts/P2812HNUF1.dts
@@ -5,6 +5,13 @@
 / {
 	model = "P2812HNUF1 - ZyXEL P-2812HNU-F1";
 
+	chosen {
+		leds {
+			usb = &usb1;
+			usb2 = &usb2;
+		};
+	};
+
 	fpi at 10000000 {
 		localbus at 0 {
 			nand-parts at 0 {
@@ -42,4 +49,15 @@
 		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>;
+		};
+	};
 };
diff --git a/target/linux/lantiq/dts/P2812HNUFX.dtsi b/target/linux/lantiq/dts/P2812HNUFX.dtsi
index a626e69..06636a5 100644
--- a/target/linux/lantiq/dts/P2812HNUFX.dtsi
+++ b/target/linux/lantiq/dts/P2812HNUFX.dtsi
@@ -11,8 +11,6 @@
 
 			dsl = &dsl_green;
 			internet = &internet_green;
-			usb = &usb1;
-			usb2 = &usb2;
 			wifi = &wireless_green;
 		};
 	};
@@ -308,14 +306,6 @@
 			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>;
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list