diff options
author | Alan Tull <atull@kernel.org> | 2017-10-10 17:25:38 -0400 |
---|---|---|
committer | Dinh Nguyen <dinguyen@kernel.org> | 2017-10-11 04:18:04 -0400 |
commit | f850b5401cdfa6f5d03a62357211507d6ed72050 (patch) | |
tree | ed39c4171ff9f2d88148ab88b4a7b453872891ce | |
parent | 5a0e622e499bfe34d3c12a8c7db997e770d1a7fd (diff) |
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>
-rw-r--r-- | arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 22 |
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 @@ | |||
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"; |