* [PATCH 1/2] arm64: dts: stratix10: add gpio header
@ 2017-10-10 21:25 ` Alan Tull
0 siblings, 0 replies; 7+ 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] 7+ messages in thread
* [PATCH 1/2] arm64: dts: stratix10: add gpio header
@ 2017-10-10 21:25 ` Alan Tull
0 siblings, 0 replies; 7+ messages in thread
From: Alan Tull @ 2017-10-10 21:25 UTC (permalink / raw)
To: linux-arm-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] 7+ messages in thread
* [PATCH 2/2] arm64: dts: stratix10: enable gpio and leds
2017-10-10 21:25 ` Alan Tull
@ 2017-10-10 21:25 ` Alan Tull
-1 siblings, 0 replies; 7+ 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] 7+ messages in thread
* [PATCH 2/2] arm64: dts: stratix10: enable gpio and leds
@ 2017-10-10 21:25 ` Alan Tull
0 siblings, 0 replies; 7+ messages in thread
From: Alan Tull @ 2017-10-10 21:25 UTC (permalink / raw)
To: linux-arm-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] 7+ messages in thread
* Re: [PATCH 2/2] arm64: dts: stratix10: enable gpio and leds
@ 2017-10-11 8:18 ` Dinh Nguyen
0 siblings, 0 replies; 7+ messages in thread
From: Dinh Nguyen @ 2017-10-11 8:18 UTC (permalink / raw)
To: Alan Tull, Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon
Cc: devicetree, linux-arm-kernel, linux-kernel
On 10/10/2017 04:25 PM, Alan Tull wrote:
> 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(+)
>
Both patches applied, thanks Alan!
Dinh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] arm64: dts: stratix10: enable gpio and leds
@ 2017-10-11 8:18 ` Dinh Nguyen
0 siblings, 0 replies; 7+ messages in thread
From: Dinh Nguyen @ 2017-10-11 8:18 UTC (permalink / raw)
To: Alan Tull, Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
On 10/10/2017 04:25 PM, Alan Tull wrote:
> 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-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> ---
> .../boot/dts/altera/socfpga_stratix10_socdk.dts | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
>
Both patches applied, thanks Alan!
Dinh
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] arm64: dts: stratix10: enable gpio and leds
@ 2017-10-11 8:18 ` Dinh Nguyen
0 siblings, 0 replies; 7+ messages in thread
From: Dinh Nguyen @ 2017-10-11 8:18 UTC (permalink / raw)
To: linux-arm-kernel
On 10/10/2017 04:25 PM, Alan Tull wrote:
> 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(+)
>
Both patches applied, thanks Alan!
Dinh
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-10-11 8:18 UTC | newest]
Thread overview: 7+ 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 ` Alan Tull
2017-10-10 21:25 ` [PATCH 2/2] arm64: dts: stratix10: enable gpio and leds Alan Tull
2017-10-10 21:25 ` Alan Tull
2017-10-11 8:18 ` Dinh Nguyen
2017-10-11 8:18 ` Dinh Nguyen
2017-10-11 8:18 ` Dinh Nguyen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.