在 2026/11/8 14:59, Jiaxing Hu 写道:
The two NPU cores of the RK3576 share the CBUF and the DSU, so PD_NPU0
and PD_NPU1 also need the three clocks that PD_NPUTOP already lists.

Also add a BIU reset to each NPU power domain. The pmdomain driver cycles
it when the domain powers on, so the bus interface works.

Signed-off-by: Jiaxing Hu <[email protected]>
---
  arch/arm64/boot/dts/rockchip/rk3576.dtsi | 12 ++++++++++--
  1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3576.dtsi 
b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
index 7828736bf9ac..508ed48b7bee 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
@@ -1159,14 +1159,22 @@ power-domain@RK3576_PD_NPUTOP {
                                                power-domain@RK3576_PD_NPU0 {
                                                        reg = <RK3576_PD_NPU0>;
                                                        clocks = <&cru 
HCLK_RKNN_ROOT>,
-                                                                <&cru 
ACLK_RKNN0>;
+                                                                <&cru 
ACLK_RKNN0>,
+                                                                <&cru 
CLK_RKNN_DSU0>,
+                                                                <&cru 
ACLK_RKNN_CBUF>,
+                                                                <&cru 
HCLK_RKNN_CBUF>;
  1. CLK_RKNN_DSU0 is the parent of ACLK_RKNN0/1 (see clk-rk3576.c).
  The common clock framework enables a clock's parents
  automatically, so DSU0 is already held during the switch window
  through the ACLK_RKNN0/1 entries the nodes already list; adding
  it explicitly is redundant.

  2. Per the design, a power domain switch only performs the idle
  request handshake and the QoS save/restore accesses, and those
  paths only require ACLK_RKNN0/1 and HCLK_RKNN_ROOT - exactly what
  the nodes already list. The CBUF clocks are not on the switch
  flow's access path, and the clk_ungate_mask support in the driver
  (0x1a/0x1c on PMU_CRU_GATEDIS_CON0 for npu0/npu1) keeps the shared
  paths alive during the switch window anyway - that is what the
  g_mask support was added for.
+                                                       resets = <&cru 
SRST_A_RKNN0_BIU>;
                                                        pm_qos = <&qos_npu_m0>;
                                                        #power-domain-cells = 
<0>;
                                                };
                                                power-domain@RK3576_PD_NPU1 {
                                                        reg = <RK3576_PD_NPU1>;
                                                        clocks = <&cru 
HCLK_RKNN_ROOT>,
-                                                                <&cru 
ACLK_RKNN1>;
+                                                                <&cru 
ACLK_RKNN1>,
+                                                                <&cru 
CLK_RKNN_DSU0>,
+                                                                <&cru 
ACLK_RKNN_CBUF>,
+                                                                <&cru 
HCLK_RKNN_CBUF>;
+                                                       resets = <&cru 
SRST_A_RKNN1_BIU>;
                                                        pm_qos = <&qos_npu_m1>;
                                                        #power-domain-cells = 
<0>;
                                                };

--
Best regards,

底层平台中心 肖锋(Finley Xiao)
************************************************************************************
瑞芯微电子股份有限公司
Rockchip Electronics Co., Ltd.
福建省福州市铜盘路软件大道89号软件园A区21号楼 350003
No.21 Building, A District, Fuzhou Software Park, Fuzhou, Fujian 350003, P.R. 
China
Tel: 0591-83991906-8602 Mobile: 18506057603
************************************************************************************

Reply via email to