From afe644fb44d001ad57f2651fb9cc6f702491e90c Mon Sep 17 00:00:00 2001 From: amazingfate Date: Tue, 27 Aug 2024 15:18:59 +0800 Subject: [PATCH] opi3b: use mainline uboot v2024.10-rc3 --- config/boards/orangepi3b.csc | 6 ++-- ...566-orangepi-3b-enable-npu-regulator.patch | 34 +++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 patch/u-boot/v2024.10-orangepi3b/0001-rockchip-rk3566-orangepi-3b-enable-npu-regulator.patch diff --git a/config/boards/orangepi3b.csc b/config/boards/orangepi3b.csc index dc12653f47a3..96148db7b266 100644 --- a/config/boards/orangepi3b.csc +++ b/config/boards/orangepi3b.csc @@ -19,9 +19,9 @@ MODULES_BLACKLIST_LEGACY="bcmdhd" function post_family_config__orangepi3b_use_mainline_uboot() { display_alert "$BOARD" "mainline (Kwiboo's tree) u-boot overrides" "info" - BOOTSOURCE="https://github.com/Kwiboo/u-boot-rockchip.git" - BOOTBRANCH="branch:rk3xxx-2024.04" # specific commit tested is commit:ccef7dfc453bc03c5b5c61fa67d2745b96fa7da6 - BOOTPATCHDIR="v2024.04-orangepi3b" # empty, patches are already in Kwiboo's branch:rk3xxx-2024.04 + BOOTSOURCE='https://github.com/u-boot/u-boot' + BOOTBRANCH="tag:v2024.10-rc3" + BOOTPATCHDIR="v2024.10-orangepi3b" BOOTDIR="u-boot-${BOARD}" # do not share u-boot directory diff --git a/patch/u-boot/v2024.10-orangepi3b/0001-rockchip-rk3566-orangepi-3b-enable-npu-regulator.patch b/patch/u-boot/v2024.10-orangepi3b/0001-rockchip-rk3566-orangepi-3b-enable-npu-regulator.patch new file mode 100644 index 000000000000..80e9eedebf51 --- /dev/null +++ b/patch/u-boot/v2024.10-orangepi3b/0001-rockchip-rk3566-orangepi-3b-enable-npu-regulator.patch @@ -0,0 +1,34 @@ +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 +