[PATCH] Add 520MHz opp node to RK3326's dtsi

Maccraft123 maccraft123mc at gmail.com
Fri Jun 25 09:18:44 PDT 2021


From: Maciej Matuszczyk <maccraft123mc at gmail.com>

According to Rockchip's BSP, RK3326's GPU can go faster than 480MHz
This was missed when gpu_opp_table node was added in
commit f43e351c9630 ("arm64: dts: rockchip: Add gpu opp nodes to px30 dtsi")

The values in rk3326.dtsi match Rockchip's kernel,
but Odroid-GO Advance's kernel sources point at different microvolt
value, that has to be overridden in board dts.

Signed-off-by: Maciej Matuszczyk <maccraft123mc at gmail.com>

---
 arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts | 13 +++++++++++++
 arch/arm64/boot/dts/rockchip/rk3326.dtsi           |  7 +++++++
 2 files changed, 20 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts
index 49c97f76df77..ee898cb12080 100644
--- a/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts
@@ -258,6 +258,13 @@ &gpu {
 	status = "okay";
 };
 
+&gpu_opp_table {
+	opp-520000000 {
+		opp-microvolt = <1150000>;
+	};
+};
+
+
 &i2c0 {
 	clock-frequency = <400000>;
 	i2c-scl-falling-time-ns = <16>;
diff --git a/arch/arm64/boot/dts/rockchip/rk3326.dtsi b/arch/arm64/boot/dts/rockchip/rk3326.dtsi
index 2ba6da125137..19de275d05a3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3326.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3326.dtsi
@@ -5,7 +5,13 @@
 
 #include "px30.dtsi"
 
+&gpu_opp_table {
+	opp-520000000 {
+		opp-hz = /bits/ 64 <520000000>;
+		opp-microvolt = <1175000>;
+	};
+};
+
 &display_subsystem {
 	ports = <&vopb_out>;
 };
-- 
2.32.0.rc2




More information about the Linux-rockchip mailing list