ARM: dts: BCM5301X: Fix I2C controller interrupt
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 27 Oct 2021 19:37:29 +0000 (12:37 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 16 Nov 2021 03:09:40 +0000 (19:09 -0800)
The I2C interrupt controller line is off by 32 because the datasheet
describes interrupt inputs into the GIC which are for Shared Peripheral
Interrupts and are starting at offset 32. The ARM GIC binding expects
the SPI interrupts to be numbered from 0 relative to the SPI base.

Fixes: bb097e3e0045 ("ARM: dts: BCM5301X: Add I2C support to the DT")
Tested-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm5301x.dtsi

index d4f355015e3cab0aca29849d15441864159fc64c..437a2b0f68de310f6d5dd8f4ea6dee15908b9805 100644 (file)
        i2c0: i2c@18009000 {
                compatible = "brcm,iproc-i2c";
                reg = <0x18009000 0x50>;
-               interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
+               interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
                #address-cells = <1>;
                #size-cells = <0>;
                clock-frequency = <100000>;