Skip to contentSkip to conversation

arm64: dts: rockchip: Enable the NPU on rk3588-rock-5-itx

PATCH Applied Sten-Silver Ots 2 participants 2 messages Apr 13 – Apr 27

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: Enable the NPU on rk3588-rock-5-itx

This commit enables the NPU on Radxa Rock 5 ITX board. The regulator vdd_npu_s0 was already in place and since the NPUs power domain supply is now described remove the always-on property from the regulator.

---
 .../boot/dts/rockchip/rk3588-rock-5-itx.dts   | 35 ++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts +34 -1
index de154adb1497..d3ab6c68a60b 100644
@@ -421,7 +421,6 @@ vdd_npu_s0: regulator@42 {
 		reg = <0x42>;
 		fcs,suspend-voltage-selector = <1>;
 		regulator-name = "vdd_npu_s0";
-		regulator-always-on;
 		regulator-boot-on;
 		regulator-min-microvolt = <550000>;
 		regulator-max-microvolt = <950000>;
@@ -683,6 +682,10 @@ &pd_gpu {
 	domain-supply = <&vdd_gpu_s0>;
 };
 
+&pd_npu {
+	domain-supply = <&vdd_npu_s0>;
+};
+
 &pinctrl {
 	hym8563 {
 		rtc_int: rtc-int {
@@ -802,6 +805,36 @@ dp1_hpd: dp1-hpd {
 	};
 };
 
+&rknn_core_0 {
+	npu-supply = <&vdd_npu_s0>;
+	sram-supply = <&vdd_npu_s0>;
+	status = "okay";
+};
+
+&rknn_core_1 {
+	npu-supply = <&vdd_npu_s0>;
+	sram-supply = <&vdd_npu_s0>;
+	status = "okay";
+};
+
+&rknn_core_2 {
+	npu-supply = <&vdd_npu_s0>;
+	sram-supply = <&vdd_npu_s0>;
+	status = "okay";
+};
+
+&rknn_mmu_0 {
+	status = "okay";
+};
+
+&rknn_mmu_1 {
+	status = "okay";
+};
+
+&rknn_mmu_2 {
+	status = "okay";
+};
+
 &pwm14 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pwm14m1_pins>;
Signature · 1 line
2.53.0
maintainer Applied
#1 lore raw
Quoted 6 lines · Sten-Silver Ots

This commit enables the NPU on Radxa Rock 5 ITX board. The regulator vdd_npu_s0 was already in place and since the NPUs power domain supply is now described remove the always-on property from the regulator.

Applied, thanks!

[1/1] arm64: dts: rockchip: Enable the NPU on rk3588-rock-5-itx

      commit: e4f7054e819eece6fd83072ff2dcefc7a36224c0

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>