blob: 122cf8ef489b8cf1dcb4f93b02f2b232f5882492 [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
15 msm_bus: qcom,kgsl-busmon{
16 label = "kgsl-busmon";
17 compatible = "qcom,kgsl-busmon";
18 };
19
20 gpubw: qcom,gpubw {
21 compatible = "qcom,devbw";
22 governor = "bw_vbif";
23 qcom,src-dst-ports = <26 512>;
24 /*
25 * active-only flag is used while registering the bus
26 * governor.It helps release the bus vote when the CPU
27 * subsystem is inactiv3
28 */
29 qcom,active-only;
30 qcom,bw-tbl =
31 < 0 /* off */ >,
32 < 762 /* 100 MHz */ >,
33 < 1144 /* 150 MHz */ >,
34 < 1525 /* 200 MHz */ >,
35 < 2288 /* 300 MHz */ >,
36 < 3143 /* 412 MHz */ >,
37 < 4173 /* 547 MHz */ >,
38 < 5195 /* 681 MHz */ >,
39 < 5859 /* 768 MHz */ >,
40 < 7759 /* 1017 MHz */ >,
41 < 9887 /* 1296 MHz */ >,
42 < 11863 /* 1555 MHz */ >,
43 < 13763 /* 1804 MHz */ >;
44 };
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
58 qcom,initial-pwrlevel = <2>;
59
60 qcom,gpu-quirk-hfi-use-reg;
61 qcom,gpu-quirk-two-pass-use-wfi;
62
63 qcom,idle-timeout = <100000000>; //msecs
64 qcom,no-nap;
65
66 qcom,highest-bank-bit = <15>;
67
68 qcom,min-access-length = <32>;
69
70 qcom,ubwc-mode = <2>;
71
72 qcom,snapshot-size = <1048576>; //bytes
73
74 qcom,gpu-qdss-stm = <0x161c0000 0x40000>; // base addr, size
75
76 qcom,tsens-name = "tsens_tz_sensor12";
Ram Chandrasekar36ffe552017-04-17 16:33:05 -060077 #cooling-cells = <2>;
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070078
79 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK>,
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070080 <&clock_gpucc GPU_CC_CXO_CLK>,
81 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
Harshdeep Dhatt7a7b5312017-04-20 21:36:55 -060082 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>,
83 <&clock_gpucc GPU_CC_CX_GMU_CLK>,
84 <&clock_gpucc GPU_CC_AHB_CLK>,
85 <&clock_gpucc GPU_CC_GX_CXO_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",
88 "mem_iface_clk", "gmu_clk", "ahb_clk",
89 "cxo_clk";
Lokesh Batraf7f72ff2016-10-13 11:51:59 -070090
91 qcom,isense-clk-on-level = <1>;
92
93 /* Bus Scale Settings */
94 qcom,gpubw-dev = <&gpubw>;
95 qcom,bus-control;
96 qcom,msm-bus,name = "grp3d";
97 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
102 <26 512 0 800000>, // 1 bus=100
103 <26 512 0 1200000>, // 2 bus=150
104 <26 512 0 1600000>, // 3 bus=200
105 <26 512 0 2400000>, // 4 bus=300
106 <26 512 0 3296000>, // 5 bus=412
107 <26 512 0 4376000>, // 6 bus=547
108 <26 512 0 5448000>, // 7 bus=681
109 <26 512 0 6144000>, // 8 bus=768
110 <26 512 0 8136000>, // 9 bus=1017
111 <26 512 0 10368000>, // 10 bus=1296
112 <26 512 0 12440000>, // 11 bus=1555
113 <26 512 0 14432000>; // 12 bus=1804
114
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
125 /* GPU Mempools */
126 qcom,gpu-mempools {
127 #address-cells = <1>;
128 #size-cells = <0>;
129 compatible = "qcom,gpu-mempools";
130
131 /* 4K Page Pool configuration */
132 qcom,gpu-mempool@0 {
133 reg = <0>;
134 qcom,mempool-page-size = <4096>;
135 qcom,mempool-reserved = <2048>;
136 qcom,mempool-allocate;
137 };
138 /* 8K Page Pool configuration */
139 qcom,gpu-mempool@1 {
140 reg = <1>;
141 qcom,mempool-page-size = <8192>;
142 qcom,mempool-reserved = <1024>;
143 qcom,mempool-allocate;
144 };
145 /* 64K Page Pool configuration */
146 qcom,gpu-mempool@2 {
147 reg = <2>;
148 qcom,mempool-page-size = <65536>;
149 qcom,mempool-reserved = <256>;
150 };
151 /* 1M Page Pool configuration */
152 qcom,gpu-mempool@3 {
153 reg = <3>;
154 qcom,mempool-page-size = <1048576>;
155 qcom,mempool-reserved = <32>;
156 };
157 };
158
159 /* Power levels */
160 qcom,gpu-pwrlevels {
161 #address-cells = <1>;
162 #size-cells = <0>;
163
164 compatible = "qcom,gpu-pwrlevels";
165
166 qcom,gpu-pwrlevel@0 {
167 reg = <0>;
168 qcom,gpu-freq = <548000000>;
169 qcom,bus-freq = <12>;
170 qcom,bus-min = <11>;
171 qcom,bus-max = <12>;
172 };
173
174
175 qcom,gpu-pwrlevel@1 {
176 reg = <1>;
177 qcom,gpu-freq = <425000000>;
178 qcom,bus-freq = <7>;
179 qcom,bus-min = <6>;
180 qcom,bus-max = <8>;
181 };
182
183 qcom,gpu-pwrlevel@2 {
184 reg = <2>;
185 qcom,gpu-freq = <280000000>;
186 qcom,bus-freq = <4>;
187 qcom,bus-min = <3>;
188 qcom,bus-max = <5>;
189 };
190
191 qcom,gpu-pwrlevel@3 {
192 reg = <3>;
193 qcom,gpu-freq = <27000000>;
194 qcom,bus-freq = <0>;
195 qcom,bus-min = <0>;
196 qcom,bus-max = <0>;
197 };
198 };
199
200 };
201
202 kgsl_msm_iommu: qcom,kgsl-iommu {
203 compatible = "qcom,kgsl-smmu-v2";
204
205 reg = <0x05040000 0x10000>;
206 qcom,protect = <0x40000 0x10000>;
207 qcom,micro-mmu-control = <0x6000>;
208
209 clocks =<&clock_gcc GCC_GPU_CFG_AHB_CLK>,
210 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
211 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>;
212
213 clock-names = "iface_clk", "mem_clk", "mem_iface_clk";
214
215 qcom,secure_align_mask = <0xfff>;
216 qcom,global_pt;
217
218 gfx3d_user: gfx3d_user {
219 compatible = "qcom,smmu-kgsl-cb";
220 label = "gfx3d_user";
221 iommus = <&kgsl_smmu 0>;
222 qcom,gpu-offset = <0x48000>;
223 };
224
225 gfx3d_secure: gfx3d_secure {
226 compatible = "qcom,smmu-kgsl-cb";
227 iommus = <&kgsl_smmu 2>;
228 };
229 };
230
231 gmu: qcom,gmu {
232 label = "kgsl-gmu";
233 compatible = "qcom,gpu-gmu";
234
235 reg = <0x506a000 0x26000>, <0xb200000 0x300000>;
236 reg-names = "kgsl_gmu_reg", "kgsl_gmu_pdc_reg";
237
238 interrupts = <0 304 0>, <0 305 0>;
239 interrupt-names = "kgsl_hfi_irq", "kgsl_gmu_irq";
240
241 qcom,msm-bus,name = "cnoc";
242 qcom,msm-bus,num-cases = <2>;
243 qcom,msm-bus,num-paths = <1>;
244 qcom,msm-bus,vectors-KBps =
245 <26 10036 0 0>, // CNOC off
246 <26 10036 0 100>; // CNOC on
247
248 regulator-names = "vddcx", "vdd";
249 vddcx-supply = <&gpu_cx_gdsc>;
250 vdd-supply = <&gpu_gx_gdsc>;
251
252
253 clocks = <&clock_gpucc GPU_CC_CX_GMU_CLK>,
254 <&clock_gcc GCC_GPU_CFG_AHB_CLK>,
255 <&clock_gpucc GPU_CC_CXO_CLK>,
256 <&clock_gcc GCC_DDRSS_GPU_AXI_CLK>,
257 <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>;
258
259 clock-names = "gmu_clk", "ahb_clk", "cxo_clk",
260 "axi_clk", "memnoc_clk";
261
262 qcom,gmu-pwrlevels {
Kyle Piefer3d1d2da2017-04-10 14:50:19 -0700263 #address-cells = <1>;
264 #size-cells = <0>;
265
Lokesh Batraf7f72ff2016-10-13 11:51:59 -0700266 compatible = "qcom,gmu-pwrlevels";
267
268 qcom,gmu-pwrlevel@0 {
269 reg = <0>;
270 qcom,gmu-freq = <400000000>;
271 };
272
273 qcom,gmu-pwrlevel@1 {
274 reg = <1>;
275 qcom,gmu-freq = <19200000>;
276 };
277
278 qcom,gmu-pwrlevel@2 {
279 reg = <2>;
280 qcom,gmu-freq = <0>;
281 };
282 };
283
284 gmu_user: gmu_user {
285 compatible = "qcom,smmu-gmu-user-cb";
286 iommus = <&kgsl_smmu 4>;
287 };
288
289 gmu_kernel: gmu_kernel {
290 compatible = "qcom,smmu-gmu-kernel-cb";
291 iommus = <&kgsl_smmu 5>;
292 };
293 };
294};