xref: /freebsd/sys/contrib/device-tree/src/arm/renesas/r7s72100.dtsi (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the r7s72100 SoC
4 *
5 * Copyright (C) 2013-14 Renesas Solutions Corp.
6 * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com>
7 */
8
9#include <dt-bindings/clock/r7s72100-clock.h>
10#include <dt-bindings/interrupt-controller/arm-gic.h>
11#include <dt-bindings/interrupt-controller/irq.h>
12
13/ {
14	compatible = "renesas,r7s72100";
15	#address-cells = <1>;
16	#size-cells = <1>;
17
18	aliases {
19		i2c0 = &i2c0;
20		i2c1 = &i2c1;
21		i2c2 = &i2c2;
22		i2c3 = &i2c3;
23		spi0 = &spi0;
24		spi1 = &spi1;
25		spi2 = &spi2;
26		spi3 = &spi3;
27		spi4 = &spi4;
28	};
29
30	/* Fixed factor clocks */
31	b_clk: b {
32		#clock-cells = <0>;
33		compatible = "fixed-factor-clock";
34		clocks = <&cpg_clocks R7S72100_CLK_PLL>;
35		clock-mult = <1>;
36		clock-div = <3>;
37	};
38
39	cpus {
40		#address-cells = <1>;
41		#size-cells = <0>;
42
43		cpu@0 {
44			device_type = "cpu";
45			compatible = "arm,cortex-a9";
46			reg = <0>;
47			clock-frequency = <400000000>;
48			clocks = <&cpg_clocks R7S72100_CLK_I>;
49			next-level-cache = <&L2>;
50		};
51	};
52
53	/* External clocks */
54	extal_clk: extal {
55		#clock-cells = <0>;
56		compatible = "fixed-clock";
57		/* If clk present, value must be set by board */
58		clock-frequency = <0>;
59	};
60
61	p0_clk: p0 {
62		#clock-cells = <0>;
63		compatible = "fixed-factor-clock";
64		clocks = <&cpg_clocks R7S72100_CLK_PLL>;
65		clock-mult = <1>;
66		clock-div = <12>;
67	};
68
69	p1_clk: p1 {
70		#clock-cells = <0>;
71		compatible = "fixed-factor-clock";
72		clocks = <&cpg_clocks R7S72100_CLK_PLL>;
73		clock-mult = <1>;
74		clock-div = <6>;
75	};
76
77	pmu {
78		compatible = "arm,cortex-a9-pmu";
79		interrupts-extended = <&gic GIC_PPI 0 IRQ_TYPE_LEVEL_HIGH>;
80	};
81
82	rtc_x1_clk: rtc_x1 {
83		#clock-cells = <0>;
84		compatible = "fixed-clock";
85		/* If clk present, value must be set by board to 32678 */
86		clock-frequency = <0>;
87	};
88
89	rtc_x3_clk: rtc_x3 {
90		#clock-cells = <0>;
91		compatible = "fixed-clock";
92		/* If clk present, value must be set by board to 4000000 */
93		clock-frequency = <0>;
94	};
95
96	soc {
97		compatible = "simple-bus";
98		interrupt-parent = <&gic>;
99
100		#address-cells = <1>;
101		#size-cells = <1>;
102		ranges;
103
104		L2: cache-controller@3ffff000 {
105			compatible = "arm,pl310-cache";
106			reg = <0x3ffff000 0x1000>;
107			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
108			arm,early-bresp-disable;
109			arm,full-line-zero-disable;
110			cache-unified;
111			cache-level = <2>;
112		};
113
114		scif0: serial@e8007000 {
115			compatible = "renesas,scif-r7s72100", "renesas,scif";
116			reg = <0xe8007000 64>;
117			interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>,
118				     <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>,
119				     <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>,
120				     <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
121			clocks = <&mstp4_clks R7S72100_CLK_SCIF0>;
122			clock-names = "fck";
123			power-domains = <&cpg_clocks>;
124			status = "disabled";
125		};
126
127		scif1: serial@e8007800 {
128			compatible = "renesas,scif-r7s72100", "renesas,scif";
129			reg = <0xe8007800 64>;
130			interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>,
131				     <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>,
132				     <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
133				     <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
134			clocks = <&mstp4_clks R7S72100_CLK_SCIF1>;
135			clock-names = "fck";
136			power-domains = <&cpg_clocks>;
137			status = "disabled";
138		};
139
140		scif2: serial@e8008000 {
141			compatible = "renesas,scif-r7s72100", "renesas,scif";
142			reg = <0xe8008000 64>;
143			interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
144				     <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>,
145				     <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>,
146				     <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>;
147			clocks = <&mstp4_clks R7S72100_CLK_SCIF2>;
148			clock-names = "fck";
149			power-domains = <&cpg_clocks>;
150			status = "disabled";
151		};
152
153		scif3: serial@e8008800 {
154			compatible = "renesas,scif-r7s72100", "renesas,scif";
155			reg = <0xe8008800 64>;
156			interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>,
157				     <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>,
158				     <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>,
159				     <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>;
160			clocks = <&mstp4_clks R7S72100_CLK_SCIF3>;
161			clock-names = "fck";
162			power-domains = <&cpg_clocks>;
163			status = "disabled";
164		};
165
166		scif4: serial@e8009000 {
167			compatible = "renesas,scif-r7s72100", "renesas,scif";
168			reg = <0xe8009000 64>;
169			interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>,
170				     <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>,
171				     <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>,
172				     <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
173			clocks = <&mstp4_clks R7S72100_CLK_SCIF4>;
174			clock-names = "fck";
175			power-domains = <&cpg_clocks>;
176			status = "disabled";
177		};
178
179		scif5: serial@e8009800 {
180			compatible = "renesas,scif-r7s72100", "renesas,scif";
181			reg = <0xe8009800 64>;
182			interrupts = <GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>,
183				     <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
184				     <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>,
185				     <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
186			clocks = <&mstp4_clks R7S72100_CLK_SCIF5>;
187			clock-names = "fck";
188			power-domains = <&cpg_clocks>;
189			status = "disabled";
190		};
191
192		scif6: serial@e800a000 {
193			compatible = "renesas,scif-r7s72100", "renesas,scif";
194			reg = <0xe800a000 64>;
195			interrupts = <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
196				     <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
197				     <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>,
198				     <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>;
199			clocks = <&mstp4_clks R7S72100_CLK_SCIF6>;
200			clock-names = "fck";
201			power-domains = <&cpg_clocks>;
202			status = "disabled";
203		};
204
205		scif7: serial@e800a800 {
206			compatible = "renesas,scif-r7s72100", "renesas,scif";
207			reg = <0xe800a800 64>;
208			interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>,
209				     <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>,
210				     <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>,
211				     <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
212			clocks = <&mstp4_clks R7S72100_CLK_SCIF7>;
213			clock-names = "fck";
214			power-domains = <&cpg_clocks>;
215			status = "disabled";
216		};
217
218		spi0: spi@e800c800 {
219			compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
220			reg = <0xe800c800 0x24>;
221			interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>,
222				     <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>,
223				     <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>;
224			interrupt-names = "error", "rx", "tx";
225			clocks = <&mstp10_clks R7S72100_CLK_SPI0>;
226			power-domains = <&cpg_clocks>;
227			num-cs = <1>;
228			#address-cells = <1>;
229			#size-cells = <0>;
230			status = "disabled";
231		};
232
233		spi1: spi@e800d000 {
234			compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
235			reg = <0xe800d000 0x24>;
236			interrupts = <GIC_SPI 241 IRQ_TYPE_LEVEL_HIGH>,
237				     <GIC_SPI 242 IRQ_TYPE_LEVEL_HIGH>,
238				     <GIC_SPI 243 IRQ_TYPE_LEVEL_HIGH>;
239			interrupt-names = "error", "rx", "tx";
240			clocks = <&mstp10_clks R7S72100_CLK_SPI1>;
241			power-domains = <&cpg_clocks>;
242			num-cs = <1>;
243			#address-cells = <1>;
244			#size-cells = <0>;
245			status = "disabled";
246		};
247
248		spi2: spi@e800d800 {
249			compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
250			reg = <0xe800d800 0x24>;
251			interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
252				     <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
253				     <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
254			interrupt-names = "error", "rx", "tx";
255			clocks = <&mstp10_clks R7S72100_CLK_SPI2>;
256			power-domains = <&cpg_clocks>;
257			num-cs = <1>;
258			#address-cells = <1>;
259			#size-cells = <0>;
260			status = "disabled";
261		};
262
263		spi3: spi@e800e000 {
264			compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
265			reg = <0xe800e000 0x24>;
266			interrupts = <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>,
267				     <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>,
268				     <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>;
269			interrupt-names = "error", "rx", "tx";
270			clocks = <&mstp10_clks R7S72100_CLK_SPI3>;
271			power-domains = <&cpg_clocks>;
272			num-cs = <1>;
273			#address-cells = <1>;
274			#size-cells = <0>;
275			status = "disabled";
276		};
277
278		spi4: spi@e800e800 {
279			compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
280			reg = <0xe800e800 0x24>;
281			interrupts = <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>,
282				     <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>,
283				     <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>;
284			interrupt-names = "error", "rx", "tx";
285			clocks = <&mstp10_clks R7S72100_CLK_SPI4>;
286			power-domains = <&cpg_clocks>;
287			num-cs = <1>;
288			#address-cells = <1>;
289			#size-cells = <0>;
290			status = "disabled";
291		};
292
293		usbhs0: usb@e8010000 {
294			compatible = "renesas,usbhs-r7s72100", "renesas,rza1-usbhs";
295			reg = <0xe8010000 0x1a0>;
296			interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
297			clocks = <&mstp7_clks R7S72100_CLK_USB0>;
298			renesas,buswait = <4>;
299			power-domains = <&cpg_clocks>;
300			status = "disabled";
301		};
302
303		usbhs1: usb@e8207000 {
304			compatible = "renesas,usbhs-r7s72100", "renesas,rza1-usbhs";
305			reg = <0xe8207000 0x1a0>;
306			interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
307			clocks = <&mstp7_clks R7S72100_CLK_USB1>;
308			renesas,buswait = <4>;
309			power-domains = <&cpg_clocks>;
310			status = "disabled";
311		};
312
313		mmcif: mmc@e804c800 {
314			compatible = "renesas,mmcif-r7s72100", "renesas,sh-mmcif";
315			reg = <0xe804c800 0x80>;
316			interrupts = <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>,
317				     <GIC_SPI 269 IRQ_TYPE_LEVEL_HIGH>,
318				     <GIC_SPI 267 IRQ_TYPE_LEVEL_HIGH>;
319			clocks = <&mstp8_clks R7S72100_CLK_MMCIF>;
320			power-domains = <&cpg_clocks>;
321			reg-io-width = <4>;
322			bus-width = <8>;
323			status = "disabled";
324		};
325
326		sdhi0: mmc@e804e000 {
327			compatible = "renesas,sdhi-r7s72100";
328			reg = <0xe804e000 0x100>;
329			interrupts = <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>,
330				     <GIC_SPI 271 IRQ_TYPE_LEVEL_HIGH>,
331				     <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
332
333			clocks = <&mstp12_clks R7S72100_CLK_SDHI00>,
334				 <&mstp12_clks R7S72100_CLK_SDHI01>;
335			clock-names = "core", "cd";
336			power-domains = <&cpg_clocks>;
337			cap-sd-highspeed;
338			cap-sdio-irq;
339			status = "disabled";
340		};
341
342		sdhi1: mmc@e804e800 {
343			compatible = "renesas,sdhi-r7s72100";
344			reg = <0xe804e800 0x100>;
345			interrupts = <GIC_SPI 273 IRQ_TYPE_LEVEL_HIGH>,
346				     <GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>,
347				     <GIC_SPI 275 IRQ_TYPE_LEVEL_HIGH>;
348
349			clocks = <&mstp12_clks R7S72100_CLK_SDHI10>,
350				 <&mstp12_clks R7S72100_CLK_SDHI11>;
351			clock-names = "core", "cd";
352			power-domains = <&cpg_clocks>;
353			cap-sd-highspeed;
354			cap-sdio-irq;
355			status = "disabled";
356		};
357
358		gic: interrupt-controller@e8201000 {
359			compatible = "arm,pl390";
360			#interrupt-cells = <3>;
361			#address-cells = <0>;
362			interrupt-controller;
363			reg = <0xe8201000 0x1000>,
364				<0xe8202000 0x1000>;
365		};
366
367		ether: ethernet@e8203000 {
368			compatible = "renesas,ether-r7s72100";
369			reg = <0xe8203000 0x800>,
370			      <0xe8204800 0x200>;
371			interrupts = <GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH>;
372			clocks = <&mstp7_clks R7S72100_CLK_ETHER>;
373			power-domains = <&cpg_clocks>;
374			phy-mode = "mii";
375			#address-cells = <1>;
376			#size-cells = <0>;
377			status = "disabled";
378		};
379
380		ceu: camera@e8210000 {
381			reg = <0xe8210000 0x3000>;
382			compatible = "renesas,r7s72100-ceu";
383			interrupts = <GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>;
384			clocks = <&mstp6_clks R7S72100_CLK_CEU>;
385			power-domains = <&cpg_clocks>;
386			status = "disabled";
387		};
388
389		wdt: watchdog@fcfe0000 {
390			compatible = "renesas,r7s72100-wdt", "renesas,rza-wdt";
391			reg = <0xfcfe0000 0x6>;
392			interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
393			clocks = <&p0_clk>;
394		};
395
396		/* Special CPG clocks */
397		cpg_clocks: cpg_clocks@fcfe0000 {
398			#clock-cells = <1>;
399			compatible = "renesas,r7s72100-cpg-clocks",
400				     "renesas,rz-cpg-clocks";
401			reg = <0xfcfe0000 0x18>;
402			clocks = <&extal_clk>, <&usb_x1_clk>;
403			clock-output-names = "pll", "i", "g";
404			#power-domain-cells = <0>;
405		};
406
407		/* MSTP clocks */
408		mstp3_clks: mstp3_clks@fcfe0420 {
409			#clock-cells = <1>;
410			compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
411			reg = <0xfcfe0420 4>;
412			clocks = <&p0_clk>;
413			clock-indices = <R7S72100_CLK_MTU2>;
414			clock-output-names = "mtu2";
415		};
416
417		mstp4_clks: mstp4_clks@fcfe0424 {
418			#clock-cells = <1>;
419			compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
420			reg = <0xfcfe0424 4>;
421			clocks = <&p1_clk>, <&p1_clk>, <&p1_clk>, <&p1_clk>,
422				 <&p1_clk>, <&p1_clk>, <&p1_clk>, <&p1_clk>;
423			clock-indices = <
424				R7S72100_CLK_SCIF0 R7S72100_CLK_SCIF1 R7S72100_CLK_SCIF2 R7S72100_CLK_SCIF3
425				R7S72100_CLK_SCIF4 R7S72100_CLK_SCIF5 R7S72100_CLK_SCIF6 R7S72100_CLK_SCIF7
426			>;
427			clock-output-names = "scif0", "scif1", "scif2", "scif3", "scif4", "scif5", "scif6", "scif7";
428		};
429
430		mstp5_clks: mstp5_clks@fcfe0428 {
431			#clock-cells = <1>;
432			compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
433			reg = <0xfcfe0428 4>;
434			clocks = <&p0_clk>, <&p0_clk>;
435			clock-indices = <R7S72100_CLK_OSTM0 R7S72100_CLK_OSTM1>;
436			clock-output-names = "ostm0", "ostm1";
437		};
438
439		mstp6_clks: mstp6_clks@fcfe042c {
440			#clock-cells = <1>;
441			compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
442			reg = <0xfcfe042c 4>;
443			clocks = <&b_clk>, <&p0_clk>;
444			clock-indices = <R7S72100_CLK_CEU R7S72100_CLK_RTC>;
445			clock-output-names = "ceu", "rtc";
446		};
447
448		mstp7_clks: mstp7_clks@fcfe0430 {
449			#clock-cells = <1>;
450			compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
451			reg = <0xfcfe0430 4>;
452			clocks = <&b_clk>, <&p1_clk>, <&p1_clk>;
453			clock-indices = <R7S72100_CLK_ETHER R7S72100_CLK_USB0 R7S72100_CLK_USB1>;
454			clock-output-names = "ether", "usb0", "usb1";
455		};
456
457		mstp8_clks: mstp8_clks@fcfe0434 {
458			#clock-cells = <1>;
459			compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
460			reg = <0xfcfe0434 4>;
461			clocks = <&p1_clk>;
462			clock-indices = <R7S72100_CLK_MMCIF>;
463			clock-output-names = "mmcif";
464		};
465
466		mstp9_clks: mstp9_clks@fcfe0438 {
467			#clock-cells = <1>;
468			compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
469			reg = <0xfcfe0438 4>;
470			clocks = <&p0_clk>, <&p0_clk>, <&p0_clk>, <&p0_clk>, <&b_clk>, <&b_clk>;
471			clock-indices = <
472				R7S72100_CLK_I2C0 R7S72100_CLK_I2C1 R7S72100_CLK_I2C2 R7S72100_CLK_I2C3
473				R7S72100_CLK_SPIBSC0 R7S72100_CLK_SPIBSC1
474			>;
475			clock-output-names = "i2c0", "i2c1", "i2c2", "i2c3", "spibsc0", "spibsc1";
476		};
477
478		mstp10_clks: mstp10_clks@fcfe043c {
479			#clock-cells = <1>;
480			compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
481			reg = <0xfcfe043c 4>;
482			clocks = <&p1_clk>, <&p1_clk>, <&p1_clk>, <&p1_clk>,
483				 <&p1_clk>;
484			clock-indices = <
485				R7S72100_CLK_SPI0 R7S72100_CLK_SPI1 R7S72100_CLK_SPI2 R7S72100_CLK_SPI3
486				R7S72100_CLK_SPI4
487			>;
488			clock-output-names = "spi0", "spi1", "spi2", "spi3", "spi4";
489		};
490		mstp12_clks: mstp12_clks@fcfe0444 {
491			#clock-cells = <1>;
492			compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
493			reg = <0xfcfe0444 4>;
494			clocks = <&p1_clk>, <&p1_clk>, <&p1_clk>, <&p1_clk>;
495			clock-indices = <
496				R7S72100_CLK_SDHI00 R7S72100_CLK_SDHI01
497				R7S72100_CLK_SDHI10 R7S72100_CLK_SDHI11
498			>;
499			clock-output-names = "sdhi00", "sdhi01", "sdhi10", "sdhi11";
500		};
501
502		pinctrl: pinctrl@fcfe3000 {
503			compatible = "renesas,r7s72100-ports";
504
505			reg = <0xfcfe3000 0x4230>;
506
507			port0: gpio-0 {
508				gpio-controller;
509				#gpio-cells = <2>;
510				gpio-ranges = <&pinctrl 0 0 6>;
511			};
512
513			port1: gpio-1 {
514				gpio-controller;
515				#gpio-cells = <2>;
516				gpio-ranges = <&pinctrl 0 16 16>;
517			};
518
519			port2: gpio-2 {
520				gpio-controller;
521				#gpio-cells = <2>;
522				gpio-ranges = <&pinctrl 0 32 16>;
523			};
524
525			port3: gpio-3 {
526				gpio-controller;
527				#gpio-cells = <2>;
528				gpio-ranges = <&pinctrl 0 48 16>;
529			};
530
531			port4: gpio-4 {
532				gpio-controller;
533				#gpio-cells = <2>;
534				gpio-ranges = <&pinctrl 0 64 16>;
535			};
536
537			port5: gpio-5 {
538				gpio-controller;
539				#gpio-cells = <2>;
540				gpio-ranges = <&pinctrl 0 80 11>;
541			};
542
543			port6: gpio-6 {
544				gpio-controller;
545				#gpio-cells = <2>;
546				gpio-ranges = <&pinctrl 0 96 16>;
547			};
548
549			port7: gpio-7 {
550				gpio-controller;
551				#gpio-cells = <2>;
552				gpio-ranges = <&pinctrl 0 112 16>;
553			};
554
555			port8: gpio-8 {
556				gpio-controller;
557				#gpio-cells = <2>;
558				gpio-ranges = <&pinctrl 0 128 16>;
559			};
560
561			port9: gpio-9 {
562				gpio-controller;
563				#gpio-cells = <2>;
564				gpio-ranges = <&pinctrl 0 144 8>;
565			};
566
567			port10: gpio-10 {
568				gpio-controller;
569				#gpio-cells = <2>;
570				gpio-ranges = <&pinctrl 0 160 16>;
571			};
572
573			port11: gpio-11 {
574				gpio-controller;
575				#gpio-cells = <2>;
576				gpio-ranges = <&pinctrl 0 176 16>;
577			};
578		};
579
580		ostm0: timer@fcfec000 {
581			compatible = "renesas,r7s72100-ostm", "renesas,ostm";
582			reg = <0xfcfec000 0x30>;
583			interrupts = <GIC_SPI 102 IRQ_TYPE_EDGE_RISING>;
584			clocks = <&mstp5_clks R7S72100_CLK_OSTM0>;
585			power-domains = <&cpg_clocks>;
586			status = "disabled";
587		};
588
589		ostm1: timer@fcfec400 {
590			compatible = "renesas,r7s72100-ostm", "renesas,ostm";
591			reg = <0xfcfec400 0x30>;
592			interrupts = <GIC_SPI 103 IRQ_TYPE_EDGE_RISING>;
593			clocks = <&mstp5_clks R7S72100_CLK_OSTM1>;
594			power-domains = <&cpg_clocks>;
595			status = "disabled";
596		};
597
598		i2c0: i2c@fcfee000 {
599			#address-cells = <1>;
600			#size-cells = <0>;
601			compatible = "renesas,riic-r7s72100", "renesas,riic-rz";
602			reg = <0xfcfee000 0x44>;
603			interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
604				     <GIC_SPI 158 IRQ_TYPE_EDGE_RISING>,
605				     <GIC_SPI 159 IRQ_TYPE_EDGE_RISING>,
606				     <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
607				     <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
608				     <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
609				     <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
610				     <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
611			interrupt-names = "tei", "ri", "ti", "spi", "sti",
612					  "naki", "ali", "tmoi";
613			clocks = <&mstp9_clks R7S72100_CLK_I2C0>;
614			clock-frequency = <100000>;
615			power-domains = <&cpg_clocks>;
616			status = "disabled";
617		};
618
619		i2c1: i2c@fcfee400 {
620			#address-cells = <1>;
621			#size-cells = <0>;
622			compatible = "renesas,riic-r7s72100", "renesas,riic-rz";
623			reg = <0xfcfee400 0x44>;
624			interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
625				     <GIC_SPI 166 IRQ_TYPE_EDGE_RISING>,
626				     <GIC_SPI 167 IRQ_TYPE_EDGE_RISING>,
627				     <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>,
628				     <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>,
629				     <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>,
630				     <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>,
631				     <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
632			interrupt-names = "tei", "ri", "ti", "spi", "sti",
633					  "naki", "ali", "tmoi";
634			clocks = <&mstp9_clks R7S72100_CLK_I2C1>;
635			clock-frequency = <100000>;
636			power-domains = <&cpg_clocks>;
637			status = "disabled";
638		};
639
640		i2c2: i2c@fcfee800 {
641			#address-cells = <1>;
642			#size-cells = <0>;
643			compatible = "renesas,riic-r7s72100", "renesas,riic-rz";
644			reg = <0xfcfee800 0x44>;
645			interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>,
646				     <GIC_SPI 174 IRQ_TYPE_EDGE_RISING>,
647				     <GIC_SPI 175 IRQ_TYPE_EDGE_RISING>,
648				     <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>,
649				     <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>,
650				     <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>,
651				     <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>,
652				     <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
653			interrupt-names = "tei", "ri", "ti", "spi", "sti",
654					  "naki", "ali", "tmoi";
655			clocks = <&mstp9_clks R7S72100_CLK_I2C2>;
656			clock-frequency = <100000>;
657			power-domains = <&cpg_clocks>;
658			status = "disabled";
659		};
660
661		i2c3: i2c@fcfeec00 {
662			#address-cells = <1>;
663			#size-cells = <0>;
664			compatible = "renesas,riic-r7s72100", "renesas,riic-rz";
665			reg = <0xfcfeec00 0x44>;
666			interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>,
667				     <GIC_SPI 182 IRQ_TYPE_EDGE_RISING>,
668				     <GIC_SPI 183 IRQ_TYPE_EDGE_RISING>,
669				     <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>,
670				     <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>,
671				     <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>,
672				     <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>,
673				     <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
674			interrupt-names = "tei", "ri", "ti", "spi", "sti",
675					  "naki", "ali", "tmoi";
676			clocks = <&mstp9_clks R7S72100_CLK_I2C3>;
677			clock-frequency = <100000>;
678			power-domains = <&cpg_clocks>;
679			status = "disabled";
680		};
681
682		irqc: interrupt-controller@fcfef800 {
683			compatible = "renesas,r7s72100-irqc",
684				     "renesas,rza1-irqc";
685			#interrupt-cells = <2>;
686			#address-cells = <0>;
687			interrupt-controller;
688			reg = <0xfcfef800 0x6>;
689			interrupt-map =
690				<0 0 &gic GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
691				<1 0 &gic GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
692				<2 0 &gic GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
693				<3 0 &gic GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
694				<4 0 &gic GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
695				<5 0 &gic GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
696				<6 0 &gic GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
697				<7 0 &gic GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
698			interrupt-map-mask = <7 0>;
699		};
700
701		mtu2: timer@fcff0000 {
702			compatible = "renesas,mtu2-r7s72100", "renesas,mtu2";
703			reg = <0xfcff0000 0x400>;
704			interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
705			interrupt-names = "tgi0a";
706			clocks = <&mstp3_clks R7S72100_CLK_MTU2>;
707			clock-names = "fck";
708			power-domains = <&cpg_clocks>;
709			status = "disabled";
710		};
711
712		rtc: rtc@fcff1000 {
713			compatible = "renesas,r7s72100-rtc", "renesas,sh-rtc";
714			reg = <0xfcff1000 0x2e>;
715			interrupts = <GIC_SPI 276 IRQ_TYPE_LEVEL_HIGH>,
716				     <GIC_SPI 277 IRQ_TYPE_LEVEL_HIGH>,
717				     <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>;
718			interrupt-names = "alarm", "period", "carry";
719			clocks = <&mstp6_clks R7S72100_CLK_RTC>, <&rtc_x1_clk>,
720				 <&rtc_x3_clk>, <&extal_clk>;
721			clock-names = "fck", "rtc_x1", "rtc_x3", "extal";
722			power-domains = <&cpg_clocks>;
723			status = "disabled";
724		};
725	};
726
727	usb_x1_clk: usb_x1 {
728		#clock-cells = <0>;
729		compatible = "fixed-clock";
730		/* If clk present, value must be set by board */
731		clock-frequency = <0>;
732	};
733};
734