2 * Device Tree Source for the r8a77995 SoC
4 * Copyright (C) 2016 Renesas Electronics Corp.
5 * Copyright (C) 2017 Glider bvba
7 * SPDX-License-Identifier: GPL-2.0
10 #include <dt-bindings/clock/r8a77995-cpg-mssr.h>
11 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 #include <dt-bindings/power/r8a77995-sysc.h>
15 compatible = "renesas,r8a77995";
20 compatible = "arm,psci-1.0", "arm,psci-0.2";
29 compatible = "arm,cortex-a53", "arm,armv8";
32 power-domains = <&sysc R8A77995_PD_CA53_CPU0>;
33 next-level-cache = <&L2_CA53>;
34 enable-method = "psci";
37 L2_CA53: cache-controller-1 {
39 power-domains = <&sysc R8A77995_PD_CA53_SCU>;
46 compatible = "fixed-clock";
48 /* This value must be overridden by the board */
49 clock-frequency = <0>;
53 compatible = "fixed-clock";
55 clock-frequency = <0>;
59 compatible = "simple-bus";
60 interrupt-parent = <&gic>;
65 gic: interrupt-controller@f1010000 {
66 compatible = "arm,gic-400";
67 #interrupt-cells = <3>;
70 reg = <0x0 0xf1010000 0 0x1000>,
71 <0x0 0xf1020000 0 0x20000>,
72 <0x0 0xf1040000 0 0x20000>,
73 <0x0 0xf1060000 0 0x20000>;
74 interrupts = <GIC_PPI 9
75 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>;
76 clocks = <&cpg CPG_MOD 408>;
78 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
83 compatible = "arm,armv8-timer";
84 interrupts = <GIC_PPI 13
85 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
87 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
89 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
91 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>;
94 rwdt: watchdog@e6020000 {
95 compatible = "renesas,r8a77995-wdt",
96 "renesas,rcar-gen3-wdt";
97 reg = <0 0xe6020000 0 0x0c>;
98 clocks = <&cpg CPG_MOD 402>;
99 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
105 compatible = "arm,cortex-a53-pmu";
106 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
109 cpg: clock-controller@e6150000 {
110 compatible = "renesas,r8a77995-cpg-mssr";
111 reg = <0 0xe6150000 0 0x1000>;
112 clocks = <&extal_clk>;
113 clock-names = "extal";
115 #power-domain-cells = <0>;
119 rst: reset-controller@e6160000 {
120 compatible = "renesas,r8a77995-rst";
121 reg = <0 0xe6160000 0 0x0200>;
124 pfc: pin-controller@e6060000 {
125 compatible = "renesas,pfc-r8a77995";
126 reg = <0 0xe6060000 0 0x508>;
129 prr: chipid@fff00044 {
130 compatible = "renesas,prr";
131 reg = <0 0xfff00044 0 4>;
134 sysc: system-controller@e6180000 {
135 compatible = "renesas,r8a77995-sysc";
136 reg = <0 0xe6180000 0 0x0400>;
137 #power-domain-cells = <1>;
140 intc_ex: interrupt-controller@e61c0000 {
141 compatible = "renesas,intc-ex-r8a77995", "renesas,irqc";
142 #interrupt-cells = <2>;
143 interrupt-controller;
144 reg = <0 0xe61c0000 0 0x200>;
145 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH
146 GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH
147 GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH
148 GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH
149 GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH
150 GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
151 clocks = <&cpg CPG_MOD 407>;
152 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
156 gpio0: gpio@e6050000 {
157 compatible = "renesas,gpio-r8a77995",
158 "renesas,rcar-gen3-gpio",
160 reg = <0 0xe6050000 0 0x50>;
161 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
164 gpio-ranges = <&pfc 0 0 9>;
165 #interrupt-cells = <2>;
166 interrupt-controller;
167 clocks = <&cpg CPG_MOD 912>;
168 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
172 gpio1: gpio@e6051000 {
173 compatible = "renesas,gpio-r8a77995",
174 "renesas,rcar-gen3-gpio",
176 reg = <0 0xe6051000 0 0x50>;
177 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
180 gpio-ranges = <&pfc 0 32 32>;
181 #interrupt-cells = <2>;
182 interrupt-controller;
183 clocks = <&cpg CPG_MOD 911>;
184 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
188 gpio2: gpio@e6052000 {
189 compatible = "renesas,gpio-r8a77995",
190 "renesas,rcar-gen3-gpio",
192 reg = <0 0xe6052000 0 0x50>;
193 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
196 gpio-ranges = <&pfc 0 64 32>;
197 #interrupt-cells = <2>;
198 interrupt-controller;
199 clocks = <&cpg CPG_MOD 910>;
200 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
204 gpio3: gpio@e6053000 {
205 compatible = "renesas,gpio-r8a77995",
206 "renesas,rcar-gen3-gpio",
208 reg = <0 0xe6053000 0 0x50>;
209 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
212 gpio-ranges = <&pfc 0 96 10>;
213 #interrupt-cells = <2>;
214 interrupt-controller;
215 clocks = <&cpg CPG_MOD 909>;
216 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
220 gpio4: gpio@e6054000 {
221 compatible = "renesas,gpio-r8a77995",
222 "renesas,rcar-gen3-gpio",
224 reg = <0 0xe6054000 0 0x50>;
225 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
228 gpio-ranges = <&pfc 0 128 32>;
229 #interrupt-cells = <2>;
230 interrupt-controller;
231 clocks = <&cpg CPG_MOD 908>;
232 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
236 gpio5: gpio@e6055000 {
237 compatible = "renesas,gpio-r8a77995",
238 "renesas,rcar-gen3-gpio",
240 reg = <0 0xe6055000 0 0x50>;
241 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
244 gpio-ranges = <&pfc 0 160 21>;
245 #interrupt-cells = <2>;
246 interrupt-controller;
247 clocks = <&cpg CPG_MOD 907>;
248 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
252 gpio6: gpio@e6055400 {
253 compatible = "renesas,gpio-r8a77995",
254 "renesas,rcar-gen3-gpio",
256 reg = <0 0xe6055400 0 0x50>;
257 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
260 gpio-ranges = <&pfc 0 192 14>;
261 #interrupt-cells = <2>;
262 interrupt-controller;
263 clocks = <&cpg CPG_MOD 906>;
264 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
268 avb: ethernet@e6800000 {
269 compatible = "renesas,etheravb-r8a77995",
270 "renesas,etheravb-rcar-gen3";
271 reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>;
272 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
273 <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
274 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
275 <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
276 <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
277 <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
278 <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
279 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
280 <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
281 <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
282 <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
283 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
284 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
285 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
286 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
287 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
288 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
289 <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
290 <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
291 <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
292 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
293 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
294 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
295 <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
296 <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
297 interrupt-names = "ch0", "ch1", "ch2", "ch3",
298 "ch4", "ch5", "ch6", "ch7",
299 "ch8", "ch9", "ch10", "ch11",
300 "ch12", "ch13", "ch14", "ch15",
301 "ch16", "ch17", "ch18", "ch19",
302 "ch20", "ch21", "ch22", "ch23",
304 clocks = <&cpg CPG_MOD 812>;
305 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
307 phy-mode = "rgmii-txid";
308 #address-cells = <1>;
313 scif2: serial@e6e88000 {
314 compatible = "renesas,scif-r8a77995",
315 "renesas,rcar-gen3-scif", "renesas,scif";
316 reg = <0 0xe6e88000 0 64>;
317 interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
318 clocks = <&cpg CPG_MOD 310>,
319 <&cpg CPG_CORE R8A77995_CLK_S3D1C>,
321 clock-names = "fck", "brg_int", "scif_clk";
322 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
328 compatible = "renesas,pwm-r8a77995", "renesas,pwm-rcar";
329 reg = <0 0xe6e30000 0 0x8>;
331 clocks = <&cpg CPG_MOD 523>;
332 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
338 compatible = "renesas,pwm-r8a77995", "renesas,pwm-rcar";
339 reg = <0 0xe6e31000 0 0x8>;
341 clocks = <&cpg CPG_MOD 523>;
342 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
348 compatible = "renesas,pwm-r8a77995", "renesas,pwm-rcar";
349 reg = <0 0xe6e32000 0 0x8>;
351 clocks = <&cpg CPG_MOD 523>;
352 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
358 compatible = "renesas,pwm-r8a77995", "renesas,pwm-rcar";
359 reg = <0 0xe6e33000 0 0x8>;
361 clocks = <&cpg CPG_MOD 523>;
362 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
367 ehci0: usb@ee080100 {
368 compatible = "generic-ehci";
369 reg = <0 0xee080100 0 0x100>;
370 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
371 clocks = <&cpg CPG_MOD 703>;
374 companion = <&ohci0>;
375 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
380 ohci0: usb@ee080000 {
381 compatible = "generic-ohci";
382 reg = <0 0xee080000 0 0x100>;
383 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
384 clocks = <&cpg CPG_MOD 703>;
387 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
392 usb2_phy0: usb-phy@ee080200 {
393 compatible = "renesas,usb2-phy-r8a77995",
394 "renesas,rcar-gen3-usb2-phy";
395 reg = <0 0xee080200 0 0x700>;
396 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
397 clocks = <&cpg CPG_MOD 703>;
398 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;