1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for AM642 SoC Family Main Domain peripherals
4 *
5 * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
6 */
7
8#include <dt-bindings/phy/phy-cadence.h>
9#include <dt-bindings/phy/phy-ti.h>
10
11/ {
12	serdes_refclk: clock-cmnrefclk {
13		#clock-cells = <0>;
14		compatible = "fixed-clock";
15		clock-frequency = <0>;
16	};
17};
18
19&cbass_main {
20	oc_sram: sram@70000000 {
21		compatible = "mmio-sram";
22		reg = <0x00 0x70000000 0x00 0x200000>;
23		#address-cells = <1>;
24		#size-cells = <1>;
25		ranges = <0x0 0x00 0x70000000 0x200000>;
26
27		tfa-sram@1c0000 {
28			reg = <0x1c0000 0x20000>;
29		};
30
31		dmsc-sram@1e0000 {
32			reg = <0x1e0000 0x1c000>;
33		};
34
35		sproxy-sram@1fc000 {
36			reg = <0x1fc000 0x4000>;
37		};
38	};
39
40	main_conf: syscon@43000000 {
41		compatible = "ti,j721e-system-controller", "syscon", "simple-mfd";
42		reg = <0x0 0x43000000 0x0 0x20000>;
43		#address-cells = <1>;
44		#size-cells = <1>;
45		ranges = <0x0 0x0 0x43000000 0x20000>;
46
47		chipid@14 {
48			compatible = "ti,am654-chipid";
49			reg = <0x00000014 0x4>;
50		};
51
52		serdes_ln_ctrl: mux-controller {
53			compatible = "mmio-mux";
54			#mux-control-cells = <1>;
55			mux-reg-masks = <0x4080 0x3>; /* SERDES0 lane0 select */
56		};
57
58		phy_gmii_sel: phy@4044 {
59			compatible = "ti,am654-phy-gmii-sel";
60			reg = <0x4044 0x8>;
61			#phy-cells = <1>;
62		};
63
64		epwm_tbclk: clock-controller@4140 {
65			compatible = "ti,am64-epwm-tbclk";
66			reg = <0x4130 0x4>;
67			#clock-cells = <1>;
68		};
69	};
70
71	gic500: interrupt-controller@1800000 {
72		compatible = "arm,gic-v3";
73		#address-cells = <2>;
74		#size-cells = <2>;
75		ranges;
76		#interrupt-cells = <3>;
77		interrupt-controller;
78		reg = <0x00 0x01800000 0x00 0x10000>,	/* GICD */
79		      <0x00 0x01840000 0x00 0xC0000>,	/* GICR */
80		      <0x01 0x00000000 0x00 0x2000>,	/* GICC */
81		      <0x01 0x00010000 0x00 0x1000>,	/* GICH */
82		      <0x01 0x00020000 0x00 0x2000>;	/* GICV */
83		/*
84		 * vcpumntirq:
85		 * virtual CPU interface maintenance interrupt
86		 */
87		interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
88
89		gic_its: msi-controller@1820000 {
90			compatible = "arm,gic-v3-its";
91			reg = <0x00 0x01820000 0x00 0x10000>;
92			socionext,synquacer-pre-its = <0x1000000 0x400000>;
93			msi-controller;
94			#msi-cells = <1>;
95		};
96	};
97
98	dmss: bus@48000000 {
99		compatible = "simple-mfd";
100		#address-cells = <2>;
101		#size-cells = <2>;
102		dma-ranges;
103		ranges = <0x00 0x48000000 0x00 0x48000000 0x00 0x06400000>;
104
105		ti,sci-dev-id = <25>;
106
107		secure_proxy_main: mailbox@4d000000 {
108			compatible = "ti,am654-secure-proxy";
109			#mbox-cells = <1>;
110			reg-names = "target_data", "rt", "scfg";
111			reg = <0x00 0x4d000000 0x00 0x80000>,
112			      <0x00 0x4a600000 0x00 0x80000>,
113			      <0x00 0x4a400000 0x00 0x80000>;
114			interrupt-names = "rx_012";
115			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
116		};
117
118		inta_main_dmss: interrupt-controller@48000000 {
119			compatible = "ti,sci-inta";
120			reg = <0x00 0x48000000 0x00 0x100000>;
121			#interrupt-cells = <0>;
122			interrupt-controller;
123			interrupt-parent = <&gic500>;
124			msi-controller;
125			ti,sci = <&dmsc>;
126			ti,sci-dev-id = <28>;
127			ti,interrupt-ranges = <4 68 36>;
128			ti,unmapped-event-sources = <&main_bcdma>, <&main_pktdma>;
129		};
130
131		main_bcdma: dma-controller@485c0100 {
132			compatible = "ti,am64-dmss-bcdma";
133			reg = <0x00 0x485c0100 0x00 0x100>,
134			      <0x00 0x4c000000 0x00 0x20000>,
135			      <0x00 0x4a820000 0x00 0x20000>,
136			      <0x00 0x4aa40000 0x00 0x20000>,
137			      <0x00 0x4bc00000 0x00 0x100000>;
138			reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt";
139			msi-parent = <&inta_main_dmss>;
140			#dma-cells = <3>;
141
142			ti,sci = <&dmsc>;
143			ti,sci-dev-id = <26>;
144			ti,sci-rm-range-bchan = <0x20>; /* BLOCK_COPY_CHAN */
145			ti,sci-rm-range-rchan = <0x21>; /* SPLIT_TR_RX_CHAN */
146			ti,sci-rm-range-tchan = <0x22>; /* SPLIT_TR_TX_CHAN */
147		};
148
149		main_pktdma: dma-controller@485c0000 {
150			compatible = "ti,am64-dmss-pktdma";
151			reg = <0x00 0x485c0000 0x00 0x100>,
152			      <0x00 0x4a800000 0x00 0x20000>,
153			      <0x00 0x4aa00000 0x00 0x40000>,
154			      <0x00 0x4b800000 0x00 0x400000>;
155			reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt";
156			msi-parent = <&inta_main_dmss>;
157			#dma-cells = <2>;
158
159			ti,sci = <&dmsc>;
160			ti,sci-dev-id = <30>;
161			ti,sci-rm-range-tchan = <0x23>, /* UNMAPPED_TX_CHAN */
162						<0x24>, /* CPSW_TX_CHAN */
163						<0x25>, /* SAUL_TX_0_CHAN */
164						<0x26>, /* SAUL_TX_1_CHAN */
165						<0x27>, /* ICSSG_0_TX_CHAN */
166						<0x28>; /* ICSSG_1_TX_CHAN */
167			ti,sci-rm-range-tflow = <0x10>, /* RING_UNMAPPED_TX_CHAN */
168						<0x11>, /* RING_CPSW_TX_CHAN */
169						<0x12>, /* RING_SAUL_TX_0_CHAN */
170						<0x13>, /* RING_SAUL_TX_1_CHAN */
171						<0x14>, /* RING_ICSSG_0_TX_CHAN */
172						<0x15>; /* RING_ICSSG_1_TX_CHAN */
173			ti,sci-rm-range-rchan = <0x29>, /* UNMAPPED_RX_CHAN */
174						<0x2b>, /* CPSW_RX_CHAN */
175						<0x2d>, /* SAUL_RX_0_CHAN */
176						<0x2f>, /* SAUL_RX_1_CHAN */
177						<0x31>, /* SAUL_RX_2_CHAN */
178						<0x33>, /* SAUL_RX_3_CHAN */
179						<0x35>, /* ICSSG_0_RX_CHAN */
180						<0x37>; /* ICSSG_1_RX_CHAN */
181			ti,sci-rm-range-rflow = <0x2a>, /* FLOW_UNMAPPED_RX_CHAN */
182						<0x2c>, /* FLOW_CPSW_RX_CHAN */
183						<0x2e>, /* FLOW_SAUL_RX_0/1_CHAN */
184						<0x32>, /* FLOW_SAUL_RX_2/3_CHAN */
185						<0x36>, /* FLOW_ICSSG_0_RX_CHAN */
186						<0x38>; /* FLOW_ICSSG_1_RX_CHAN */
187		};
188	};
189
190	dmsc: system-controller@44043000 {
191		compatible = "ti,k2g-sci";
192		ti,host-id = <12>;
193		mbox-names = "rx", "tx";
194		mboxes = <&secure_proxy_main 12>,
195			<&secure_proxy_main 13>;
196		reg-names = "debug_messages";
197		reg = <0x00 0x44043000 0x00 0xfe0>;
198
199		k3_pds: power-controller {
200			compatible = "ti,sci-pm-domain";
201			#power-domain-cells = <2>;
202		};
203
204		k3_clks: clock-controller {
205			compatible = "ti,k2g-sci-clk";
206			#clock-cells = <2>;
207		};
208
209		k3_reset: reset-controller {
210			compatible = "ti,sci-reset";
211			#reset-cells = <2>;
212		};
213	};
214
215	main_pmx0: pinctrl@f4000 {
216		compatible = "pinctrl-single";
217		reg = <0x00 0xf4000 0x00 0x2d0>;
218		#pinctrl-cells = <1>;
219		pinctrl-single,register-width = <32>;
220		pinctrl-single,function-mask = <0xffffffff>;
221	};
222
223	main_timer0: timer@2400000 {
224		compatible = "ti,am654-timer";
225		reg = <0x00 0x2400000 0x00 0x400>;
226		interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
227		clocks = <&k3_clks 36 1>;
228		clock-names = "fck";
229		assigned-clocks = <&k3_clks 36 1>;
230		assigned-clock-parents = <&k3_clks 36 2>;
231		power-domains = <&k3_pds 36 TI_SCI_PD_EXCLUSIVE>;
232		ti,timer-pwm;
233	};
234
235	main_timer1: timer@2410000 {
236		compatible = "ti,am654-timer";
237		reg = <0x00 0x2410000 0x00 0x400>;
238		interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
239		clocks = <&k3_clks 37 1>;
240		clock-names = "fck";
241		assigned-clocks = <&k3_clks 37 1>;
242		assigned-clock-parents = <&k3_clks 37 2>;
243		power-domains = <&k3_pds 37 TI_SCI_PD_EXCLUSIVE>;
244		ti,timer-pwm;
245	};
246
247	main_timer2: timer@2420000 {
248		compatible = "ti,am654-timer";
249		reg = <0x00 0x2420000 0x00 0x400>;
250		interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
251		clocks = <&k3_clks 38 1>;
252		clock-names = "fck";
253		assigned-clocks = <&k3_clks 38 1>;
254		assigned-clock-parents = <&k3_clks 38 2>;
255		power-domains = <&k3_pds 38 TI_SCI_PD_EXCLUSIVE>;
256		ti,timer-pwm;
257	};
258
259	main_timer3: timer@2430000 {
260		compatible = "ti,am654-timer";
261		reg = <0x00 0x2430000 0x00 0x400>;
262		interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
263		clocks = <&k3_clks 39 1>;
264		clock-names = "fck";
265		assigned-clocks = <&k3_clks 39 1>;
266		assigned-clock-parents = <&k3_clks 39 2>;
267		power-domains = <&k3_pds 39 TI_SCI_PD_EXCLUSIVE>;
268		ti,timer-pwm;
269	};
270
271	main_timer4: timer@2440000 {
272		compatible = "ti,am654-timer";
273		reg = <0x00 0x2440000 0x00 0x400>;
274		interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
275		clocks = <&k3_clks 40 1>;
276		clock-names = "fck";
277		assigned-clocks = <&k3_clks 40 1>;
278		assigned-clock-parents = <&k3_clks 40 2>;
279		power-domains = <&k3_pds 40 TI_SCI_PD_EXCLUSIVE>;
280		ti,timer-pwm;
281	};
282
283	main_timer5: timer@2450000 {
284		compatible = "ti,am654-timer";
285		reg = <0x00 0x2450000 0x00 0x400>;
286		interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
287		clocks = <&k3_clks 41 1>;
288		clock-names = "fck";
289		assigned-clocks = <&k3_clks 41 1>;
290		assigned-clock-parents = <&k3_clks 41 2>;
291		power-domains = <&k3_pds 41 TI_SCI_PD_EXCLUSIVE>;
292		ti,timer-pwm;
293	};
294
295	main_timer6: timer@2460000 {
296		compatible = "ti,am654-timer";
297		reg = <0x00 0x2460000 0x00 0x400>;
298		interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
299		clocks = <&k3_clks 42 1>;
300		clock-names = "fck";
301		assigned-clocks = <&k3_clks 42 1>;
302		assigned-clock-parents = <&k3_clks 42 2>;
303		power-domains = <&k3_pds 42 TI_SCI_PD_EXCLUSIVE>;
304		ti,timer-pwm;
305	};
306
307	main_timer7: timer@2470000 {
308		compatible = "ti,am654-timer";
309		reg = <0x00 0x2470000 0x00 0x400>;
310		interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
311		clocks = <&k3_clks 43 1>;
312		clock-names = "fck";
313		assigned-clocks = <&k3_clks 43 1>;
314		assigned-clock-parents = <&k3_clks 43 2>;
315		power-domains = <&k3_pds 43 TI_SCI_PD_EXCLUSIVE>;
316		ti,timer-pwm;
317	};
318
319	main_timer8: timer@2480000 {
320		compatible = "ti,am654-timer";
321		reg = <0x00 0x2480000 0x00 0x400>;
322		interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
323		clocks = <&k3_clks 44 1>;
324		clock-names = "fck";
325		assigned-clocks = <&k3_clks 44 1>;
326		assigned-clock-parents = <&k3_clks 44 2>;
327		power-domains = <&k3_pds 44 TI_SCI_PD_EXCLUSIVE>;
328		ti,timer-pwm;
329	};
330
331	main_timer9: timer@2490000 {
332		compatible = "ti,am654-timer";
333		reg = <0x00 0x2490000 0x00 0x400>;
334		interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
335		clocks = <&k3_clks 45 1>;
336		clock-names = "fck";
337		assigned-clocks = <&k3_clks 45 1>;
338		assigned-clock-parents = <&k3_clks 45 2>;
339		power-domains = <&k3_pds 45 TI_SCI_PD_EXCLUSIVE>;
340		ti,timer-pwm;
341	};
342
343	main_timer10: timer@24a0000 {
344		compatible = "ti,am654-timer";
345		reg = <0x00 0x24a0000 0x00 0x400>;
346		interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
347		clocks = <&k3_clks 46 1>;
348		clock-names = "fck";
349		assigned-clocks = <&k3_clks 46 1>;
350		assigned-clock-parents = <&k3_clks 46 2>;
351		power-domains = <&k3_pds 46 TI_SCI_PD_EXCLUSIVE>;
352		ti,timer-pwm;
353	};
354
355	main_timer11: timer@24b0000 {
356		compatible = "ti,am654-timer";
357		reg = <0x00 0x24b0000 0x00 0x400>;
358		interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
359		clocks = <&k3_clks 47 1>;
360		clock-names = "fck";
361		assigned-clocks = <&k3_clks 47 1>;
362		assigned-clock-parents = <&k3_clks 47 2>;
363		power-domains = <&k3_pds 47 TI_SCI_PD_EXCLUSIVE>;
364		ti,timer-pwm;
365	};
366
367	main_esm: esm@420000 {
368		compatible = "ti,j721e-esm";
369		reg = <0x00 0x420000 0x00 0x1000>;
370		ti,esm-pins = <160>, <161>;
371	};
372
373	main_uart0: serial@2800000 {
374		compatible = "ti,am64-uart", "ti,am654-uart";
375		reg = <0x00 0x02800000 0x00 0x100>;
376		interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
377		clock-frequency = <48000000>;
378		power-domains = <&k3_pds 146 TI_SCI_PD_EXCLUSIVE>;
379		clocks = <&k3_clks 146 0>;
380		clock-names = "fclk";
381		status = "disabled";
382	};
383
384	main_uart1: serial@2810000 {
385		compatible = "ti,am64-uart", "ti,am654-uart";
386		reg = <0x00 0x02810000 0x00 0x100>;
387		interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>;
388		clock-frequency = <48000000>;
389		power-domains = <&k3_pds 152 TI_SCI_PD_EXCLUSIVE>;
390		clocks = <&k3_clks 152 0>;
391		clock-names = "fclk";
392		status = "disabled";
393	};
394
395	main_uart2: serial@2820000 {
396		compatible = "ti,am64-uart", "ti,am654-uart";
397		reg = <0x00 0x02820000 0x00 0x100>;
398		interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
399		clock-frequency = <48000000>;
400		power-domains = <&k3_pds 153 TI_SCI_PD_EXCLUSIVE>;
401		clocks = <&k3_clks 153 0>;
402		clock-names = "fclk";
403		status = "disabled";
404	};
405
406	main_uart3: serial@2830000 {
407		compatible = "ti,am64-uart", "ti,am654-uart";
408		reg = <0x00 0x02830000 0x00 0x100>;
409		interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>;
410		clock-frequency = <48000000>;
411		power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
412		clocks = <&k3_clks 154 0>;
413		clock-names = "fclk";
414		status = "disabled";
415	};
416
417	main_uart4: serial@2840000 {
418		compatible = "ti,am64-uart", "ti,am654-uart";
419		reg = <0x00 0x02840000 0x00 0x100>;
420		interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>;
421		clock-frequency = <48000000>;
422		power-domains = <&k3_pds 155 TI_SCI_PD_EXCLUSIVE>;
423		clocks = <&k3_clks 155 0>;
424		clock-names = "fclk";
425		status = "disabled";
426	};
427
428	main_uart5: serial@2850000 {
429		compatible = "ti,am64-uart", "ti,am654-uart";
430		reg = <0x00 0x02850000 0x00 0x100>;
431		interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>;
432		clock-frequency = <48000000>;
433		power-domains = <&k3_pds 156 TI_SCI_PD_EXCLUSIVE>;
434		clocks = <&k3_clks 156 0>;
435		clock-names = "fclk";
436		status = "disabled";
437	};
438
439	main_uart6: serial@2860000 {
440		compatible = "ti,am64-uart", "ti,am654-uart";
441		reg = <0x00 0x02860000 0x00 0x100>;
442		interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
443		clock-frequency = <48000000>;
444		power-domains = <&k3_pds 158 TI_SCI_PD_EXCLUSIVE>;
445		clocks = <&k3_clks 158 0>;
446		clock-names = "fclk";
447		status = "disabled";
448	};
449
450	main_i2c0: i2c@20000000 {
451		compatible = "ti,am64-i2c", "ti,omap4-i2c";
452		reg = <0x00 0x20000000 0x00 0x100>;
453		interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
454		#address-cells = <1>;
455		#size-cells = <0>;
456		power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>;
457		clocks = <&k3_clks 102 2>;
458		clock-names = "fck";
459		status = "disabled";
460	};
461
462	main_i2c1: i2c@20010000 {
463		compatible = "ti,am64-i2c", "ti,omap4-i2c";
464		reg = <0x00 0x20010000 0x00 0x100>;
465		interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
466		#address-cells = <1>;
467		#size-cells = <0>;
468		power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>;
469		clocks = <&k3_clks 103 2>;
470		clock-names = "fck";
471		status = "disabled";
472	};
473
474	main_i2c2: i2c@20020000 {
475		compatible = "ti,am64-i2c", "ti,omap4-i2c";
476		reg = <0x00 0x20020000 0x00 0x100>;
477		interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
478		#address-cells = <1>;
479		#size-cells = <0>;
480		power-domains = <&k3_pds 104 TI_SCI_PD_EXCLUSIVE>;
481		clocks = <&k3_clks 104 2>;
482		clock-names = "fck";
483		status = "disabled";
484	};
485
486	main_i2c3: i2c@20030000 {
487		compatible = "ti,am64-i2c", "ti,omap4-i2c";
488		reg = <0x00 0x20030000 0x00 0x100>;
489		interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
490		#address-cells = <1>;
491		#size-cells = <0>;
492		power-domains = <&k3_pds 105 TI_SCI_PD_EXCLUSIVE>;
493		clocks = <&k3_clks 105 2>;
494		clock-names = "fck";
495		status = "disabled";
496	};
497
498	main_spi0: spi@20100000 {
499		compatible = "ti,am654-mcspi", "ti,omap4-mcspi";
500		reg = <0x00 0x20100000 0x00 0x400>;
501		interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
502		#address-cells = <1>;
503		#size-cells = <0>;
504		power-domains = <&k3_pds 141 TI_SCI_PD_EXCLUSIVE>;
505		clocks = <&k3_clks 141 0>;
506		dmas = <&main_pktdma 0xc300 0>, <&main_pktdma 0x4300 0>;
507		dma-names = "tx0", "rx0";
508		status = "disabled";
509	};
510
511	main_spi1: spi@20110000 {
512		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
513		reg = <0x00 0x20110000 0x00 0x400>;
514		interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
515		#address-cells = <1>;
516		#size-cells = <0>;
517		power-domains = <&k3_pds 142 TI_SCI_PD_EXCLUSIVE>;
518		clocks = <&k3_clks 142 0>;
519		status = "disabled";
520	};
521
522	main_spi2: spi@20120000 {
523		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
524		reg = <0x00 0x20120000 0x00 0x400>;
525		interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
526		#address-cells = <1>;
527		#size-cells = <0>;
528		power-domains = <&k3_pds 143 TI_SCI_PD_EXCLUSIVE>;
529		clocks = <&k3_clks 143 0>;
530		status = "disabled";
531	};
532
533	main_spi3: spi@20130000 {
534		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
535		reg = <0x00 0x20130000 0x00 0x400>;
536		interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
537		#address-cells = <1>;
538		#size-cells = <0>;
539		power-domains = <&k3_pds 144 TI_SCI_PD_EXCLUSIVE>;
540		clocks = <&k3_clks 144 0>;
541		status = "disabled";
542	};
543
544	main_spi4: spi@20140000 {
545		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
546		reg = <0x00 0x20140000 0x00 0x400>;
547		interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>;
548		#address-cells = <1>;
549		#size-cells = <0>;
550		power-domains = <&k3_pds 145 TI_SCI_PD_EXCLUSIVE>;
551		clocks = <&k3_clks 145 0>;
552		status = "disabled";
553	};
554
555	main_gpio_intr: interrupt-controller@a00000 {
556		compatible = "ti,sci-intr";
557		reg = <0x00 0x00a00000 0x00 0x800>;
558		ti,intr-trigger-type = <1>;
559		interrupt-controller;
560		interrupt-parent = <&gic500>;
561		#interrupt-cells = <1>;
562		ti,sci = <&dmsc>;
563		ti,sci-dev-id = <3>;
564		ti,interrupt-ranges = <0 32 16>;
565	};
566
567	main_gpio0: gpio@600000 {
568		compatible = "ti,am64-gpio", "ti,keystone-gpio";
569		reg = <0x0 0x00600000 0x0 0x100>;
570		gpio-controller;
571		#gpio-cells = <2>;
572		interrupt-parent = <&main_gpio_intr>;
573		interrupts = <190>, <191>, <192>,
574			     <193>, <194>, <195>;
575		interrupt-controller;
576		#interrupt-cells = <2>;
577		ti,ngpio = <87>;
578		ti,davinci-gpio-unbanked = <0>;
579		power-domains = <&k3_pds 77 TI_SCI_PD_EXCLUSIVE>;
580		clocks = <&k3_clks 77 0>;
581		clock-names = "gpio";
582	};
583
584	main_gpio1: gpio@601000 {
585		compatible = "ti,am64-gpio", "ti,keystone-gpio";
586		reg = <0x0 0x00601000 0x0 0x100>;
587		gpio-controller;
588		#gpio-cells = <2>;
589		interrupt-parent = <&main_gpio_intr>;
590		interrupts = <180>, <181>, <182>,
591			     <183>, <184>, <185>;
592		interrupt-controller;
593		#interrupt-cells = <2>;
594		ti,ngpio = <88>;
595		ti,davinci-gpio-unbanked = <0>;
596		power-domains = <&k3_pds 78 TI_SCI_PD_EXCLUSIVE>;
597		clocks = <&k3_clks 78 0>;
598		clock-names = "gpio";
599	};
600
601	sdhci0: mmc@fa10000 {
602		compatible = "ti,am64-sdhci-8bit";
603		reg = <0x00 0xfa10000 0x00 0x260>, <0x00 0xfa18000 0x00 0x134>;
604		interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
605		power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>;
606		clocks = <&k3_clks 57 0>, <&k3_clks 57 1>;
607		clock-names = "clk_ahb", "clk_xin";
608		mmc-ddr-1_8v;
609		mmc-hs200-1_8v;
610		ti,trm-icp = <0x2>;
611		ti,otap-del-sel-legacy = <0x0>;
612		ti,otap-del-sel-mmc-hs = <0x0>;
613		ti,otap-del-sel-ddr52 = <0x6>;
614		ti,otap-del-sel-hs200 = <0x7>;
615		ti,itap-del-sel-legacy = <0x10>;
616		ti,itap-del-sel-mmc-hs = <0xa>;
617		ti,itap-del-sel-ddr52 = <0x3>;
618		status = "disabled";
619	};
620
621	sdhci1: mmc@fa00000 {
622		compatible = "ti,am64-sdhci-4bit";
623		reg = <0x00 0xfa00000 0x00 0x260>, <0x00 0xfa08000 0x00 0x134>;
624		interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
625		power-domains = <&k3_pds 58 TI_SCI_PD_EXCLUSIVE>;
626		clocks = <&k3_clks 58 3>, <&k3_clks 58 4>;
627		clock-names = "clk_ahb", "clk_xin";
628		ti,trm-icp = <0x2>;
629		ti,otap-del-sel-legacy = <0x0>;
630		ti,otap-del-sel-sd-hs = <0x0>;
631		ti,otap-del-sel-sdr12 = <0xf>;
632		ti,otap-del-sel-sdr25 = <0xf>;
633		ti,otap-del-sel-sdr50 = <0xc>;
634		ti,otap-del-sel-sdr104 = <0x6>;
635		ti,otap-del-sel-ddr50 = <0x9>;
636		ti,itap-del-sel-legacy = <0x0>;
637		ti,itap-del-sel-sd-hs = <0x0>;
638		ti,itap-del-sel-sdr12 = <0x0>;
639		ti,itap-del-sel-sdr25 = <0x0>;
640		ti,clkbuf-sel = <0x7>;
641		status = "disabled";
642	};
643
644	cpsw3g: ethernet@8000000 {
645		compatible = "ti,am642-cpsw-nuss";
646		#address-cells = <2>;
647		#size-cells = <2>;
648		reg = <0x0 0x8000000 0x0 0x200000>;
649		reg-names = "cpsw_nuss";
650		ranges = <0x0 0x0 0x0 0x8000000 0x0 0x200000>;
651		clocks = <&k3_clks 13 0>;
652		assigned-clocks = <&k3_clks 13 1>;
653		assigned-clock-parents = <&k3_clks 13 9>;
654		clock-names = "fck";
655		power-domains = <&k3_pds 13 TI_SCI_PD_EXCLUSIVE>;
656
657		dmas = <&main_pktdma 0xC500 15>,
658		       <&main_pktdma 0xC501 15>,
659		       <&main_pktdma 0xC502 15>,
660		       <&main_pktdma 0xC503 15>,
661		       <&main_pktdma 0xC504 15>,
662		       <&main_pktdma 0xC505 15>,
663		       <&main_pktdma 0xC506 15>,
664		       <&main_pktdma 0xC507 15>,
665		       <&main_pktdma 0x4500 15>;
666		dma-names = "tx0", "tx1", "tx2", "tx3", "tx4", "tx5", "tx6",
667			    "tx7", "rx";
668
669		ethernet-ports {
670			#address-cells = <1>;
671			#size-cells = <0>;
672
673			cpsw_port1: port@1 {
674				reg = <1>;
675				ti,mac-only;
676				label = "port1";
677				phys = <&phy_gmii_sel 1>;
678				mac-address = [00 00 00 00 00 00];
679				ti,syscon-efuse = <&main_conf 0x200>;
680			};
681
682			cpsw_port2: port@2 {
683				reg = <2>;
684				ti,mac-only;
685				label = "port2";
686				phys = <&phy_gmii_sel 2>;
687				mac-address = [00 00 00 00 00 00];
688			};
689		};
690
691		cpsw3g_mdio: mdio@f00 {
692			compatible = "ti,cpsw-mdio","ti,davinci_mdio";
693			reg = <0x0 0xf00 0x0 0x100>;
694			#address-cells = <1>;
695			#size-cells = <0>;
696			clocks = <&k3_clks 13 0>;
697			clock-names = "fck";
698			bus_freq = <1000000>;
699			status = "disabled";
700		};
701
702		cpts@3d000 {
703			compatible = "ti,j721e-cpts";
704			reg = <0x0 0x3d000 0x0 0x400>;
705			clocks = <&k3_clks 13 1>;
706			clock-names = "cpts";
707			interrupts-extended = <&gic500 GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
708			interrupt-names = "cpts";
709			ti,cpts-ext-ts-inputs = <4>;
710			ti,cpts-periodic-outputs = <2>;
711		};
712	};
713
714	main_cpts0: cpts@39000000 {
715		compatible = "ti,j721e-cpts";
716		reg = <0x0 0x39000000 0x0 0x400>;
717		reg-names = "cpts";
718		power-domains = <&k3_pds 84 TI_SCI_PD_EXCLUSIVE>;
719		clocks = <&k3_clks 84 0>;
720		clock-names = "cpts";
721		assigned-clocks = <&k3_clks 84 0>;
722		assigned-clock-parents = <&k3_clks 84 8>;
723		interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
724		interrupt-names = "cpts";
725		ti,cpts-periodic-outputs = <6>;
726		ti,cpts-ext-ts-inputs = <8>;
727	};
728
729	timesync_router: pinctrl@a40000 {
730		compatible = "pinctrl-single";
731		reg = <0x0 0xa40000 0x0 0x800>;
732		#pinctrl-cells = <1>;
733		pinctrl-single,register-width = <32>;
734		pinctrl-single,function-mask = <0x000107ff>;
735	};
736
737	usbss0: cdns-usb@f900000 {
738		compatible = "ti,am64-usb";
739		reg = <0x00 0xf900000 0x00 0x100>;
740		power-domains = <&k3_pds 161 TI_SCI_PD_EXCLUSIVE>;
741		clocks = <&k3_clks 161 9>, <&k3_clks 161 1>;
742		clock-names = "ref", "lpm";
743		assigned-clocks = <&k3_clks 161 9>; /* USB2_REFCLK */
744		assigned-clock-parents = <&k3_clks 161 10>; /* HF0SC0 */
745		#address-cells = <2>;
746		#size-cells = <2>;
747		ranges;
748		usb0: usb@f400000 {
749			compatible = "cdns,usb3";
750			reg = <0x00 0xf400000 0x00 0x10000>,
751			      <0x00 0xf410000 0x00 0x10000>,
752			      <0x00 0xf420000 0x00 0x10000>;
753			reg-names = "otg",
754				    "xhci",
755				    "dev";
756			interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>, /* irq.0 */
757				     <GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>, /* irq.6 */
758				     <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>; /* otgirq */
759			interrupt-names = "host",
760					  "peripheral",
761					  "otg";
762			maximum-speed = "super-speed";
763			dr_mode = "otg";
764		};
765	};
766
767	tscadc0: tscadc@28001000 {
768		compatible = "ti,am654-tscadc", "ti,am3359-tscadc";
769		reg = <0x00 0x28001000 0x00 0x1000>;
770		interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
771		power-domains = <&k3_pds 0 TI_SCI_PD_EXCLUSIVE>;
772		clocks = <&k3_clks 0 0>;
773		assigned-clocks = <&k3_clks 0 0>;
774		assigned-clock-parents = <&k3_clks 0 3>;
775		assigned-clock-rates = <60000000>;
776		clock-names = "fck";
777		status = "disabled";
778
779		adc {
780			#io-channel-cells = <1>;
781			compatible = "ti,am654-adc", "ti,am3359-adc";
782		};
783	};
784
785	fss: bus@fc00000 {
786		compatible = "simple-bus";
787		reg = <0x00 0x0fc00000 0x00 0x70000>;
788		#address-cells = <2>;
789		#size-cells = <2>;
790		ranges;
791
792		ospi0: spi@fc40000 {
793			compatible = "ti,am654-ospi", "cdns,qspi-nor";
794			reg = <0x00 0x0fc40000 0x00 0x100>,
795			      <0x05 0x00000000 0x01 0x00000000>;
796			interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
797			cdns,fifo-depth = <256>;
798			cdns,fifo-width = <4>;
799			cdns,trigger-address = <0x0>;
800			#address-cells = <0x1>;
801			#size-cells = <0x0>;
802			clocks = <&k3_clks 75 6>;
803			assigned-clocks = <&k3_clks 75 6>;
804			assigned-clock-parents = <&k3_clks 75 7>;
805			assigned-clock-rates = <166666666>;
806			power-domains = <&k3_pds 75 TI_SCI_PD_EXCLUSIVE>;
807			status = "disabled";
808		};
809	};
810
811	hwspinlock: spinlock@2a000000 {
812		compatible = "ti,am64-hwspinlock";
813		reg = <0x00 0x2a000000 0x00 0x1000>;
814		#hwlock-cells = <1>;
815	};
816
817	mailbox0_cluster2: mailbox@29020000 {
818		compatible = "ti,am64-mailbox";
819		reg = <0x00 0x29020000 0x00 0x200>;
820		interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>,
821			     <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
822		#mbox-cells = <1>;
823		ti,mbox-num-users = <4>;
824		ti,mbox-num-fifos = <16>;
825		status = "disabled";
826	};
827
828	mailbox0_cluster3: mailbox@29030000 {
829		compatible = "ti,am64-mailbox";
830		reg = <0x00 0x29030000 0x00 0x200>;
831		interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
832			     <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
833		#mbox-cells = <1>;
834		ti,mbox-num-users = <4>;
835		ti,mbox-num-fifos = <16>;
836		status = "disabled";
837	};
838
839	mailbox0_cluster4: mailbox@29040000 {
840		compatible = "ti,am64-mailbox";
841		reg = <0x00 0x29040000 0x00 0x200>;
842		interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
843			     <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
844		#mbox-cells = <1>;
845		ti,mbox-num-users = <4>;
846		ti,mbox-num-fifos = <16>;
847		status = "disabled";
848	};
849
850	mailbox0_cluster5: mailbox@29050000 {
851		compatible = "ti,am64-mailbox";
852		reg = <0x00 0x29050000 0x00 0x200>;
853		interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>,
854			     <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
855		#mbox-cells = <1>;
856		ti,mbox-num-users = <4>;
857		ti,mbox-num-fifos = <16>;
858		status = "disabled";
859	};
860
861	mailbox0_cluster6: mailbox@29060000 {
862		compatible = "ti,am64-mailbox";
863		reg = <0x00 0x29060000 0x00 0x200>;
864		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
865		#mbox-cells = <1>;
866		ti,mbox-num-users = <4>;
867		ti,mbox-num-fifos = <16>;
868		status = "disabled";
869	};
870
871	mailbox0_cluster7: mailbox@29070000 {
872		compatible = "ti,am64-mailbox";
873		reg = <0x00 0x29070000 0x00 0x200>;
874		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
875		#mbox-cells = <1>;
876		ti,mbox-num-users = <4>;
877		ti,mbox-num-fifos = <16>;
878		status = "disabled";
879	};
880
881	main_r5fss0: r5fss@78000000 {
882		compatible = "ti,am64-r5fss";
883		ti,cluster-mode = <0>;
884		#address-cells = <1>;
885		#size-cells = <1>;
886		ranges = <0x78000000 0x00 0x78000000 0x10000>,
887			 <0x78100000 0x00 0x78100000 0x10000>,
888			 <0x78200000 0x00 0x78200000 0x08000>,
889			 <0x78300000 0x00 0x78300000 0x08000>;
890		power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>;
891
892		main_r5fss0_core0: r5f@78000000 {
893			compatible = "ti,am64-r5f";
894			reg = <0x78000000 0x00010000>,
895			      <0x78100000 0x00010000>;
896			reg-names = "atcm", "btcm";
897			ti,sci = <&dmsc>;
898			ti,sci-dev-id = <121>;
899			ti,sci-proc-ids = <0x01 0xff>;
900			resets = <&k3_reset 121 1>;
901			firmware-name = "am64-main-r5f0_0-fw";
902			ti,atcm-enable = <1>;
903			ti,btcm-enable = <1>;
904			ti,loczrama = <1>;
905		};
906
907		main_r5fss0_core1: r5f@78200000 {
908			compatible = "ti,am64-r5f";
909			reg = <0x78200000 0x00008000>,
910			      <0x78300000 0x00008000>;
911			reg-names = "atcm", "btcm";
912			ti,sci = <&dmsc>;
913			ti,sci-dev-id = <122>;
914			ti,sci-proc-ids = <0x02 0xff>;
915			resets = <&k3_reset 122 1>;
916			firmware-name = "am64-main-r5f0_1-fw";
917			ti,atcm-enable = <1>;
918			ti,btcm-enable = <1>;
919			ti,loczrama = <1>;
920		};
921	};
922
923	main_r5fss1: r5fss@78400000 {
924		compatible = "ti,am64-r5fss";
925		ti,cluster-mode = <0>;
926		#address-cells = <1>;
927		#size-cells = <1>;
928		ranges = <0x78400000 0x00 0x78400000 0x10000>,
929			 <0x78500000 0x00 0x78500000 0x10000>,
930			 <0x78600000 0x00 0x78600000 0x08000>,
931			 <0x78700000 0x00 0x78700000 0x08000>;
932		power-domains = <&k3_pds 120 TI_SCI_PD_EXCLUSIVE>;
933
934		main_r5fss1_core0: r5f@78400000 {
935			compatible = "ti,am64-r5f";
936			reg = <0x78400000 0x00010000>,
937			      <0x78500000 0x00010000>;
938			reg-names = "atcm", "btcm";
939			ti,sci = <&dmsc>;
940			ti,sci-dev-id = <123>;
941			ti,sci-proc-ids = <0x06 0xff>;
942			resets = <&k3_reset 123 1>;
943			firmware-name = "am64-main-r5f1_0-fw";
944			ti,atcm-enable = <1>;
945			ti,btcm-enable = <1>;
946			ti,loczrama = <1>;
947		};
948
949		main_r5fss1_core1: r5f@78600000 {
950			compatible = "ti,am64-r5f";
951			reg = <0x78600000 0x00008000>,
952			      <0x78700000 0x00008000>;
953			reg-names = "atcm", "btcm";
954			ti,sci = <&dmsc>;
955			ti,sci-dev-id = <124>;
956			ti,sci-proc-ids = <0x07 0xff>;
957			resets = <&k3_reset 124 1>;
958			firmware-name = "am64-main-r5f1_1-fw";
959			ti,atcm-enable = <1>;
960			ti,btcm-enable = <1>;
961			ti,loczrama = <1>;
962		};
963	};
964
965	serdes_wiz0: wiz@f000000 {
966		compatible = "ti,am64-wiz-10g";
967		#address-cells = <1>;
968		#size-cells = <1>;
969		power-domains = <&k3_pds 162 TI_SCI_PD_EXCLUSIVE>;
970		clocks = <&k3_clks 162 0>, <&k3_clks 162 1>, <&serdes_refclk>;
971		clock-names = "fck", "core_ref_clk", "ext_ref_clk";
972		num-lanes = <1>;
973		#reset-cells = <1>;
974		#clock-cells = <1>;
975		ranges = <0x0f000000 0x0 0x0f000000 0x00010000>;
976
977		assigned-clocks = <&k3_clks 162 1>;
978		assigned-clock-parents = <&k3_clks 162 5>;
979
980		serdes0: serdes@f000000 {
981			compatible = "ti,j721e-serdes-10g";
982			reg = <0x0f000000 0x00010000>;
983			reg-names = "torrent_phy";
984			resets = <&serdes_wiz0 0>;
985			reset-names = "torrent_reset";
986			clocks = <&serdes_wiz0 TI_WIZ_PLL0_REFCLK>,
987				 <&serdes_wiz0 TI_WIZ_PHY_EN_REFCLK>;
988			clock-names = "refclk", "phy_en_refclk";
989			assigned-clocks = <&serdes_wiz0 TI_WIZ_PLL0_REFCLK>,
990					  <&serdes_wiz0 TI_WIZ_PLL1_REFCLK>,
991					  <&serdes_wiz0 TI_WIZ_REFCLK_DIG>;
992			assigned-clock-parents = <&k3_clks 162 1>,
993						 <&k3_clks 162 1>,
994						 <&k3_clks 162 1>;
995			#address-cells = <1>;
996			#size-cells = <0>;
997			#clock-cells = <1>;
998		};
999	};
1000
1001	pcie0_rc: pcie@f102000 {
1002		compatible = "ti,am64-pcie-host", "ti,j721e-pcie-host";
1003		reg = <0x00 0x0f102000 0x00 0x1000>,
1004		      <0x00 0x0f100000 0x00 0x400>,
1005		      <0x00 0x0d000000 0x00 0x00800000>,
1006		      <0x00 0x68000000 0x00 0x00001000>;
1007		reg-names = "intd_cfg", "user_cfg", "reg", "cfg";
1008		interrupt-names = "link_state";
1009		interrupts = <GIC_SPI 203 IRQ_TYPE_EDGE_RISING>;
1010		device_type = "pci";
1011		ti,syscon-pcie-ctrl = <&main_conf 0x4070>;
1012		max-link-speed = <2>;
1013		num-lanes = <1>;
1014		power-domains = <&k3_pds 114 TI_SCI_PD_EXCLUSIVE>;
1015		clocks = <&k3_clks 114 0>, <&serdes0 CDNS_TORRENT_REFCLK_DRIVER>;
1016		clock-names = "fck", "pcie_refclk";
1017		#address-cells = <3>;
1018		#size-cells = <2>;
1019		bus-range = <0x0 0xff>;
1020		cdns,no-bar-match-nbits = <64>;
1021		vendor-id = <0x104c>;
1022		device-id = <0xb010>;
1023		msi-map = <0x0 &gic_its 0x0 0x10000>;
1024		ranges = <0x01000000 0x00 0x68001000  0x00 0x68001000  0x00 0x0010000>,
1025			 <0x02000000 0x00 0x68011000  0x00 0x68011000  0x00 0x7fef000>;
1026		dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x00000010 0x0>;
1027		status = "disabled";
1028	};
1029
1030	pcie0_ep: pcie-ep@f102000 {
1031		compatible = "ti,am64-pcie-ep", "ti,j721e-pcie-ep";
1032		reg = <0x00 0x0f102000 0x00 0x1000>,
1033		      <0x00 0x0f100000 0x00 0x400>,
1034		      <0x00 0x0d000000 0x00 0x00800000>,
1035		      <0x00 0x68000000 0x00 0x08000000>;
1036		reg-names = "intd_cfg", "user_cfg", "reg", "mem";
1037		interrupt-names = "link_state";
1038		interrupts = <GIC_SPI 203 IRQ_TYPE_EDGE_RISING>;
1039		ti,syscon-pcie-ctrl = <&main_conf 0x4070>;
1040		max-link-speed = <2>;
1041		num-lanes = <1>;
1042		power-domains = <&k3_pds 114 TI_SCI_PD_EXCLUSIVE>;
1043		clocks = <&k3_clks 114 0>;
1044		clock-names = "fck";
1045		max-functions = /bits/ 8 <1>;
1046		status = "disabled";
1047	};
1048
1049	epwm0: pwm@23000000 {
1050		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
1051		#pwm-cells = <3>;
1052		reg = <0x0 0x23000000 0x0 0x100>;
1053		power-domains = <&k3_pds 86 TI_SCI_PD_EXCLUSIVE>;
1054		clocks = <&epwm_tbclk 0>, <&k3_clks 86 0>;
1055		clock-names = "tbclk", "fck";
1056		status = "disabled";
1057	};
1058
1059	epwm1: pwm@23010000 {
1060		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
1061		#pwm-cells = <3>;
1062		reg = <0x0 0x23010000 0x0 0x100>;
1063		power-domains = <&k3_pds 87 TI_SCI_PD_EXCLUSIVE>;
1064		clocks = <&epwm_tbclk 1>, <&k3_clks 87 0>;
1065		clock-names = "tbclk", "fck";
1066		status = "disabled";
1067	};
1068
1069	epwm2: pwm@23020000 {
1070		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
1071		#pwm-cells = <3>;
1072		reg = <0x0 0x23020000 0x0 0x100>;
1073		power-domains = <&k3_pds 88 TI_SCI_PD_EXCLUSIVE>;
1074		clocks = <&epwm_tbclk 2>, <&k3_clks 88 0>;
1075		clock-names = "tbclk", "fck";
1076		status = "disabled";
1077	};
1078
1079	epwm3: pwm@23030000 {
1080		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
1081		#pwm-cells = <3>;
1082		reg = <0x0 0x23030000 0x0 0x100>;
1083		power-domains = <&k3_pds 89 TI_SCI_PD_EXCLUSIVE>;
1084		clocks = <&epwm_tbclk 3>, <&k3_clks 89 0>;
1085		clock-names = "tbclk", "fck";
1086		status = "disabled";
1087	};
1088
1089	epwm4: pwm@23040000 {
1090		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
1091		#pwm-cells = <3>;
1092		reg = <0x0 0x23040000 0x0 0x100>;
1093		power-domains = <&k3_pds 90 TI_SCI_PD_EXCLUSIVE>;
1094		clocks = <&epwm_tbclk 4>, <&k3_clks 90 0>;
1095		clock-names = "tbclk", "fck";
1096		status = "disabled";
1097	};
1098
1099	epwm5: pwm@23050000 {
1100		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
1101		#pwm-cells = <3>;
1102		reg = <0x0 0x23050000 0x0 0x100>;
1103		power-domains = <&k3_pds 91 TI_SCI_PD_EXCLUSIVE>;
1104		clocks = <&epwm_tbclk 5>, <&k3_clks 91 0>;
1105		clock-names = "tbclk", "fck";
1106		status = "disabled";
1107	};
1108
1109	epwm6: pwm@23060000 {
1110		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
1111		#pwm-cells = <3>;
1112		reg = <0x0 0x23060000 0x0 0x100>;
1113		power-domains = <&k3_pds 92 TI_SCI_PD_EXCLUSIVE>;
1114		clocks = <&epwm_tbclk 6>, <&k3_clks 92 0>;
1115		clock-names = "tbclk", "fck";
1116		status = "disabled";
1117	};
1118
1119	epwm7: pwm@23070000 {
1120		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
1121		#pwm-cells = <3>;
1122		reg = <0x0 0x23070000 0x0 0x100>;
1123		power-domains = <&k3_pds 93 TI_SCI_PD_EXCLUSIVE>;
1124		clocks = <&epwm_tbclk 7>, <&k3_clks 93 0>;
1125		clock-names = "tbclk", "fck";
1126		status = "disabled";
1127	};
1128
1129	epwm8: pwm@23080000 {
1130		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
1131		#pwm-cells = <3>;
1132		reg = <0x0 0x23080000 0x0 0x100>;
1133		power-domains = <&k3_pds 94 TI_SCI_PD_EXCLUSIVE>;
1134		clocks = <&epwm_tbclk 8>, <&k3_clks 94 0>;
1135		clock-names = "tbclk", "fck";
1136		status = "disabled";
1137	};
1138
1139	ecap0: pwm@23100000 {
1140		compatible = "ti,am64-ecap", "ti,am3352-ecap";
1141		#pwm-cells = <3>;
1142		reg = <0x0 0x23100000 0x0 0x60>;
1143		power-domains = <&k3_pds 51 TI_SCI_PD_EXCLUSIVE>;
1144		clocks = <&k3_clks 51 0>;
1145		clock-names = "fck";
1146		status = "disabled";
1147	};
1148
1149	ecap1: pwm@23110000 {
1150		compatible = "ti,am64-ecap", "ti,am3352-ecap";
1151		#pwm-cells = <3>;
1152		reg = <0x0 0x23110000 0x0 0x60>;
1153		power-domains = <&k3_pds 52 TI_SCI_PD_EXCLUSIVE>;
1154		clocks = <&k3_clks 52 0>;
1155		clock-names = "fck";
1156		status = "disabled";
1157	};
1158
1159	ecap2: pwm@23120000 {
1160		compatible = "ti,am64-ecap", "ti,am3352-ecap";
1161		#pwm-cells = <3>;
1162		reg = <0x0 0x23120000 0x0 0x60>;
1163		power-domains = <&k3_pds 53 TI_SCI_PD_EXCLUSIVE>;
1164		clocks = <&k3_clks 53 0>;
1165		clock-names = "fck";
1166		status = "disabled";
1167	};
1168
1169	main_rti0: watchdog@e000000 {
1170			compatible = "ti,j7-rti-wdt";
1171			reg = <0x00 0xe000000 0x00 0x100>;
1172			clocks = <&k3_clks 125 0>;
1173			power-domains = <&k3_pds 125 TI_SCI_PD_EXCLUSIVE>;
1174			assigned-clocks = <&k3_clks 125 0>;
1175			assigned-clock-parents = <&k3_clks 125 2>;
1176	};
1177
1178	main_rti1: watchdog@e010000 {
1179			compatible = "ti,j7-rti-wdt";
1180			reg = <0x00 0xe010000 0x00 0x100>;
1181			clocks = <&k3_clks 126 0>;
1182			power-domains = <&k3_pds 126 TI_SCI_PD_EXCLUSIVE>;
1183			assigned-clocks = <&k3_clks 126 0>;
1184			assigned-clock-parents = <&k3_clks 126 2>;
1185	};
1186
1187	icssg0: icssg@30000000 {
1188		compatible = "ti,am642-icssg";
1189		reg = <0x00 0x30000000 0x00 0x80000>;
1190		power-domains = <&k3_pds 81 TI_SCI_PD_EXCLUSIVE>;
1191		#address-cells = <1>;
1192		#size-cells = <1>;
1193		ranges = <0x0 0x00 0x30000000 0x80000>;
1194
1195		icssg0_mem: memories@0 {
1196			reg = <0x0 0x2000>,
1197			      <0x2000 0x2000>,
1198			      <0x10000 0x10000>;
1199			reg-names = "dram0", "dram1", "shrdram2";
1200		};
1201
1202		icssg0_cfg: cfg@26000 {
1203			compatible = "ti,pruss-cfg", "syscon";
1204			reg = <0x26000 0x200>;
1205			#address-cells = <1>;
1206			#size-cells = <1>;
1207			ranges = <0x0 0x26000 0x2000>;
1208
1209			clocks {
1210				#address-cells = <1>;
1211				#size-cells = <0>;
1212
1213				icssg0_coreclk_mux: coreclk-mux@3c {
1214					reg = <0x3c>;
1215					#clock-cells = <0>;
1216					clocks = <&k3_clks 81 0>,  /* icssg0_core_clk */
1217						 <&k3_clks 81 20>; /* icssg0_iclk */
1218					assigned-clocks = <&icssg0_coreclk_mux>;
1219					assigned-clock-parents = <&k3_clks 81 20>;
1220				};
1221
1222				icssg0_iepclk_mux: iepclk-mux@30 {
1223					reg = <0x30>;
1224					#clock-cells = <0>;
1225					clocks = <&k3_clks 81 3>,	/* icssg0_iep_clk */
1226						 <&icssg0_coreclk_mux>;	/* icssg0_coreclk_mux */
1227					assigned-clocks = <&icssg0_iepclk_mux>;
1228					assigned-clock-parents = <&icssg0_coreclk_mux>;
1229				};
1230			};
1231		};
1232
1233		icssg0_mii_rt: mii-rt@32000 {
1234			compatible = "ti,pruss-mii", "syscon";
1235			reg = <0x32000 0x100>;
1236		};
1237
1238		icssg0_mii_g_rt: mii-g-rt@33000 {
1239			compatible = "ti,pruss-mii-g", "syscon";
1240			reg = <0x33000 0x1000>;
1241		};
1242
1243		icssg0_intc: interrupt-controller@20000 {
1244			compatible = "ti,icssg-intc";
1245			reg = <0x20000 0x2000>;
1246			interrupt-controller;
1247			#interrupt-cells = <3>;
1248			interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
1249				     <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
1250				     <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
1251				     <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
1252				     <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
1253				     <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
1254				     <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
1255				     <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
1256			interrupt-names = "host_intr0", "host_intr1",
1257					  "host_intr2", "host_intr3",
1258					  "host_intr4", "host_intr5",
1259					  "host_intr6", "host_intr7";
1260		};
1261
1262		pru0_0: pru@34000 {
1263			compatible = "ti,am642-pru";
1264			reg = <0x34000 0x3000>,
1265			      <0x22000 0x100>,
1266			      <0x22400 0x100>;
1267			reg-names = "iram", "control", "debug";
1268			firmware-name = "am64x-pru0_0-fw";
1269		};
1270
1271		rtu0_0: rtu@4000 {
1272			compatible = "ti,am642-rtu";
1273			reg = <0x4000 0x2000>,
1274			      <0x23000 0x100>,
1275			      <0x23400 0x100>;
1276			reg-names = "iram", "control", "debug";
1277			firmware-name = "am64x-rtu0_0-fw";
1278		};
1279
1280		tx_pru0_0: txpru@a000 {
1281			compatible = "ti,am642-tx-pru";
1282			reg = <0xa000 0x1800>,
1283			      <0x25000 0x100>,
1284			      <0x25400 0x100>;
1285			reg-names = "iram", "control", "debug";
1286			firmware-name = "am64x-txpru0_0-fw";
1287		};
1288
1289		pru0_1: pru@38000 {
1290			compatible = "ti,am642-pru";
1291			reg = <0x38000 0x3000>,
1292			      <0x24000 0x100>,
1293			      <0x24400 0x100>;
1294			reg-names = "iram", "control", "debug";
1295			firmware-name = "am64x-pru0_1-fw";
1296		};
1297
1298		rtu0_1: rtu@6000 {
1299			compatible = "ti,am642-rtu";
1300			reg = <0x6000 0x2000>,
1301			      <0x23800 0x100>,
1302			      <0x23c00 0x100>;
1303			reg-names = "iram", "control", "debug";
1304			firmware-name = "am64x-rtu0_1-fw";
1305		};
1306
1307		tx_pru0_1: txpru@c000 {
1308			compatible = "ti,am642-tx-pru";
1309			reg = <0xc000 0x1800>,
1310			      <0x25800 0x100>,
1311			      <0x25c00 0x100>;
1312			reg-names = "iram", "control", "debug";
1313			firmware-name = "am64x-txpru0_1-fw";
1314		};
1315
1316		icssg0_mdio: mdio@32400 {
1317			compatible = "ti,davinci_mdio";
1318			reg = <0x32400 0x100>;
1319			clocks = <&k3_clks 62 3>;
1320			clock-names = "fck";
1321			#address-cells = <1>;
1322			#size-cells = <0>;
1323			bus_freq = <1000000>;
1324			status = "disabled";
1325		};
1326	};
1327
1328	icssg1: icssg@30080000 {
1329		compatible = "ti,am642-icssg";
1330		reg = <0x00 0x30080000 0x00 0x80000>;
1331		power-domains = <&k3_pds 82 TI_SCI_PD_EXCLUSIVE>;
1332		#address-cells = <1>;
1333		#size-cells = <1>;
1334		ranges = <0x0 0x00 0x30080000 0x80000>;
1335
1336		icssg1_mem: memories@0 {
1337			reg = <0x0 0x2000>,
1338			      <0x2000 0x2000>,
1339			      <0x10000 0x10000>;
1340			reg-names = "dram0", "dram1", "shrdram2";
1341		};
1342
1343		icssg1_cfg: cfg@26000 {
1344			compatible = "ti,pruss-cfg", "syscon";
1345			reg = <0x26000 0x200>;
1346			#address-cells = <1>;
1347			#size-cells = <1>;
1348			ranges = <0x0 0x26000 0x2000>;
1349
1350			clocks {
1351				#address-cells = <1>;
1352				#size-cells = <0>;
1353
1354				icssg1_coreclk_mux: coreclk-mux@3c {
1355					reg = <0x3c>;
1356					#clock-cells = <0>;
1357					clocks = <&k3_clks 82 0>,   /* icssg1_core_clk */
1358						 <&k3_clks 82 20>;  /* icssg1_iclk */
1359					assigned-clocks = <&icssg1_coreclk_mux>;
1360					assigned-clock-parents = <&k3_clks 82 20>;
1361				};
1362
1363				icssg1_iepclk_mux: iepclk-mux@30 {
1364					reg = <0x30>;
1365					#clock-cells = <0>;
1366					clocks = <&k3_clks 82 3>,	/* icssg1_iep_clk */
1367						 <&icssg1_coreclk_mux>;	/* icssg1_coreclk_mux */
1368					assigned-clocks = <&icssg1_iepclk_mux>;
1369					assigned-clock-parents = <&icssg1_coreclk_mux>;
1370				};
1371			};
1372		};
1373
1374		icssg1_mii_rt: mii-rt@32000 {
1375			compatible = "ti,pruss-mii", "syscon";
1376			reg = <0x32000 0x100>;
1377		};
1378
1379		icssg1_mii_g_rt: mii-g-rt@33000 {
1380			compatible = "ti,pruss-mii-g", "syscon";
1381			reg = <0x33000 0x1000>;
1382		};
1383
1384		icssg1_intc: interrupt-controller@20000 {
1385			compatible = "ti,icssg-intc";
1386			reg = <0x20000 0x2000>;
1387			interrupt-controller;
1388			#interrupt-cells = <3>;
1389			interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>,
1390				     <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>,
1391				     <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>,
1392				     <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>,
1393				     <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>,
1394				     <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>,
1395				     <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>,
1396				     <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
1397			interrupt-names = "host_intr0", "host_intr1",
1398					  "host_intr2", "host_intr3",
1399					  "host_intr4", "host_intr5",
1400					  "host_intr6", "host_intr7";
1401		};
1402
1403		pru1_0: pru@34000 {
1404			compatible = "ti,am642-pru";
1405			reg = <0x34000 0x4000>,
1406			      <0x22000 0x100>,
1407			      <0x22400 0x100>;
1408			reg-names = "iram", "control", "debug";
1409			firmware-name = "am64x-pru1_0-fw";
1410		};
1411
1412		rtu1_0: rtu@4000 {
1413			compatible = "ti,am642-rtu";
1414			reg = <0x4000 0x2000>,
1415			      <0x23000 0x100>,
1416			      <0x23400 0x100>;
1417			reg-names = "iram", "control", "debug";
1418			firmware-name = "am64x-rtu1_0-fw";
1419		};
1420
1421		tx_pru1_0: txpru@a000 {
1422			compatible = "ti,am642-tx-pru";
1423			reg = <0xa000 0x1800>,
1424			      <0x25000 0x100>,
1425			      <0x25400 0x100>;
1426			reg-names = "iram", "control", "debug";
1427			firmware-name = "am64x-txpru1_0-fw";
1428		};
1429
1430		pru1_1: pru@38000 {
1431			compatible = "ti,am642-pru";
1432			reg = <0x38000 0x4000>,
1433			      <0x24000 0x100>,
1434			      <0x24400 0x100>;
1435			reg-names = "iram", "control", "debug";
1436			firmware-name = "am64x-pru1_1-fw";
1437		};
1438
1439		rtu1_1: rtu@6000 {
1440			compatible = "ti,am642-rtu";
1441			reg = <0x6000 0x2000>,
1442			      <0x23800 0x100>,
1443			      <0x23c00 0x100>;
1444			reg-names = "iram", "control", "debug";
1445			firmware-name = "am64x-rtu1_1-fw";
1446		};
1447
1448		tx_pru1_1: txpru@c000 {
1449			compatible = "ti,am642-tx-pru";
1450			reg = <0xc000 0x1800>,
1451			      <0x25800 0x100>,
1452			      <0x25c00 0x100>;
1453			reg-names = "iram", "control", "debug";
1454			firmware-name = "am64x-txpru1_1-fw";
1455		};
1456
1457		icssg1_mdio: mdio@32400 {
1458			compatible = "ti,davinci_mdio";
1459			reg = <0x32400 0x100>;
1460			#address-cells = <1>;
1461			#size-cells = <0>;
1462			clocks = <&k3_clks 82 0>;
1463			clock-names = "fck";
1464			bus_freq = <1000000>;
1465			status = "disabled";
1466		};
1467	};
1468
1469	main_mcan0: can@20701000 {
1470		compatible = "bosch,m_can";
1471		reg = <0x00 0x20701000 0x00 0x200>,
1472		      <0x00 0x20708000 0x00 0x8000>;
1473		reg-names = "m_can", "message_ram";
1474		power-domains = <&k3_pds 98 TI_SCI_PD_EXCLUSIVE>;
1475		clocks = <&k3_clks 98 5>, <&k3_clks 98 0>;
1476		clock-names = "hclk", "cclk";
1477		interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>,
1478			     <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
1479		interrupt-names = "int0", "int1";
1480		bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>;
1481		status = "disabled";
1482	};
1483
1484	main_mcan1: can@20711000 {
1485		compatible = "bosch,m_can";
1486		reg = <0x00 0x20711000 0x00 0x200>,
1487		      <0x00 0x20718000 0x00 0x8000>;
1488		reg-names = "m_can", "message_ram";
1489		power-domains = <&k3_pds 99 TI_SCI_PD_EXCLUSIVE>;
1490		clocks = <&k3_clks 99 5>, <&k3_clks 99 0>;
1491		clock-names = "hclk", "cclk";
1492		interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
1493			     <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
1494		interrupt-names = "int0", "int1";
1495		bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>;
1496		status = "disabled";
1497	};
1498
1499	crypto: crypto@40900000 {
1500		compatible = "ti,am64-sa2ul";
1501		reg = <0x00 0x40900000 0x00 0x1200>;
1502		power-domains = <&k3_pds 133 TI_SCI_PD_SHARED>;
1503		#address-cells = <2>;
1504		#size-cells = <2>;
1505		ranges = <0x00 0x40900000 0x00 0x40900000 0x00 0x30000>;
1506		dmas = <&main_pktdma 0xc001 0>, <&main_pktdma 0x4002 0>,
1507		       <&main_pktdma 0x4003 0>;
1508		dma-names = "tx", "rx1", "rx2";
1509
1510		rng: rng@40910000 {
1511			compatible = "inside-secure,safexcel-eip76";
1512			reg = <0x00 0x40910000 0x00 0x7d>;
1513			interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
1514			status = "disabled"; /* Used by OP-TEE */
1515		};
1516	};
1517
1518	gpmc0: memory-controller@3b000000 {
1519		compatible = "ti,am64-gpmc";
1520		power-domains = <&k3_pds 80 TI_SCI_PD_EXCLUSIVE>;
1521		clocks = <&k3_clks 80 0>;
1522		clock-names = "fck";
1523		reg = <0x00 0x3b000000 0x00 0x400>,
1524		      <0x00 0x50000000 0x00 0x8000000>;
1525		reg-names = "cfg", "data";
1526		interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
1527		gpmc,num-cs = <3>;
1528		gpmc,num-waitpins = <2>;
1529		#address-cells = <2>;
1530		#size-cells = <1>;
1531		interrupt-controller;
1532		#interrupt-cells = <2>;
1533		gpio-controller;
1534		#gpio-cells = <2>;
1535		status = "disabled";
1536	};
1537
1538	elm0: ecc@25010000 {
1539		compatible = "ti,am64-elm";
1540		reg = <0x00 0x25010000 0x00 0x2000>;
1541		interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
1542		power-domains = <&k3_pds 54 TI_SCI_PD_EXCLUSIVE>;
1543		clocks = <&k3_clks 54 0>;
1544		clock-names = "fck";
1545		status = "disabled";
1546	};
1547
1548	main_vtm0: temperature-sensor@b00000 {
1549		compatible = "ti,j7200-vtm";
1550		reg = <0x00 0xb00000 0x00 0x400>,
1551		      <0x00 0xb01000 0x00 0x400>;
1552		power-domains = <&k3_pds 95 TI_SCI_PD_EXCLUSIVE>;
1553		#thermal-sensor-cells = <1>;
1554	};
1555};
1556