diff mbox series

[2/7] arm64: dts: qcom: Add MSM8996v3.0 DTSI file

Message ID 20210525200246.118323-2-konrad.dybcio@somainline.org
State Superseded
Headers show
Series [1/7] arm64: dts: qcom: Add PMI8996 DTSI file | expand

Commit Message

Konrad Dybcio May 25, 2021, 8:02 p.m. UTC
Add an overlay for MSM8996v3.0, which is a pre-final revision
of the said SoC. It has some stark differences with regards to
GPU, or more specifically its power delivery path. Oh, and of
course a different msm-id.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
---
 arch/arm64/boot/dts/qcom/msm8996-v3.0.dtsi | 59 ++++++++++++++++++++++
 1 file changed, 59 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/msm8996-v3.0.dtsi

Comments

Bjorn Andersson May 26, 2021, 3:18 a.m. UTC | #1
On Tue 25 May 15:02 CDT 2021, Konrad Dybcio wrote:

> Add an overlay for MSM8996v3.0, which is a pre-final revision

> of the said SoC. It has some stark differences with regards to

> GPU, or more specifically its power delivery path. Oh, and of

> course a different msm-id.

> 

> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>

> ---

>  arch/arm64/boot/dts/qcom/msm8996-v3.0.dtsi | 59 ++++++++++++++++++++++

>  1 file changed, 59 insertions(+)

>  create mode 100644 arch/arm64/boot/dts/qcom/msm8996-v3.0.dtsi

> 

> diff --git a/arch/arm64/boot/dts/qcom/msm8996-v3.0.dtsi b/arch/arm64/boot/dts/qcom/msm8996-v3.0.dtsi

> new file mode 100644

> index 000000000000..b46f10b7413a

> --- /dev/null

> +++ b/arch/arm64/boot/dts/qcom/msm8996-v3.0.dtsi

> @@ -0,0 +1,59 @@

> +// SPDX-License-Identifier: GPL-2.0


BSD license?

> +/*

> + * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org>

> + */

> +

> +#include "msm8996.dtsi"

> +

> + / {

> +	qcom,msm-id = <246 0x30000>;

> + };

> +

> + /*

> +  * This revision seems to have differ GPU CPR

> +  * parameters, GPU frequencies and some differences

> +  * when it comes to voltage delivery to.. once again

> +  * the GPU. Funnily enough, it's simpler to make it an

> +  * overlay on top of 3.1 (the final one) than vice versa.

> +  * The differences will show here as more and more

> +  * features get enabled upstream.

> +  */

> +

> +gpu_opp_table_3_0: gpu-opp-table-30 {


Unused for now?

Can you link it up this with the &gpu even if you don't enable it
for now?

Regards,
Bjorn

> +	compatible = "operating-points-v2";

> +

> +	opp-624000000 {

> +		opp-hz = /bits/ 64 <624000000>;

> +		opp-level = <7>;

> +	};

> +

> +	opp-560000000 {

> +		opp-hz = /bits/ 64 <560000000>;

> +		opp-level = <6>;

> +	};

> +

> +	opp-510000000 {

> +		opp-hz = /bits/ 64 <510000000>;

> +		opp-level = <5>;

> +	};

> +

> +	opp-401800000 {

> +		opp-hz = /bits/ 64 <401800000>;

> +		opp-level = <4>;

> +	};

> +

> +	opp-315000000 {

> +		opp-hz = /bits/ 64 <315000000>;

> +		opp-level = <3>;

> +	};

> +

> +	opp-214000000 {

> +		opp-hz = /bits/ 64 <214000000>;

> +		opp-level = <3>;

> +	};

> +

> +	opp-133000000 {

> +		opp-hz = /bits/ 64 <133000000>;

> +		opp-level = <3>;

> +	};

> +};

> -- 

> 2.31.1

>
Konrad Dybcio May 26, 2021, 9:24 a.m. UTC | #2
Hi,


> Unused for now?

>

> Can you link it up this with the &gpu even if you don't enable it

> for now?


Indeed, actually applying the setting sounds like a good idea, heh.


The GPU will be enabled on a per-board basis like it's usually done,

but for tone we need to resolve the issue with fw loader complaining

about PT_LOAD header (it works fine if we omit the checks).


As for v3.0 specifically, it's a lottery and you might have a device with

either (with this one being much less probable afaiaa), so it's better to support both.


Konrad
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/msm8996-v3.0.dtsi b/arch/arm64/boot/dts/qcom/msm8996-v3.0.dtsi
new file mode 100644
index 000000000000..b46f10b7413a
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/msm8996-v3.0.dtsi
@@ -0,0 +1,59 @@ 
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org>
+ */
+
+#include "msm8996.dtsi"
+
+ / {
+	qcom,msm-id = <246 0x30000>;
+ };
+
+ /*
+  * This revision seems to have differ GPU CPR
+  * parameters, GPU frequencies and some differences
+  * when it comes to voltage delivery to.. once again
+  * the GPU. Funnily enough, it's simpler to make it an
+  * overlay on top of 3.1 (the final one) than vice versa.
+  * The differences will show here as more and more
+  * features get enabled upstream.
+  */
+
+gpu_opp_table_3_0: gpu-opp-table-30 {
+	compatible = "operating-points-v2";
+
+	opp-624000000 {
+		opp-hz = /bits/ 64 <624000000>;
+		opp-level = <7>;
+	};
+
+	opp-560000000 {
+		opp-hz = /bits/ 64 <560000000>;
+		opp-level = <6>;
+	};
+
+	opp-510000000 {
+		opp-hz = /bits/ 64 <510000000>;
+		opp-level = <5>;
+	};
+
+	opp-401800000 {
+		opp-hz = /bits/ 64 <401800000>;
+		opp-level = <4>;
+	};
+
+	opp-315000000 {
+		opp-hz = /bits/ 64 <315000000>;
+		opp-level = <3>;
+	};
+
+	opp-214000000 {
+		opp-hz = /bits/ 64 <214000000>;
+		opp-level = <3>;
+	};
+
+	opp-133000000 {
+		opp-hz = /bits/ 64 <133000000>;
+		opp-level = <3>;
+	};
+};