2021-11-18 15:34:55 +00:00
|
|
|
From 6e238362b9793bf334c9bed2291b571cbbc75b0b Mon Sep 17 00:00:00 2001
|
2020-09-12 20:28:38 +00:00
|
|
|
From: Florian Fainelli <f.fainelli@gmail.com>
|
2021-11-18 15:34:55 +00:00
|
|
|
Date: Wed, 27 Oct 2021 12:37:29 -0700
|
2020-09-12 20:28:38 +00:00
|
|
|
Subject: [PATCH] ARM: dts: BCM5301X: Fix I2C controller interrupt
|
|
|
|
|
|
|
|
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")
|
|
|
|
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
2021-11-18 15:34:55 +00:00
|
|
|
Tested-by: Christian Lamparter <chunkeey@gmail.com>
|
|
|
|
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
2020-09-12 20:28:38 +00:00
|
|
|
---
|
|
|
|
arch/arm/boot/dts/bcm5301x.dtsi | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
|
|
|
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
2021-11-04 06:00:21 +00:00
|
|
|
@@ -408,7 +408,7 @@
|
2020-09-12 20:28:38 +00:00
|
|
|
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>;
|