From: Midgy BALON <[email protected]> Enable the RKNN core 0 and its IOMMU on the Radxa ROCK 3B by overriding their status. The Rocket accel driver binds via the rockchip,rk3568-rknn-core compatible.
The NPU is powered from vdd_npu (regulator already defined for OPP table). The IOMMU node is also enabled so the rocket driver can manage its own paging domain for user-mode submissions. Signed-off-by: Midgy BALON <[email protected]> --- arch/arm64/boot/dts/rockchip/rk3568-rock-3b.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3b.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3b.dts index 3d0c1ccfa..d54229123 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3b.dts @@ -779,3 +779,12 @@ vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { remote-endpoint = <&hdmi_in_vp0>; }; }; + +&rknn_core_0 { + npu-supply = <&vdd_npu>; + status = "okay"; +}; + +&rknn_mmu_0 { + status = "okay"; +}; -- 2.39.5
