-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsm-arm-smmu-sdm670.dtsi
335 lines (320 loc) · 9.97 KB
/
msm-arm-smmu-sdm670.dtsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
/* Copyright (c) 2017-2018,2020 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/msm/msm-bus-ids.h>
&soc {
kgsl_smmu: arm,smmu-kgsl@5040000 {
status = "ok";
compatible = "qcom,smmu-v2";
reg = <0x5040000 0x10000>;
#iommu-cells = <1>;
qcom,dynamic;
qcom,use-3-lvl-tables;
qcom,disable-atos;
#global-interrupts = <2>;
qcom,regulator-names = "vdd";
vdd-supply = <&gpu_cx_gdsc>;
interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 364 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 365 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 366 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "gcc_gpu_memnoc_gfx_clk";
clocks = <&clock_gcc GCC_GPU_MEMNOC_GFX_CLK>;
attach-impl-defs =
<0x6000 0x2378>,
<0x6060 0x1055>,
<0x678c 0x8>,
<0x6794 0x28>,
<0x6800 0x6>,
<0x6900 0x3ff>,
<0x6924 0x204>,
<0x6928 0x11000>,
<0x6930 0x800>,
<0x6960 0xffffffff>,
<0x6b64 0x1a5551>,
<0x6b68 0x9a82a382>;
};
apps_smmu: apps-smmu@0x15000000 {
compatible = "qcom,qsmmu-v500";
reg = <0x15000000 0x80000>,
<0x150c2000 0x18>;
reg-names = "base", "tcu-base";
#iommu-cells = <2>;
qcom,skip-init;
qcom,use-3-lvl-tables;
qcom,no-asid-retention;
qcom,disable-atos;
#global-interrupts = <1>;
#size-cells = <1>;
#address-cells = <1>;
ranges;
interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI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TYPE_LEVEL_HIGH>,
<GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>;
qcom,msm-bus,name = "apps_smmu";
qcom,msm-bus,num-cases = <2>;
qcom,msm-bus,active-only;
qcom,msm-bus,num-paths = <1>;
qcom,msm-bus,vectors-KBps =
<MSM_BUS_MASTER_GNOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 0>,
<MSM_BUS_MASTER_GNOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 1000>;
anoc_1_tbu: anoc_1_tbu@0x150c5000 {
compatible = "qcom,qsmmuv500-tbu";
reg = <0x150c5000 0x1000>,
<0x150c2200 0x8>;
reg-names = "base", "status-reg";
qcom,stream-id-range = <0x0 0x400>;
qcom,regulator-names = "vdd";
vdd-supply = <&hlos1_vote_aggre_noc_mmu_tbu1_gdsc>;
qcom,msm-bus,name = "apps_smmu";
qcom,msm-bus,num-cases = <2>;
qcom,msm-bus,active-only;
qcom,msm-bus,num-paths = <1>;
qcom,msm-bus,vectors-KBps =
<MSM_BUS_MASTER_GNOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 0>,
<MSM_BUS_MASTER_GNOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 1000>;
};
anoc_2_tbu: anoc_2_tbu@0x150c9000 {
compatible = "qcom,qsmmuv500-tbu";
reg = <0x150c9000 0x1000>,
<0x150c2208 0x8>;
reg-names = "base", "status-reg";
qcom,stream-id-range = <0x400 0x400>;
qcom,regulator-names = "vdd";
vdd-supply = <&hlos1_vote_aggre_noc_mmu_tbu2_gdsc>;
qcom,msm-bus,name = "apps_smmu";
qcom,msm-bus,num-cases = <2>;
qcom,msm-bus,active-only;
qcom,msm-bus,num-paths = <1>;
qcom,msm-bus,vectors-KBps =
<MSM_BUS_MASTER_GNOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 0>,
<MSM_BUS_MASTER_GNOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 1000>;
};
mnoc_hf_0_tbu: mnoc_hf_0_tbu@0x150cd000 {
compatible = "qcom,qsmmuv500-tbu";
reg = <0x150cd000 0x1000>,
<0x150c2210 0x8>;
reg-names = "base", "status-reg";
qcom,stream-id-range = <0x800 0x400>;
qcom,regulator-names = "vdd";
vdd-supply = <&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc>;
qcom,msm-bus,name = "mnoc_hf_0_tbu";
qcom,msm-bus,num-cases = <2>;
qcom,msm-bus,active-only;
qcom,msm-bus,num-paths = <1>;
qcom,msm-bus,vectors-KBps =
<MSM_BUS_MASTER_MDP_PORT0>,
<MSM_BUS_SLAVE_MNOC_HF_MEM_NOC>,
<0 0>,
<MSM_BUS_MASTER_MDP_PORT0>,
<MSM_BUS_SLAVE_MNOC_HF_MEM_NOC>,
<0 1000>;
};
mnoc_hf_1_tbu: mnoc_hf_1_tbu@0x150d1000 {
compatible = "qcom,qsmmuv500-tbu";
reg = <0x150d1000 0x1000>,
<0x150c2218 0x8>;
reg-names = "base", "status-reg";
qcom,stream-id-range = <0xc00 0x400>;
qcom,regulator-names = "vdd";
vdd-supply = <&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc>;
qcom,msm-bus,name = "mnoc_hf_1_tbu";
qcom,msm-bus,num-cases = <2>;
qcom,msm-bus,active-only;
qcom,msm-bus,num-paths = <1>;
qcom,msm-bus,vectors-KBps =
<MSM_BUS_MASTER_MDP_PORT0>,
<MSM_BUS_SLAVE_MNOC_HF_MEM_NOC>,
<0 0>,
<MSM_BUS_MASTER_MDP_PORT0>,
<MSM_BUS_SLAVE_MNOC_HF_MEM_NOC>,
<0 1000>;
};
mnoc_sf_0_tbu: mnoc_sf_0_tbu@0x150d5000 {
compatible = "qcom,qsmmuv500-tbu";
reg = <0x150d5000 0x1000>,
<0x150c2220 0x8>;
reg-names = "base", "status-reg";
qcom,stream-id-range = <0x1000 0x400>;
qcom,regulator-names = "vdd";
vdd-supply = <&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc>;
qcom,msm-bus,name = "mnoc_sf_0_tbu";
qcom,msm-bus,num-cases = <2>;
qcom,msm-bus,active-only;
qcom,msm-bus,num-paths = <1>;
qcom,msm-bus,vectors-KBps =
<MSM_BUS_MASTER_CAMNOC_SF>,
<MSM_BUS_SLAVE_MNOC_SF_MEM_NOC>,
<0 0>,
<MSM_BUS_MASTER_CAMNOC_SF>,
<MSM_BUS_SLAVE_MNOC_SF_MEM_NOC>,
<0 1000>;
};
compute_dsp_tbu: compute_dsp_tbu@0x150d9000 {
compatible = "qcom,qsmmuv500-tbu";
reg = <0x150d9000 0x1000>,
<0x150c2228 0x8>;
reg-names = "base", "status-reg";
qcom,stream-id-range = <0x1400 0x400>;
/* No GDSC */
qcom,msm-bus,name = "apps_smmu";
qcom,msm-bus,num-cases = <2>;
qcom,msm-bus,active-only;
qcom,msm-bus,num-paths = <1>;
qcom,msm-bus,vectors-KBps =
<MSM_BUS_MASTER_GNOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 0>,
<MSM_BUS_MASTER_GNOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 1000>;
};
adsp_tbu: adsp_tbu@0x150dd000 {
compatible = "qcom,qsmmuv500-tbu";
reg = <0x150dd000 0x1000>,
<0x150c2230 0x8>;
reg-names = "base", "status-reg";
qcom,stream-id-range = <0x1800 0x400>;
qcom,regulator-names = "vdd";
vdd-supply = <&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc>;
qcom,msm-bus,name = "apps_smmu";
qcom,msm-bus,num-cases = <2>;
qcom,msm-bus,active-only;
qcom,msm-bus,num-paths = <1>;
qcom,msm-bus,vectors-KBps =
<MSM_BUS_MASTER_GNOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 0>,
<MSM_BUS_MASTER_GNOC_SNOC>,
<MSM_BUS_SLAVE_IMEM_CFG>,
<0 1000>;
};
};
kgsl_iommu_test_device {
status = "disabled";
compatible = "iommu-debug-test";
/*
* 0x7 isn't a valid sid, but should pass the sid sanity check.
* We just need _something_ here to get this node recognized by
* the SMMU driver. Our test uses ATOS, which doesn't use SIDs
* anyways, so using a dummy value is ok.
*/
iommus = <&kgsl_smmu 0x7>;
qcom,iommu-dma = "disabled";
};
apps_iommu_test_device {
compatible = "iommu-debug-test";
/*
* This SID belongs to TSIF. We can't use a fake SID for
* the apps_smmu device.
*/
iommus = <&apps_smmu 0x20 0xf>;
qcom,iommu-dma = "disabled";
};
apps_iommu_coherent_test_device {
compatible = "iommu-debug-test";
/*
* This SID belongs to TSIF. We can't use a fake SID for
* the apps_smmu device.
*/
iommus = <&apps_smmu 0x20 0xf>;
qcom,iommu-dma = "disabled";
dma-coherent;
};
};
&apps_smmu {
qcom,actlr =
/* HF and SF TBUs: +3 deep PF */
<0x0800 0x7ff 0x103>,
<0x1000 0x3ff 0x103>;
hwlocks = <&tcsr_mutex 6>;
};