summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorAlan Tull <atull@kernel.org>2017-10-10 23:25:38 +0200
committerDinh Nguyen <dinguyen@kernel.org>2017-10-11 10:18:04 +0200
commitf850b5401cdfa6f5d03a62357211507d6ed72050 (patch)
treeed39c4171ff9f2d88148ab88b4a7b453872891ce /arch/arm64
parentarm64: dts: stratix10: add gpio header (diff)
downloadlinux-f850b5401cdfa6f5d03a62357211507d6ed72050.tar.xz
linux-f850b5401cdfa6f5d03a62357211507d6ed72050.zip
arm64: dts: stratix10: enable gpio and leds
Enable gpio and leds for socdk OOBE daughtercard. pushbutton PB_SW0 = gpio1.io4 pushbutton PB_SW1 = gpio1.io5 LED HPS_LED0 = gpio1.io20 LED HPS_LED1 = gpio1.io19 LED HPS_LED2 = gpio1.io21 Signed-off-by: Alan Tull <atull@kernel.org> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
index 46f27edaa08e..a37c46112876 100644
--- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
+++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
@@ -27,6 +27,24 @@
stdout-path = "serial0:115200n8";
};
+ leds {
+ compatible = "gpio-leds";
+ hps0 {
+ label = "hps_led0";
+ gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
+ };
+
+ hps1 {
+ label = "hps_led1";
+ gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
+ };
+
+ hps2 {
+ label = "hps_led2";
+ gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
+ };
+ };
+
memory {
device_type = "memory";
/* We expect the bootloader to fill in the reg */
@@ -34,6 +52,10 @@
};
};
+&gpio1 {
+ status = "okay";
+};
+
&gmac0 {
status = "okay";
phy-mode = "rgmii";