ARM: dts: r7s72100: Add pin controller node
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Thu, 22 Jun 2017 14:54:32 +0000 (16:54 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 31 Jul 2017 15:09:40 +0000 (17:09 +0200)
Add pin controller node with 12 gpio controller sub-nodes to
r7s72100 dtsi.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r7s72100.dtsi

index 5cf53e9..4ed12a4 100644 (file)
                };
        };
 
+       pinctrl: pin-controller@fcfe3000 {
+               compatible = "renesas,r7s72100-ports";
+
+               reg = <0xfcfe3000 0x4230>;
+
+               port0: gpio-0 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 0 6>;
+               };
+
+               port1: gpio-1 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 16 16>;
+               };
+
+               port2: gpio-2 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 32 16>;
+               };
+
+               port3: gpio-3 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 48 16>;
+               };
+
+               port4: gpio-4 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 64 16>;
+               };
+
+               port5: gpio-5 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 80 11>;
+               };
+
+               port6: gpio-6 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 96 16>;
+               };
+
+               port7: gpio-7 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 112 16>;
+               };
+
+               port8: gpio-8 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 128 16>;
+               };
+
+               port9: gpio-9 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 144 8>;
+               };
+
+               port10: gpio-10 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 160 16>;
+               };
+
+               port11: gpio-11 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pinctrl 0 176 16>;
+               };
+       };
+
        scif0: serial@e8007000 {
                compatible = "renesas,scif-r7s72100", "renesas,scif";
                reg = <0xe8007000 64>;