tc0.dts 9.06 KB
Newer Older
Usama Arif's avatar
Usama Arif committed
1
/*
Usama Arif's avatar
Usama Arif committed
2
 * Copyright (c) 2020-2021, Arm Limited. All rights reserved.
Usama Arif's avatar
Usama Arif committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

/dts-v1/;

/ {
	compatible = "arm,tc0";
	interrupt-parent = <&gic>;
	#address-cells = <2>;
	#size-cells = <2>;

	aliases {
		serial0 = &soc_uart0;
	};

	chosen {
20
		stdout-path = "serial0:115200n8";
Usama Arif's avatar
Usama Arif committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
	};

	cpus {
		#address-cells = <1>;
		#size-cells = <0>;

		cpu-map {
			cluster0 {
				core0 {
					cpu = <&CPU0>;
				};
				core1 {
					cpu = <&CPU1>;
				};
				core2 {
					cpu = <&CPU2>;
				};
				core3 {
					cpu = <&CPU3>;
				};
41
42
43
44
45
46
47
48
49
50
51
52
				core4 {
					cpu = <&CPU4>;
				};
				core5 {
					cpu = <&CPU5>;
				};
				core6 {
					cpu = <&CPU6>;
				};
				core7 {
					cpu = <&CPU7>;
				};
Usama Arif's avatar
Usama Arif committed
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
		/*
		 * The timings below are just to demonstrate working cpuidle.
		 * These values may be inaccurate.
		 */
		idle-states {
			entry-method = "arm,psci";

			CPU_SLEEP_0: cpu-sleep-0 {
				compatible = "arm,idle-state";
				arm,psci-suspend-param = <0x0010000>;
				local-timer-stop;
				entry-latency-us = <300>;
				exit-latency-us = <1200>;
				min-residency-us = <2000>;
			};
			CLUSTER_SLEEP_0: cluster-sleep-0 {
				compatible = "arm,idle-state";
				arm,psci-suspend-param = <0x1010000>;
				local-timer-stop;
				entry-latency-us = <400>;
				exit-latency-us = <1200>;
				min-residency-us = <2500>;
			};
		};

Usama Arif's avatar
Usama Arif committed
81
82
83
84
85
86
		CPU0:cpu@0 {
			device_type = "cpu";
			compatible = "arm,armv8";
			reg = <0x0>;
			enable-method = "psci";
			clocks = <&scmi_dvfs 0>;
87
			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
88
			capacity-dmips-mhz = <406>;
Usama Arif's avatar
Usama Arif committed
89
90
91
92
93
94
95
96
		};

		CPU1:cpu@100 {
			device_type = "cpu";
			compatible = "arm,armv8";
			reg = <0x100>;
			enable-method = "psci";
			clocks = <&scmi_dvfs 0>;
97
			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
98
			capacity-dmips-mhz = <406>;
Usama Arif's avatar
Usama Arif committed
99
100
101
102
103
104
105
106
		};

		CPU2:cpu@200 {
			device_type = "cpu";
			compatible = "arm,armv8";
			reg = <0x200>;
			enable-method = "psci";
			clocks = <&scmi_dvfs 0>;
107
			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
108
			capacity-dmips-mhz = <406>;
Usama Arif's avatar
Usama Arif committed
109
110
111
112
113
114
115
		};

		CPU3:cpu@300 {
			device_type = "cpu";
			compatible = "arm,armv8";
			reg = <0x300>;
			enable-method = "psci";
116
117
			clocks = <&scmi_dvfs 0>;
			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
118
			capacity-dmips-mhz = <406>;
119
120
121
122
123
124
125
		};

		CPU4:cpu@400 {
			device_type = "cpu";
			compatible = "arm,armv8";
			reg = <0x400>;
			enable-method = "psci";
126
			clocks = <&scmi_dvfs 1>;
127
			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
128
			capacity-dmips-mhz = <912>;
129
130
131
132
133
134
135
		};

		CPU5:cpu@500 {
			device_type = "cpu";
			compatible = "arm,armv8";
			reg = <0x500>;
			enable-method = "psci";
136
			clocks = <&scmi_dvfs 1>;
137
			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
138
			capacity-dmips-mhz = <912>;
139
140
141
142
143
144
145
		};

		CPU6:cpu@600 {
			device_type = "cpu";
			compatible = "arm,armv8";
			reg = <0x600>;
			enable-method = "psci";
146
			clocks = <&scmi_dvfs 1>;
147
			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
148
			capacity-dmips-mhz = <912>;
149
150
151
152
153
154
155
		};

		CPU7:cpu@700 {
			device_type = "cpu";
			compatible = "arm,armv8";
			reg = <0x700>;
			enable-method = "psci";
156
			clocks = <&scmi_dvfs 2>;
157
			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
158
			capacity-dmips-mhz = <1024>;
Usama Arif's avatar
Usama Arif committed
159
160
161
162
163
164
		};

	};

	memory@80000000 {
		device_type = "memory";
165
		reg = <0x0 0x80000000 0x0 0x7d000000>;
Usama Arif's avatar
Usama Arif committed
166
167
	};

