* [PATCH 1/2] arm64: dts: stratix10: add gpio header
@ 2017-10-10 21:25 Alan Tull
2017-10-10 21:25 ` [PATCH 2/2] arm64: dts: stratix10: enable gpio and leds Alan Tull
0 siblings, 1 reply; 3+ messages in thread
From: Alan Tull @ 2017-10-10 21:25 UTC (permalink / raw)
To: Dinh Nguyen, Rob Herring, Mark Rutland, Catalin Marinas,
Will Deacon
Cc: Alan Tull, devicetree, linux-arm-kernel, linux-kernel
Add the gpio header to the base stratix10 dtsi.
Signed-off-by: Alan Tull <atull@kernel.org>
---
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
index 6804936..721b91a 100644
--- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
+++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
@@ -16,6 +16,7 @@
/dts-v1/;
#include <dt-bindings/reset/altr,rst-mgr-s10.h>
+#include <dt-bindings/gpio/gpio.h>
/ {
compatible = "altr,socfpga-stratix10";
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] arm64: dts: stratix10: enable gpio and leds
2017-10-10 21:25 [PATCH 1/2] arm64: dts: stratix10: add gpio header Alan Tull
@ 2017-10-10 21:25 ` Alan Tull
[not found] ` <20171010212538.3331-2-atull-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Alan Tull @ 2017-10-10 21:25 UTC (permalink / raw)
To: Dinh Nguyen, Rob Herring, Mark Rutland, Catalin Marinas,
Will Deacon
Cc: Alan Tull, devicetree, linux-arm-kernel, linux-kernel
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>
---
.../boot/dts/altera/socfpga_stratix10_socdk.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
index 46f27ed..a37c461 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";
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-11 8:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-10 21:25 [PATCH 1/2] arm64: dts: stratix10: add gpio header Alan Tull
2017-10-10 21:25 ` [PATCH 2/2] arm64: dts: stratix10: enable gpio and leds Alan Tull
[not found] ` <20171010212538.3331-2-atull-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-10-11 8:18 ` Dinh Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).