summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-05-25 10:00:18 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-05-30 12:51:32 +0200
commit1cef2bb2e9d5363978d077d033f3532c4b9c3a81 (patch)
treef606ac5e143b9ee3e12e377a4aedb1f5c12ac802
parente877582e987572aafe3494722c52f29ae95c74d2 (diff)
downloadbarebox-1cef2bb2e9d5363978d077d033f3532c4b9c3a81.tar.gz
barebox-1cef2bb2e9d5363978d077d033f3532c4b9c3a81.tar.xz
ARM: dts: rk3588s: Set CPU clock to 816MHz
Originally the Kernel rk3588s.dtsi assigned the CPU clock rates in the scmi_clk node. We had to remove the assigned-clock-rates properties because our SCMI clock driver didn't work properly. Now it does, so we can bring these properties back. In the meantime the assigned-clock-rates properties were moved to the cpu nodes in the upstream dtsi file in 87810bda8a847 ("arm64: dts: rockchip: Fix SCMI assigned clocks on rk3588s") We do not have a driver on the CPU nodes (and neither does the kernel), so the properties do not help us there. Instead, add the assigned-clock-rates properties to our local rk3588s.dtsi file. With this the CPU clocks are configured to 816MHz where the SoC previously came up with only 24MHz. Note that the CPU could run with 2.4GHz, but I am not sure yet if all voltages are configured correctly for that frequency, so for now run with the frequency that has been the default in the dtsi files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/dts/rk3588s.dtsi5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/dts/rk3588s.dtsi b/arch/arm/dts/rk3588s.dtsi
index ba6561f97e..6f055d826e 100644
--- a/arch/arm/dts/rk3588s.dtsi
+++ b/arch/arm/dts/rk3588s.dtsi
@@ -130,6 +130,7 @@
};
&scmi_clk {
- /delete-property/ assigned-clocks;
- /delete-property/ assigned-clock-rates;
+ assigned-clocks = <&scmi_clk SCMI_CLK_CPUB01>,
+ <&scmi_clk SCMI_CLK_CPUB23>;
+ assigned-clock-rates = <816000000>, <816000000>;
};