xref: /openbmc/linux/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi (revision 8717c76ff38d8a6fa99cce4cccf7892288108ec8)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2019-2020 Texas Instruments Incorporated - https://www.ti.com/
4 *
5 * Product Link: https://www.ti.com/tool/J721EXSOMXEVM
6 */
7
8/dts-v1/;
9
10#include "k3-j721e.dtsi"
11
12/ {
13	memory@80000000 {
14		device_type = "memory";
15		/* 4G RAM */
16		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
17		      <0x00000008 0x80000000 0x00000000 0x80000000>;
18	};
19
20	reserved_memory: reserved-memory {
21		#address-cells = <2>;
22		#size-cells = <2>;
23		ranges;
24
25		secure_ddr: optee@9e800000 {
26			reg = <0x00 0x9e800000 0x00 0x01800000>;
27			alignment = <0x1000>;
28			no-map;
29		};
30
31		mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 {
32			compatible = "shared-dma-pool";
33			reg = <0x00 0xa0000000 0x00 0x100000>;
34			no-map;
35		};
36
37		mcu_r5fss0_core0_memory_region: r5f-memory@a0100000 {
38			compatible = "shared-dma-pool";
39			reg = <0x00 0xa0100000 0x00 0xf00000>;
40			no-map;
41		};
42
43		mcu_r5fss0_core1_dma_memory_region: r5f-dma-memory@a1000000 {
44			compatible = "shared-dma-pool";
45			reg = <0x00 0xa1000000 0x00 0x100000>;
46			no-map;
47		};
48
49		mcu_r5fss0_core1_memory_region: r5f-memory@a1100000 {
50			compatible = "shared-dma-pool";
51			reg = <0x00 0xa1100000 0x00 0xf00000>;
52			no-map;
53		};
54
55		main_r5fss0_core0_dma_memory_region: r5f-dma-memory@a2000000 {
56			compatible = "shared-dma-pool";
57			reg = <0x00 0xa2000000 0x00 0x100000>;
58			no-map;
59		};
60
61		main_r5fss0_core0_memory_region: r5f-memory@a2100000 {
62			compatible = "shared-dma-pool";
63			reg = <0x00 0xa2100000 0x00 0xf00000>;
64			no-map;
65		};
66
67		main_r5fss0_core1_dma_memory_region: r5f-dma-memory@a3000000 {
68			compatible = "shared-dma-pool";
69			reg = <0x00 0xa3000000 0x00 0x100000>;
70			no-map;
71		};
72
73		main_r5fss0_core1_memory_region: r5f-memory@a3100000 {
74			compatible = "shared-dma-pool";
75			reg = <0x00 0xa3100000 0x00 0xf00000>;
76			no-map;
77		};
78
79		main_r5fss1_core0_dma_memory_region: r5f-dma-memory@a4000000 {
80			compatible = "shared-dma-pool";
81			reg = <0x00 0xa4000000 0x00 0x100000>;
82			no-map;
83		};
84
85		main_r5fss1_core0_memory_region: r5f-memory@a4100000 {
86			compatible = "shared-dma-pool";
87			reg = <0x00 0xa4100000 0x00 0xf00000>;
88			no-map;
89		};
90
91		main_r5fss1_core1_dma_memory_region: r5f-dma-memory@a5000000 {
92			compatible = "shared-dma-pool";
93			reg = <0x00 0xa5000000 0x00 0x100000>;
94			no-map;
95		};
96
97		main_r5fss1_core1_memory_region: r5f-memory@a5100000 {
98			compatible = "shared-dma-pool";
99			reg = <0x00 0xa5100000 0x00 0xf00000>;
100			no-map;
101		};
102
103		c66_1_dma_memory_region: c66-dma-memory@a6000000 {
104			compatible = "shared-dma-pool";
105			reg = <0x00 0xa6000000 0x00 0x100000>;
106			no-map;
107		};
108
109		c66_0_memory_region: c66-memory@a6100000 {
110			compatible = "shared-dma-pool";
111			reg = <0x00 0xa6100000 0x00 0xf00000>;
112			no-map;
113		};
114
115		c66_0_dma_memory_region: c66-dma-memory@a7000000 {
116			compatible = "shared-dma-pool";
117			reg = <0x00 0xa7000000 0x00 0x100000>;
118			no-map;
119		};
120
121		c66_1_memory_region: c66-memory@a7100000 {
122			compatible = "shared-dma-pool";
123			reg = <0x00 0xa7100000 0x00 0xf00000>;
124			no-map;
125		};
126
127		c71_0_dma_memory_region: c71-dma-memory@a8000000 {
128			compatible = "shared-dma-pool";
129			reg = <0x00 0xa8000000 0x00 0x100000>;
130			no-map;
131		};
132
133		c71_0_memory_region: c71-memory@a8100000 {
134			compatible = "shared-dma-pool";
135			reg = <0x00 0xa8100000 0x00 0xf00000>;
136			no-map;
137		};
138
139		rtos_ipc_memory_region: ipc-memories@aa000000 {
140			reg = <0x00 0xaa000000 0x00 0x01c00000>;
141			alignment = <0x1000>;
142			no-map;
143		};
144	};
145};
146
147&wkup_pmx0 {
148	wkup_i2c0_pins_default: wkup-i2c0-default-pins {
149		pinctrl-single,pins = <
150			J721E_WKUP_IOPAD(0xf8, PIN_INPUT_PULLUP, 0) /* (J25) WKUP_I2C0_SCL */
151			J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */
152		>;
153	};
154
155	mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins {
156		pinctrl-single,pins = <
157			J721E_WKUP_IOPAD(0x0000, PIN_OUTPUT, 0) /* MCU_OSPI0_CLK */
158			J721E_WKUP_IOPAD(0x0008, PIN_INPUT, 0)  /* MCU_OSPI0_DQS */
159			J721E_WKUP_IOPAD(0x000c, PIN_INPUT, 0)  /* MCU_OSPI0_D0 */
160			J721E_WKUP_IOPAD(0x0010, PIN_INPUT, 0)  /* MCU_OSPI0_D1 */
161			J721E_WKUP_IOPAD(0x0014, PIN_INPUT, 0)  /* MCU_OSPI0_D2 */
162			J721E_WKUP_IOPAD(0x0018, PIN_INPUT, 0)  /* MCU_OSPI0_D3 */
163			J721E_WKUP_IOPAD(0x001c, PIN_INPUT, 0)  /* MCU_OSPI0_D4 */
164			J721E_WKUP_IOPAD(0x0020, PIN_INPUT, 0)  /* MCU_OSPI0_D5 */
165			J721E_WKUP_IOPAD(0x0024, PIN_INPUT, 0)  /* MCU_OSPI0_D6 */
166			J721E_WKUP_IOPAD(0x0028, PIN_INPUT, 0)  /* MCU_OSPI0_D7 */
167			J721E_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* MCU_OSPI0_CSn0 */
168		>;
169	};
170
171	mcu_fss0_hpb0_pins_default: mcu-fss0-hpb0-default-pins {
172		pinctrl-single,pins = <
173			J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 1)  /* MCU_HYPERBUS0_CK */
174			J721E_WKUP_IOPAD(0x4, PIN_OUTPUT, 1)  /* MCU_HYPERBUS0_CKn */
175			J721E_WKUP_IOPAD(0x2c, PIN_OUTPUT, 1) /* MCU_HYPERBUS0_CSn0 */
176			J721E_WKUP_IOPAD(0x54, PIN_OUTPUT, 3) /* MCU_HYPERBUS0_CSn1 */
177			J721E_WKUP_IOPAD(0x30, PIN_OUTPUT, 1) /* MCU_HYPERBUS0_RESETn */
178			J721E_WKUP_IOPAD(0x8, PIN_INPUT, 1)   /* MCU_HYPERBUS0_RWDS */
179			J721E_WKUP_IOPAD(0xc, PIN_INPUT, 1)   /* MCU_HYPERBUS0_DQ0 */
180			J721E_WKUP_IOPAD(0x10, PIN_INPUT, 1)  /* MCU_HYPERBUS0_DQ1 */
181			J721E_WKUP_IOPAD(0x14, PIN_INPUT, 1)  /* MCU_HYPERBUS0_DQ2 */
182			J721E_WKUP_IOPAD(0x18, PIN_INPUT, 1)  /* MCU_HYPERBUS0_DQ3 */
183			J721E_WKUP_IOPAD(0x1c, PIN_INPUT, 1)  /* MCU_HYPERBUS0_DQ4 */
184			J721E_WKUP_IOPAD(0x20, PIN_INPUT, 1)  /* MCU_HYPERBUS0_DQ5 */
185			J721E_WKUP_IOPAD(0x24, PIN_INPUT, 1)  /* MCU_HYPERBUS0_DQ6 */
186			J721E_WKUP_IOPAD(0x28, PIN_INPUT, 1)  /* MCU_HYPERBUS0_DQ7 */
187		>;
188	};
189};
190
191&wkup_i2c0 {
192	status = "okay";
193	pinctrl-names = "default";
194	pinctrl-0 = <&wkup_i2c0_pins_default>;
195	clock-frequency = <400000>;
196
197	eeprom@50 {
198		/* CAV24C256WE-GT3 */
199		compatible = "atmel,24c256";
200		reg = <0x50>;
201	};
202};
203
204&ospi0 {
205	pinctrl-names = "default";
206	pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
207
208	flash@0 {
209		compatible = "jedec,spi-nor";
210		reg = <0x0>;
211		spi-tx-bus-width = <8>;
212		spi-rx-bus-width = <8>;
213		spi-max-frequency = <25000000>;
214		cdns,tshsl-ns = <60>;
215		cdns,tsd2d-ns = <60>;
216		cdns,tchsh-ns = <60>;
217		cdns,tslch-ns = <60>;
218		cdns,read-delay = <0>;
219
220		partitions {
221			compatible = "fixed-partitions";
222			#address-cells = <1>;
223			#size-cells = <1>;
224
225			partition@0 {
226				label = "ospi.tiboot3";
227				reg = <0x0 0x80000>;
228			};
229
230			partition@80000 {
231				label = "ospi.tispl";
232				reg = <0x80000 0x200000>;
233			};
234
235			partition@280000 {
236				label = "ospi.u-boot";
237				reg = <0x280000 0x400000>;
238			};
239
240			partition@680000 {
241				label = "ospi.env";
242				reg = <0x680000 0x20000>;
243			};
244
245			partition@6a0000 {
246				label = "ospi.env.backup";
247				reg = <0x6a0000 0x20000>;
248			};
249
250			partition@6c0000 {
251				label = "ospi.sysfw";
252				reg = <0x6c0000 0x100000>;
253			};
254
255			partition@800000 {
256				label = "ospi.rootfs";
257				reg = <0x800000 0x37c0000>;
258			};
259
260			partition@3fe0000 {
261				label = "ospi.phypattern";
262				reg = <0x3fe0000 0x20000>;
263			};
264		};
265	};
266};
267
268&hbmc {
269	/* OSPI and HBMC are muxed inside FSS, Bootloader will enable
270	 * appropriate node based on board detection
271	 */
272	status = "disabled";
273	pinctrl-names = "default";
274	pinctrl-0 = <&mcu_fss0_hpb0_pins_default>;
275	ranges = <0x00 0x00 0x05 0x00000000 0x4000000>, /* 64MB Flash on CS0 */
276		 <0x01 0x00 0x05 0x04000000 0x800000>; /* 8MB RAM on CS1 */
277
278	flash@0,0 {
279		compatible = "cypress,hyperflash", "cfi-flash";
280		reg = <0x00 0x00 0x4000000>;
281
282		partitions {
283			compatible = "fixed-partitions";
284			#address-cells = <1>;
285			#size-cells = <1>;
286
287			partition@0 {
288				label = "hbmc.tiboot3";
289				reg = <0x0 0x80000>;
290			};
291
292			partition@80000 {
293				label = "hbmc.tispl";
294				reg = <0x80000 0x200000>;
295			};
296
297			partition@280000 {
298				label = "hbmc.u-boot";
299				reg = <0x280000 0x400000>;
300			};
301
302			partition@680000 {
303				label = "hbmc.env";
304				reg = <0x680000 0x40000>;
305			};
306
307			partition@6c0000 {
308				label = "hbmc.sysfw";
309				reg = <0x6c0000 0x100000>;
310			};
311
312			partition@800000 {
313				label = "hbmc.rootfs";
314				reg = <0x800000 0x3800000>;
315			};
316		};
317	};
318};
319
320&mailbox0_cluster0 {
321	status = "okay";
322	interrupts = <436>;
323
324	mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
325		ti,mbox-rx = <0 0 0>;
326		ti,mbox-tx = <1 0 0>;
327	};
328
329	mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
330		ti,mbox-rx = <2 0 0>;
331		ti,mbox-tx = <3 0 0>;
332	};
333};
334
335&mailbox0_cluster1 {
336	status = "okay";
337	interrupts = <432>;
338
339	mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
340		ti,mbox-rx = <0 0 0>;
341		ti,mbox-tx = <1 0 0>;
342	};
343
344	mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
345		ti,mbox-rx = <2 0 0>;
346		ti,mbox-tx = <3 0 0>;
347	};
348};
349
350&mailbox0_cluster2 {
351	status = "okay";
352	interrupts = <428>;
353
354	mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 {
355		ti,mbox-rx = <0 0 0>;
356		ti,mbox-tx = <1 0 0>;
357	};
358
359	mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 {
360		ti,mbox-rx = <2 0 0>;
361		ti,mbox-tx = <3 0 0>;
362	};
363};
364
365&mailbox0_cluster3 {
366	status = "okay";
367	interrupts = <424>;
368
369	mbox_c66_0: mbox-c66-0 {
370		ti,mbox-rx = <0 0 0>;
371		ti,mbox-tx = <1 0 0>;
372	};
373
374	mbox_c66_1: mbox-c66-1 {
375		ti,mbox-rx = <2 0 0>;
376		ti,mbox-tx = <3 0 0>;
377	};
378};
379
380&mailbox0_cluster4 {
381	status = "okay";
382	interrupts = <420>;
383
384	mbox_c71_0: mbox-c71-0 {
385		ti,mbox-rx = <0 0 0>;
386		ti,mbox-tx = <1 0 0>;
387	};
388};
389
390&mcu_r5fss0_core0 {
391	mboxes = <&mailbox0_cluster0>, <&mbox_mcu_r5fss0_core0>;
392	memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
393			<&mcu_r5fss0_core0_memory_region>;
394};
395
396&mcu_r5fss0_core1 {
397	mboxes = <&mailbox0_cluster0>, <&mbox_mcu_r5fss0_core1>;
398	memory-region = <&mcu_r5fss0_core1_dma_memory_region>,
399			<&mcu_r5fss0_core1_memory_region>;
400};
401
402&main_r5fss0_core0 {
403	mboxes = <&mailbox0_cluster1>, <&mbox_main_r5fss0_core0>;
404	memory-region = <&main_r5fss0_core0_dma_memory_region>,
405			<&main_r5fss0_core0_memory_region>;
406};
407
408&main_r5fss0_core1 {
409	mboxes = <&mailbox0_cluster1>, <&mbox_main_r5fss0_core1>;
410	memory-region = <&main_r5fss0_core1_dma_memory_region>,
411			<&main_r5fss0_core1_memory_region>;
412};
413
414&main_r5fss1_core0 {
415	mboxes = <&mailbox0_cluster2>, <&mbox_main_r5fss1_core0>;
416	memory-region = <&main_r5fss1_core0_dma_memory_region>,
417			<&main_r5fss1_core0_memory_region>;
418};
419
420&main_r5fss1_core1 {
421	mboxes = <&mailbox0_cluster2>, <&mbox_main_r5fss1_core1>;
422	memory-region = <&main_r5fss1_core1_dma_memory_region>,
423			<&main_r5fss1_core1_memory_region>;
424};
425
426&c66_0 {
427	mboxes = <&mailbox0_cluster3>, <&mbox_c66_0>;
428	memory-region = <&c66_0_dma_memory_region>,
429			<&c66_0_memory_region>;
430};
431
432&c66_1 {
433	mboxes = <&mailbox0_cluster3>, <&mbox_c66_1>;
434	memory-region = <&c66_1_dma_memory_region>,
435			<&c66_1_memory_region>;
436};
437
438&c71_0 {
439	mboxes = <&mailbox0_cluster4>, <&mbox_c71_0>;
440	memory-region = <&c71_0_dma_memory_region>,
441			<&c71_0_memory_region>;
442};
443