]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: socfpga: Add Devkit A10-SR fields for Arria10
authorThor Thayer <tthayer@opensource.altera.com>
Thu, 2 Jun 2016 17:52:26 +0000 (17:52 +0000)
committerDinh Nguyen <dinguyen@opensource.altera.com>
Wed, 19 Oct 2016 03:18:11 +0000 (22:18 -0500)
Add the Altera Arria10 System Resource node. This is a Multi-Function
device with GPIO expander support.

Signed-off-by: Thor Thayer <tthayer@opensource.altera.com>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
arch/arm/boot/dts/socfpga_arria10_socdk.dtsi

index 8e3a4adc389f5b105f94437ded33e238fe64708e..9f97756693f4203a45e01a4eea28b57b092fd639 100644 (file)
        status = "okay";
 };
 
+&spi1 {
+       status = "okay";
+
+       resource-manager@0 {
+               compatible = "altr,a10sr";
+               reg = <0>;
+               spi-max-frequency = <100000>;
+               /* low-level active IRQ at GPIO1_5 */
+               interrupt-parent = <&portb>;
+               interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+
+               a10sr_gpio: gpio-controller {
+                       compatible = "altr,a10sr-gpio";
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+       };
+};
+
 &i2c1 {
        speed-mode = <0>;
        status = "okay";