[PATCH 3/5] ARM: dts: zynq: Add LED for Parallella

From: Andreas FÃrber
Date: Wed Feb 11 2015 - 19:55:40 EST


This is the green LED CR10.

Signed-off-by: Andreas FÃrber <afaerber@xxxxxxx>
---
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@e0001000";
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ cr10 {
+ label = "parallella:cr10:usr";
+ gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
+ };
+ };
};

&clkc {
--
2.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/