summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2015-05-29 14:33:03 +0000
committerDinh Nguyen <dinguyen@opensource.altera.com>2015-06-02 14:27:11 -0500
commite0e6f74801e1d027fa172d47b3e2515027f4728e (patch)
tree8f2be58cbf1b7053e77ba9be2edad249906ad927 /arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
parent81638f1b9f9990b036c63bf20515779a7f41dc6f (diff)
ARM: socfpga: socrates: add gpio-leds
The SOCrates has three HPS LEDs that can be turned on/off via gpio. Use the first one has heartbeat and add the other two as free LEDs. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Diffstat (limited to 'arch/arm/boot/dts/socfpga_cyclone5_socrates.dts')
-rw-r--r--arch/arm/boot/dts/socfpga_cyclone5_socrates.dts23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
index a81f33deaa3a..019dd2fea208 100644
--- a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
+++ b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
@@ -30,6 +30,9 @@
device_type = "memory";
reg = <0x0 0x40000000>; /* 1GB */
};
+
+ leds: gpio-leds {
+ };
};
&gmac1 {
@@ -53,6 +56,26 @@
};
};
+&leds {
+ compatible = "gpio-leds";
+
+ led@0 {
+ label = "led:green:heartbeat";
+ gpios = <&porta 28 1>;
+ linux,default-trigger = "heartbeat";
+ };
+
+ led@1 {
+ label = "led:green:D7";
+ gpios = <&portb 19 1>;
+ };
+
+ led@2 {
+ label = "led:green:D8";
+ gpios = <&portb 25 1>;
+ };
+};
+
&mmc {
status = "okay";
};