OSDN Git Service

ARM: mxc: fix gpio-ranges for VF610
authorStephen Warren <swarren@nvidia.com>
Thu, 13 Jun 2013 20:59:53 +0000 (14:59 -0600)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 17 Jun 2013 08:04:34 +0000 (16:04 +0800)
The gpio-ranges properties in vf610.dtsi were written according to an
older version of the GPIO bindings. Unfortunately, these were changed
incompatibly in commit 86853c8 "gpio: add gpio offset in gpio range
cells property". This patch adds the missing required extra cell in each
gpio-ranges property.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/vf610.dtsi

index 659d845..e1eb7da 100644 (file)
                        iomuxc: iomuxc@40048000 {
                                compatible = "fsl,vf610-iomuxc";
                                reg = <0x40048000 0x1000>;
-                               #gpio-range-cells = <2>;
+                               #gpio-range-cells = <3>;
 
                                /* functions and groups pins */
 
                                #gpio-cells = <2>;
                                interrupt-controller;
                                #interrupt-cells = <2>;
-                               gpio-ranges = <&iomuxc 0 32>;
+                               gpio-ranges = <&iomuxc 0 32>;
                        };
 
                        gpio2: gpio@4004a000 {
                                #gpio-cells = <2>;
                                interrupt-controller;
                                #interrupt-cells = <2>;
-                               gpio-ranges = <&iomuxc 32 32>;
+                               gpio-ranges = <&iomuxc 32 32>;
                        };
 
                        gpio3: gpio@4004b000 {
                                #gpio-cells = <2>;
                                interrupt-controller;
                                #interrupt-cells = <2>;
-                               gpio-ranges = <&iomuxc 64 32>;
+                               gpio-ranges = <&iomuxc 64 32>;
                        };
 
                        gpio4: gpio@4004c000 {
                                #gpio-cells = <2>;
                                interrupt-controller;
                                #interrupt-cells = <2>;
-                               gpio-ranges = <&iomuxc 96 32>;
+                               gpio-ranges = <&iomuxc 96 32>;
                        };
 
                        gpio5: gpio@4004d000 {
                                #gpio-cells = <2>;
                                interrupt-controller;
                                #interrupt-cells = <2>;
-                               gpio-ranges = <&iomuxc 128 7>;
+                               gpio-ranges = <&iomuxc 128 7>;
                        };
 
                        anatop@40050000 {