blob: 6b9de2a830a0e47ce28a2fba9a8398b86c0c6afb [file] [log] [blame]
raghavendra ambadas32879dc2018-03-13 15:41:27 +05301/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13&soc {
14 msm_bus: qcom,kgsl-busmon {
15 label = "kgsl-busmon";
16 compatible = "qcom,kgsl-busmon";
17 };
18
19 /* Bus governor */
20 gpubw: qcom,gpubw {
21 compatible = "qcom,devbw";
22 governor = "bw_vbif";
23 qcom,src-dst-ports = <26 512>;
24 /*
25 * Need to configure 2x Clock as BIMC
26 * Internally Divides by 2 for Gen1 DDR PHY.
27 */
28 qcom,active-only;
29 qcom,bw-tbl =
30 < 0 >, /* Off */
31 < 769 >, /* 1. DDR:100.80 MHz BIMC: 201.60 MHz */
32 < 1611 >, /* 2. DDR:211.20 MHz BIMC: 422.40 MHz */
33 < 2270 >, /* 3. DDR:297.60 MHz BIMC: 595.20 MHz */
34 < 2929 >, /* 4. DDR:384.00 MHz BIMC: 768.00 MHz */
35 < 4248 >, /* 5. DDR:556.80 MHz BIMC: 1113.60 MHz */
36 < 4541 >, /* 6. DDR:595.20 MHz BIMC: 1190.40 MHz */
37 < 5126 >, /* 7. DDR:672.00 MHz BIMC: 1344.00 MHz */
38 < 5639 >; /* 8. DDR:739.20 MHz BIMC: 1478.40 MHz */
39 };
40
41 msm_gpu: qcom,kgsl-3d0@1c00000 {
42 label = "kgsl-3d0";
43 compatible = "qcom,kgsl-3d0", "qcom,kgsl-3d";
44 reg = <0x1c00000 0x10000
45 0x1c10000 0x10000
46 0x00a0000 0x06fff>;
47 reg-names = "kgsl_3d0_reg_memory" , "kgsl_3d0_shader_memory",
48 "qfprom_memory";
49 interrupts = <0 33 0>;
50 interrupt-names = "kgsl_3d0_irq";
51 qcom,id = <0>;
52
53 qcom,chipid = <0x03000620>;
54
55 qcom,initial-pwrlevel = <3>;
56
57 qcom,idle-timeout = <80>; //msecs
58 qcom,strtstp-sleepwake;
59 qcom,gpu-bimc-interface-clk-freq = <400000000>; //In Hz
60
61 clocks = <&clock_gcc clk_gcc_oxili_gfx3d_clk>,
62 <&clock_gcc clk_gcc_oxili_ahb_clk>,
63 <&clock_gcc clk_gcc_bimc_gfx_clk>,
64 <&clock_gcc clk_gcc_bimc_gpu_clk>,
65 <&clock_gcc clk_gcc_gtcu_ahb_clk>,
66 <&clock_gcc clk_gcc_gfx_tcu_clk>,
67 <&clock_gcc clk_gcc_gfx_tbu_clk>,
68 <&clock_gcc clk_bimc_gpu_clk>;
69
70 clock-names = "core_clk", "iface_clk", "mem_iface_clk",
71 "alt_mem_iface_clk", "gtcu_iface_clk",
72 "gtcu_clk", "gtbu_clk", "bimc_gpu_clk";
73
74 /* Bus Scale Settings */
75 qcom,gpubw-dev = <&gpubw>;
76 qcom,bus-control;
77 qcom,bus-width = <16>;
78 qcom,msm-bus,name = "grp3d";
79 qcom,msm-bus,num-cases = <9>;
80 qcom,msm-bus,num-paths = <1>;
81 qcom,msm-bus,vectors-KBps =
82 <26 512 0 0>, /* off */
83 <26 512 0 806400>, /* 1. 100.80 MHz */
84 <26 512 0 1689600>, /* 2. 211.20 MHz */
85 <26 512 0 2380800>, /* 3. 297.60 MHz */
86 <26 512 0 3072000>, /* 4. 384.00 MHz */
87 <26 512 0 4454400>, /* 5. 556.80 MHz */
88 <26 512 0 4761600>, /* 6. 595.20 MHz */
89 <26 512 0 5376000>, /* 7. 672.00 MHz */
90 <26 512 0 5913600>; /* 8. 739.20 MHz */
91
92 /* GDSC regulator names */
93 regulator-names = "vdd";
94 /* GDSC oxili regulators */
95 vdd-supply = <&gdsc_oxili_gx>;
96
97 /* CPU latency parameter */
98 qcom,pm-qos-active-latency = <651>;
99
Manaf Meethalavalappu Pallikunhib83d4c82018-10-22 19:06:55 +0530100 /* Enable gpu cooling device */
101 #cooling-cells = <2>;
102
raghavendra ambadas32879dc2018-03-13 15:41:27 +0530103 /* Power levels */
104 qcom,gpu-pwrlevels {
105 #address-cells = <1>;
106 #size-cells = <0>;
107
108 compatible = "qcom,gpu-pwrlevels";
109
110 /* TURBO */
111 qcom,gpu-pwrlevel@0 {
112 reg = <0>;
113 qcom,gpu-freq = <598000000>;
114 qcom,bus-freq = <7>;
115 qcom,bus-min = <7>;
116 qcom,bus-max = <7>;
117 };
118
119 /* NOM+ */
120 qcom,gpu-pwrlevel@1 {
121 reg = <1>;
122 qcom,gpu-freq = <523200000>;
123 qcom,bus-freq = <6>;
124 qcom,bus-min = <5>;
125 qcom,bus-max = <7>;
126 };
127
128 /* NOM */
129 qcom,gpu-pwrlevel@2 {
130 reg = <2>;
131 qcom,gpu-freq = <484800000>;
132 qcom,bus-freq = <5>;
133 qcom,bus-min = <4>;
134 qcom,bus-max = <6>;
135 };
136
137 /* SVS+ */
138 qcom,gpu-pwrlevel@3 {
139 reg = <3>;
140 qcom,gpu-freq = <400000000>;
141 qcom,bus-freq = <4>;
142 qcom,bus-min = <3>;
143 qcom,bus-max = <5>;
144 };
145
146 /* SVS */
147 qcom,gpu-pwrlevel@4 {
148 reg = <4>;
149 qcom,gpu-freq = <270000000>;
150 qcom,bus-freq = <3>;
151 qcom,bus-min = <1>;
152 qcom,bus-max = <3>;
153 };
154
155 /* XO */
156 qcom,gpu-pwrlevel@5 {
157 reg = <5>;
158 qcom,gpu-freq = <19200000>;
159 qcom,bus-freq = <0>;
160 qcom,bus-min = <0>;
161 qcom,bus-max = <0>;
162 };
163 };
164};
165
166 kgsl_msm_iommu: qcom,kgsl-iommu@1f00000 {
167 compatible = "qcom,kgsl-smmu-v2";
168 reg = <0x1f00000 0x10000>;
169 /*
170 * The gpu can only program a single context bank
171 * at this fixed offset.
172 */
173 qcom,protect = <0xa000 0x1000>;
174 clocks = <&clock_gcc clk_gcc_smmu_cfg_clk>,
175 <&clock_gcc clk_gcc_gfx_tcu_clk>,
176 <&clock_gcc clk_gcc_gtcu_ahb_clk>,
177 <&clock_gcc clk_gcc_gfx_tbu_clk>;
178 clock-names = "scfg_clk", "gtcu_clk", "gtcu_iface_clk",
179 "gtbu_clk";
180 qcom,retention;
181 gfx3d_user: gfx3d_user {
182 compatible = "qcom,smmu-kgsl-cb";
183 iommus = <&gfx_iommu 0>;
184 qcom,gpu-offset = <0xa000>;
185 };
186 };
187};