arm64: dts: ti: am6-main: Add gpio nodes
authorKeerthy <j-keerthy@ti.com>
Thu, 6 Jun 2019 09:56:19 +0000 (15:26 +0530)
committerTero Kristo <t-kristo@ti.com>
Mon, 17 Jun 2019 14:24:28 +0000 (17:24 +0300)
Add gpio0/1 nodes under main domain. They have 96 and 90 gpios
respectively and all are capable of generating banked interrupts.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
arch/arm64/boot/dts/ti/k3-am65-main.dtsi

index 22154f4019304606dff9be8307386b951a59ca52..5b0386486f07a4d81edb4553c5dce4a0a4355516 100644 (file)
                        ti,sci-rm-range-global-event = <0x1>;
                };
        };
+
+       main_gpio0:  main_gpio0@600000 {
+               compatible = "ti,am654-gpio", "ti,keystone-gpio";
+               reg = <0x0 0x600000 0x0 0x100>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-parent = <&intr_main_gpio>;
+               interrupts = <57 256>, <57 257>, <57 258>, <57 259>, <57 260>,
+                               <57 261>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+               ti,ngpio = <96>;
+               ti,davinci-gpio-unbanked = <0>;
+               clocks = <&k3_clks 57 0>;
+               clock-names = "gpio";
+       };
+
+       main_gpio1:  main_gpio1@601000 {
+               compatible = "ti,am654-gpio", "ti,keystone-gpio";
+               reg = <0x0 0x601000 0x0 0x100>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-parent = <&intr_main_gpio>;
+               interrupts = <58 256>, <58 257>, <58 258>, <58 259>, <58 260>,
+                               <58 261>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+               ti,ngpio = <90>;
+               ti,davinci-gpio-unbanked = <0>;
+               clocks = <&k3_clks 58 0>;
+               clock-names = "gpio";
+       };
 };