1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the r8a77995 SoC
5 * Copyright (C) 2016 Renesas Electronics Corp.
6 * Copyright (C) 2017 Glider bvba
9 #include <dt-bindings/clock/r8a77995-cpg-mssr.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/power/r8a77995-sysc.h>
14 compatible = "renesas,r8a77995";
19 compatible = "arm,psci-1.0", "arm,psci-0.2";
28 compatible = "arm,cortex-a53", "arm,armv8";
31 power-domains = <&sysc R8A77995_PD_CA53_CPU0>;
32 next-level-cache = <&L2_CA53>;
33 enable-method = "psci";
36 L2_CA53: cache-controller-1 {
38 power-domains = <&sysc R8A77995_PD_CA53_SCU>;
45 compatible = "fixed-clock";
47 /* This value must be overridden by the board */
48 clock-frequency = <0>;
52 compatible = "fixed-clock";
54 clock-frequency = <0>;
58 compatible = "simple-bus";
59 interrupt-parent = <&gic>;
64 gic: interrupt-controller@f1010000 {
65 compatible = "arm,gic-400";
66 #interrupt-cells = <3>;
69 reg = <0x0 0xf1010000 0 0x1000>,
70 <0x0 0xf1020000 0 0x20000>,
71 <0x0 0xf1040000 0 0x20000>,
72 <0x0 0xf1060000 0 0x20000>;
73 interrupts = <GIC_PPI 9
74 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>;
75 clocks = <&cpg CPG_MOD 408>;
77 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
82 compatible = "arm,armv8-timer";
83 interrupts = <GIC_PPI 13
84 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
86 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
88 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
90 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>;
93 rwdt: watchdog@e6020000 {
94 compatible = "renesas,r8a77995-wdt",
95 "renesas,rcar-gen3-wdt";
96 reg = <0 0xe6020000 0 0x0c>;
97 clocks = <&cpg CPG_MOD 402>;
98 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
104 compatible = "arm,cortex-a53-pmu";
105 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
108 cpg: clock-controller@e6150000 {
109 compatible = "renesas,r8a77995-cpg-mssr";
110 reg = <0 0xe6150000 0 0x1000>;
111 clocks = <&extal_clk>;
112 clock-names = "extal";
114 #power-domain-cells = <0>;
118 rst: reset-controller@e6160000 {
119 compatible = "renesas,r8a77995-rst";
120 reg = <0 0xe6160000 0 0x0200>;
123 pfc: pin-controller@e6060000 {
124 compatible = "renesas,pfc-r8a77995";
125 reg = <0 0xe6060000 0 0x508>;
128 prr: chipid@fff00044 {
129 compatible = "renesas,prr";
130 reg = <0 0xfff00044 0 4>;
133 sysc: system-controller@e6180000 {
134 compatible = "renesas,r8a77995-sysc";
135 reg = <0 0xe6180000 0 0x0400>;
136 #power-domain-cells = <1>;
139 intc_ex: interrupt-controller@e61c0000 {
140 compatible = "renesas,intc-ex-r8a77995", "renesas,irqc";
141 #interrupt-cells = <2>;
142 interrupt-controller;
143 reg = <0 0xe61c0000 0 0x200>;
144 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH
145 GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH
146 GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH
147 GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH
148 GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH
149 GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
150 clocks = <&cpg CPG_MOD 407>;
151 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
155 gpio0: gpio@e6050000 {
156 compatible = "renesas,gpio-r8a77995",
157 "renesas,rcar-gen3-gpio",
159 reg = <0 0xe6050000 0 0x50>;
160 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
163 gpio-ranges = <&pfc 0 0 9>;
164 #interrupt-cells = <2>;
165 interrupt-controller;
166 clocks = <&cpg CPG_MOD 912>;
167 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
171 gpio1: gpio@e6051000 {
172 compatible = "renesas,gpio-r8a77995",
173 "renesas,rcar-gen3-gpio",
175 reg = <0 0xe6051000 0 0x50>;
176 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
179 gpio-ranges = <&pfc 0 32 32>;
180 #interrupt-cells = <2>;
181 interrupt-controller;
182 clocks = <&cpg CPG_MOD 911>;
183 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
187 gpio2: gpio@e6052000 {
188 compatible = "renesas,gpio-r8a77995",
189 "renesas,rcar-gen3-gpio",
191 reg = <0 0xe6052000 0 0x50>;
192 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
195 gpio-ranges = <&pfc 0 64 32>;
196 #interrupt-cells = <2>;
197 interrupt-controller;
198 clocks = <&cpg CPG_MOD 910>;
199 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
203 gpio3: gpio@e6053000 {
204 compatible = "renesas,gpio-r8a77995",
205 "renesas,rcar-gen3-gpio",
207 reg = <0 0xe6053000 0 0x50>;
208 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
211 gpio-ranges = <&pfc 0 96 10>;
212 #interrupt-cells = <2>;
213 interrupt-controller;
214 clocks = <&cpg CPG_MOD 909>;
215 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
219 gpio4: gpio@e6054000 {
220 compatible = "renesas,gpio-r8a77995",
221 "renesas,rcar-gen3-gpio",
223 reg = <0 0xe6054000 0 0x50>;
224 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
227 gpio-ranges = <&pfc 0 128 32>;
228 #interrupt-cells = <2>;
229 interrupt-controller;
230 clocks = <&cpg CPG_MOD 908>;
231 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
235 gpio5: gpio@e6055000 {
236 compatible = "renesas,gpio-r8a77995",
237 "renesas,rcar-gen3-gpio",
239 reg = <0 0xe6055000 0 0x50>;
240 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
243 gpio-ranges = <&pfc 0 160 21>;
244 #interrupt-cells = <2>;
245 interrupt-controller;
246 clocks = <&cpg CPG_MOD 907>;
247 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
251 gpio6: gpio@e6055400 {
252 compatible = "renesas,gpio-r8a77995",
253 "renesas,rcar-gen3-gpio",
255 reg = <0 0xe6055400 0 0x50>;
256 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
259 gpio-ranges = <&pfc 0 192 14>;
260 #interrupt-cells = <2>;
261 interrupt-controller;
262 clocks = <&cpg CPG_MOD 906>;
263 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
267 avb: ethernet@e6800000 {
268 compatible = "renesas,etheravb-r8a77995",
269 "renesas,etheravb-rcar-gen3";
270 reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>;
271 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
272 <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
273 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
274 <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
275 <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
276 <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
277 <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
278 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
279 <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
280 <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
281 <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
282 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
283 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
284 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
285 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
286 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
287 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
288 <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
289 <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
290 <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
291 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
292 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
293 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
294 <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
295 <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
296 interrupt-names = "ch0", "ch1", "ch2", "ch3",
297 "ch4", "ch5", "ch6", "ch7",
298 "ch8", "ch9", "ch10", "ch11",
299 "ch12", "ch13", "ch14", "ch15",
300 "ch16", "ch17", "ch18", "ch19",
301 "ch20", "ch21", "ch22", "ch23",
303 clocks = <&cpg CPG_MOD 812>;
304 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
306 phy-mode = "rgmii-txid";
307 #address-cells = <1>;
312 scif2: serial@e6e88000 {
313 compatible = "renesas,scif-r8a77995",
314 "renesas,rcar-gen3-scif", "renesas,scif";
315 reg = <0 0xe6e88000 0 64>;
316 interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
317 clocks = <&cpg CPG_MOD 310>,
318 <&cpg CPG_CORE R8A77995_CLK_S3D1C>,
320 clock-names = "fck", "brg_int", "scif_clk";
321 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
327 compatible = "renesas,pwm-r8a77995", "renesas,pwm-rcar";
328 reg = <0 0xe6e30000 0 0x8>;
330 clocks = <&cpg CPG_MOD 523>;
331 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
337 compatible = "renesas,pwm-r8a77995", "renesas,pwm-rcar";
338 reg = <0 0xe6e31000 0 0x8>;
340 clocks = <&cpg CPG_MOD 523>;
341 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
347 compatible = "renesas,pwm-r8a77995", "renesas,pwm-rcar";
348 reg = <0 0xe6e32000 0 0x8>;
350 clocks = <&cpg CPG_MOD 523>;
351 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
357 compatible = "renesas,pwm-r8a77995", "renesas,pwm-rcar";
358 reg = <0 0xe6e33000 0 0x8>;
360 clocks = <&cpg CPG_MOD 523>;
361 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
366 ehci0: usb@ee080100 {
367 compatible = "generic-ehci";
368 reg = <0 0xee080100 0 0x100>;
369 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
370 clocks = <&cpg CPG_MOD 703>;
373 companion = <&ohci0>;
374 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
379 ohci0: usb@ee080000 {
380 compatible = "generic-ohci";
381 reg = <0 0xee080000 0 0x100>;
382 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
383 clocks = <&cpg CPG_MOD 703>;
386 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
391 usb2_phy0: usb-phy@ee080200 {
392 compatible = "renesas,usb2-phy-r8a77995",
393 "renesas,rcar-gen3-usb2-phy";
394 reg = <0 0xee080200 0 0x700>;
395 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
396 clocks = <&cpg CPG_MOD 703>;
397 power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
403 rpc: rpc@0xee200000 {
404 compatible = "renesas,rpc-r8a77995", "renesas,rpc";
405 reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
406 clocks = <&cpg CPG_MOD 917>;