From 5a0e622e499bfe34d3c12a8c7db997e770d1a7fd Mon Sep 17 00:00:00 2001 From: Alan Tull Date: Tue, 10 Oct 2017 16:25:37 -0500 Subject: arm64: dts: stratix10: add gpio header Add the gpio header to the base stratix10 dtsi. Signed-off-by: Alan Tull Signed-off-by: Dinh Nguyen --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/arm64/boot/dts') diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index 6804936f2459..721b91abcd28 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 +#include / { compatible = "altr,socfpga-stratix10"; -- cgit v1.2.3 From f850b5401cdfa6f5d03a62357211507d6ed72050 Mon Sep 17 00:00:00 2001 From: Alan Tull Date: Tue, 10 Oct 2017 16:25:38 -0500 Subject: 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 Signed-off-by: Dinh Nguyen --- .../boot/dts/altera/socfpga_stratix10_socdk.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'arch/arm64/boot/dts') 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"; -- cgit v1.2.3 From a067fb4290131b5b356dfcc464b5bff19a251791 Mon Sep 17 00:00:00 2001 From: Dinh Nguyen Date: Wed, 11 Oct 2017 03:24:36 -0500 Subject: arm64: dts: stratix10: fix interrupt number for gpio1 The gpio1 node's interrupt number should be 111. Signed-off-by: Dinh Nguyen --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm64/boot/dts') diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index 721b91abcd28..7c9bdc7ab50b 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi @@ -165,7 +165,7 @@ reg = <0>; interrupt-controller; #interrupt-cells = <2>; - interrupts = <0 110 4>; + interrupts = <0 111 4>; }; }; -- cgit v1.2.3