SoCFPGA DTS updates for v4.15, part 2

- Stratix10 platform update
   - Enable GPIO and LEDs for Stratix10 devkit
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJZ9zkrAAoJEBmUBAuBoyj0uMQQALJ5ZKHHs6SXmMEM9/n1wQ9W
 LPiISwxPLTRsMNkxgLkwUH/crhkFQB5Udp+ntXNPEzoLG6eYrx7Tkr2oy09QxUbr
 N//HNoUutgNM/OelUpVhjEpCW8E3jbF7DiuNsfQshx6oIu7kxmGDpELcPErvqo3f
 ISYcScISnrETYgX+V5URUgoF7tRZllfPKirpttj5asESgaPcTg0w5eyCY4EDepWL
 W2Kpwb23OxmSL9jCXAmyT0wTKN1B/pUJi8teguqBE470GWr4KC0CS7BD945AM9DD
 Po9m2My4XrNe4I6WeV1l23xFi9s7jT31AgaYISpAZheeDJFmMmRjGZcf6MzMFPl7
 i/LqteQsty+L2G6mUjTP3uExChIp98V2CB8x6P4HJADv7zeV2fAUMTdZ/oVUB8H8
 6tti1JDsVstn63aEdqjyGE08LyseNznAVguTm7bf5c217eUegdsYyVFAD+QXiVkD
 jhW0o+AEzT4+oQuFRL0epGO1a97RNx7NBeCQEWgdEFU9wV/9v0kEpU2Senu81y5v
 8BF9T0X+OM0+REcqMNEH3VpA5IFEH2RUnETobS/SQ/7MtZqYKxe6Y1PjEGkBb/T1
 GgMpDlCZQ5zSf4yFhaRIW1cl64Rp7in/2J4/oFXr8FFsOJajT4+65rLKP7F2REsq
 CPaTYjukDCfgV5cOZZbG
 =GhNJ
 -----END PGP SIGNATURE-----

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
This commit is contained in:
Arnd Bergmann 2017-11-02 16:37:53 +01:00
commit d29d30782a
2 changed files with 24 additions and 1 deletions

View file

@ -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";
@ -164,7 +165,7 @@ portb: gpio-controller@0 {
reg = <0>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <0 110 4>;
interrupts = <0 111 4>;
};
};

View file

@ -27,6 +27,24 @@ chosen {
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 @@ memory {
};
};
&gpio1 {
status = "okay";
};
&gmac0 {
status = "okay";
phy-mode = "rgmii";