xref: /linux/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi (revision 9f2c9170934eace462499ba0bfe042cc72900173)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright Altera Corporation (C) 2015. All rights reserved.
4 */
5
6/dts-v1/;
7#include <dt-bindings/reset/altr,rst-mgr-s10.h>
8#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/clock/stratix10-clock.h>
10
11/ {
12	compatible = "altr,socfpga-stratix10";
13	#address-cells = <2>;
14	#size-cells = <2>;
15
16	reserved-memory {
17		#address-cells = <2>;
18		#size-cells = <2>;
19		ranges;
20
21		service_reserved: svcbuffer@0 {
22			compatible = "shared-dma-pool";
23			reg = <0x0 0x0 0x0 0x1000000>;
24			alignment = <0x1000>;
25			no-map;
26		};
27	};
28
29	cpus {
30		#address-cells = <1>;
31		#size-cells = <0>;
32
33		cpu0: cpu@0 {
34			compatible = "arm,cortex-a53";
35			device_type = "cpu";
36			enable-method = "psci";
37			reg = <0x0>;
38		};
39
40		cpu1: cpu@1 {
41			compatible = "arm,cortex-a53";
42			device_type = "cpu";
43			enable-method = "psci";
44			reg = <0x1>;
45		};
46
47		cpu2: cpu@2 {
48			compatible = "arm,cortex-a53";
49			device_type = "cpu";
50			enable-method = "psci";
51			reg = <0x2>;
52		};
53
54		cpu3: cpu@3 {
55			compatible = "arm,cortex-a53";
56			device_type = "cpu";
57			enable-method = "psci";
58			reg = <0x3>;
59		};
60	};
61
62	pmu {
63		compatible = "arm,armv8-pmuv3";
64		interrupts = <0 170 4>,
65			     <0 171 4>,
66			     <0 172 4>,
67			     <0 173 4>;
68		interrupt-affinity = <&cpu0>,
69				     <&cpu1>,
70				     <&cpu2>,
71				     <&cpu3>;
72		interrupt-parent = <&intc>;
73	};
74
75	psci {
76		compatible = "arm,psci-0.2";
77		method = "smc";
78	};
79
80	/* Local timer */
81	timer {
82		compatible = "arm,armv8-timer";
83		interrupts = <1 13 0xf08>,
84			     <1 14 0xf08>,
85			     <1 11 0xf08>,
86			     <1 10 0xf08>;
87		interrupt-parent = <&intc>;
88	};
89
90	intc: interrupt-controller@fffc1000 {
91		compatible = "arm,gic-400", "arm,cortex-a15-gic";
92		#interrupt-cells = <3>;
93		interrupt-controller;
94		reg = <0x0 0xfffc1000 0x0 0x1000>,
95		      <0x0 0xfffc2000 0x0 0x2000>,
96		      <0x0 0xfffc4000 0x0 0x2000>,
97		      <0x0 0xfffc6000 0x0 0x2000>;
98	};
99
100	clocks {
101		cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk {
102			#clock-cells = <0>;
103			compatible = "fixed-clock";
104		};
105
106		cb_intosc_ls_clk: cb-intosc-ls-clk {
107			#clock-cells = <0>;
108			compatible = "fixed-clock";
109		};
110
111		f2s_free_clk: f2s-free-clk {
112			#clock-cells = <0>;
113			compatible = "fixed-clock";
114		};
115
116		osc1: osc1 {
117			#clock-cells = <0>;
118			compatible = "fixed-clock";
119		};
120
121		qspi_clk: qspi-clk {
122			#clock-cells = <0>;
123			compatible = "fixed-clock";
124			clock-frequency = <200000000>;
125		};
126	};
127
128	soc {
129		#address-cells = <1>;
130		#size-cells = <1>;
131		compatible = "simple-bus";
132		device_type = "soc";
133		interrupt-parent = <&intc>;
134		ranges = <0 0 0 0xffffffff>;
135
136		base_fpga_region {
137			#address-cells = <0x1>;
138			#size-cells = <0x1>;
139
140			compatible = "fpga-region";
141			fpga-mgr = <&fpga_mgr>;
142		};
143
144		clkmgr: clock-controller@ffd10000 {
145			compatible = "intel,stratix10-clkmgr";
146			reg = <0xffd10000 0x1000>;
147			#clock-cells = <1>;
148		};
149
150		gmac0: ethernet@ff800000 {
151			compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
152			reg = <0xff800000 0x2000>;
153			interrupts = <0 90 4>;
154			interrupt-names = "macirq";
155			mac-address = [00 00 00 00 00 00];
156			resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
157			reset-names = "stmmaceth", "stmmaceth-ocp";
158			clocks = <&clkmgr STRATIX10_EMAC0_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
159			clock-names = "stmmaceth", "ptp_ref";
160			tx-fifo-depth = <16384>;
161			rx-fifo-depth = <16384>;
162			snps,multicast-filter-bins = <256>;
163			iommus = <&smmu 1>;
164			altr,sysmgr-syscon = <&sysmgr 0x44 0>;
165			status = "disabled";
166		};
167
168		gmac1: ethernet@ff802000 {
169			compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
170			reg = <0xff802000 0x2000>;
171			interrupts = <0 91 4>;
172			interrupt-names = "macirq";
173			mac-address = [00 00 00 00 00 00];
174			resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
175			reset-names = "stmmaceth", "stmmaceth-ocp";
176			clocks = <&clkmgr STRATIX10_EMAC1_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
177			clock-names = "stmmaceth", "ptp_ref";
178			tx-fifo-depth = <16384>;
179			rx-fifo-depth = <16384>;
180			snps,multicast-filter-bins = <256>;
181			iommus = <&smmu 2>;
182			altr,sysmgr-syscon = <&sysmgr 0x48 8>;
183			status = "disabled";
184		};
185
186		gmac2: ethernet@ff804000 {
187			compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
188			reg = <0xff804000 0x2000>;
189			interrupts = <0 92 4>;
190			interrupt-names = "macirq";
191			mac-address = [00 00 00 00 00 00];
192			resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
193			reset-names = "stmmaceth", "stmmaceth-ocp";
194			clocks = <&clkmgr STRATIX10_EMAC2_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
195			clock-names = "stmmaceth", "ptp_ref";
196			tx-fifo-depth = <16384>;
197			rx-fifo-depth = <16384>;
198			snps,multicast-filter-bins = <256>;
199			iommus = <&smmu 3>;
200			altr,sysmgr-syscon = <&sysmgr 0x4c 16>;
201			status = "disabled";
202		};
203
204		gpio0: gpio@ffc03200 {
205			#address-cells = <1>;
206			#size-cells = <0>;
207			compatible = "snps,dw-apb-gpio";
208			reg = <0xffc03200 0x100>;
209			resets = <&rst GPIO0_RESET>;
210			status = "disabled";
211
212			porta: gpio-controller@0 {
213				compatible = "snps,dw-apb-gpio-port";
214				gpio-controller;
215				#gpio-cells = <2>;
216				ngpios = <24>;
217				reg = <0>;
218				interrupt-controller;
219				#interrupt-cells = <2>;
220				interrupts = <0 110 4>;
221			};
222		};
223
224		gpio1: gpio@ffc03300 {
225			#address-cells = <1>;
226			#size-cells = <0>;
227			compatible = "snps,dw-apb-gpio";
228			reg = <0xffc03300 0x100>;
229			resets = <&rst GPIO1_RESET>;
230			status = "disabled";
231
232			portb: gpio-controller@0 {
233				compatible = "snps,dw-apb-gpio-port";
234				gpio-controller;
235				#gpio-cells = <2>;
236				ngpios = <24>;
237				reg = <0>;
238				interrupt-controller;
239				#interrupt-cells = <2>;
240				interrupts = <0 111 4>;
241			};
242		};
243
244		i2c0: i2c@ffc02800 {
245			#address-cells = <1>;
246			#size-cells = <0>;
247			compatible = "snps,designware-i2c";
248			reg = <0xffc02800 0x100>;
249			interrupts = <0 103 4>;
250			resets = <&rst I2C0_RESET>;
251			clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
252			status = "disabled";
253		};
254
255		i2c1: i2c@ffc02900 {
256			#address-cells = <1>;
257			#size-cells = <0>;
258			compatible = "snps,designware-i2c";
259			reg = <0xffc02900 0x100>;
260			interrupts = <0 104 4>;
261			resets = <&rst I2C1_RESET>;
262			clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
263			status = "disabled";
264		};
265
266		i2c2: i2c@ffc02a00 {
267			#address-cells = <1>;
268			#size-cells = <0>;
269			compatible = "snps,designware-i2c";
270			reg = <0xffc02a00 0x100>;
271			interrupts = <0 105 4>;
272			resets = <&rst I2C2_RESET>;
273			clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
274			status = "disabled";
275		};
276
277		i2c3: i2c@ffc02b00 {
278			#address-cells = <1>;
279			#size-cells = <0>;
280			compatible = "snps,designware-i2c";
281			reg = <0xffc02b00 0x100>;
282			interrupts = <0 106 4>;
283			resets = <&rst I2C3_RESET>;
284			clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
285			status = "disabled";
286		};
287
288		i2c4: i2c@ffc02c00 {
289			#address-cells = <1>;
290			#size-cells = <0>;
291			compatible = "snps,designware-i2c";
292			reg = <0xffc02c00 0x100>;
293			interrupts = <0 107 4>;
294			resets = <&rst I2C4_RESET>;
295			clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
296			status = "disabled";
297		};
298
299		mmc: mmc@ff808000 {
300			#address-cells = <1>;
301			#size-cells = <0>;
302			compatible = "altr,socfpga-dw-mshc";
303			reg = <0xff808000 0x1000>;
304			interrupts = <0 96 4>;
305			fifo-depth = <0x400>;
306			resets = <&rst SDMMC_RESET>;
307			reset-names = "reset";
308			clocks = <&clkmgr STRATIX10_L4_MP_CLK>,
309				 <&clkmgr STRATIX10_SDMMC_CLK>;
310			clock-names = "biu", "ciu";
311			iommus = <&smmu 5>;
312			altr,sysmgr-syscon = <&sysmgr 0x28 4>;
313			status = "disabled";
314		};
315
316		nand: nand-controller@ffb90000 {
317			#address-cells = <1>;
318			#size-cells = <0>;
319			compatible = "altr,socfpga-denali-nand";
320			reg = <0xffb90000 0x10000>,
321			      <0xffb80000 0x1000>;
322			reg-names = "nand_data", "denali_reg";
323			interrupts = <0 97 4>;
324			clocks = <&clkmgr STRATIX10_NAND_CLK>,
325				 <&clkmgr STRATIX10_NAND_X_CLK>,
326				 <&clkmgr STRATIX10_NAND_ECC_CLK>;
327			clock-names = "nand", "nand_x", "ecc";
328			resets = <&rst NAND_RESET>, <&rst NAND_OCP_RESET>;
329			status = "disabled";
330		};
331
332		ocram: sram@ffe00000 {
333			compatible = "mmio-sram";
334			reg = <0xffe00000 0x100000>;
335		};
336
337		pdma: dma-controller@ffda0000 {
338			compatible = "arm,pl330", "arm,primecell";
339			reg = <0xffda0000 0x1000>;
340			interrupts = <0 81 4>,
341				     <0 82 4>,
342				     <0 83 4>,
343				     <0 84 4>,
344				     <0 85 4>,
345				     <0 86 4>,
346				     <0 87 4>,
347				     <0 88 4>,
348				     <0 89 4>;
349			#dma-cells = <1>;
350			clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
351			clock-names = "apb_pclk";
352			resets = <&rst DMA_RESET>, <&rst DMA_OCP_RESET>;
353			reset-names = "dma", "dma-ocp";
354		};
355
356		rst: rstmgr@ffd11000 {
357			#reset-cells = <1>;
358			compatible = "altr,stratix10-rst-mgr";
359			reg = <0xffd11000 0x1000>;
360		};
361
362		smmu: iommu@fa000000 {
363			compatible = "arm,mmu-500", "arm,smmu-v2";
364			reg = <0xfa000000 0x40000>;
365			#global-interrupts = <2>;
366			#iommu-cells = <1>;
367			clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
368			clock-names = "iommu";
369			interrupt-parent = <&intc>;
370			interrupts = <0 128 4>,	/* Global Secure Fault */
371				<0 129 4>, /* Global Non-secure Fault */
372				/* Non-secure Context Interrupts (32) */
373				<0 138 4>, <0 139 4>, <0 140 4>, <0 141 4>,
374				<0 142 4>, <0 143 4>, <0 144 4>, <0 145 4>,
375				<0 146 4>, <0 147 4>, <0 148 4>, <0 149 4>,
376				<0 150 4>, <0 151 4>, <0 152 4>, <0 153 4>,
377				<0 154 4>, <0 155 4>, <0 156 4>, <0 157 4>,
378				<0 158 4>, <0 159 4>, <0 160 4>, <0 161 4>,
379				<0 162 4>, <0 163 4>, <0 164 4>, <0 165 4>,
380				<0 166 4>, <0 167 4>, <0 168 4>, <0 169 4>;
381			stream-match-mask = <0x7ff0>;
382			status = "disabled";
383		};
384
385		spi0: spi@ffda4000 {
386			compatible = "snps,dw-apb-ssi";
387			#address-cells = <1>;
388			#size-cells = <0>;
389			reg = <0xffda4000 0x1000>;
390			interrupts = <0 99 4>;
391			resets = <&rst SPIM0_RESET>;
392			reset-names = "spi";
393			reg-io-width = <4>;
394			num-cs = <4>;
395			clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
396			status = "disabled";
397		};
398
399		spi1: spi@ffda5000 {
400			compatible = "snps,dw-apb-ssi";
401			#address-cells = <1>;
402			#size-cells = <0>;
403			reg = <0xffda5000 0x1000>;
404			interrupts = <0 100 4>;
405			resets = <&rst SPIM1_RESET>;
406			reset-names = "spi";
407			reg-io-width = <4>;
408			num-cs = <4>;
409			clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
410			status = "disabled";
411		};
412
413		sysmgr: sysmgr@ffd12000 {
414			compatible = "altr,sys-mgr-s10","altr,sys-mgr";
415			reg = <0xffd12000 0x228>;
416		};
417
418		timer0: timer0@ffc03000 {
419			compatible = "snps,dw-apb-timer";
420			interrupts = <0 113 4>;
421			reg = <0xffc03000 0x100>;
422			clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
423			clock-names = "timer";
424		};
425
426		timer1: timer1@ffc03100 {
427			compatible = "snps,dw-apb-timer";
428			interrupts = <0 114 4>;
429			reg = <0xffc03100 0x100>;
430			clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
431			clock-names = "timer";
432		};
433
434		timer2: timer2@ffd00000 {
435			compatible = "snps,dw-apb-timer";
436			interrupts = <0 115 4>;
437			reg = <0xffd00000 0x100>;
438			clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
439			clock-names = "timer";
440		};
441
442		timer3: timer3@ffd00100 {
443			compatible = "snps,dw-apb-timer";
444			interrupts = <0 116 4>;
445			reg = <0xffd00100 0x100>;
446			clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
447			clock-names = "timer";
448		};
449
450		uart0: serial@ffc02000 {
451			compatible = "snps,dw-apb-uart";
452			reg = <0xffc02000 0x100>;
453			interrupts = <0 108 4>;
454			reg-shift = <2>;
455			reg-io-width = <4>;
456			resets = <&rst UART0_RESET>;
457			clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
458			status = "disabled";
459		};
460
461		uart1: serial@ffc02100 {
462			compatible = "snps,dw-apb-uart";
463			reg = <0xffc02100 0x100>;
464			interrupts = <0 109 4>;
465			reg-shift = <2>;
466			reg-io-width = <4>;
467			resets = <&rst UART1_RESET>;
468			clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
469			status = "disabled";
470		};
471
472		usbphy0: usbphy@0 {
473			#phy-cells = <0>;
474			compatible = "usb-nop-xceiv";
475			status = "okay";
476		};
477
478		usb0: usb@ffb00000 {
479			compatible = "snps,dwc2";
480			reg = <0xffb00000 0x40000>;
481			interrupts = <0 93 4>;
482			phys = <&usbphy0>;
483			phy-names = "usb2-phy";
484			resets = <&rst USB0_RESET>, <&rst USB0_OCP_RESET>;
485			reset-names = "dwc2", "dwc2-ecc";
486			clocks = <&clkmgr STRATIX10_USB_CLK>;
487			clock-names = "otg";
488			iommus = <&smmu 6>;
489			status = "disabled";
490		};
491
492		usb1: usb@ffb40000 {
493			compatible = "snps,dwc2";
494			reg = <0xffb40000 0x40000>;
495			interrupts = <0 94 4>;
496			phys = <&usbphy0>;
497			phy-names = "usb2-phy";
498			resets = <&rst USB1_RESET>, <&rst USB1_OCP_RESET>;
499			reset-names = "dwc2", "dwc2-ecc";
500			clocks = <&clkmgr STRATIX10_USB_CLK>;
501			iommus = <&smmu 7>;
502			status = "disabled";
503		};
504
505		watchdog0: watchdog@ffd00200 {
506			compatible = "snps,dw-wdt";
507			reg = <0xffd00200 0x100>;
508			interrupts = <0 117 4>;
509			resets = <&rst WATCHDOG0_RESET>;
510			clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
511			status = "disabled";
512		};
513
514		watchdog1: watchdog@ffd00300 {
515			compatible = "snps,dw-wdt";
516			reg = <0xffd00300 0x100>;
517			interrupts = <0 118 4>;
518			resets = <&rst WATCHDOG1_RESET>;
519			clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
520			status = "disabled";
521		};
522
523		watchdog2: watchdog@ffd00400 {
524			compatible = "snps,dw-wdt";
525			reg = <0xffd00400 0x100>;
526			interrupts = <0 125 4>;
527			resets = <&rst WATCHDOG2_RESET>;
528			clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
529			status = "disabled";
530		};
531
532		watchdog3: watchdog@ffd00500 {
533			compatible = "snps,dw-wdt";
534			reg = <0xffd00500 0x100>;
535			interrupts = <0 126 4>;
536			resets = <&rst WATCHDOG3_RESET>;
537			clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
538			status = "disabled";
539		};
540
541		sdr: sdr@f8011100 {
542			compatible = "altr,sdr-ctl", "syscon";
543			reg = <0xf8011100 0xc0>;
544		};
545
546		eccmgr {
547			compatible = "altr,socfpga-s10-ecc-manager",
548				     "altr,socfpga-a10-ecc-manager";
549			altr,sysmgr-syscon = <&sysmgr>;
550			#address-cells = <1>;
551			#size-cells = <1>;
552			interrupts = <0 15 4>;
553			interrupt-controller;
554			#interrupt-cells = <2>;
555			ranges;
556
557			sdramedac {
558				compatible = "altr,sdram-edac-s10";
559				altr,sdr-syscon = <&sdr>;
560				interrupts = <16 4>;
561			};
562
563			ocram-ecc@ff8cc000 {
564				compatible = "altr,socfpga-s10-ocram-ecc",
565					     "altr,socfpga-a10-ocram-ecc";
566				reg = <0xff8cc000 0x100>;
567				altr,ecc-parent = <&ocram>;
568				interrupts = <1 4>;
569			};
570
571			usb0-ecc@ff8c4000 {
572				compatible = "altr,socfpga-s10-usb-ecc",
573					     "altr,socfpga-usb-ecc";
574				reg = <0xff8c4000 0x100>;
575				altr,ecc-parent = <&usb0>;
576				interrupts = <2 4>;
577			};
578
579			emac0-rx-ecc@ff8c0000 {
580				compatible = "altr,socfpga-s10-eth-mac-ecc",
581					     "altr,socfpga-eth-mac-ecc";
582				reg = <0xff8c0000 0x100>;
583				altr,ecc-parent = <&gmac0>;
584				interrupts = <4 4>;
585			};
586
587			emac0-tx-ecc@ff8c0400 {
588				compatible = "altr,socfpga-s10-eth-mac-ecc",
589					     "altr,socfpga-eth-mac-ecc";
590				reg = <0xff8c0400 0x100>;
591				altr,ecc-parent = <&gmac0>;
592				interrupts = <5 4>;
593			};
594
595		};
596
597		qspi: spi@ff8d2000 {
598			compatible = "intel,socfpga-qspi", "cdns,qspi-nor";
599			#address-cells = <1>;
600			#size-cells = <0>;
601			reg = <0xff8d2000 0x100>,
602			      <0xff900000 0x100000>;
603			interrupts = <0 3 4>;
604			cdns,fifo-depth = <128>;
605			cdns,fifo-width = <4>;
606			cdns,trigger-address = <0x00000000>;
607			clocks = <&qspi_clk>;
608
609			status = "disabled";
610		};
611
612		firmware {
613			svc {
614				compatible = "intel,stratix10-svc";
615				method = "smc";
616				memory-region = <&service_reserved>;
617
618				fpga_mgr: fpga-mgr {
619					compatible = "intel,stratix10-soc-fpga-mgr";
620				};
621			};
622		};
623	};
624};
625