[PATCH 3/5] ARM: dts: zynq: Add LED for Parallella
Andreas Färber
afaerber at suse.de
Wed Feb 11 16:55:11 PST 2015
This is the green LED CR10.
Signed-off-by: Andreas Färber <afaerber at suse.de>
---
arch/arm/boot/dts/zynq-parallella1.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/zynq-parallella1.dtsi b/arch/arm/boot/dts/zynq-parallella1.dtsi
index e77a4968fe17..8b2895c06c8e 100644
--- a/arch/arm/boot/dts/zynq-parallella1.dtsi
+++ b/arch/arm/boot/dts/zynq-parallella1.dtsi
@@ -18,6 +18,7 @@
* GNU General Public License for more details.
*/
/include/ "zynq-7000.dtsi"
+#include <dt-bindings/gpio/gpio.h>
/ {
compatible = "adapteva,parallella", "xlnx,zynq-7000";
@@ -36,6 +37,16 @@
bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait";
linux,stdout-path = "/amba/serial at e0001000";
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ cr10 {
+ label = "parallella:cr10:usr";
+ gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
+ };
+ };
};
&clkc {
--
2.2.2
More information about the linux-arm-kernel
mailing list