Skip to content

Commit 92d0f96

Browse files
committed
arm64: overlays-rockpi4: Add rk3399 overclocking support
1 parent 24a1bbf commit 92d0f96

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
1313
spi1-flash.dtbo \
1414
hifiberry-dac.dtbo \
1515
hifiberry-dacplus.dtbo \
16-
raspberrypi-7-inch-lcd.dtbo
16+
raspberrypi-7-inch-lcd.dtbo \
17+
cpufreq.dtbo
1718

1819
targets += dtbs dtbs_install
1920
targets += $(dtbo-y)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
model = "ROCK PI 4B";
6+
compatible = "rockchip,rockpi","rockchip,rk3399";
7+
8+
fragment@0 {
9+
target = <&cluster0_opp>;
10+
11+
__overlay__ {
12+
opp-1512000000 {
13+
opp-hz = /bits/ 64 <1512000000>;
14+
opp-microvolt = <1150000>;
15+
};
16+
};
17+
};
18+
19+
fragment@1 {
20+
target = <&cluster1_opp>;
21+
22+
__overlay__ {
23+
opp-2016000000 {
24+
opp-hz = /bits/ 64 <2016000000>;
25+
opp-microvolt = <1250000>;
26+
};
27+
};
28+
};
29+
};

arch/arm64/boot/dts/rockchip/overlays-rockpi4/hw_intfc.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ intfc:dtoverlay=console-on-ttyS2
5555

5656
#enable raspberry pi official 7 inch LCD support
5757
#intfc:dtoverlay=raspberrypi-7-inch-lcd
58+
59+
# setting cpu frequency over-2GHz
60+
#intfc:dtoverlay=cpufreq

0 commit comments

Comments
 (0)