summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@kernel.org>2016-12-12 22:02:44 -0600
committerDinh Nguyen <dinguyen@kernel.org>2017-01-04 18:09:07 -0600
commit55b0f44cc2895460c7a244384b08e9d744894de8 (patch)
tree584b9cec956ccc640f052339b1f59d14f8a8630d /arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
parent7ce7d89f48834cefece7804d38fc5d85382edf77 (diff)
downloadblackbird-obmc-linux-55b0f44cc2895460c7a244384b08e9d744894de8.tar.gz
blackbird-obmc-linux-55b0f44cc2895460c7a244384b08e9d744894de8.zip
ARM: dts: socfpga: enable GPIO and LEDs for Cyclone5 and Arria5 devkits
Enable all the GPIO ports and define the GPIO-based leds on the Cyclone5 and Arria5 devkits. Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/socfpga_cyclone5_socdk.dts')
-rw-r--r--arch/arm/boot/dts/socfpga_cyclone5_socdk.dts31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
index 6306d008f01b..6d3188bfefd8 100644
--- a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
+++ b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
@@ -39,6 +39,29 @@
ethernet0 = &gmac1;
};
+ leds {
+ compatible = "gpio-leds";
+ hps0 {
+ label = "hps_led0";
+ gpios = <&portb 15 1>;
+ };
+
+ hps1 {
+ label = "hps_led1";
+ gpios = <&portb 14 1>;
+ };
+
+ hps2 {
+ label = "hps_led2";
+ gpios = <&portb 13 1>;
+ };
+
+ hps3 {
+ label = "hps_led3";
+ gpios = <&portb 12 1>;
+ };
+ };
+
regulator_3_3v: 3-3-v-regulator {
compatible = "regulator-fixed";
regulator-name = "3.3V";
@@ -61,10 +84,18 @@
rxc-skew-ps = <2000>;
};
+&gpio0 {
+ status = "okay";
+};
+
&gpio1 {
status = "okay";
};
+&gpio2 {
+ status = "okay";
+};
+
&i2c0 {
status = "okay";
OpenPOWER on IntegriCloud