xref: /linux/scripts/dtc/include-prefixes/riscv/starfive/jh7110.dtsi (revision f2b539af5718bb63eb9fd913d9d4474bd1e55d07)
1// SPDX-License-Identifier: GPL-2.0 OR MIT
2/*
3 * Copyright (C) 2022 StarFive Technology Co., Ltd.
4 * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk>
5 */
6
7/dts-v1/;
8#include <dt-bindings/clock/starfive,jh7110-crg.h>
9#include <dt-bindings/power/starfive,jh7110-pmu.h>
10#include <dt-bindings/reset/starfive,jh7110-crg.h>
11#include <dt-bindings/thermal/thermal.h>
12
13/ {
14	compatible = "starfive,jh7110";
15	#address-cells = <2>;
16	#size-cells = <2>;
17
18	cpus {
19		#address-cells = <1>;
20		#size-cells = <0>;
21
22		S7_0: cpu@0 {
23			compatible = "sifive,s7", "riscv";
24			reg = <0>;
25			device_type = "cpu";
26			i-cache-block-size = <64>;
27			i-cache-sets = <64>;
28			i-cache-size = <16384>;
29			next-level-cache = <&ccache>;
30			riscv,isa = "rv64imac_zba_zbb";
31			status = "disabled";
32
33			cpu0_intc: interrupt-controller {
34				compatible = "riscv,cpu-intc";
35				interrupt-controller;
36				#interrupt-cells = <1>;
37			};
38		};
39
40		U74_1: cpu@1 {
41			compatible = "sifive,u74-mc", "riscv";
42			reg = <1>;
43			d-cache-block-size = <64>;
44			d-cache-sets = <64>;
45			d-cache-size = <32768>;
46			d-tlb-sets = <1>;
47			d-tlb-size = <40>;
48			device_type = "cpu";
49			i-cache-block-size = <64>;
50			i-cache-sets = <64>;
51			i-cache-size = <32768>;
52			i-tlb-sets = <1>;
53			i-tlb-size = <40>;
54			mmu-type = "riscv,sv39";
55			next-level-cache = <&ccache>;
56			riscv,isa = "rv64imafdc_zba_zbb";
57			tlb-split;
58			operating-points-v2 = <&cpu_opp>;
59			clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>;
60			clock-names = "cpu";
61			#cooling-cells = <2>;
62
63			cpu1_intc: interrupt-controller {
64				compatible = "riscv,cpu-intc";
65				interrupt-controller;
66				#interrupt-cells = <1>;
67			};
68		};
69
70		U74_2: cpu@2 {
71			compatible = "sifive,u74-mc", "riscv";
72			reg = <2>;
73			d-cache-block-size = <64>;
74			d-cache-sets = <64>;
75			d-cache-size = <32768>;
76			d-tlb-sets = <1>;
77			d-tlb-size = <40>;
78			device_type = "cpu";
79			i-cache-block-size = <64>;
80			i-cache-sets = <64>;
81			i-cache-size = <32768>;
82			i-tlb-sets = <1>;
83			i-tlb-size = <40>;
84			mmu-type = "riscv,sv39";
85			next-level-cache = <&ccache>;
86			riscv,isa = "rv64imafdc_zba_zbb";
87			tlb-split;
88			operating-points-v2 = <&cpu_opp>;
89			clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>;
90			clock-names = "cpu";
91			#cooling-cells = <2>;
92
93			cpu2_intc: interrupt-controller {
94				compatible = "riscv,cpu-intc";
95				interrupt-controller;
96				#interrupt-cells = <1>;
97			};
98		};
99
100		U74_3: cpu@3 {
101			compatible = "sifive,u74-mc", "riscv";
102			reg = <3>;
103			d-cache-block-size = <64>;
104			d-cache-sets = <64>;
105			d-cache-size = <32768>;
106			d-tlb-sets = <1>;
107			d-tlb-size = <40>;
108			device_type = "cpu";
109			i-cache-block-size = <64>;
110			i-cache-sets = <64>;
111			i-cache-size = <32768>;
112			i-tlb-sets = <1>;
113			i-tlb-size = <40>;
114			mmu-type = "riscv,sv39";
115			next-level-cache = <&ccache>;
116			riscv,isa = "rv64imafdc_zba_zbb";
117			tlb-split;
118			operating-points-v2 = <&cpu_opp>;
119			clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>;
120			clock-names = "cpu";
121			#cooling-cells = <2>;
122
123			cpu3_intc: interrupt-controller {
124				compatible = "riscv,cpu-intc";
125				interrupt-controller;
126				#interrupt-cells = <1>;
127			};
128		};
129
130		U74_4: cpu@4 {
131			compatible = "sifive,u74-mc", "riscv";
132			reg = <4>;
133			d-cache-block-size = <64>;
134			d-cache-sets = <64>;
135			d-cache-size = <32768>;
136			d-tlb-sets = <1>;
137			d-tlb-size = <40>;
138			device_type = "cpu";
139			i-cache-block-size = <64>;
140			i-cache-sets = <64>;
141			i-cache-size = <32768>;
142			i-tlb-sets = <1>;
143			i-tlb-size = <40>;
144			mmu-type = "riscv,sv39";
145			next-level-cache = <&ccache>;
146			riscv,isa = "rv64imafdc_zba_zbb";
147			tlb-split;
148			operating-points-v2 = <&cpu_opp>;
149			clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>;
150			clock-names = "cpu";
151			#cooling-cells = <2>;
152
153			cpu4_intc: interrupt-controller {
154				compatible = "riscv,cpu-intc";
155				interrupt-controller;
156				#interrupt-cells = <1>;
157			};
158		};
159
160		cpu-map {
161			cluster0 {
162				core0 {
163					cpu = <&S7_0>;
164				};
165
166				core1 {
167					cpu = <&U74_1>;
168				};
169
170				core2 {
171					cpu = <&U74_2>;
172				};
173
174				core3 {
175					cpu = <&U74_3>;
176				};
177
178				core4 {
179					cpu = <&U74_4>;
180				};
181			};
182		};
183	};
184
185	cpu_opp: opp-table-0 {
186			compatible = "operating-points-v2";
187			opp-shared;
188			opp-375000000 {
189					opp-hz = /bits/ 64 <375000000>;
190					opp-microvolt = <800000>;
191			};
192			opp-500000000 {
193					opp-hz = /bits/ 64 <500000000>;
194					opp-microvolt = <800000>;
195			};
196			opp-750000000 {
197					opp-hz = /bits/ 64 <750000000>;
198					opp-microvolt = <800000>;
199			};
200			opp-1500000000 {
201					opp-hz = /bits/ 64 <1500000000>;
202					opp-microvolt = <1040000>;
203			};
204	};
205
206	thermal-zones {
207		cpu-thermal {
208			polling-delay-passive = <250>;
209			polling-delay = <15000>;
210
211			thermal-sensors = <&sfctemp>;
212
213			cooling-maps {
214				map0 {
215					trip = <&cpu_alert0>;
216					cooling-device =
217						<&U74_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
218						<&U74_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
219						<&U74_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
220						<&U74_4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
221				};
222			};
223
224			trips {
225				cpu_alert0: cpu_alert0 {
226					/* milliCelsius */
227					temperature = <85000>;
228					hysteresis = <2000>;
229					type = "passive";
230				};
231
232				cpu_crit {
233					/* milliCelsius */
234					temperature = <100000>;
235					hysteresis = <2000>;
236					type = "critical";
237				};
238			};
239		};
240	};
241
242	dvp_clk: dvp-clock {
243		compatible = "fixed-clock";
244		clock-output-names = "dvp_clk";
245		#clock-cells = <0>;
246	};
247	gmac0_rgmii_rxin: gmac0-rgmii-rxin-clock {
248		compatible = "fixed-clock";
249		clock-output-names = "gmac0_rgmii_rxin";
250		#clock-cells = <0>;
251	};
252
253	gmac0_rmii_refin: gmac0-rmii-refin-clock {
254		compatible = "fixed-clock";
255		clock-output-names = "gmac0_rmii_refin";
256		#clock-cells = <0>;
257	};
258
259	gmac1_rgmii_rxin: gmac1-rgmii-rxin-clock {
260		compatible = "fixed-clock";
261		clock-output-names = "gmac1_rgmii_rxin";
262		#clock-cells = <0>;
263	};
264
265	gmac1_rmii_refin: gmac1-rmii-refin-clock {
266		compatible = "fixed-clock";
267		clock-output-names = "gmac1_rmii_refin";
268		#clock-cells = <0>;
269	};
270
271	hdmitx0_pixelclk: hdmitx0-pixel-clock {
272		compatible = "fixed-clock";
273		clock-output-names = "hdmitx0_pixelclk";
274		#clock-cells = <0>;
275	};
276
277	i2srx_bclk_ext: i2srx-bclk-ext-clock {
278		compatible = "fixed-clock";
279		clock-output-names = "i2srx_bclk_ext";
280		#clock-cells = <0>;
281	};
282
283	i2srx_lrck_ext: i2srx-lrck-ext-clock {
284		compatible = "fixed-clock";
285		clock-output-names = "i2srx_lrck_ext";
286		#clock-cells = <0>;
287	};
288
289	i2stx_bclk_ext: i2stx-bclk-ext-clock {
290		compatible = "fixed-clock";
291		clock-output-names = "i2stx_bclk_ext";
292		#clock-cells = <0>;
293	};
294
295	i2stx_lrck_ext: i2stx-lrck-ext-clock {
296		compatible = "fixed-clock";
297		clock-output-names = "i2stx_lrck_ext";
298		#clock-cells = <0>;
299	};
300
301	mclk_ext: mclk-ext-clock {
302		compatible = "fixed-clock";
303		clock-output-names = "mclk_ext";
304		#clock-cells = <0>;
305	};
306
307	osc: oscillator {
308		compatible = "fixed-clock";
309		clock-output-names = "osc";
310		#clock-cells = <0>;
311	};
312
313	rtc_osc: rtc-oscillator {
314		compatible = "fixed-clock";
315		clock-output-names = "rtc_osc";
316		#clock-cells = <0>;
317	};
318
319	stmmac_axi_setup: stmmac-axi-config {
320		snps,lpi_en;
321		snps,wr_osr_lmt = <4>;
322		snps,rd_osr_lmt = <4>;
323		snps,blen = <256 128 64 32 0 0 0>;
324	};
325
326	tdm_ext: tdm-ext-clock {
327		compatible = "fixed-clock";
328		clock-output-names = "tdm_ext";
329		#clock-cells = <0>;
330	};
331
332	soc {
333		compatible = "simple-bus";
334		interrupt-parent = <&plic>;
335		#address-cells = <2>;
336		#size-cells = <2>;
337		ranges;
338
339		clint: timer@2000000 {
340			compatible = "starfive,jh7110-clint", "sifive,clint0";
341			reg = <0x0 0x2000000 0x0 0x10000>;
342			interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>,
343					      <&cpu1_intc 3>, <&cpu1_intc 7>,
344					      <&cpu2_intc 3>, <&cpu2_intc 7>,
345					      <&cpu3_intc 3>, <&cpu3_intc 7>,
346					      <&cpu4_intc 3>, <&cpu4_intc 7>;
347		};
348
349		ccache: cache-controller@2010000 {
350			compatible = "starfive,jh7110-ccache", "sifive,ccache0", "cache";
351			reg = <0x0 0x2010000 0x0 0x4000>;
352			interrupts = <1>, <3>, <4>, <2>;
353			cache-block-size = <64>;
354			cache-level = <2>;
355			cache-sets = <2048>;
356			cache-size = <2097152>;
357			cache-unified;
358		};
359
360		plic: interrupt-controller@c000000 {
361			compatible = "starfive,jh7110-plic", "sifive,plic-1.0.0";
362			reg = <0x0 0xc000000 0x0 0x4000000>;
363			interrupts-extended = <&cpu0_intc 11>,
364					      <&cpu1_intc 11>, <&cpu1_intc 9>,
365					      <&cpu2_intc 11>, <&cpu2_intc 9>,
366					      <&cpu3_intc 11>, <&cpu3_intc 9>,
367					      <&cpu4_intc 11>, <&cpu4_intc 9>;
368			interrupt-controller;
369			#interrupt-cells = <1>;
370			#address-cells = <0>;
371			riscv,ndev = <136>;
372		};
373
374		uart0: serial@10000000 {
375			compatible = "snps,dw-apb-uart";
376			reg = <0x0 0x10000000 0x0 0x10000>;
377			clocks = <&syscrg JH7110_SYSCLK_UART0_CORE>,
378				 <&syscrg JH7110_SYSCLK_UART0_APB>;
379			clock-names = "baudclk", "apb_pclk";
380			resets = <&syscrg JH7110_SYSRST_UART0_APB>;
381			interrupts = <32>;
382			reg-io-width = <4>;
383			reg-shift = <2>;
384			status = "disabled";
385		};
386
387		uart1: serial@10010000 {
388			compatible = "snps,dw-apb-uart";
389			reg = <0x0 0x10010000 0x0 0x10000>;
390			clocks = <&syscrg JH7110_SYSCLK_UART1_CORE>,
391				 <&syscrg JH7110_SYSCLK_UART1_APB>;
392			clock-names = "baudclk", "apb_pclk";
393			resets = <&syscrg JH7110_SYSRST_UART1_APB>;
394			interrupts = <33>;
395			reg-io-width = <4>;
396			reg-shift = <2>;
397			status = "disabled";
398		};
399
400		uart2: serial@10020000 {
401			compatible = "snps,dw-apb-uart";
402			reg = <0x0 0x10020000 0x0 0x10000>;
403			clocks = <&syscrg JH7110_SYSCLK_UART2_CORE>,
404				 <&syscrg JH7110_SYSCLK_UART2_APB>;
405			clock-names = "baudclk", "apb_pclk";
406			resets = <&syscrg JH7110_SYSRST_UART2_APB>;
407			interrupts = <34>;
408			reg-io-width = <4>;
409			reg-shift = <2>;
410			status = "disabled";
411		};
412
413		i2c0: i2c@10030000 {
414			compatible = "snps,designware-i2c";
415			reg = <0x0 0x10030000 0x0 0x10000>;
416			clocks = <&syscrg JH7110_SYSCLK_I2C0_APB>;
417			clock-names = "ref";
418			resets = <&syscrg JH7110_SYSRST_I2C0_APB>;
419			interrupts = <35>;
420			#address-cells = <1>;
421			#size-cells = <0>;
422			status = "disabled";
423		};
424
425		i2c1: i2c@10040000 {
426			compatible = "snps,designware-i2c";
427			reg = <0x0 0x10040000 0x0 0x10000>;
428			clocks = <&syscrg JH7110_SYSCLK_I2C1_APB>;
429			clock-names = "ref";
430			resets = <&syscrg JH7110_SYSRST_I2C1_APB>;
431			interrupts = <36>;
432			#address-cells = <1>;
433			#size-cells = <0>;
434			status = "disabled";
435		};
436
437		i2c2: i2c@10050000 {
438			compatible = "snps,designware-i2c";
439			reg = <0x0 0x10050000 0x0 0x10000>;
440			clocks = <&syscrg JH7110_SYSCLK_I2C2_APB>;
441			clock-names = "ref";
442			resets = <&syscrg JH7110_SYSRST_I2C2_APB>;
443			interrupts = <37>;
444			#address-cells = <1>;
445			#size-cells = <0>;
446			status = "disabled";
447		};
448
449		stgcrg: clock-controller@10230000 {
450			compatible = "starfive,jh7110-stgcrg";
451			reg = <0x0 0x10230000 0x0 0x10000>;
452			clocks = <&osc>,
453				 <&syscrg JH7110_SYSCLK_HIFI4_CORE>,
454				 <&syscrg JH7110_SYSCLK_STG_AXIAHB>,
455				 <&syscrg JH7110_SYSCLK_USB_125M>,
456				 <&syscrg JH7110_SYSCLK_CPU_BUS>,
457				 <&syscrg JH7110_SYSCLK_HIFI4_AXI>,
458				 <&syscrg JH7110_SYSCLK_NOCSTG_BUS>,
459				 <&syscrg JH7110_SYSCLK_APB_BUS>;
460			clock-names = "osc", "hifi4_core",
461				      "stg_axiahb", "usb_125m",
462				      "cpu_bus", "hifi4_axi",
463				      "nocstg_bus", "apb_bus";
464			#clock-cells = <1>;
465			#reset-cells = <1>;
466		};
467
468		stg_syscon: syscon@10240000 {
469			compatible = "starfive,jh7110-stg-syscon", "syscon";
470			reg = <0x0 0x10240000 0x0 0x1000>;
471		};
472
473		uart3: serial@12000000 {
474			compatible = "snps,dw-apb-uart";
475			reg = <0x0 0x12000000 0x0 0x10000>;
476			clocks = <&syscrg JH7110_SYSCLK_UART3_CORE>,
477				 <&syscrg JH7110_SYSCLK_UART3_APB>;
478			clock-names = "baudclk", "apb_pclk";
479			resets = <&syscrg JH7110_SYSRST_UART3_APB>;
480			interrupts = <45>;
481			reg-io-width = <4>;
482			reg-shift = <2>;
483			status = "disabled";
484		};
485
486		uart4: serial@12010000 {
487			compatible = "snps,dw-apb-uart";
488			reg = <0x0 0x12010000 0x0 0x10000>;
489			clocks = <&syscrg JH7110_SYSCLK_UART4_CORE>,
490				 <&syscrg JH7110_SYSCLK_UART4_APB>;
491			clock-names = "baudclk", "apb_pclk";
492			resets = <&syscrg JH7110_SYSRST_UART4_APB>;
493			interrupts = <46>;
494			reg-io-width = <4>;
495			reg-shift = <2>;
496			status = "disabled";
497		};
498
499		uart5: serial@12020000 {
500			compatible = "snps,dw-apb-uart";
501			reg = <0x0 0x12020000 0x0 0x10000>;
502			clocks = <&syscrg JH7110_SYSCLK_UART5_CORE>,
503				 <&syscrg JH7110_SYSCLK_UART5_APB>;
504			clock-names = "baudclk", "apb_pclk";
505			resets = <&syscrg JH7110_SYSRST_UART5_APB>;
506			interrupts = <47>;
507			reg-io-width = <4>;
508			reg-shift = <2>;
509			status = "disabled";
510		};
511
512		i2c3: i2c@12030000 {
513			compatible = "snps,designware-i2c";
514			reg = <0x0 0x12030000 0x0 0x10000>;
515			clocks = <&syscrg JH7110_SYSCLK_I2C3_APB>;
516			clock-names = "ref";
517			resets = <&syscrg JH7110_SYSRST_I2C3_APB>;
518			interrupts = <48>;
519			#address-cells = <1>;
520			#size-cells = <0>;
521			status = "disabled";
522		};
523
524		i2c4: i2c@12040000 {
525			compatible = "snps,designware-i2c";
526			reg = <0x0 0x12040000 0x0 0x10000>;
527			clocks = <&syscrg JH7110_SYSCLK_I2C4_APB>;
528			clock-names = "ref";
529			resets = <&syscrg JH7110_SYSRST_I2C4_APB>;
530			interrupts = <49>;
531			#address-cells = <1>;
532			#size-cells = <0>;
533			status = "disabled";
534		};
535
536		i2c5: i2c@12050000 {
537			compatible = "snps,designware-i2c";
538			reg = <0x0 0x12050000 0x0 0x10000>;
539			clocks = <&syscrg JH7110_SYSCLK_I2C5_APB>;
540			clock-names = "ref";
541			resets = <&syscrg JH7110_SYSRST_I2C5_APB>;
542			interrupts = <50>;
543			#address-cells = <1>;
544			#size-cells = <0>;
545			status = "disabled";
546		};
547
548		i2c6: i2c@12060000 {
549			compatible = "snps,designware-i2c";
550			reg = <0x0 0x12060000 0x0 0x10000>;
551			clocks = <&syscrg JH7110_SYSCLK_I2C6_APB>;
552			clock-names = "ref";
553			resets = <&syscrg JH7110_SYSRST_I2C6_APB>;
554			interrupts = <51>;
555			#address-cells = <1>;
556			#size-cells = <0>;
557			status = "disabled";
558		};
559
560		sfctemp: temperature-sensor@120e0000 {
561			compatible = "starfive,jh7110-temp";
562			reg = <0x0 0x120e0000 0x0 0x10000>;
563			clocks = <&syscrg JH7110_SYSCLK_TEMP_CORE>,
564				 <&syscrg JH7110_SYSCLK_TEMP_APB>;
565			clock-names = "sense", "bus";
566			resets = <&syscrg JH7110_SYSRST_TEMP_CORE>,
567				 <&syscrg JH7110_SYSRST_TEMP_APB>;
568			reset-names = "sense", "bus";
569			#thermal-sensor-cells = <0>;
570		};
571
572		syscrg: clock-controller@13020000 {
573			compatible = "starfive,jh7110-syscrg";
574			reg = <0x0 0x13020000 0x0 0x10000>;
575			clocks = <&osc>, <&gmac1_rmii_refin>,
576				 <&gmac1_rgmii_rxin>,
577				 <&i2stx_bclk_ext>, <&i2stx_lrck_ext>,
578				 <&i2srx_bclk_ext>, <&i2srx_lrck_ext>,
579				 <&tdm_ext>, <&mclk_ext>,
580				 <&pllclk JH7110_PLLCLK_PLL0_OUT>,
581				 <&pllclk JH7110_PLLCLK_PLL1_OUT>,
582				 <&pllclk JH7110_PLLCLK_PLL2_OUT>;
583			clock-names = "osc", "gmac1_rmii_refin",
584				      "gmac1_rgmii_rxin",
585				      "i2stx_bclk_ext", "i2stx_lrck_ext",
586				      "i2srx_bclk_ext", "i2srx_lrck_ext",
587				      "tdm_ext", "mclk_ext",
588				      "pll0_out", "pll1_out", "pll2_out";
589			#clock-cells = <1>;
590			#reset-cells = <1>;
591		};
592
593		sys_syscon: syscon@13030000 {
594			compatible = "starfive,jh7110-sys-syscon", "syscon", "simple-mfd";
595			reg = <0x0 0x13030000 0x0 0x1000>;
596
597			pllclk: clock-controller {
598				compatible = "starfive,jh7110-pll";
599				clocks = <&osc>;
600				#clock-cells = <1>;
601			};
602		};
603
604		sysgpio: pinctrl@13040000 {
605			compatible = "starfive,jh7110-sys-pinctrl";
606			reg = <0x0 0x13040000 0x0 0x10000>;
607			clocks = <&syscrg JH7110_SYSCLK_IOMUX_APB>;
608			resets = <&syscrg JH7110_SYSRST_IOMUX_APB>;
609			interrupts = <86>;
610			interrupt-controller;
611			#interrupt-cells = <2>;
612			gpio-controller;
613			#gpio-cells = <2>;
614		};
615
616		watchdog@13070000 {
617			compatible = "starfive,jh7110-wdt";
618			reg = <0x0 0x13070000 0x0 0x10000>;
619			clocks = <&syscrg JH7110_SYSCLK_WDT_APB>,
620				 <&syscrg JH7110_SYSCLK_WDT_CORE>;
621			clock-names = "apb", "core";
622			resets = <&syscrg JH7110_SYSRST_WDT_APB>,
623				 <&syscrg JH7110_SYSRST_WDT_CORE>;
624		};
625
626		gmac0: ethernet@16030000 {
627			compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20";
628			reg = <0x0 0x16030000 0x0 0x10000>;
629			clocks = <&aoncrg JH7110_AONCLK_GMAC0_AXI>,
630				 <&aoncrg JH7110_AONCLK_GMAC0_AHB>,
631				 <&syscrg JH7110_SYSCLK_GMAC0_PTP>,
632				 <&aoncrg JH7110_AONCLK_GMAC0_TX_INV>,
633				 <&syscrg JH7110_SYSCLK_GMAC0_GTXC>;
634			clock-names = "stmmaceth", "pclk", "ptp_ref",
635				      "tx", "gtx";
636			resets = <&aoncrg JH7110_AONRST_GMAC0_AXI>,
637				 <&aoncrg JH7110_AONRST_GMAC0_AHB>;
638			reset-names = "stmmaceth", "ahb";
639			interrupts = <7>, <6>, <5>;
640			interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
641			rx-fifo-depth = <2048>;
642			tx-fifo-depth = <2048>;
643			snps,multicast-filter-bins = <64>;
644			snps,perfect-filter-entries = <8>;
645			snps,fixed-burst;
646			snps,no-pbl-x8;
647			snps,force_thresh_dma_mode;
648			snps,axi-config = <&stmmac_axi_setup>;
649			snps,tso;
650			snps,en-tx-lpi-clockgating;
651			snps,txpbl = <16>;
652			snps,rxpbl = <16>;
653			starfive,syscon = <&aon_syscon 0xc 0x12>;
654			status = "disabled";
655		};
656
657		gmac1: ethernet@16040000 {
658			compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20";
659			reg = <0x0 0x16040000 0x0 0x10000>;
660			clocks = <&syscrg JH7110_SYSCLK_GMAC1_AXI>,
661				 <&syscrg JH7110_SYSCLK_GMAC1_AHB>,
662				 <&syscrg JH7110_SYSCLK_GMAC1_PTP>,
663				 <&syscrg JH7110_SYSCLK_GMAC1_TX_INV>,
664				 <&syscrg JH7110_SYSCLK_GMAC1_GTXC>;
665			clock-names = "stmmaceth", "pclk", "ptp_ref",
666				      "tx", "gtx";
667			resets = <&syscrg JH7110_SYSRST_GMAC1_AXI>,
668				 <&syscrg JH7110_SYSRST_GMAC1_AHB>;
669			reset-names = "stmmaceth", "ahb";
670			interrupts = <78>, <77>, <76>;
671			interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
672			rx-fifo-depth = <2048>;
673			tx-fifo-depth = <2048>;
674			snps,multicast-filter-bins = <64>;
675			snps,perfect-filter-entries = <8>;
676			snps,fixed-burst;
677			snps,no-pbl-x8;
678			snps,force_thresh_dma_mode;
679			snps,axi-config = <&stmmac_axi_setup>;
680			snps,tso;
681			snps,en-tx-lpi-clockgating;
682			snps,txpbl = <16>;
683			snps,rxpbl = <16>;
684			starfive,syscon = <&sys_syscon 0x90 0x2>;
685			status = "disabled";
686		};
687
688		aoncrg: clock-controller@17000000 {
689			compatible = "starfive,jh7110-aoncrg";
690			reg = <0x0 0x17000000 0x0 0x10000>;
691			clocks = <&osc>, <&gmac0_rmii_refin>,
692				 <&gmac0_rgmii_rxin>,
693				 <&syscrg JH7110_SYSCLK_STG_AXIAHB>,
694				 <&syscrg JH7110_SYSCLK_APB_BUS>,
695				 <&syscrg JH7110_SYSCLK_GMAC0_GTXCLK>,
696				 <&rtc_osc>;
697			clock-names = "osc", "gmac0_rmii_refin",
698				      "gmac0_rgmii_rxin", "stg_axiahb",
699				      "apb_bus", "gmac0_gtxclk",
700				      "rtc_osc";
701			#clock-cells = <1>;
702			#reset-cells = <1>;
703		};
704
705		aon_syscon: syscon@17010000 {
706			compatible = "starfive,jh7110-aon-syscon", "syscon";
707			reg = <0x0 0x17010000 0x0 0x1000>;
708			#power-domain-cells = <1>;
709		};
710
711		aongpio: pinctrl@17020000 {
712			compatible = "starfive,jh7110-aon-pinctrl";
713			reg = <0x0 0x17020000 0x0 0x10000>;
714			resets = <&aoncrg JH7110_AONRST_IOMUX>;
715			interrupts = <85>;
716			interrupt-controller;
717			#interrupt-cells = <2>;
718			gpio-controller;
719			#gpio-cells = <2>;
720		};
721
722		pwrc: power-controller@17030000 {
723			compatible = "starfive,jh7110-pmu";
724			reg = <0x0 0x17030000 0x0 0x10000>;
725			interrupts = <111>;
726			#power-domain-cells = <1>;
727		};
728
729		ispcrg: clock-controller@19810000 {
730			compatible = "starfive,jh7110-ispcrg";
731			reg = <0x0 0x19810000 0x0 0x10000>;
732			clocks = <&syscrg JH7110_SYSCLK_ISP_TOP_CORE>,
733				 <&syscrg JH7110_SYSCLK_ISP_TOP_AXI>,
734				 <&syscrg JH7110_SYSCLK_NOC_BUS_ISP_AXI>,
735				 <&dvp_clk>;
736			clock-names = "isp_top_core", "isp_top_axi",
737				      "noc_bus_isp_axi", "dvp_clk";
738			resets = <&syscrg JH7110_SYSRST_ISP_TOP>,
739				 <&syscrg JH7110_SYSRST_ISP_TOP_AXI>,
740				 <&syscrg JH7110_SYSRST_NOC_BUS_ISP_AXI>;
741			#clock-cells = <1>;
742			#reset-cells = <1>;
743			power-domains = <&pwrc JH7110_PD_ISP>;
744		};
745
746		voutcrg: clock-controller@295c0000 {
747			compatible = "starfive,jh7110-voutcrg";
748			reg = <0x0 0x295c0000 0x0 0x10000>;
749			clocks = <&syscrg JH7110_SYSCLK_VOUT_SRC>,
750				 <&syscrg JH7110_SYSCLK_VOUT_TOP_AHB>,
751				 <&syscrg JH7110_SYSCLK_VOUT_TOP_AXI>,
752				 <&syscrg JH7110_SYSCLK_VOUT_TOP_HDMITX0_MCLK>,
753				 <&syscrg JH7110_SYSCLK_I2STX0_BCLK>,
754				 <&hdmitx0_pixelclk>;
755			clock-names = "vout_src", "vout_top_ahb",
756				      "vout_top_axi", "vout_top_hdmitx0_mclk",
757				      "i2stx0_bclk", "hdmitx0_pixelclk";
758			resets = <&syscrg JH7110_SYSRST_VOUT_TOP_SRC>;
759			#clock-cells = <1>;
760			#reset-cells = <1>;
761			power-domains = <&pwrc JH7110_PD_VOUT>;
762		};
763	};
764};
765