build/patch/kernel/archive/rockchip64-5.19/overlays-07-add-rk3318-box-cpu-hs.patch

70 lines
2.3 KiB
Diff
Raw Normal View History

From 41d39d8f7d7e9c40994750495c6783fbc71348ca Mon Sep 17 00:00:00 2001
From: Paolo Sabatino <paolo.sabatino@gmail.com>
Date: Wed, 21 Apr 2021 10:58:39 +0000
Subject: [PATCH] rk3318-box: add additional device tree overlay with high
speed bins
---
arch/arm64/boot/dts/rockchip/overlay/Makefile | 3 ++-
.../rockchip/overlay/README.rockchip-overlays | 4 ++++
.../overlay/rockchip-rk3318-box-cpu-hs.dts | 21 +++++++++++++++++++
3 files changed, 27 insertions(+), 1 deletion(-)
create mode 100644 arch/arm64/boot/dts/rockchip/overlay/rockchip-rk3318-box-cpu-hs.dts
diff --git a/arch/arm64/boot/dts/rockchip/overlay/Makefile b/arch/arm64/boot/dts/rockchip/overlay/Makefile
index 9bf45a074..42b19bd85 100644
--- a/arch/arm64/boot/dts/rockchip/overlay/Makefile
+++ b/arch/arm64/boot/dts/rockchip/overlay/Makefile
@@ -15,7 +15,8 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-rk3318-box-emmc-ddr.dtbo \
rockchip-rk3318-box-wlan-ap6334.dtbo \
rockchip-rk3318-box-wlan-ext.dtbo \
- rockchip-rk3318-box-wlan-ap6330.dtbo
+ rockchip-rk3318-box-wlan-ap6330.dtbo \
+ rockchip-rk3318-box-cpu-hs.dtbo
scr-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-fixup.scr
diff --git a/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays b/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays
index 7b5073498..2fc9b00fe 100644
--- a/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays
+++ b/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays
@@ -144,3 +144,7 @@ X88 Pro) which have wifi chip attached to sdmmc_ext controller.
Set up additional device tree bits properly support ap6330 (broaccom BCM4330)
wifi + bt chip and clones.
+
+### rk3318-box-cpu-hs
+
+Enable additional cpu "high-speed" bins up to 1.3ghz
diff --git a/arch/arm64/boot/dts/rockchip/overlay/rockchip-rk3318-box-cpu-hs.dts b/arch/arm64/boot/dts/rockchip/overlay/rockchip-rk3318-box-cpu-hs.dts
new file mode 100644
index 000000000..e6bc1adec
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/overlay/rockchip-rk3318-box-cpu-hs.dts
@@ -0,0 +1,24 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+
+ fragment@0 {
+ target-path = "/opp_table0/opp-1200000000";
+ __overlay__ {
+
+ status = "okay";
+
+ };
+ };
+
+ fragment@1 {
+ target-path = "/opp_table0/opp-1296000000";
+ __overlay__ {
+
+ status = "okay";
+
+ };
+ };
+
+};