[OpenWrt-Devel] [PATCH] ramips: added led support for wrtnode board

Christian Mehlis christian at m3hlis.de
Sat Jul 11 15:17:09 EDT 2015


This syncs the dts file with the one provided by the wrtnode team:
https://github.com/WRTnode/openwrt-patches/blob/master/R41508/wrtnode_factory_firmware_dts.patch

Signed-off-by: Christian Mehlis <christian at m3hlis.de>
---
 target/linux/ramips/dts/WRTNODE.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/target/linux/ramips/dts/WRTNODE.dts b/target/linux/ramips/dts/WRTNODE.dts
index 3fb2303..793c02f 100644
--- a/target/linux/ramips/dts/WRTNODE.dts
+++ b/target/linux/ramips/dts/WRTNODE.dts
@@ -7,6 +7,10 @@
 	model = "WRTNODE";
 
 	palmbus at 10000000 {
+		gpio1: gpio at 638 {
+			status = "okay";
+		};
+
 		gpio2: gpio at 660 {
 			status = "okay";
 		};
@@ -77,4 +81,12 @@
 			};
 		};
 	};
+
+	gpio-leds {
+		compatible = "gpio-leds";
+		indicator {
+			label = "wrtnode:blue:indicator";
+			gpios = <&gpio1 14 1>;
+		};
+	};
 };
-- 
2.1.0
_______________________________________________
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