aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-11-02 11:37:53 -0400
committerArnd Bergmann <arnd@arndb.de>2017-11-02 11:37:53 -0400
commitd29d30782acd9266c0afed08cb8f40a95e4f2212 (patch)
tree36ebf8775d0a5de4dec2ec369a99b59c46ceefdd
parent18ea0db3081fff8279c037cd0eeb8f9003cf49e1 (diff)
parenta067fb4290131b5b356dfcc464b5bff19a251791 (diff)
Merge tag 'socfpga_dts_for_v4.15_part2' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux into next/dt
Pull "SoCFPGA DTS updates for v4.15, part 2" from Dinh Nguyen: - Stratix10 platform update - Enable GPIO and LEDs for Stratix10 devkit * tag 'socfpga_dts_for_v4.15_part2' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux: arm64: dts: stratix10: fix interrupt number for gpio1 arm64: dts: stratix10: enable gpio and leds arm64: dts: stratix10: add gpio header
-rw-r--r--arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi3
-rw-r--r--arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts22
2 files changed, 24 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
index 6804936f2459..7c9bdc7ab50b 100644
--- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
+++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
@@ -16,6 +16,7 @@
16 16
17/dts-v1/; 17/dts-v1/;
18#include <dt-bindings/reset/altr,rst-mgr-s10.h> 18#include <dt-bindings/reset/altr,rst-mgr-s10.h>
19#include <dt-bindings/gpio/gpio.h>
19 20
20/ { 21/ {
21 compatible = "altr,socfpga-stratix10"; 22 compatible = "altr,socfpga-stratix10";
@@ -164,7 +165,7 @@
164 reg = <0>; 165 reg = <0>;
165 interrupt-controller; 166 interrupt-controller;
166 #interrupt-cells = <2>; 167 #interrupt-cells = <2>;
167 interrupts = <0 110 4>; 168 interrupts = <0 111 4>;
168 }; 169 };
169 }; 170 };
170 171
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 @@
27 stdout-path = "serial0:115200n8"; 27 stdout-path = "serial0:115200n8";
28 }; 28 };
29 29
30 leds {
31 compatible = "gpio-leds";
32 hps0 {
33 label = "hps_led0";
34 gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
35 };
36
37 hps1 {
38 label = "hps_led1";
39 gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
40 };
41
42 hps2 {
43 label = "hps_led2";
44 gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
45 };
46 };
47
30 memory { 48 memory {
31 device_type = "memory"; 49 device_type = "memory";
32 /* We expect the bootloader to fill in the reg */ 50 /* We expect the bootloader to fill in the reg */
@@ -34,6 +52,10 @@
34 }; 52 };
35}; 53};
36 54
55&gpio1 {
56 status = "okay";
57};
58
37&gmac0 { 59&gmac0 {
38 status = "okay"; 60 status = "okay";
39 phy-mode = "rgmii"; 61 phy-mode = "rgmii";