summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2016-03-20 02:57:45 +0300
committerDinh Nguyen <dinguyen@kernel.org>2016-04-11 22:01:21 +0300
commite9f503254a5e0ea6b2b68b4c31491770b47a3ff0 (patch)
treefbf541c48e23220dadad110dd31472bc812284b8 /arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
parent702744ce8b3ef369ed8f8e257cbee4db44beb415 (diff)
downloadlinux-e9f503254a5e0ea6b2b68b4c31491770b47a3ff0.tar.xz
ARM: dts: socfpga: Add support for HPS LEDs on SoCKit
Add support for the blue LEDs on the SoCFPGA SoCkit board. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Dinh Nguyen <dinguyen@opensource.altera.com> Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Diffstat (limited to 'arch/arm/boot/dts/socfpga_cyclone5_sockit.dts')
-rw-r--r--arch/arm/boot/dts/socfpga_cyclone5_sockit.dts32
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
index b61f22f9ac9f..146169016f0c 100644
--- a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
+++ b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
@@ -39,6 +39,34 @@
ethernet0 = &gmac1;
};
+ leds {
+ compatible = "gpio-leds";
+
+ hps_led0 {
+ label = "hps:blue:led0";
+ gpios = <&portb 24 0>; /* HPS_GPIO53 */
+ linux,default-trigger = "heartbeat";
+ };
+
+ hps_led1 {
+ label = "hps:blue:led1";
+ gpios = <&portb 25 0>; /* HPS_GPIO54 */
+ linux,default-trigger = "heartbeat";
+ };
+
+ hps_led2 {
+ label = "hps:blue:led2";
+ gpios = <&portb 26 0>; /* HPS_GPIO55 */
+ linux,default-trigger = "heartbeat";
+ };
+
+ hps_led3 {
+ label = "hps:blue:led3";
+ gpios = <&portb 27 0>; /* HPS_GPIO56 */
+ linux,default-trigger = "heartbeat";
+ };
+ };
+
regulator_3_3v: vcc3p3-regulator {
compatible = "regulator-fixed";
regulator-name = "VCC3P3";
@@ -61,6 +89,10 @@
rxc-skew-ps = <2000>;
};
+&gpio1 { /* GPIO 30..57 */
+ status = "okay";
+};
+
&gpio2 {
status = "okay";
};