]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: allwinner: Fix PMIC interrupt number
authorAndre Przywara <andre.przywara@arm.com>
Wed, 15 May 2024 23:48:52 +0000 (00:48 +0100)
committerChen-Yu Tsai <wens@csie.org>
Tue, 28 May 2024 14:31:31 +0000 (22:31 +0800)
The "r_intc" interrupt controller on the A64 uses a mapping scheme, so
the first (and only) NMI interrupt #0 appears as interrupt number 32
(cf. the top comment in drivers/irqchip/irq-sun6i-r.c).

Fix that number in the interrupts property to properly forward PMIC
interrupts to the CPU.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Fixes: 4d39a8eb07eb ("arm64: dts: allwinner: Add Jide Remix Mini PC support")
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20240515234852.26929-1-andre.przywara@arm.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h64-remix-mini-pc.dts

index c204dd43c7269149b01f1abc990a7d20c1943cb1..ce90327e1b2e8b15c9ca2a625f0fc6d9d4afdfef 100644 (file)
                compatible = "x-powers,axp803";
                reg = <0x3a3>;
                interrupt-parent = <&r_intc>;
-               interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>;
+               interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
                x-powers,drive-vbus-en;
 
                vin1-supply = <&reg_vcc5v>;