summaryrefslogtreecommitdiff
path: root/qcom/lito-gpu.dtsi
diff options
context:
space:
mode:
authorSharat Masetty <smasetty@qti.qualcomm.com>2019-06-20 14:40:49 +0530
committerSharat Masetty <smasetty@qti.qualcomm.com>2019-06-25 15:02:31 +0530
commit2551ba81ceacb10168cf33d23bcfa13fb9ae5571 (patch)
treedf4e3a8cef3f131a7825a9da32515377d4b0fd2c /qcom/lito-gpu.dtsi
parent77cb4d048638758bdaacd2c2d7ad887bf90a6dea (diff)
downloaddevicetree-2551ba81ceacb10168cf33d23bcfa13fb9ae5571.tar.gz
ARM: dts: msm: Add qfprom bindings to read gpu speed bin
This patch adds qfprom provider bindings which enables the qfprom driver thereby adding support to read efuses from qfprom region. This patch also adds the consumer bindings to the gpu node to read the qfprom region for speed bin information. Change-Id: Iaca2e9cdc45ed8c7cf319710dc97f6f855012661
Diffstat (limited to 'qcom/lito-gpu.dtsi')
-rw-r--r--qcom/lito-gpu.dtsi15
1 files changed, 15 insertions, 0 deletions
diff --git a/qcom/lito-gpu.dtsi b/qcom/lito-gpu.dtsi
index bc8de996..9f2eab14 100644
--- a/qcom/lito-gpu.dtsi
+++ b/qcom/lito-gpu.dtsi
@@ -17,6 +17,18 @@
operating-points-v2 = <&suspendable_ddr_bw_opp_table>;
};
+ qfprom: qfprom@780000 {
+ compatible = "qcom,qfprom";
+ reg = <0x780000 0x6000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ gpu_speed_bin: gpu_speed_bin@1ea {
+ reg = <0x1ea 0x2>;
+ bits = <5 8>;
+ };
+ };
+
gpu_opp_table: gpu-opp-table {
compatible = "operating-points-v2";
@@ -118,6 +130,9 @@
vddcx-supply = <&gpu_cx_gdsc>;
vdd-supply = <&gpu_gx_gdsc>;
+ nvmem-cells = <&gpu_speed_bin>;
+ nvmem-cell-names = "speed_bin";
+
/* GPU OPP data */
operating-points-v2 = <&gpu_opp_table>;