[PATCH] arm64: dts: rockchip: Enable the NPU on NanoPi M5
Leonard Lausen
leonard at lausen.nl
Mon Oct 19 02:03:42 PDT 2026
Connect the NPU parent power domain and both RKNN cores to the existing
RK806 vdd_npu_s0 regulator, and enable both cores and their IOMMUs on the
NanoPi M5.
The domain supply lets the power-domain driver enable the rail before
powering on the NPU. Each core also references the rail through its
npu-supply property.
Link: https://lore.kernel.org/all/20260924102135.92217-1-gahing@gahingwoo.com/
Signed-off-by: Leonard Lausen <leonard at lausen.nl>
---
Applies on top of this series.
The NPU has been tested and works on the NanoPi M5.
The NanoPi M5 DTB builds with W=1 and passes schema validation.
.../boot/dts/rockchip/rk3576-nanopi-m5.dts | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
index 227fe6f3ec7c7..96c21838419e8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
@@ -800,6 +800,10 @@ &pcie0 {
status = "okay";
};
+&pd_npu {
+ domain-supply = <&vdd_npu_s0>;
+};
+
&pinctrl {
gmac {
gmac0_int: gmac0-int {
@@ -877,6 +881,24 @@ usb_otg0_pwren_h: usb-otg0-pwren-h {
};
};
+&rknn_core_0 {
+ npu-supply = <&vdd_npu_s0>;
+ status = "okay";
+};
+
+&rknn_core_1 {
+ npu-supply = <&vdd_npu_s0>;
+ status = "okay";
+};
+
+&rknn_mmu_0 {
+ status = "okay";
+};
+
+&rknn_mmu_1 {
+ status = "okay";
+};
+
&sai2 {
status = "okay";
};
base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
prerequisite-patch-id: 46ebb679e93d3d25393e8cbf8fc3c955bcc01bd4
prerequisite-patch-id: 0a572164fcadaa890f0fcd7795e9aed71b4110f7
prerequisite-patch-id: 7d00dce28af9d650165613b4e63fc1632f1001b0
prerequisite-patch-id: 1f4f63a13e342a642ce4ee33c64115c7ec09998d
prerequisite-patch-id: 30b7597254007acdb9ce6f76535df17a896b92ee
prerequisite-patch-id: 8f7794535e7def740abb4c0c154cd2dec15b1c26
prerequisite-patch-id: e6dae43a32f177292235c896dd7534e704121afd
prerequisite-patch-id: a18dcdf841b6975b1e5be01a931430c0a5711f47
prerequisite-patch-id: c98141bac89990a409fa2a6d3bea93796c9d58ab
prerequisite-patch-id: d72696eb07efc69faaee3da39b1995d2b2cef289
prerequisite-patch-id: 6d5c580e02cd2ba4e1f0a590fdcd49dd643b91b0
prerequisite-patch-id: 48b926e205e294a27d6e11d00b10d98205fd4afb
prerequisite-patch-id: 8babd101cd3628a478872e8a28a9081906b87160
prerequisite-patch-id: a0129d3f560f297a03780ef78be819e7aa0775fe
--
2.47.3
More information about the Linux-rockchip
mailing list