public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: allwinner: fix Orange Pi Zero 3 PMIC interrupt routing
@ 2026-03-08  5:16 Michal Piekos
  2026-03-08  5:16 ` [PATCH 1/2] arm64: dts: allwinner: h616: declare r_pio as interrupt controller Michal Piekos
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Michal Piekos @ 2026-03-08  5:16 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Andre Przywara
  Cc: devicetree, linux-arm-kernel, linux-sunxi, linux-kernel,
	Michal Piekos

This fixes a kernel hang during boot on the Orange Pi Zero 3 caused by
incorrect interrupt routing for the AXP313A PMIC.

The PMIC interrupt on 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.

Patch 1 declares R_PIO node as interrupt controller so it can be used as
interrupt parrent.

Patch 2 fixes the board device tree by routing the interrupt to R_PIO

---
Michal Piekos (2):
      arm64: dts: allwinner: h616: declare r_pio as interrupt controller
      arm64: dts: allwinner: orangepi-zero3: fix axp313 interrupt parrent

 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi               | 2 ++
 arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
---
base-commit: 4ae12d8bd9a830799db335ee661d6cbc6597f838
change-id: 20260308-rc2-boot-hang-269e8546635b

Best regards,
-- 
Michal Piekos <michal.piekos@mmpsystems.pl>



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-08  9:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 2/2] arm64: dts: allwinner: orangepi-zero3: fix axp313 interrupt parrent Michal Piekos
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox