| Submitter | Jean-Francois Moine |
|---|---|
| Date | Jan. 22, 2013, 10:28 a.m. |
| Message ID | <20130122112845.4f7c0f38@armhf> |
| Download | mbox | patch |
| Permalink | /patch/214500/ |
| State | New |
| Headers | show |
Comments
On 01/22/2013 11:28 AM, Jean-Francois Moine wrote: > In a DT, the interrupts of an interrupt-controller are not usable when > #interrupt-cells is missing. > > This patch activates the interrupts of the GPIOs 0 and 1 for the Marvell > Dove SoC. > > Signed-off-by: Jean-François Moine<moinejf@free.fr> > > diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi > index 42eac1f..287fb12 100644 > --- a/arch/arm/boot/dts/dove.dtsi > +++ b/arch/arm/boot/dts/dove.dtsi > @@ -93,6 +93,7 @@ > reg =<0xd0400 0x20>; > ngpios =<32>; > interrupt-controller; > + #interrupt-cells =<1>; > interrupts =<12>,<13>,<14>,<60>; > }; > > @@ -103,6 +104,7 @@ > reg =<0xd0420 0x20>; > ngpios =<32>; > interrupt-controller; > + #interrupt-cells =<1>; > interrupts =<61>; > }; > Jean-Francois, first thanks for sending the patch! I checked Documentation/devicetree/bindings/gpio/gpio-mvebu.txt and there #interrupt-cells is specified to be set to two. Further, I checked kirkwood.dtsi and it is also missing the #interrupt-cells. Can you please update your patch to have #interrupt-cells set to two? When you resend v2 of the patch please Cc at least all I added. I will send another patch fixing kirkwood.dtsi. Sebastian
Patch
diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi index 42eac1f..287fb12 100644 --- a/arch/arm/boot/dts/dove.dtsi +++ b/arch/arm/boot/dts/dove.dtsi @@ -93,6 +93,7 @@ reg = <0xd0400 0x20>; ngpios = <32>; interrupt-controller; + #interrupt-cells = <1>; interrupts = <12>, <13>, <14>, <60>; }; @@ -103,6 +104,7 @@ reg = <0xd0420 0x20>; ngpios = <32>; interrupt-controller; + #interrupt-cells = <1>; interrupts = <61>; };
In a DT, the interrupts of an interrupt-controller are not usable when #interrupt-cells is missing. This patch activates the interrupts of the GPIOs 0 and 1 for the Marvell Dove SoC. Signed-off-by: Jean-François Moine <moinejf@free.fr>