ARM: dts: r8a7792: add GPIO support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 5 Jul 2016 22:02:20 +0000 (01:02 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 8 Aug 2016 10:52:54 +0000 (12:52 +0200)
Describe all 12 GPIO controllers in the R8A7792 device tree.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7792.dtsi

index da3eb295c6f1ad637f835f2210d970255408d2fa..d5ab9474297e3d6d2362840d5812c8632e08dd45 100644 (file)
                        reg = <0 0xe6060000 0 0x144>;
                };
 
+               gpio0: gpio@e6050000 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6050000 0 0x50>;
+                       interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 0 29>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO0>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
+               gpio1: gpio@e6051000 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6051000 0 0x50>;
+                       interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 32 23>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO1>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
+               gpio2: gpio@e6052000 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6052000 0 0x50>;
+                       interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 64 32>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO2>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
+               gpio3: gpio@e6053000 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6053000 0 0x50>;
+                       interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 96 28>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO3>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
+               gpio4: gpio@e6054000 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6054000 0 0x50>;
+                       interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 128 17>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO4>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
+               gpio5: gpio@e6055000 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6055000 0 0x50>;
+                       interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 160 17>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO5>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
+               gpio6: gpio@e6055100 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6055100 0 0x50>;
+                       interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 192 17>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO6>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
+               gpio7: gpio@e6055200 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6055200 0 0x50>;
+                       interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 224 17>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO7>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
+               gpio8: gpio@e6055300 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6055300 0 0x50>;
+                       interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 256 17>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO8>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
+               gpio9: gpio@e6055400 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6055400 0 0x50>;
+                       interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 288 17>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO9>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
+               gpio10: gpio@e6055500 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6055500 0 0x50>;
+                       interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 320 32>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO10>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
+               gpio11: gpio@e6055600 {
+                       compatible = "renesas,gpio-r8a7792",
+                                    "renesas,gpio-rcar";
+                       reg = <0 0xe6055600 0 0x50>;
+                       interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
+                       #gpio-cells = <2>;
+                       gpio-controller;
+                       gpio-ranges = <&pfc 0 352 30>;
+                       #interrupt-cells = <2>;
+                       interrupt-controller;
+                       clocks = <&mstp9_clks R8A7792_CLK_GPIO11>;
+                       power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+               };
+
                dmac0: dma-controller@e6700000 {
                        compatible = "renesas,dmac-r8a7792",
                                     "renesas,rcar-dmac";