blob: b335b860a807a85a0169f7bd2809d4328caebc7a [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
78 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK>,
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070079 <&clock_gpucc GPU_CC_CXO_CLK>,
80 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
Harshdeep Dhatt7a7b5312017-04-20 21:36:55 -060081 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>,
82 <&clock_gpucc GPU_CC_CX_GMU_CLK>,
Harshdeep Dhatt82d4f6a2017-08-18 12:29:27 -060083 <&clock_gpucc GPU_CC_AHB_CLK>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070084
Harshdeep Dhatt7a7b5312017-04-20 21:36:55 -060085 clock-names = "core_clk", "rbbmtimer_clk", "mem_clk",
Harshdeep Dhatt82d4f6a2017-08-18 12:29:27 -060086 "mem_iface_clk", "gmu_clk", "ahb_clk";
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070087
88 qcom,isense-clk-on-level = <1>;
89
90 /* Bus Scale Settings */
91 qcom,gpubw-dev = <&gpubw>;
92 qcom,bus-control;
93 qcom,msm-bus,name = "grp3d";
Deepak Kumara448db12017-08-09 15:25:18 +053094 qcom,bus-width = <32>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070095 qcom,msm-bus,num-cases = <13>;
96 qcom,msm-bus,num-paths = <1>;
97 qcom,msm-bus,vectors-KBps =
98 <26 512 0 0>,
99
George Shen85c1ecc2017-07-11 14:48:20 -0700100 <26 512 0 400000>, // 1 bus=100
101 <26 512 0 600000>, // 2 bus=150
102 <26 512 0 800000>, // 3 bus=200
103 <26 512 0 1200000>, // 4 bus=300
104 <26 512 0 1648000>, // 5 bus=412
105 <26 512 0 2188000>, // 6 bus=547
106 <26 512 0 2724000>, // 7 bus=681
107 <26 512 0 3072000>, // 8 bus=768
108 <26 512 0 4068000>, // 9 bus=1017
109 <26 512 0 5184000>, // 10 bus=1296
110 <26 512 0 6220000>, // 11 bus=1555
111 <26 512 0 7216000>; // 12 bus=1804
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700112
113 /* GDSC regulator names */
114 regulator-names = "vddcx", "vdd";
115 /* GDSC oxili regulators */
116 vddcx-supply = <&gpu_cx_gdsc>;
117 vdd-supply = <&gpu_gx_gdsc>;
118
119 /* GPU related llc slices */
120 cache-slice-names = "gpu", "gpuhtw";
121 cache-slices = <&llcc 12>, <&llcc 11>;
122
Satyajit Desai260f5962017-05-12 15:32:21 -0700123 qcom,gpu-coresights {
124 #address-cells = <1>;
125 #size-cells = <0>;
126 compatible = "qcom,gpu-coresight";
127
128 qcom,gpu-coresight@0 {
129 reg = <0>;
130 coresight-name = "coresight-gfx";
131 coresight-atid = <50>;
132 port {
133 gfx_out_funnel_in2: endpoint {
134 remote-endpoint =
135 <&funnel_in2_in_gfx>;
136 };
137 };
138 };
139
140 qcom,gpu-coresight@1 {
141 reg = <1>;
142 coresight-name = "coresight-gfx-cx";
143 coresight-atid = <51>;
144 port {
145 gfx_cx_out_funnel_in2: endpoint {
146 remote-endpoint =
147 <&funnel_in2_in_gfx_cx>;
148 };
149 };
150 };
151 };
152
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700153 /* GPU Mempools */
154 qcom,gpu-mempools {
155 #address-cells = <1>;
156 #size-cells = <0>;
157 compatible = "qcom,gpu-mempools";
158
159 /* 4K Page Pool configuration */
160 qcom,gpu-mempool@0 {
161 reg = <0>;
162 qcom,mempool-page-size = <4096>;
163 qcom,mempool-reserved = <2048>;
164 qcom,mempool-allocate;
165 };
166 /* 8K Page Pool configuration */
167 qcom,gpu-mempool@1 {
168 reg = <1>;
169 qcom,mempool-page-size = <8192>;
170 qcom,mempool-reserved = <1024>;
171 qcom,mempool-allocate;
172 };
173 /* 64K Page Pool configuration */
174 qcom,gpu-mempool@2 {
175 reg = <2>;
176 qcom,mempool-page-size = <65536>;
177 qcom,mempool-reserved = <256>;
178 };
179 /* 1M Page Pool configuration */
180 qcom,gpu-mempool@3 {
181 reg = <3>;
182 qcom,mempool-page-size = <1048576>;
183 qcom,mempool-reserved = <32>;
184 };
185 };
186
187 /* Power levels */
188 qcom,gpu-pwrlevels {
189 #address-cells = <1>;
190 #size-cells = <0>;
191
192 compatible = "qcom,gpu-pwrlevels";
193
194 qcom,gpu-pwrlevel@0 {
195 reg = <0>;
George Shen19350fb2017-06-09 08:44:24 -0700196 qcom,gpu-freq = <600000000>;
197 qcom,bus-freq = <12>;
198 qcom,bus-min = <11>;
199 qcom,bus-max = <12>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700200 };
201
202
203 qcom,gpu-pwrlevel@1 {
204 reg = <1>;
George Shen19350fb2017-06-09 08:44:24 -0700205 qcom,gpu-freq = <548000000>;
206 qcom,bus-freq = <12>;
207 qcom,bus-min = <10>;
208 qcom,bus-max = <12>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700209 };
210
211 qcom,gpu-pwrlevel@2 {
212 reg = <2>;
George Shen19350fb2017-06-09 08:44:24 -0700213 qcom,gpu-freq = <487000000>;
214 qcom,bus-freq = <10>;
215 qcom,bus-min = <9>;
216 qcom,bus-max = <11>;
217 };
218
219
220 qcom,gpu-pwrlevel@3 {
221 reg = <3>;
222 qcom,gpu-freq = <425000000>;
223 qcom,bus-freq = <9>;
224 qcom,bus-min = <8>;
225 qcom,bus-max = <10>;
226 };
227
228 qcom,gpu-pwrlevel@4 {
229 reg = <4>;
230 qcom,gpu-freq = <338000000>;
231 qcom,bus-freq = <8>;
232 qcom,bus-min = <7>;
233 qcom,bus-max = <9>;
234 };
235
236
237 qcom,gpu-pwrlevel@5 {
238 reg = <5>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700239 qcom,gpu-freq = <280000000>;
George Shen85c1ecc2017-07-11 14:48:20 -0700240 qcom,bus-freq = <5>;
George Shen19350fb2017-06-09 08:44:24 -0700241 qcom,bus-min = <5>;
242 qcom,bus-max = <7>;
243 };
244
245 qcom,gpu-pwrlevel@6 {
246 reg = <6>;
247 qcom,gpu-freq = <210000000>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700248 qcom,bus-freq = <4>;
249 qcom,bus-min = <3>;
250 qcom,bus-max = <5>;
251 };
252
George Shen19350fb2017-06-09 08:44:24 -0700253 qcom,gpu-pwrlevel@7 {
254 reg = <7>;
George Sheneb0260282017-07-13 10:58:34 -0700255 qcom,gpu-freq = <0>;
256 qcom,bus-freq = <0>;
257 qcom,bus-min = <0>;
258 qcom,bus-max = <0>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700259 };
260 };
261
262 };
263
264 kgsl_msm_iommu: qcom,kgsl-iommu {
265 compatible = "qcom,kgsl-smmu-v2";
266
267 reg = <0x05040000 0x10000>;
268 qcom,protect = <0x40000 0x10000>;
269 qcom,micro-mmu-control = <0x6000>;
270
271 clocks =<&clock_gcc GCC_GPU_CFG_AHB_CLK>,
272 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
273 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>;
274
275 clock-names = "iface_clk", "mem_clk", "mem_iface_clk";
276
277 qcom,secure_align_mask = <0xfff>;
Carter Cooper50f61da2017-05-24 11:38:59 -0600278 qcom,hyp_secure_alloc;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700279
280 gfx3d_user: gfx3d_user {
281 compatible = "qcom,smmu-kgsl-cb";
282 label = "gfx3d_user";
283 iommus = <&kgsl_smmu 0>;
284 qcom,gpu-offset = <0x48000>;
285 };
286
287 gfx3d_secure: gfx3d_secure {
288 compatible = "qcom,smmu-kgsl-cb";
289 iommus = <&kgsl_smmu 2>;
290 };
291 };
292
293 gmu: qcom,gmu {
294 label = "kgsl-gmu";
295 compatible = "qcom,gpu-gmu";
296
George Shen711aa4362017-08-30 10:59:41 -0700297 reg = <0x506a000 0x30000>, <0xb200000 0x300000>;
298 reg-names = "kgsl_gmu_reg", "kgsl_gmu_pdc_reg";
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700299
300 interrupts = <0 304 0>, <0 305 0>;
301 interrupt-names = "kgsl_hfi_irq", "kgsl_gmu_irq";
302
303 qcom,msm-bus,name = "cnoc";
304 qcom,msm-bus,num-cases = <2>;
305 qcom,msm-bus,num-paths = <1>;
306 qcom,msm-bus,vectors-KBps =
307 <26 10036 0 0>, // CNOC off
308 <26 10036 0 100>; // CNOC on
309
310 regulator-names = "vddcx", "vdd";
311 vddcx-supply = <&gpu_cx_gdsc>;
312 vdd-supply = <&gpu_gx_gdsc>;
313
314
315 clocks = <&clock_gpucc GPU_CC_CX_GMU_CLK>,
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700316 <&clock_gpucc GPU_CC_CXO_CLK>,
317 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
Kyle Pieferc6d21b42017-04-26 18:25:04 -0700318 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>,
319 <&clock_gpucc GPU_CC_AHB_CLK>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700320
Kyle Pieferc6d21b42017-04-26 18:25:04 -0700321 clock-names = "gmu_clk", "cxo_clk", "axi_clk",
322 "memnoc_clk", "ahb_clk";
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700323
324 qcom,gmu-pwrlevels {
Kyle Piefer3d1d2da2017-04-10 14:50:19 -0700325 #address-cells = <1>;
326 #size-cells = <0>;
327
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700328 compatible = "qcom,gmu-pwrlevels";
329
330 qcom,gmu-pwrlevel@0 {
331 reg = <0>;
332 qcom,gmu-freq = <400000000>;
333 };
334
335 qcom,gmu-pwrlevel@1 {
336 reg = <1>;
George Shendef14d72017-06-05 10:34:43 -0700337 qcom,gmu-freq = <200000000>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700338 };
339
340 qcom,gmu-pwrlevel@2 {
341 reg = <2>;
342 qcom,gmu-freq = <0>;
343 };
344 };
345
346 gmu_user: gmu_user {
347 compatible = "qcom,smmu-gmu-user-cb";
348 iommus = <&kgsl_smmu 4>;
349 };
350
351 gmu_kernel: gmu_kernel {
352 compatible = "qcom,smmu-gmu-kernel-cb";
353 iommus = <&kgsl_smmu 5>;
354 };
355 };
356};