Skip to content

Commit

Permalink
ARM: dts: msm: Fix gpio interrupt and reg length
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Boyd authored and Kevin Hilman committed Jan 10, 2014
1 parent c4b4ecb commit 2964412
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/qcom-msm8660-surf.dts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

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>;
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/qcom-msm8960-cdp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down

0 comments on commit 2964412

Please sign in to comment.