OSDN Git Service

ARM: shmobile: emev2 dtsi: Add PFC information
authorNiklas Söderlund <niso@kth.se>
Tue, 17 Feb 2015 13:31:54 +0000 (14:31 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 23 Feb 2015 21:30:52 +0000 (06:30 +0900)
With this information all GPIOs can make use of the PFC functionality.

Signed-off-by: Niklas Söderlund <niso@kth.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/emev2.dtsi

index cc7bfe0..bb45694 100644 (file)
                clock-names = "sclk";
        };
 
+       pfc: pfc@e0140200 {
+               compatible = "renesas,pfc-emev2";
+               reg = <0xe0140200 0x100>;
+       };
+
        gpio0: gpio@e0050000 {
                compatible = "renesas,em-gio";
                reg = <0xe0050000 0x2c>, <0xe0050040 0x20>;
                interrupts = <0 67 IRQ_TYPE_LEVEL_HIGH>,
                             <0 68 IRQ_TYPE_LEVEL_HIGH>;
                gpio-controller;
+               gpio-ranges = <&pfc 0 0 32>;
                #gpio-cells = <2>;
                ngpios = <32>;
                interrupt-controller;
                interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>,
                             <0 70 IRQ_TYPE_LEVEL_HIGH>;
                gpio-controller;
+               gpio-ranges = <&pfc 0 32 32>;
                #gpio-cells = <2>;
                ngpios = <32>;
                interrupt-controller;
                interrupts = <0 71 IRQ_TYPE_LEVEL_HIGH>,
                             <0 72 IRQ_TYPE_LEVEL_HIGH>;
                gpio-controller;
+               gpio-ranges = <&pfc 0 64 32>;
                #gpio-cells = <2>;
                ngpios = <32>;
                interrupt-controller;
                interrupts = <0 73 IRQ_TYPE_LEVEL_HIGH>,
                             <0 74 IRQ_TYPE_LEVEL_HIGH>;
                gpio-controller;
+               gpio-ranges = <&pfc 0 96 32>;
                #gpio-cells = <2>;
                ngpios = <32>;
                interrupt-controller;
                interrupts = <0 75 IRQ_TYPE_LEVEL_HIGH>,
                             <0 76 IRQ_TYPE_LEVEL_HIGH>;
                gpio-controller;
+               gpio-ranges = <&pfc 0 128 31>;
                #gpio-cells = <2>;
                ngpios = <31>;
                interrupt-controller;