All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add 520MHz opp node to RK3326's dtsi
@ 2021-06-25 16:18 Maccraft123
  0 siblings, 0 replies; only message in thread
From: Maccraft123 @ 2021-06-25 16:18 UTC (permalink / raw)
  To: linux-rockchip; +Cc: robh+dt, heiko, macromorgan, Maciej Matuszczyk

From: Maciej Matuszczyk <maccraft123mc@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@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


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-25 16:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-25 16:18 [PATCH] Add 520MHz opp node to RK3326's dtsi Maccraft123

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.