From: Michal Piekos <michal.piekos@mmpsystems.pl>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Andre Przywara <andre.przywara@arm.com>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
Michal Piekos <michal.piekos@mmpsystems.pl>
Subject: [PATCH 2/2] arm64: dts: allwinner: orangepi-zero3: fix axp313 interrupt parrent
Date: Sun, 08 Mar 2026 06:16:52 +0100 [thread overview]
Message-ID: <20260308-rc2-boot-hang-v1-2-d792d1a78dfd@mmpsystems.pl> (raw)
In-Reply-To: <20260308-rc2-boot-hang-v1-0-d792d1a78dfd@mmpsystems.pl>
The AXP313 PMIC interrupt on Orange Pi Zero 3 is connected to PL bank
GPIO handled by the R_PIO controller. However current dts routes the
interrupts to PIO controller. This causes the kernel to select wrong
pinctrl instance when configuring the interrupt which leads to invalid
register access and a kernel hang during boot.
The problem existed previously but became visible after the commit
01e10d0272b9 ("pinctrl: sunxi: Implement gpiochip::get_direction()"),
which causes gpiolib to call the gpiochip::get_direction() callback
during interrupt setup.
Route the interrupt thrpugh R_PIO so the PL bank GPIO is handled by
correct controller.
Fixes: f1b3ddb3ecc2 ("arm64: dts: allwinner: h616: Add OrangePi Zero 3 board support")
Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl>
Tested-by: Michal Piekos <michal.piekos@mmpsystems.pl>
---
arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts
index c51d4d9120de..c46ae00aed5c 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts
@@ -48,7 +48,7 @@ axp313: pmic@36 {
reg = <0x36>;
#interrupt-cells = <1>;
interrupt-controller;
- interrupt-parent = <&pio>;
+ interrupt-parent = <&r_pio>;
interrupts = <2 9 IRQ_TYPE_LEVEL_LOW>; /* PC9 */
vin1-supply = <®_vcc5v>;
--
2.43.0
next prev parent reply other threads:[~2026-03-08 5:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-08 5:16 [PATCH 0/2] arm64: dts: allwinner: fix Orange Pi Zero 3 PMIC interrupt routing Michal Piekos
2026-03-08 5:16 ` [PATCH 1/2] arm64: dts: allwinner: h616: declare r_pio as interrupt controller Michal Piekos
2026-03-08 5:16 ` Michal Piekos [this message]
2026-03-08 8:23 ` [PATCH 0/2] arm64: dts: allwinner: fix Orange Pi Zero 3 PMIC interrupt routing Jernej Škrabec
2026-03-08 9:29 ` Michal Piekos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260308-rc2-boot-hang-v1-2-d792d1a78dfd@mmpsystems.pl \
--to=michal.piekos@mmpsystems.pl \
--cc=andre.przywara@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox