Skip to contentSkip to conversation

configs: rockchip: Enable RK806 PMIC on rk3588-evb

PATCH In review Chaoyi Chen 3 participants 5 messages Nov 19, 2025 – Nov 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: rockchip: Enable RK806 PMIC on rk3588-evb

From: Chaoyi Chen <[email protected]>

Some pmdomains rely on RK806 PMIC for power supply. If we don't enable them in U-Boot, random panic may occur during the Kernel boot process.

---
 configs/evb-rk3588_defconfig | 4 ++++
 1 file changed, 4 insertions(+)
configs/evb-rk3588_defconfig +4 -0
index 5aaecebdafc..0ad60252b0d 100644
@@ -51,6 +51,10 @@ CONFIG_PHY_ROCKCHIP_INNO_USB2=y
 CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
 CONFIG_PHY_ROCKCHIP_USBDP=y
 CONFIG_SPL_PINCTRL=y
+CONFIG_DM_PMIC=y
+CONFIG_PMIC_RK8XX=y
+CONFIG_SPL_PMIC_RK8XX=y
+CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
 CONFIG_SPL_RAM=y
 CONFIG_BAUDRATE=1500000
Signature · 1 line
2.51.1
#1 lore raw

Hi Chaoyi Chen,

Quoted 6 lines · Chaoyi Chen

From: Chaoyi Chen <[email protected]>

Some pmdomains rely on RK806 PMIC for power supply. If we don't enable them in U-Boot, random panic may occur during the Kernel boot process.

The kernel shouldn't rely on U-Boot doing something to work, so please fix this with upstream Linux kernel.

Can you tell us what's the issue?

The issue with this patch here is that we probably would need **all** RK3588 boards to have the PMIC enabled, and all the appropriate regulators brought up before booting into the kernel. It'd be *much* better this is fixed in Linux (and depending on what we're talking about, it may need another fix in U-Boot so that whatever depends on the PM domain works as well).

Also, why the PMIC in SPL but not the regulators?

Cheers,
Quentin

#3 lore raw
In reply to Chaoyi Chen
Quoted 17 lines · Chaoyi Chen

Hi Quentin,

Quoted 14 lines · Quentin Schulz

Hi Chaoyi Chen,

Quoted 6 lines · Chaoyi Chen

From: Chaoyi Chen <[email protected]>

Some pmdomains rely on RK806 PMIC for power supply. If we don't enable them in U-Boot, random panic may occur during the Kernel boot process.

The kernel shouldn't rely on U-Boot doing something to work, so please fix this with upstream Linux kernel.

Can you tell us what's the issue?

Quoted 8 lines
Quoted 3 lines

The issue with this patch here is that we probably would need **all** RK3588 boards to have the PMIC enabled, and all the appropriate regulators brought up before booting into the kernel. It'd be *much* better this is fixed in Linux (and depending on what we're talking about, it may need another fix in U-Boot so that whatever depends on the PM domain works as well).

Also, why the PMIC in SPL but not the regulators?

It make sense, but I haven't thought of a specific solution for Kernel yet.

To be specific, I'm trying to get RKVENC to work. It uses an independent power domain. If RK806 is not enabled in U-Boot, the first power-up attempt for the pmdomain corresponding to RKVENC will fail in the Kernel.

I assume you tried to add

domain-supply = <&vdd_vdenc_s0>;

to power-domain@RK3588_PD_VCODEC node to model what the HW is expecting?

Doing something similar to the NPU essentially, which has a similar issue as far as I remember (I am not too involved in kernel development nowadays so I only get snippets of info here and there).

Quoted 2 lines

And essentially, the operations of pmdomains in the Kernel are dependent on regulators. But it seems that pmdomains driver haven't dealt with this. I have seen some cases, but it seems that the dependency issue has not been fully resolved [0].

The problem with working around the issue by applying bandage fixes in U-Boot is that nobody will actually work on fixing the actual issue. We've seen that with SoCs with IO domains which are still not properly supported by the kernel but since IO domains are now initialized by U-Boot, the issue doesn't show anymore, c.f. https://lore.kernel.org/linux-rockchip/[email protected]/.

Cheers,
Quentin

#2 lore raw
In reply to Quentin Schulz

Hi Quentin,

Quoted 10 lines · Quentin Schulz

Hi Chaoyi Chen,

Quoted 6 lines · Chaoyi Chen

From: Chaoyi Chen <[email protected]>

Some pmdomains rely on RK806 PMIC for power supply. If we don't enable them in U-Boot, random panic may occur during the Kernel boot process.

Quoted 7 lines

The kernel shouldn't rely on U-Boot doing something to work, so please fix this with upstream Linux kernel.

Can you tell us what's the issue?

The issue with this patch here is that we probably would need **all** RK3588 boards to have the PMIC enabled, and all the appropriate regulators brought up before booting into the kernel. It'd be *much* better this is fixed in Linux (and depending on what we're talking about, it may need another fix in U-Boot so that whatever depends on the PM domain works as well).

Also, why the PMIC in SPL but not the regulators?

It make sense, but I haven't thought of a specific solution for Kernel yet.

To be specific, I'm trying to get RKVENC to work. It uses an independent power domain. If RK806 is not enabled in U-Boot, the first power-up attempt for the pmdomain corresponding to RKVENC will fail in the Kernel.

And essentially, the operations of pmdomains in the Kernel are dependent on regulators. But it seems that pmdomains driver haven't dealt with this. I have seen some cases, but it seems that the dependency issue has not been fully resolved [0].

[0]: https://lore.kernel.org/all/[email protected]/

Quoted 5 lines

Cheers,
Quentin

Signature · 2 lines
Best,
Chaoyi
#4 lore raw
In reply to Quentin Schulz
Quoted 27 lines · Quentin Schulz
Quoted 17 lines · Chaoyi Chen

Hi Quentin,

Quoted 14 lines · Quentin Schulz

Hi Chaoyi Chen,

Quoted 6 lines · Chaoyi Chen

From: Chaoyi Chen <[email protected]>

Some pmdomains rely on RK806 PMIC for power supply. If we don't enable them in U-Boot, random panic may occur during the Kernel boot process.

The kernel shouldn't rely on U-Boot doing something to work, so please fix this with upstream Linux kernel.

Can you tell us what's the issue?

Quoted 8 lines
Quoted 3 lines

The issue with this patch here is that we probably would need **all** RK3588 boards to have the PMIC enabled, and all the appropriate regulators brought up before booting into the kernel. It'd be *much* better this is fixed in Linux (and depending on what we're talking about, it may need another fix in U-Boot so that whatever depends on the PM domain works as well).

Also, why the PMIC in SPL but not the regulators?

It make sense, but I haven't thought of a specific solution for Kernel yet.

To be specific, I'm trying to get RKVENC to work. It uses an independent power domain. If RK806 is not enabled in U-Boot, the first power-up attempt for the pmdomain corresponding to RKVENC will fail in the Kernel.

Quoted 7 lines

I assume you tried to add

domain-supply = <&vdd_vdenc_s0>;

to power-domain@RK3588_PD_VCODEC node to model what the HW is expecting?

Doing something similar to the NPU essentially, which has a similar issue as far as I remember (I am not too involved in kernel development nowadays so I only get snippets of info here and there).

Yes, that's exactly what I did, but I still get the same error.
I'm not sure if it has anything to do with the Kernel version. I'm currently testing on 6.15, and I'll try it again on 6.17.

Quoted 6 lines
Quoted 3 lines

And essentially, the operations of pmdomains in the Kernel are dependent on regulators. But it seems that pmdomains driver haven't dealt with this. I have seen some cases, but it seems that the dependency issue has not been fully resolved [0].

The problem with working around the issue by applying bandage fixes in U-Boot is that nobody will actually work on fixing the actual issue. We've seen that with SoCs with IO domains which are still not properly supported by the kernel but since IO domains are now initialized by U-Boot, the issue doesn't show anymore, c.f. https://lore.kernel.org/linux-rockchip/[email protected]/.

I agree with your point of view. This problem requires more time to investigate.

Signature · 2 lines
Best,
Chaoyi