blob: e2699cdb46deaab17b3bb354945747561d19d461 [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
64 qcom,initial-pwrlevel = <2>;
65
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
107 <26 512 0 800000>, // 1 bus=100
108 <26 512 0 1200000>, // 2 bus=150
109 <26 512 0 1600000>, // 3 bus=200
110 <26 512 0 2400000>, // 4 bus=300
111 <26 512 0 3296000>, // 5 bus=412
112 <26 512 0 4376000>, // 6 bus=547
113 <26 512 0 5448000>, // 7 bus=681
114 <26 512 0 6144000>, // 8 bus=768
115 <26 512 0 8136000>, // 9 bus=1017
116 <26 512 0 10368000>, // 10 bus=1296
117 <26 512 0 12440000>, // 11 bus=1555
118 <26 512 0 14432000>; // 12 bus=1804
119
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>;
Harshdeep Dhattaab63442017-04-20 17:00:53 -0600173 qcom,gpu-freq = <280000000>;
174 qcom,bus-freq = <4>;
175 qcom,bus-min = <3>;
176 qcom,bus-max = <5>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700177 };
178
179
180 qcom,gpu-pwrlevel@1 {
181 reg = <1>;
Harshdeep Dhattaab63442017-04-20 17:00:53 -0600182 qcom,gpu-freq = <280000000>;
183 qcom,bus-freq = <4>;
184 qcom,bus-min = <3>;
185 qcom,bus-max = <5>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700186 };
187
188 qcom,gpu-pwrlevel@2 {
189 reg = <2>;
190 qcom,gpu-freq = <280000000>;
191 qcom,bus-freq = <4>;
192 qcom,bus-min = <3>;
193 qcom,bus-max = <5>;
194 };
195
196 qcom,gpu-pwrlevel@3 {
197 reg = <3>;
Harshdeep Dhattaab63442017-04-20 17:00:53 -0600198 qcom,gpu-freq = <280000000>;
199 qcom,bus-freq = <4>;
200 qcom,bus-min = <3>;
201 qcom,bus-max = <5>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700202 };
203 };
204
205 };
206
207 kgsl_msm_iommu: qcom,kgsl-iommu {
208 compatible = "qcom,kgsl-smmu-v2";
209
210 reg = <0x05040000 0x10000>;
211 qcom,protect = <0x40000 0x10000>;
212 qcom,micro-mmu-control = <0x6000>;
213
214 clocks =<&clock_gcc GCC_GPU_CFG_AHB_CLK>,
215 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
216 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>;
217
218 clock-names = "iface_clk", "mem_clk", "mem_iface_clk";
219
220 qcom,secure_align_mask = <0xfff>;
221 qcom,global_pt;
222
223 gfx3d_user: gfx3d_user {
224 compatible = "qcom,smmu-kgsl-cb";
225 label = "gfx3d_user";
226 iommus = <&kgsl_smmu 0>;
227 qcom,gpu-offset = <0x48000>;
228 };
229
230 gfx3d_secure: gfx3d_secure {
231 compatible = "qcom,smmu-kgsl-cb";
232 iommus = <&kgsl_smmu 2>;
233 };
234 };
235
236 gmu: qcom,gmu {
237 label = "kgsl-gmu";
238 compatible = "qcom,gpu-gmu";
239
Kyle Piefer6a269fd2017-05-23 17:37:25 -0700240 reg = <0x506a000 0x30000>, <0xb200000 0x300000>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700241 reg-names = "kgsl_gmu_reg", "kgsl_gmu_pdc_reg";
242
243 interrupts = <0 304 0>, <0 305 0>;
244 interrupt-names = "kgsl_hfi_irq", "kgsl_gmu_irq";
245
246 qcom,msm-bus,name = "cnoc";
247 qcom,msm-bus,num-cases = <2>;
248 qcom,msm-bus,num-paths = <1>;
249 qcom,msm-bus,vectors-KBps =
250 <26 10036 0 0>, // CNOC off
251 <26 10036 0 100>; // CNOC on
252
253 regulator-names = "vddcx", "vdd";
254 vddcx-supply = <&gpu_cx_gdsc>;
255 vdd-supply = <&gpu_gx_gdsc>;
256
257
258 clocks = <&clock_gpucc GPU_CC_CX_GMU_CLK>,
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700259 <&clock_gpucc GPU_CC_CXO_CLK>,
260 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
Kyle Pieferc6d21b42017-04-26 18:25:04 -0700261 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>,
262 <&clock_gpucc GPU_CC_AHB_CLK>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700263
Kyle Pieferc6d21b42017-04-26 18:25:04 -0700264 clock-names = "gmu_clk", "cxo_clk", "axi_clk",
265 "memnoc_clk", "ahb_clk";
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700266
267 qcom,gmu-pwrlevels {
Kyle Piefer3d1d2da2017-04-10 14:50:19 -0700268 #address-cells = <1>;
269 #size-cells = <0>;
270
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700271 compatible = "qcom,gmu-pwrlevels";
272
273 qcom,gmu-pwrlevel@0 {
274 reg = <0>;
275 qcom,gmu-freq = <400000000>;
276 };
277
278 qcom,gmu-pwrlevel@1 {
279 reg = <1>;
George Shendef14d72017-06-05 10:34:43 -0700280 qcom,gmu-freq = <200000000>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700281 };
282
283 qcom,gmu-pwrlevel@2 {
284 reg = <2>;
285 qcom,gmu-freq = <0>;
286 };
287 };
288
289 gmu_user: gmu_user {
290 compatible = "qcom,smmu-gmu-user-cb";
291 iommus = <&kgsl_smmu 4>;
292 };
293
294 gmu_kernel: gmu_kernel {
295 compatible = "qcom,smmu-gmu-kernel-cb";
296 iommus = <&kgsl_smmu 5>;
297 };
298 };
299};