arm64: dts: st: Use 128kB size for aliased GIC400 register access on stm32mp21 SoCs
authorChristian Bruel <christian.bruel@foss.st.com>
Mon, 28 Apr 2025 12:07:01 +0000 (14:07 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 29 Apr 2025 16:16:28 +0000 (18:16 +0200)
Adjust the size of 8kB GIC regions to 128kB so that each 4kB is mapped
16 times over a 64kB region.
The offset is then adjusted in the irq-gic driver.

see commit 12e14066f4835 ("irqchip/GIC: Add workaround for aliased GIC400")

Fixes: 7a57b1bb1afbf ("arm64: dts: st: introduce stm32mp21 SoCs family")
Suggested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Christian Bruel <christian.bruel@foss.st.com>
Link: https://lore.kernel.org/r/20250415111654.2103767-5-christian.bruel@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/boot/dts/st/stm32mp211.dtsi

index 52a8209..bf888d6 100644 (file)
                intc: interrupt-controller@4ac10000 {
                        compatible = "arm,gic-400";
                        reg = <0x4ac10000 0x0 0x1000>,
-                             <0x4ac20000 0x0 0x2000>,
-                             <0x4ac40000 0x0 0x2000>,
-                             <0x4ac60000 0x0 0x2000>;
+                             <0x4ac20000 0x0 0x20000>,
+                             <0x4ac40000 0x0 0x20000>,
+                             <0x4ac60000 0x0 0x20000>;
                              #interrupt-cells = <3>;
                              interrupt-controller;
                };