blob: 11b6a4d2d8b14a94cf6352d65dbaed7db46527af [file] [log] [blame]
Lokesh Batraf7f72ff2016-10-13 11:51:59 -07001/* Copyright (c) 2017, 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
Shrenuj Bansal678b4862017-04-27 12:51:29 -070015 pil_gpu: qcom,kgsl-hyp {
16 compatible = "qcom,pil-tz-generic";
17 qcom,pas-id = <13>;
18 qcom,firmware-name = "a630_zap";
19 };
20
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070021 msm_bus: qcom,kgsl-busmon{
22 label = "kgsl-busmon";
23 compatible = "qcom,kgsl-busmon";
24 };
25
26 gpubw: qcom,gpubw {
27 compatible = "qcom,devbw";
28 governor = "bw_vbif";
29 qcom,src-dst-ports = <26 512>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070030 qcom,bw-tbl =
31 < 0 /* off */ >,
Deepak Kumara448db12017-08-09 15:25:18 +053032 < 381 /* 100 MHz */ >,
33 < 572 /* 150 MHz */ >,
34 < 762 /* 200 MHz */ >,
35 < 1144 /* 300 MHz */ >,
36 < 1571 /* 412 MHz */ >,
37 < 2086 /* 547 MHz */ >,
38 < 2597 /* 681 MHz */ >,
39 < 2929 /* 768 MHz */ >,
40 < 3879 /* 1017 MHz */ >,
41 < 4943 /* 1296 MHz */ >,
42 < 5931 /* 1555 MHz */ >,
43 < 6881 /* 1804 MHz */ >;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070044 };
45
46 msm_gpu: qcom,kgsl-3d0@5000000 {
47 label = "kgsl-3d0";
48 compatible = "qcom,kgsl-3d0", "qcom,kgsl-3d";
49 status = "ok";
50 reg = <0x5000000 0x40000>;
51 reg-names = "kgsl_3d0_reg_memory";
52 interrupts = <0 300 0>;
53 interrupt-names = "kgsl_3d0_irq";
54 qcom,id = <0>;
55
56 qcom,chipid = <0x06030000>;
57
George Shen19350fb2017-06-09 08:44:24 -070058 qcom,initial-pwrlevel = <5>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070059
60 qcom,gpu-quirk-hfi-use-reg;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070061
Kyle Piefer4b4ced72017-05-02 15:44:53 -070062 qcom,idle-timeout = <80>; //msecs
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070063 qcom,no-nap;
64
65 qcom,highest-bank-bit = <15>;
66
67 qcom,min-access-length = <32>;
68
69 qcom,ubwc-mode = <2>;
70
71 qcom,snapshot-size = <1048576>; //bytes
72
73 qcom,gpu-qdss-stm = <0x161c0000 0x40000>; // base addr, size
74
75 qcom,tsens-name = "tsens_tz_sensor12";
Ram Chandrasekar36ffe552017-04-17 16:33:05 -060076 #cooling-cells = <2>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070077
Krishna Vanka752a6a62017-09-07 18:19:46 -070078 qcom,pm-qos-active-latency = <460>;
79
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070080 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK>,
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070081 <&clock_gpucc GPU_CC_CXO_CLK>,
82 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
Harshdeep Dhatt7a7b5312017-04-20 21:36:55 -060083 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>,
84 <&clock_gpucc GPU_CC_CX_GMU_CLK>,
Harshdeep Dhatt82d4f6a2017-08-18 12:29:27 -060085 <&clock_gpucc GPU_CC_AHB_CLK>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070086
Harshdeep Dhatt7a7b5312017-04-20 21:36:55 -060087 clock-names = "core_clk", "rbbmtimer_clk", "mem_clk",
Harshdeep Dhatt82d4f6a2017-08-18 12:29:27 -060088 "mem_iface_clk", "gmu_clk", "ahb_clk";
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070089
90 qcom,isense-clk-on-level = <1>;
91
92 /* Bus Scale Settings */
93 qcom,gpubw-dev = <&gpubw>;
94 qcom,bus-control;
95 qcom,msm-bus,name = "grp3d";
Deepak Kumara448db12017-08-09 15:25:18 +053096 qcom,bus-width = <32>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070097 qcom,msm-bus,num-cases = <13>;
98 qcom,msm-bus,num-paths = <1>;
99 qcom,msm-bus,vectors-KBps =
100 <26 512 0 0>,
101
George Shen85c1ecc2017-07-11 14:48:20 -0700102 <26 512 0 400000>, // 1 bus=100
103 <26 512 0 600000>, // 2 bus=150
104 <26 512 0 800000>, // 3 bus=200
105 <26 512 0 1200000>, // 4 bus=300
106 <26 512 0 1648000>, // 5 bus=412
107 <26 512 0 2188000>, // 6 bus=547
108 <26 512 0 2724000>, // 7 bus=681
109 <26 512 0 3072000>, // 8 bus=768
110 <26 512 0 4068000>, // 9 bus=1017
111 <26 512 0 5184000>, // 10 bus=1296
112 <26 512 0 6220000>, // 11 bus=1555
113 <26 512 0 7216000>; // 12 bus=1804
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700114
115 /* GDSC regulator names */
116 regulator-names = "vddcx", "vdd";
117 /* GDSC oxili regulators */
118 vddcx-supply = <&gpu_cx_gdsc>;
119 vdd-supply = <&gpu_gx_gdsc>;
120
121 /* GPU related llc slices */
122 cache-slice-names = "gpu", "gpuhtw";
123 cache-slices = <&llcc 12>, <&llcc 11>;
124
Satyajit Desai260f5962017-05-12 15:32:21 -0700125 qcom,gpu-coresights {
126 #address-cells = <1>;
127 #size-cells = <0>;
128 compatible = "qcom,gpu-coresight";
129
130 qcom,gpu-coresight@0 {
131 reg = <0>;
132 coresight-name = "coresight-gfx";
133 coresight-atid = <50>;
134 port {
135 gfx_out_funnel_in2: endpoint {
136 remote-endpoint =
137 <&funnel_in2_in_gfx>;
138 };
139 };
140 };
141
142 qcom,gpu-coresight@1 {
143 reg = <1>;
144 coresight-name = "coresight-gfx-cx";
145 coresight-atid = <51>;
146 port {
147 gfx_cx_out_funnel_in2: endpoint {
148 remote-endpoint =
149 <&funnel_in2_in_gfx_cx>;
150 };
151 };
152 };
153 };
154
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700155 /* GPU Mempools */
156 qcom,gpu-mempools {
157 #address-cells = <1>;
158 #size-cells = <0>;
159 compatible = "qcom,gpu-mempools";
160
161 /* 4K Page Pool configuration */
162 qcom,gpu-mempool@0 {
163 reg = <0>;
164 qcom,mempool-page-size = <4096>;
165 qcom,mempool-reserved = <2048>;
166 qcom,mempool-allocate;
167 };
168 /* 8K Page Pool configuration */
169 qcom,gpu-mempool@1 {
170 reg = <1>;
171 qcom,mempool-page-size = <8192>;
172 qcom,mempool-reserved = <1024>;
173 qcom,mempool-allocate;
174 };
175 /* 64K Page Pool configuration */
176 qcom,gpu-mempool@2 {
177 reg = <2>;
178 qcom,mempool-page-size = <65536>;
179 qcom,mempool-reserved = <256>;
180 };
181 /* 1M Page Pool configuration */
182 qcom,gpu-mempool@3 {
183 reg = <3>;
184 qcom,mempool-page-size = <1048576>;
185 qcom,mempool-reserved = <32>;
186 };
187 };
188
189 /* Power levels */
190 qcom,gpu-pwrlevels {
191 #address-cells = <1>;
192 #size-cells = <0>;
193
194 compatible = "qcom,gpu-pwrlevels";
195
196 qcom,gpu-pwrlevel@0 {
197 reg = <0>;
George Shen19350fb2017-06-09 08:44:24 -0700198 qcom,gpu-freq = <600000000>;
199 qcom,bus-freq = <12>;
200 qcom,bus-min = <11>;
201 qcom,bus-max = <12>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700202 };
203
204
205 qcom,gpu-pwrlevel@1 {
206 reg = <1>;
George Shen19350fb2017-06-09 08:44:24 -0700207 qcom,gpu-freq = <548000000>;
208 qcom,bus-freq = <12>;
209 qcom,bus-min = <10>;
210 qcom,bus-max = <12>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700211 };
212
213 qcom,gpu-pwrlevel@2 {
214 reg = <2>;
George Shen19350fb2017-06-09 08:44:24 -0700215 qcom,gpu-freq = <487000000>;
216 qcom,bus-freq = <10>;
217 qcom,bus-min = <9>;
218 qcom,bus-max = <11>;
219 };
220
221
222 qcom,gpu-pwrlevel@3 {
223 reg = <3>;
224 qcom,gpu-freq = <425000000>;
225 qcom,bus-freq = <9>;
226 qcom,bus-min = <8>;
227 qcom,bus-max = <10>;
228 };
229
230 qcom,gpu-pwrlevel@4 {
231 reg = <4>;
232 qcom,gpu-freq = <338000000>;
233 qcom,bus-freq = <8>;
234 qcom,bus-min = <7>;
235 qcom,bus-max = <9>;
236 };
237
238
239 qcom,gpu-pwrlevel@5 {
240 reg = <5>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700241 qcom,gpu-freq = <280000000>;
George Shen85c1ecc2017-07-11 14:48:20 -0700242 qcom,bus-freq = <5>;
George Shen19350fb2017-06-09 08:44:24 -0700243 qcom,bus-min = <5>;
244 qcom,bus-max = <7>;
245 };
246
247 qcom,gpu-pwrlevel@6 {
248 reg = <6>;
249 qcom,gpu-freq = <210000000>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700250 qcom,bus-freq = <4>;
251 qcom,bus-min = <3>;
252 qcom,bus-max = <5>;
253 };
254
George Shen19350fb2017-06-09 08:44:24 -0700255 qcom,gpu-pwrlevel@7 {
256 reg = <7>;
George Sheneb0260282017-07-13 10:58:34 -0700257 qcom,gpu-freq = <0>;
258 qcom,bus-freq = <0>;
259 qcom,bus-min = <0>;
260 qcom,bus-max = <0>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700261 };
262 };
263
264 };
265
266 kgsl_msm_iommu: qcom,kgsl-iommu {
267 compatible = "qcom,kgsl-smmu-v2";
268
269 reg = <0x05040000 0x10000>;
270 qcom,protect = <0x40000 0x10000>;
271 qcom,micro-mmu-control = <0x6000>;
272
273 clocks =<&clock_gcc GCC_GPU_CFG_AHB_CLK>,
274 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
275 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>;
276
277 clock-names = "iface_clk", "mem_clk", "mem_iface_clk";
278
279 qcom,secure_align_mask = <0xfff>;
Carter Cooper50f61da2017-05-24 11:38:59 -0600280 qcom,hyp_secure_alloc;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700281
282 gfx3d_user: gfx3d_user {
283 compatible = "qcom,smmu-kgsl-cb";
284 label = "gfx3d_user";
285 iommus = <&kgsl_smmu 0>;
286 qcom,gpu-offset = <0x48000>;
287 };
288
289 gfx3d_secure: gfx3d_secure {
290 compatible = "qcom,smmu-kgsl-cb";
291 iommus = <&kgsl_smmu 2>;
292 };
293 };
294
295 gmu: qcom,gmu {
296 label = "kgsl-gmu";
297 compatible = "qcom,gpu-gmu";
298
George Shen711aa4362017-08-30 10:59:41 -0700299 reg = <0x506a000 0x30000>, <0xb200000 0x300000>;
300 reg-names = "kgsl_gmu_reg", "kgsl_gmu_pdc_reg";
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700301
302 interrupts = <0 304 0>, <0 305 0>;
303 interrupt-names = "kgsl_hfi_irq", "kgsl_gmu_irq";
304
305 qcom,msm-bus,name = "cnoc";
306 qcom,msm-bus,num-cases = <2>;
307 qcom,msm-bus,num-paths = <1>;
308 qcom,msm-bus,vectors-KBps =
309 <26 10036 0 0>, // CNOC off
310 <26 10036 0 100>; // CNOC on
311
312 regulator-names = "vddcx", "vdd";
313 vddcx-supply = <&gpu_cx_gdsc>;
314 vdd-supply = <&gpu_gx_gdsc>;
315
316
317 clocks = <&clock_gpucc GPU_CC_CX_GMU_CLK>,
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700318 <&clock_gpucc GPU_CC_CXO_CLK>,
319 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
Kyle Pieferc6d21b42017-04-26 18:25:04 -0700320 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>,
321 <&clock_gpucc GPU_CC_AHB_CLK>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700322
Kyle Pieferc6d21b42017-04-26 18:25:04 -0700323 clock-names = "gmu_clk", "cxo_clk", "axi_clk",
324 "memnoc_clk", "ahb_clk";
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700325
326 qcom,gmu-pwrlevels {
Kyle Piefer3d1d2da2017-04-10 14:50:19 -0700327 #address-cells = <1>;
328 #size-cells = <0>;
329
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700330 compatible = "qcom,gmu-pwrlevels";
331
Kyle Piefer33bec862017-08-14 16:26:53 -0700332 /* GMU power levels must go from lowest to highest */
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700333 qcom,gmu-pwrlevel@0 {
334 reg = <0>;
Kyle Piefer33bec862017-08-14 16:26:53 -0700335 qcom,gmu-freq = <0>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700336 };
337
338 qcom,gmu-pwrlevel@1 {
339 reg = <1>;
George Shendef14d72017-06-05 10:34:43 -0700340 qcom,gmu-freq = <200000000>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700341 };
342
343 qcom,gmu-pwrlevel@2 {
344 reg = <2>;
Kyle Piefer33bec862017-08-14 16:26:53 -0700345 qcom,gmu-freq = <400000000>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700346 };
347 };
348
349 gmu_user: gmu_user {
350 compatible = "qcom,smmu-gmu-user-cb";
351 iommus = <&kgsl_smmu 4>;
352 };
353
354 gmu_kernel: gmu_kernel {
355 compatible = "qcom,smmu-gmu-kernel-cb";
356 iommus = <&kgsl_smmu 5>;
357 };
358 };
359};