ARM: dts: msm: Fix gpio interrupt and reg length
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 10 Dec 2013 23:14:43 +0000 (15:14 -0800)
committerKevin Hilman <khilman@linaro.org>
Fri, 10 Jan 2014 21:57:59 +0000 (13:57 -0800)
The summary interrupt is #16 in the SPI space. Unfortunately,
when this device was translated from board files to DT we forgot
to subtract 16 from the interrupt number to translate it into a
SPI interrupt. Also, the register space is larger than 4k, increase
it appropriately so that the gpio driver doesn't try to access
registers outside of its mapping.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
arch/arm/boot/dts/qcom-msm8660-surf.dts
arch/arm/boot/dts/qcom-msm8960-cdp.dts

index 386d4287021534345dcfbed2f3e2f6d5079dcf0f..1187185cf25bb24e9d0d862882f9d6a8c0df5744 100644 (file)
 
        msmgpio: gpio@800000 {
                compatible = "qcom,msm-gpio";
-               reg = <0x00800000 0x1000>;
+               reg = <0x00800000 0x4000>;
                gpio-controller;
                #gpio-cells = <2>;
                ngpio = <173>;
-               interrupts = <0 32 0x4>;
+               interrupts = <0 16 0x4>;
                interrupt-controller;
                #interrupt-cells = <2>;
        };
index 93e9f7e0b7ad22bdd1d0a096902bf80d8cd2be2d..6ccbac77931e210022bf4f9066f812ca75d739af 100644 (file)
@@ -31,7 +31,7 @@
                gpio-controller;
                #gpio-cells = <2>;
                ngpio = <150>;
-               interrupts = <0 32 0x4>;
+               interrupts = <0 16 0x4>;
                interrupt-controller;
                #interrupt-cells = <2>;
                reg = <0x800000 0x4000>;