168
169
170
171
172
173
174
175
176
177
178
	reserved-memory {
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;

		optee@0xfce00000 {
			reg = <0x00000000 0xfce00000 0 0x00200000>;
			no-map;
		};
	};

Usama Arif's avatar
Usama Arif committed
179
	psci {
180
		compatible = "arm,psci-1.0", "arm,psci-0.2";
Usama Arif's avatar
Usama Arif committed
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
		method = "smc";
	};

	sram: sram@6000000 {
		compatible = "mmio-sram";
		reg = <0x0 0x06000000 0x0 0x8000>;

		#address-cells = <1>;
		#size-cells = <1>;
		ranges = <0 0x0 0x06000000 0x8000>;

		cpu_scp_scmi_mem: scp-shmem@0 {
			compatible = "arm,scmi-shmem";
			reg = <0x0 0x80>;
		};
	};

	mbox_db_rx: mhu@45010000 {
199
		compatible = "arm,mhuv2-rx","arm,primecell";
Usama Arif's avatar
Usama Arif committed
200
201
202
		reg = <0x0 0x45010000 0x0 0x1000>;
		clocks = <&soc_refclk100mhz>;
		clock-names = "apb_pclk";
203
		#mbox-cells = <2>;
204
		interrupts = <0 317 4>;
Usama Arif's avatar
Usama Arif committed
205
206
		interrupt-names = "mhu_rx";
		mhu-protocol = "doorbell";
207
		arm,mhuv2-protocols = <0 1>;
Usama Arif's avatar
Usama Arif committed
208
209
210
	};

	mbox_db_tx: mhu@45000000 {
211
		compatible = "arm,mhuv2-tx","arm,primecell";
Usama Arif's avatar
Usama Arif committed
212
213
214
		reg = <0x0 0x45000000 0x0 0x1000>;
		clocks = <&soc_refclk100mhz>;
		clock-names = "apb_pclk";
215
		#mbox-cells = <2>;
Usama Arif's avatar
Usama Arif committed
216
217
		interrupt-names = "mhu_tx";
		mhu-protocol = "doorbell";
218
		arm,mhuv2-protocols = <0 1>;
Usama Arif's avatar
Usama Arif committed
219
220
221
222
223
	};

	scmi {
		compatible = "arm,scmi";
		mbox-names = "tx", "rx";
224
		mboxes = <&mbox_db_tx 0 0 &mbox_db_rx 0 0 >;
Usama Arif's avatar
Usama Arif committed
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
		shmem = <&cpu_scp_scmi_mem &cpu_scp_scmi_mem>;
		#address-cells = <1>;
		#size-cells = <0>;

		scmi_dvfs: protocol@13 {
			reg = <0x13>;
			#clock-cells = <1>;
		};

		scmi_clk: protocol@14 {
			reg = <0x14>;
			#clock-cells = <1>;
		};
	};

	gic: interrupt-controller@2c010000 {
		compatible = "arm,gic-600", "arm,gic-v3";
		#address-cells = <2>;
		#interrupt-cells = <3>;
		#size-cells = <2>;
		ranges;
		interrupt-controller;
		reg = <0x0 0x30000000 0 0x10000>, /* GICD */
Usama Arif's avatar
Usama Arif committed
248
		      <0x0 0x30080000 0 0x200000>; /* GICR */
Usama Arif's avatar
Usama Arif committed
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
		interrupts = <0x1 0x9 0x4>;
	};

	timer {
		compatible = "arm,armv8-timer";
		interrupts = <0x1 13 0x8>,
			     <0x1 14 0x8>,
			     <0x1 11 0x8>,
			     <0x1 10 0x8>;
	};

	soc_refclk100mhz: refclk100mhz {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <100000000>;
		clock-output-names = "apb_pclk";
	};

	soc_refclk60mhz: refclk60mhz {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <60000000>;
		clock-output-names = "iofpga_clk";
	};

	soc_uartclk:  uartclk {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <50000000>;
		clock-output-names = "uartclk";
	};

	soc_uart0: uart@7ff80000 {
		compatible = "arm,pl011", "arm,primecell";
		reg = <0x0 0x7ff80000 0x0 0x1000>;
		interrupts = <0x0 116 0x4>;
		clocks = <&soc_uartclk>, <&soc_refclk100mhz>;
		clock-names = "uartclk", "apb_pclk";
		status = "okay";
	};

	vencoder {
		compatible = "drm,virtual-encoder";

		port {
			vencoder_in: endpoint {
295
				remote-endpoint = <&dp_pl0_out0>;
Usama Arif's avatar
Usama Arif committed
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
			};
		};

		display-timings {
			panel-timing {
				clock-frequency = <25175000>;
				hactive = <640>;
				vactive = <480>;
				hfront-porch = <16>;
				hback-porch = <48>;
				hsync-len = <96>;
				vfront-porch = <10>;
				vback-porch = <33>;
				vsync-len = <2>;
			};
		};

	};

	hdlcd: hdlcd@7ff60000 {
		compatible = "arm,hdlcd";
		reg = <0x0 0x7ff60000 0x0 0x1000>;
		interrupts = <0x0 117 0x4>;
		clocks = <&fake_hdlcd_clk>;
		clock-names = "pxlclk";
321
		status = "disabled";
Usama Arif's avatar
Usama Arif committed
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371

		port {
			hdlcd_out: endpoint {
				remote-endpoint = <&vencoder_in>;
			};
		};
	};

	fake_hdlcd_clk: fake-hdlcd-clk {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <25175000>;
		clock-output-names = "pxlclk";
	};

	ethernet@18000000 {
		compatible = "smsc,lan91c111";
		reg = <0x0 0x18000000 0x0 0x10000>;
		interrupts = <0 109 4>;
	};

	kmi@1c060000 {
		compatible = "arm,pl050", "arm,primecell";
		reg = <0x0 0x001c060000 0x0 0x1000>;
		interrupts = <0 197 4>;
		clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
		clock-names = "KMIREFCLK", "apb_pclk";
	};

	kmi@1c070000 {
		compatible = "arm,pl050", "arm,primecell";
		reg = <0x0 0x001c070000 0x0 0x1000>;
		interrupts = <0 103 4>;
		clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
		clock-names = "KMIREFCLK", "apb_pclk";
	};

	bp_clock24mhz: clock24mhz {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <24000000>;
		clock-output-names = "bp:clock24mhz";
	};

	virtio_block@1c130000 {
		compatible = "virtio,mmio";
		reg = <0x0 0x1c130000 0x0 0x200>;
		interrupts = <0 204 4>;
	};

