Skip to content

Commit

Permalink
arm64: overlays-rockpi4: Add rk3399 overclocking support
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuBin32 committed Jul 22, 2019
1 parent 24a1bbf commit 92d0f96
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
spi1-flash.dtbo \
hifiberry-dac.dtbo \
hifiberry-dacplus.dtbo \
raspberrypi-7-inch-lcd.dtbo
raspberrypi-7-inch-lcd.dtbo \
cpufreq.dtbo

targets += dtbs dtbs_install
targets += $(dtbo-y)
Expand Down
29 changes: 29 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays-rockpi4/cpufreq-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/dts-v1/;
/plugin/;

/ {
model = "ROCK PI 4B";
compatible = "rockchip,rockpi","rockchip,rk3399";

fragment@0 {
target = <&cluster0_opp>;

__overlay__ {
opp-1512000000 {
opp-hz = /bits/ 64 <1512000000>;
opp-microvolt = <1150000>;
};
};
};

fragment@1 {
target = <&cluster1_opp>;

__overlay__ {
opp-2016000000 {
opp-hz = /bits/ 64 <2016000000>;
opp-microvolt = <1250000>;
};
};
};
};
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays-rockpi4/hw_intfc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ intfc:dtoverlay=console-on-ttyS2

#enable raspberry pi official 7 inch LCD support
#intfc:dtoverlay=raspberrypi-7-inch-lcd

# setting cpu frequency over-2GHz
#intfc:dtoverlay=cpufreq

0 comments on commit 92d0f96

Please sign in to comment.