Skip to content

Commit 2a50d1a

Browse files
konradybcioandersson
authored andcommitted
arm64: dts: qcom: sm8250: Add GPU speedbin support
SM8250 has (at least) four GPU speed bins. With the support added on the driver side, wire up bin detection in the DTS to restrict lower-quality SKUs from running at frequencies they were not validated at. Tested-by: Marijn Suijten <[email protected]> # On Sony Xperia 5 II (speed bin 0x7) Reviewed-by: Marijn Suijten <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Konrad Dybcio <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b53ae6b commit 2a50d1a

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

arch/arm64/boot/dts/qcom/sm8250.dtsi

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,18 @@
960960
#mbox-cells = <2>;
961961
};
962962

963+
qfprom: efuse@784000 {
964+
compatible = "qcom,sm8250-qfprom", "qcom,qfprom";
965+
reg = <0 0x00784000 0 0x8ff>;
966+
#address-cells = <1>;
967+
#size-cells = <1>;
968+
969+
gpu_speed_bin: gpu_speed_bin@19b {
970+
reg = <0x19b 0x1>;
971+
bits = <5 3>;
972+
};
973+
};
974+
963975
rng: rng@793000 {
964976
compatible = "qcom,prng-ee";
965977
reg = <0 0x00793000 0 0x1000>;
@@ -2550,49 +2562,58 @@
25502562

25512563
qcom,gmu = <&gmu>;
25522564

2565+
nvmem-cells = <&gpu_speed_bin>;
2566+
nvmem-cell-names = "speed_bin";
2567+
25532568
status = "disabled";
25542569

25552570
zap-shader {
25562571
memory-region = <&gpu_mem>;
25572572
};
25582573

2559-
/* note: downstream checks gpu binning for 670 Mhz */
25602574
gpu_opp_table: opp-table {
25612575
compatible = "operating-points-v2";
25622576

25632577
opp-670000000 {
25642578
opp-hz = /bits/ 64 <670000000>;
25652579
opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
2580+
opp-supported-hw = <0xa>;
25662581
};
25672582

25682583
opp-587000000 {
25692584
opp-hz = /bits/ 64 <587000000>;
25702585
opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
2586+
opp-supported-hw = <0xb>;
25712587
};
25722588

25732589
opp-525000000 {
25742590
opp-hz = /bits/ 64 <525000000>;
25752591
opp-level = <RPMH_REGULATOR_LEVEL_SVS_L2>;
2592+
opp-supported-hw = <0xf>;
25762593
};
25772594

25782595
opp-490000000 {
25792596
opp-hz = /bits/ 64 <490000000>;
25802597
opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
2598+
opp-supported-hw = <0xf>;
25812599
};
25822600

25832601
opp-441600000 {
25842602
opp-hz = /bits/ 64 <441600000>;
25852603
opp-level = <RPMH_REGULATOR_LEVEL_SVS_L0>;
2604+
opp-supported-hw = <0xf>;
25862605
};
25872606

25882607
opp-400000000 {
25892608
opp-hz = /bits/ 64 <400000000>;
25902609
opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
2610+
opp-supported-hw = <0xf>;
25912611
};
25922612

25932613
opp-305000000 {
25942614
opp-hz = /bits/ 64 <305000000>;
25952615
opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
2616+
opp-supported-hw = <0xf>;
25962617
};
25972618
};
25982619
};

0 commit comments

Comments
 (0)