Usama Arif's avatar
Usama Arif committed
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
	sysreg: sysreg@1c010000 {
		compatible = "arm,vexpress-sysreg";
		reg = <0x0 0x001c010000 0x0 0x1000>;
		gpio-controller;
		#gpio-cells = <2>;
	};

	fixed_3v3: v2m-3v3 {
		compatible = "regulator-fixed";
		regulator-name = "3V3";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-always-on;
	};

	mmci@1c050000 {
		compatible = "arm,pl180", "arm,primecell";
		reg = <0x0 0x001c050000 0x0 0x1000>;
		interrupts = <0 107 0x4>,
			     <0 108 0x4>;
		cd-gpios = <&sysreg 0 0>;
		wp-gpios = <&sysreg 1 0>;
		bus-width = <8>;
		max-frequency = <12000000>;
		vmmc-supply = <&fixed_3v3>;
		clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
		clock-names = "mclk", "apb_pclk";
	};

Usama Arif's avatar
Usama Arif committed
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
	dp0: display@2cc00000 {
		#address-cells = <1>;
		#size-cells = <0>;
		compatible = "arm,mali-d71";
		reg = <0 0x2cc00000 0 0x20000>;
		interrupts = <0 69 4>;
		interrupt-names = "DPU";
		clocks = <&scmi_clk 0>;
		clock-names = "aclk";
		pl0: pipeline@0 {
			reg = <0>;
			clocks = <&scmi_clk 1>;
			clock-names = "pxclk";
			pl_id = <0>;
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					reg = <0>;
					dp_pl0_out0: endpoint {
						remote-endpoint = <&vencoder_in>;
					};
				};
			};
		};

		pl1: pipeline@1 {
			reg = <1>;
			clocks = <&scmi_clk 2>;
			clock-names = "pxclk";
			pl_id = <1>;
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					reg = <0>;
				};
			};
		};
	};
441
442
443
444
445
446
447
448
449
450
451
452
453

	ffa {
		compatible = "arm,ffa";
		conduit = "smc";
		mem_share_buffer = "tx";
	};

	firmware {
		optee {
		      compatible = "linaro,optee-tz";
		      method = "ffa";
		};
	};
Usama Arif's avatar
Usama Arif committed
454
};