Commit d29d3078 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'socfpga_dts_for_v4.15_part2' of...

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
parents 18ea0db3 a067fb42
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/reset/altr,rst-mgr-s10.h> #include <dt-bindings/reset/altr,rst-mgr-s10.h>
#include <dt-bindings/gpio/gpio.h>
/ { / {
compatible = "altr,socfpga-stratix10"; compatible = "altr,socfpga-stratix10";
...@@ -164,7 +165,7 @@ portb: gpio-controller@0 { ...@@ -164,7 +165,7 @@ portb: gpio-controller@0 {
reg = <0>; reg = <0>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
interrupts = <0 110 4>; interrupts = <0 111 4>;
}; };
}; };
......
...@@ -27,6 +27,24 @@ chosen { ...@@ -27,6 +27,24 @@ chosen {
stdout-path = "serial0:115200n8"; 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 { memory {
device_type = "memory"; device_type = "memory";
/* We expect the bootloader to fill in the reg */ /* We expect the bootloader to fill in the reg */
...@@ -34,6 +52,10 @@ memory { ...@@ -34,6 +52,10 @@ memory {
}; };
}; };
&gpio1 {
status = "okay";
};
&gmac0 { &gmac0 {
status = "okay"; status = "okay";
phy-mode = "rgmii"; phy-mode = "rgmii";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment