blob: a2c3450062503c7c62b5a7eb47466dc49870fcf6 [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>;
30 /*
31 * active-only flag is used while registering the bus
32 * governor.It helps release the bus vote when the CPU
33 * subsystem is inactiv3
34 */
35 qcom,active-only;
36 qcom,bw-tbl =
37 < 0 /* off */ >,
38 < 762 /* 100 MHz */ >,
39 < 1144 /* 150 MHz */ >,
40 < 1525 /* 200 MHz */ >,
41 < 2288 /* 300 MHz */ >,
42 < 3143 /* 412 MHz */ >,
43 < 4173 /* 547 MHz */ >,
44 < 5195 /* 681 MHz */ >,
45 < 5859 /* 768 MHz */ >,
46 < 7759 /* 1017 MHz */ >,
47 < 9887 /* 1296 MHz */ >,
48 < 11863 /* 1555 MHz */ >,
49 < 13763 /* 1804 MHz */ >;
50 };
51
52 msm_gpu: qcom,kgsl-3d0@5000000 {
53 label = "kgsl-3d0";
54 compatible = "qcom,kgsl-3d0", "qcom,kgsl-3d";
55 status = "ok";
56 reg = <0x5000000 0x40000>;
57 reg-names = "kgsl_3d0_reg_memory";
58 interrupts = <0 300 0>;
59 interrupt-names = "kgsl_3d0_irq";
60 qcom,id = <0>;
61
62 qcom,chipid = <0x06030000>;
63
George Shen19350fb2017-06-09 08:44:24 -070064 qcom,initial-pwrlevel = <5>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070065
66 qcom,gpu-quirk-hfi-use-reg;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070067
Kyle Piefer4b4ced72017-05-02 15:44:53 -070068 qcom,idle-timeout = <80>; //msecs
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070069 qcom,no-nap;
70
71 qcom,highest-bank-bit = <15>;
72
73 qcom,min-access-length = <32>;
74
75 qcom,ubwc-mode = <2>;
76
77 qcom,snapshot-size = <1048576>; //bytes
78
79 qcom,gpu-qdss-stm = <0x161c0000 0x40000>; // base addr, size
80
81 qcom,tsens-name = "tsens_tz_sensor12";
Ram Chandrasekar36ffe552017-04-17 16:33:05 -060082 #cooling-cells = <2>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070083
84 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK>,
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070085 <&clock_gpucc GPU_CC_CXO_CLK>,
86 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
Harshdeep Dhatt7a7b5312017-04-20 21:36:55 -060087 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>,
88 <&clock_gpucc GPU_CC_CX_GMU_CLK>,
89 <&clock_gpucc GPU_CC_AHB_CLK>,
90 <&clock_gpucc GPU_CC_GX_CXO_CLK>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070091
Harshdeep Dhatt7a7b5312017-04-20 21:36:55 -060092 clock-names = "core_clk", "rbbmtimer_clk", "mem_clk",
93 "mem_iface_clk", "gmu_clk", "ahb_clk",
94 "cxo_clk";
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070095
96 qcom,isense-clk-on-level = <1>;
97
98 /* Bus Scale Settings */
99 qcom,gpubw-dev = <&gpubw>;
100 qcom,bus-control;
101 qcom,msm-bus,name = "grp3d";
102 qcom,msm-bus,num-cases = <13>;
103 qcom,msm-bus,num-paths = <1>;
104 qcom,msm-bus,vectors-KBps =
105 <26 512 0 0>,
106
George Shen85c1ecc2017-07-11 14:48:20 -0700107 <26 512 0 400000>, // 1 bus=100
108 <26 512 0 600000>, // 2 bus=150
109 <26 512 0 800000>, // 3 bus=200
110 <26 512 0 1200000>, // 4 bus=300
111 <26 512 0 1648000>, // 5 bus=412
112 <26 512 0 2188000>, // 6 bus=547
113 <26 512 0 2724000>, // 7 bus=681
114 <26 512 0 3072000>, // 8 bus=768
115 <26 512 0 4068000>, // 9 bus=1017
116 <26 512 0 5184000>, // 10 bus=1296
117 <26 512 0 6220000>, // 11 bus=1555
118 <26 512 0 7216000>; // 12 bus=1804
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700119
120 /* GDSC regulator names */
121 regulator-names = "vddcx", "vdd";
122 /* GDSC oxili regulators */
123 vddcx-supply = <&gpu_cx_gdsc>;
124 vdd-supply = <&gpu_gx_gdsc>;
125
126 /* GPU related llc slices */
127 cache-slice-names = "gpu", "gpuhtw";
128 cache-slices = <&llcc 12>, <&llcc 11>;
129
130 /* GPU Mempools */
131 qcom,gpu-mempools {
132 #address-cells = <1>;
133 #size-cells = <0>;
134 compatible = "qcom,gpu-mempools";
135
136 /* 4K Page Pool configuration */
137 qcom,gpu-mempool@0 {
138 reg = <0>;
139 qcom,mempool-page-size = <4096>;
140 qcom,mempool-reserved = <2048>;
141 qcom,mempool-allocate;
142 };
143 /* 8K Page Pool configuration */
144 qcom,gpu-mempool@1 {
145 reg = <1>;
146 qcom,mempool-page-size = <8192>;
147 qcom,mempool-reserved = <1024>;
148 qcom,mempool-allocate;
149 };
150 /* 64K Page Pool configuration */
151 qcom,gpu-mempool@2 {
152 reg = <2>;
153 qcom,mempool-page-size = <65536>;
154 qcom,mempool-reserved = <256>;
155 };
156 /* 1M Page Pool configuration */
157 qcom,gpu-mempool@3 {
158 reg = <3>;
159 qcom,mempool-page-size = <1048576>;
160 qcom,mempool-reserved = <32>;
161 };
162 };
163
164 /* Power levels */
165 qcom,gpu-pwrlevels {
166 #address-cells = <1>;
167 #size-cells = <0>;
168
169 compatible = "qcom,gpu-pwrlevels";
170
171 qcom,gpu-pwrlevel@0 {
172 reg = <0>;
George Shen19350fb2017-06-09 08:44:24 -0700173 qcom,gpu-freq = <600000000>;
174 qcom,bus-freq = <12>;
175 qcom,bus-min = <11>;
176 qcom,bus-max = <12>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700177 };
178
179
180 qcom,gpu-pwrlevel@1 {
181 reg = <1>;
George Shen19350fb2017-06-09 08:44:24 -0700182 qcom,gpu-freq = <548000000>;
183 qcom,bus-freq = <12>;
184 qcom,bus-min = <10>;
185 qcom,bus-max = <12>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700186 };
187
188 qcom,gpu-pwrlevel@2 {
189 reg = <2>;
George Shen19350fb2017-06-09 08:44:24 -0700190 qcom,gpu-freq = <487000000>;
191 qcom,bus-freq = <10>;
192 qcom,bus-min = <9>;
193 qcom,bus-max = <11>;
194 };
195
196
197 qcom,gpu-pwrlevel@3 {
198 reg = <3>;
199 qcom,gpu-freq = <425000000>;
200 qcom,bus-freq = <9>;
201 qcom,bus-min = <8>;
202 qcom,bus-max = <10>;
203 };
204
205 qcom,gpu-pwrlevel@4 {
206 reg = <4>;
207 qcom,gpu-freq = <338000000>;
208 qcom,bus-freq = <8>;
209 qcom,bus-min = <7>;
210 qcom,bus-max = <9>;
211 };
212
213
214 qcom,gpu-pwrlevel@5 {
215 reg = <5>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700216 qcom,gpu-freq = <280000000>;
George Shen85c1ecc2017-07-11 14:48:20 -0700217 qcom,bus-freq = <5>;
George Shen19350fb2017-06-09 08:44:24 -0700218 qcom,bus-min = <5>;
219 qcom,bus-max = <7>;
220 };
221
222 qcom,gpu-pwrlevel@6 {
223 reg = <6>;
224 qcom,gpu-freq = <210000000>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700225 qcom,bus-freq = <4>;
226 qcom,bus-min = <3>;
227 qcom,bus-max = <5>;
228 };
229
George Shen19350fb2017-06-09 08:44:24 -0700230 qcom,gpu-pwrlevel@7 {
231 reg = <7>;
George Sheneb0260282017-07-13 10:58:34 -0700232 qcom,gpu-freq = <0>;
233 qcom,bus-freq = <0>;
234 qcom,bus-min = <0>;
235 qcom,bus-max = <0>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700236 };
237 };
238
239 };
240
241 kgsl_msm_iommu: qcom,kgsl-iommu {
242 compatible = "qcom,kgsl-smmu-v2";
243
244 reg = <0x05040000 0x10000>;
245 qcom,protect = <0x40000 0x10000>;
246 qcom,micro-mmu-control = <0x6000>;
247
248 clocks =<&clock_gcc GCC_GPU_CFG_AHB_CLK>,
249 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
250 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>;
251
252 clock-names = "iface_clk", "mem_clk", "mem_iface_clk";
253
254 qcom,secure_align_mask = <0xfff>;
Carter Cooper50f61da2017-05-24 11:38:59 -0600255 qcom,hyp_secure_alloc;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700256
257 gfx3d_user: gfx3d_user {
258 compatible = "qcom,smmu-kgsl-cb";
259 label = "gfx3d_user";
260 iommus = <&kgsl_smmu 0>;
261 qcom,gpu-offset = <0x48000>;
262 };
263
264 gfx3d_secure: gfx3d_secure {
265 compatible = "qcom,smmu-kgsl-cb";
266 iommus = <&kgsl_smmu 2>;
267 };
268 };
269
270 gmu: qcom,gmu {
271 label = "kgsl-gmu";
272 compatible = "qcom,gpu-gmu";
273
Kyle Piefer6a269fd2017-05-23 17:37:25 -0700274 reg = <0x506a000 0x30000>, <0xb200000 0x300000>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700275 reg-names = "kgsl_gmu_reg", "kgsl_gmu_pdc_reg";
276
277 interrupts = <0 304 0>, <0 305 0>;
278 interrupt-names = "kgsl_hfi_irq", "kgsl_gmu_irq";
279
280 qcom,msm-bus,name = "cnoc";
281 qcom,msm-bus,num-cases = <2>;
282 qcom,msm-bus,num-paths = <1>;
283 qcom,msm-bus,vectors-KBps =
284 <26 10036 0 0>, // CNOC off
285 <26 10036 0 100>; // CNOC on
286
287 regulator-names = "vddcx", "vdd";
288 vddcx-supply = <&gpu_cx_gdsc>;
289 vdd-supply = <&gpu_gx_gdsc>;
290
291
292 clocks = <&clock_gpucc GPU_CC_CX_GMU_CLK>,
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700293 <&clock_gpucc GPU_CC_CXO_CLK>,
294 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
Kyle Pieferc6d21b42017-04-26 18:25:04 -0700295 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>,
296 <&clock_gpucc GPU_CC_AHB_CLK>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700297
Kyle Pieferc6d21b42017-04-26 18:25:04 -0700298 clock-names = "gmu_clk", "cxo_clk", "axi_clk",
299 "memnoc_clk", "ahb_clk";
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700300
301 qcom,gmu-pwrlevels {
Kyle Piefer3d1d2da2017-04-10 14:50:19 -0700302 #address-cells = <1>;
303 #size-cells = <0>;
304
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700305 compatible = "qcom,gmu-pwrlevels";
306
307 qcom,gmu-pwrlevel@0 {
308 reg = <0>;
309 qcom,gmu-freq = <400000000>;
310 };
311
312 qcom,gmu-pwrlevel@1 {
313 reg = <1>;
George Shendef14d72017-06-05 10:34:43 -0700314 qcom,gmu-freq = <200000000>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700315 };
316
317 qcom,gmu-pwrlevel@2 {
318 reg = <2>;
319 qcom,gmu-freq = <0>;
320 };
321 };
322
323 gmu_user: gmu_user {
324 compatible = "qcom,smmu-gmu-user-cb";
325 iommus = <&kgsl_smmu 4>;
326 };
327
328 gmu_kernel: gmu_kernel {
329 compatible = "qcom,smmu-gmu-kernel-cb";
330 iommus = <&kgsl_smmu 5>;
331 };
332 };
333};