From f99aff1149188266caae2fc003e759ac3f7fca29 Mon Sep 17 00:00:00 2001 From: Douglas Teles Date: Tue, 7 Jul 2026 19:29:51 -0300 Subject: [PATCH] RK3326: route the Soysauce PMIC interrupt to GPIO0_A7 Live debugging showed the whole rk817 interrupt line dead on the Soysauce (zero counts in /proc/interrupts for pwrkey, jack and charger events across button presses). The vendor DTB wires pmic_int to GPIO0_A7 while the shared r3xs.dtsi listens on GPIO0_B2, so every PMIC interrupt was lost: power key, headphone detect, charger plug and the suspend wake source. Override the interrupt and the pinctrl in the soysauce DTS only; the other family members really use GPIO0_B2. Co-Authored-By: Claude Fable 5 --- .../dts/rockchip/rk3326-gameconsole-soysauce.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/projects/ArchR/devices/RK3326/linux/dts/rockchip/rk3326-gameconsole-soysauce.dts b/projects/ArchR/devices/RK3326/linux/dts/rockchip/rk3326-gameconsole-soysauce.dts index a0163bac3b..623b0a053b 100644 --- a/projects/ArchR/devices/RK3326/linux/dts/rockchip/rk3326-gameconsole-soysauce.dts +++ b/projects/ArchR/devices/RK3326/linux/dts/rockchip/rk3326-gameconsole-soysauce.dts @@ -275,3 +275,16 @@ }; }; }; + +/* The Soysauce routes the PMIC interrupt to GPIO0_A7, not the GPIO0_B2 + * the rest of the family uses (vendor DTB pmic_int pinctrl says pin 7). + * With the wrong pin every rk817 interrupt is lost: power key, jack + * detect, charger plug events and the suspend wake path (verified live: + * /proc/interrupts stayed at zero across button presses). */ +&rk817 { + interrupts = ; +}; + +&pmic_int { + rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>; +};