From 2053fde8d643f6eb67b9f69a6c6c25e6f04d348a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E8=8F=9C=E8=90=9D=20=E5=8D=9C=E5=86=AC=E7=93=9C?= Date: Sun, 22 Dec 2024 16:14:47 +0800 Subject: [PATCH] Create 0001-rockchip-rk3566-orangepi-3b-enable-npu-regulator.patch --- ...566-orangepi-3b-enable-npu-regulator.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 patch/u-boot/v2024.10/board_100ask-rk3568/0001-rockchip-rk3566-orangepi-3b-enable-npu-regulator.patch diff --git a/patch/u-boot/v2024.10/board_100ask-rk3568/0001-rockchip-rk3566-orangepi-3b-enable-npu-regulator.patch b/patch/u-boot/v2024.10/board_100ask-rk3568/0001-rockchip-rk3566-orangepi-3b-enable-npu-regulator.patch new file mode 100644 index 000000000000..a0446645c963 --- /dev/null +++ b/patch/u-boot/v2024.10/board_100ask-rk3568/0001-rockchip-rk3566-orangepi-3b-enable-npu-regulator.patch @@ -0,0 +1,33 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jonas Karlman +Date: Wed, 14 Aug 2024 21:35:16 +0000 +Subject: rockchip: rk3566-orangepi-3b: enable npu regulator + +The power-domain driver in Linux does not know what regulator is +supplying power to a specific power-domain. This prevent use of NPU with +vendor kernel because vdd_npu is disabled. + +Change vdd_npu to use always-on/boot-on to enable the regulator at boot +and set initial 0v9 voltage, the recommended voltage in soc datasheet. + +Signed-off-by: Jonas Karlman +--- + arch/arm/dts/rk3566-orangepi-3b-u-boot.dtsi | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/arch/arm/dts/rk3566-orangepi-3b-u-boot.dtsi b/arch/arm/dts/rk3566-orangepi-3b-u-boot.dtsi +index 111111111111..222222222222 100644 +--- a/arch/arm/dts/rk3566-orangepi-3b-u-boot.dtsi ++++ b/arch/arm/dts/rk3566-orangepi-3b-u-boot.dtsi +@@ -12,3 +12,9 @@ + bootph-some-ram; + }; + }; ++ ++&vdd_npu { ++ regulator-always-on; ++ regulator-boot-on; ++ regulator-init-microvolt = <900000>; ++}; +-- +Armbian