public inbox for linux-rockchip@lists.infradead.org
 help / color / mirror / Atom feed
From: Maccraft123 <maccraft123mc@gmail.com>
To: linux-rockchip@lists.infradead.org
Cc: robh+dt@kernel.org, heiko@sntech.de, macromorgan@hotmail.com,
	Maciej Matuszczyk <maccraft123mc@gmail.com>
Subject: [PATCH] Add 520MHz opp node to RK3326's dtsi
Date: Fri, 25 Jun 2021 18:18:44 +0200	[thread overview]
Message-ID: <20210625161844.650303-1-maccraft123mc@gmail.com> (raw)

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

                 reply	other threads:[~2021-06-25 16:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210625161844.650303-1-maccraft123mc@gmail.com \
    --to=maccraft123mc@gmail.com \
    --cc=heiko@sntech.de \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=macromorgan@hotmail.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox