blob: ebf5b7cfe21599c6adb871f10a740f72cd655a24 [file] [log] [blame]
Wolfram Sangcdbfaf62018-06-11 23:49:36 +09001// SPDX-License-Identifier: GPL-2.0
Simon Hormanc58a1542013-01-29 14:21:46 +09002/*
Magnus Dammaf69e342018-08-20 23:04:44 +09003 * Device Tree Source for the R-Car H1 (R8A77790) SoC
Simon Hormanc58a1542013-01-29 14:21:46 +09004 *
5 * Copyright (C) 2013 Renesas Solutions Corp.
6 * Copyright (C) 2013 Simon Horman
Simon Hormanc58a1542013-01-29 14:21:46 +09007 */
8
Simon Horman1e851532014-05-15 20:31:57 +09009#include <dt-bindings/clock/r8a7779-clock.h>
Magnus Dammcea80652014-12-16 18:39:41 +090010#include <dt-bindings/interrupt-controller/arm-gic.h>
Laurent Pinchart5f75e732013-11-19 03:18:25 +010011#include <dt-bindings/interrupt-controller/irq.h>
Geert Uytterhoevenb2df3aa2015-06-03 10:14:01 +020012#include <dt-bindings/power/r8a7779-sysc.h>
Laurent Pinchart5f75e732013-11-19 03:18:25 +010013
Simon Hormanc58a1542013-01-29 14:21:46 +090014/ {
15 compatible = "renesas,r8a7779";
Laurent Pinchart9ff254a2014-04-30 02:41:28 +020016 interrupt-parent = <&gic>;
Geert Uytterhoeven1cfc0c02016-10-21 11:16:08 +020017 #address-cells = <1>;
18 #size-cells = <1>;
Simon Hormanc58a1542013-01-29 14:21:46 +090019
20 cpus {
21 #address-cells = <1>;
22 #size-cells = <0>;
23
24 cpu@0 {
25 device_type = "cpu";
26 compatible = "arm,cortex-a9";
27 reg = <0>;
Simon Horman6b060f92014-05-16 13:42:58 +090028 clock-frequency = <1000000000>;
Geert Uytterhoevenfa9f95a2017-10-12 11:35:09 +020029 clocks = <&cpg_clocks R8A7779_CLK_Z>;
Simon Hormanc58a1542013-01-29 14:21:46 +090030 };
31 cpu@1 {
32 device_type = "cpu";
33 compatible = "arm,cortex-a9";
34 reg = <1>;
Simon Horman6b060f92014-05-16 13:42:58 +090035 clock-frequency = <1000000000>;
Geert Uytterhoevenfa9f95a2017-10-12 11:35:09 +020036 clocks = <&cpg_clocks R8A7779_CLK_Z>;
Geert Uytterhoevenb2df3aa2015-06-03 10:14:01 +020037 power-domains = <&sysc R8A7779_PD_ARM1>;
Simon Hormanc58a1542013-01-29 14:21:46 +090038 };
39 cpu@2 {
40 device_type = "cpu";
41 compatible = "arm,cortex-a9";
42 reg = <2>;
Simon Horman6b060f92014-05-16 13:42:58 +090043 clock-frequency = <1000000000>;
Geert Uytterhoevenfa9f95a2017-10-12 11:35:09 +020044 clocks = <&cpg_clocks R8A7779_CLK_Z>;
Geert Uytterhoevenb2df3aa2015-06-03 10:14:01 +020045 power-domains = <&sysc R8A7779_PD_ARM2>;
Simon Hormanc58a1542013-01-29 14:21:46 +090046 };
47 cpu@3 {
48 device_type = "cpu";
49 compatible = "arm,cortex-a9";
50 reg = <3>;
Simon Horman6b060f92014-05-16 13:42:58 +090051 clock-frequency = <1000000000>;
Geert Uytterhoevenfa9f95a2017-10-12 11:35:09 +020052 clocks = <&cpg_clocks R8A7779_CLK_Z>;
Geert Uytterhoevenb2df3aa2015-06-03 10:14:01 +020053 power-domains = <&sysc R8A7779_PD_ARM3>;
Simon Hormanc58a1542013-01-29 14:21:46 +090054 };
55 };
56
Simon Horman3c3f6ad2013-11-26 16:47:11 +090057 aliases {
58 spi0 = &hspi0;
59 spi1 = &hspi1;
60 spi2 = &hspi2;
61 };
62
Simon Hormancc703a52014-07-07 08:47:38 +020063 gic: interrupt-controller@f0001000 {
64 compatible = "arm,cortex-a9-gic";
65 #interrupt-cells = <3>;
66 interrupt-controller;
67 reg = <0xf0001000 0x1000>,
68 <0xf0000100 0x100>;
69 };
Simon Horman10e8d4f2012-11-21 22:00:15 +090070
Magnus Dammcea80652014-12-16 18:39:41 +090071 timer@f0000600 {
72 compatible = "arm,cortex-a9-twd-timer";
73 reg = <0xf0000600 0x20>;
74 interrupts = <GIC_PPI 13
Geert Uytterhoevene6c24882016-03-18 11:19:21 +010075 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
Magnus Dammcea80652014-12-16 18:39:41 +090076 clocks = <&cpg_clocks R8A7779_CLK_ZS>;
77 };
78
Laurent Pinchartf5c771b2013-05-10 15:51:14 +020079 gpio0: gpio@ffc40000 {
Simon Horman88cb1412017-10-13 14:33:03 +020080 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
Laurent Pinchartf5c771b2013-05-10 15:51:14 +020081 reg = <0xffc40000 0x2c>;
Simon Horman854b77332016-01-21 13:52:46 +090082 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf5c771b2013-05-10 15:51:14 +020083 #gpio-cells = <2>;
84 gpio-controller;
85 gpio-ranges = <&pfc 0 0 32>;
86 #interrupt-cells = <2>;
87 interrupt-controller;
88 };
89
90 gpio1: gpio@ffc41000 {
Simon Horman88cb1412017-10-13 14:33:03 +020091 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
Laurent Pinchartf5c771b2013-05-10 15:51:14 +020092 reg = <0xffc41000 0x2c>;
Simon Horman854b77332016-01-21 13:52:46 +090093 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf5c771b2013-05-10 15:51:14 +020094 #gpio-cells = <2>;
95 gpio-controller;
96 gpio-ranges = <&pfc 0 32 32>;
97 #interrupt-cells = <2>;
98 interrupt-controller;
99 };
100
101 gpio2: gpio@ffc42000 {
Simon Horman88cb1412017-10-13 14:33:03 +0200102 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
Laurent Pinchartf5c771b2013-05-10 15:51:14 +0200103 reg = <0xffc42000 0x2c>;
Simon Horman854b77332016-01-21 13:52:46 +0900104 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf5c771b2013-05-10 15:51:14 +0200105 #gpio-cells = <2>;
106 gpio-controller;
107 gpio-ranges = <&pfc 0 64 32>;
108 #interrupt-cells = <2>;
109 interrupt-controller;
110 };
111
112 gpio3: gpio@ffc43000 {
Simon Horman88cb1412017-10-13 14:33:03 +0200113 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
Laurent Pinchartf5c771b2013-05-10 15:51:14 +0200114 reg = <0xffc43000 0x2c>;
Simon Horman854b77332016-01-21 13:52:46 +0900115 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf5c771b2013-05-10 15:51:14 +0200116 #gpio-cells = <2>;
117 gpio-controller;
118 gpio-ranges = <&pfc 0 96 32>;
119 #interrupt-cells = <2>;
120 interrupt-controller;
121 };
122
123 gpio4: gpio@ffc44000 {
Simon Horman88cb1412017-10-13 14:33:03 +0200124 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
Laurent Pinchartf5c771b2013-05-10 15:51:14 +0200125 reg = <0xffc44000 0x2c>;
Simon Horman854b77332016-01-21 13:52:46 +0900126 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf5c771b2013-05-10 15:51:14 +0200127 #gpio-cells = <2>;
128 gpio-controller;
129 gpio-ranges = <&pfc 0 128 32>;
130 #interrupt-cells = <2>;
131 interrupt-controller;
132 };
133
134 gpio5: gpio@ffc45000 {
Simon Horman88cb1412017-10-13 14:33:03 +0200135 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
Laurent Pinchartf5c771b2013-05-10 15:51:14 +0200136 reg = <0xffc45000 0x2c>;
Simon Horman854b77332016-01-21 13:52:46 +0900137 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf5c771b2013-05-10 15:51:14 +0200138 #gpio-cells = <2>;
139 gpio-controller;
140 gpio-ranges = <&pfc 0 160 32>;
141 #interrupt-cells = <2>;
142 interrupt-controller;
143 };
144
145 gpio6: gpio@ffc46000 {
Simon Horman88cb1412017-10-13 14:33:03 +0200146 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
Laurent Pinchartf5c771b2013-05-10 15:51:14 +0200147 reg = <0xffc46000 0x2c>;
Simon Horman854b77332016-01-21 13:52:46 +0900148 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf5c771b2013-05-10 15:51:14 +0200149 #gpio-cells = <2>;
150 gpio-controller;
151 gpio-ranges = <&pfc 0 192 9>;
152 #interrupt-cells = <2>;
153 interrupt-controller;
154 };
155
Magnus Damm7bf46d02015-06-25 17:57:28 +0900156 irqpin0: interrupt-controller@fe78001c {
Magnus Damm11ef0342013-11-28 08:15:18 +0900157 compatible = "renesas,intc-irqpin-r8a7779", "renesas,intc-irqpin";
Guennadi Liakhovetski24603f32013-04-03 11:19:07 +0200158 #interrupt-cells = <2>;
Kuninori Morimoto84b47df2013-10-02 01:39:13 -0700159 status = "disabled";
Guennadi Liakhovetski24603f32013-04-03 11:19:07 +0200160 interrupt-controller;
161 reg = <0xfe78001c 4>,
162 <0xfe780010 4>,
163 <0xfe780024 4>,
164 <0xfe780044 4>,
Magnus Damm7bf46d02015-06-25 17:57:28 +0900165 <0xfe780064 4>,
166 <0xfe780000 4>;
Simon Horman854b77332016-01-21 13:52:46 +0900167 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH
168 GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH
169 GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH
170 GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
Guennadi Liakhovetski24603f32013-04-03 11:19:07 +0200171 sense-bitfield-width = <2>;
172 };
173
Lee Jones98724b72013-07-22 11:52:38 +0100174 i2c0: i2c@ffc70000 {
Simon Horman10e8d4f2012-11-21 22:00:15 +0900175 #address-cells = <1>;
176 #size-cells = <0>;
Simon Horman137d27f2016-12-13 12:45:47 +0100177 compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
Simon Horman10e8d4f2012-11-21 22:00:15 +0900178 reg = <0xffc70000 0x1000>;
Simon Horman854b77332016-01-21 13:52:46 +0900179 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900180 clocks = <&mstp0_clks R8A7779_CLK_I2C0>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200181 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Guennadi Liakhovetskieda3a4f2013-09-26 13:06:01 +0200182 status = "disabled";
Simon Horman10e8d4f2012-11-21 22:00:15 +0900183 };
184
Lee Jones98724b72013-07-22 11:52:38 +0100185 i2c1: i2c@ffc71000 {
Simon Horman10e8d4f2012-11-21 22:00:15 +0900186 #address-cells = <1>;
187 #size-cells = <0>;
Simon Horman137d27f2016-12-13 12:45:47 +0100188 compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
Simon Horman10e8d4f2012-11-21 22:00:15 +0900189 reg = <0xffc71000 0x1000>;
Simon Horman854b77332016-01-21 13:52:46 +0900190 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900191 clocks = <&mstp0_clks R8A7779_CLK_I2C1>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200192 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Guennadi Liakhovetskieda3a4f2013-09-26 13:06:01 +0200193 status = "disabled";
Simon Horman10e8d4f2012-11-21 22:00:15 +0900194 };
195
Lee Jones98724b72013-07-22 11:52:38 +0100196 i2c2: i2c@ffc72000 {
Simon Horman10e8d4f2012-11-21 22:00:15 +0900197 #address-cells = <1>;
198 #size-cells = <0>;
Simon Horman137d27f2016-12-13 12:45:47 +0100199 compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
Simon Horman10e8d4f2012-11-21 22:00:15 +0900200 reg = <0xffc72000 0x1000>;
Simon Horman854b77332016-01-21 13:52:46 +0900201 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900202 clocks = <&mstp0_clks R8A7779_CLK_I2C2>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200203 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Guennadi Liakhovetskieda3a4f2013-09-26 13:06:01 +0200204 status = "disabled";
Simon Horman10e8d4f2012-11-21 22:00:15 +0900205 };
206
Lee Jones98724b72013-07-22 11:52:38 +0100207 i2c3: i2c@ffc73000 {
Simon Horman10e8d4f2012-11-21 22:00:15 +0900208 #address-cells = <1>;
209 #size-cells = <0>;
Simon Horman137d27f2016-12-13 12:45:47 +0100210 compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
Simon Horman10e8d4f2012-11-21 22:00:15 +0900211 reg = <0xffc73000 0x1000>;
Simon Horman854b77332016-01-21 13:52:46 +0900212 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900213 clocks = <&mstp0_clks R8A7779_CLK_I2C3>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200214 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Guennadi Liakhovetskieda3a4f2013-09-26 13:06:01 +0200215 status = "disabled";
Simon Horman10e8d4f2012-11-21 22:00:15 +0900216 };
Kuninori Morimoto25a65972013-03-04 00:32:16 -0800217
Simon Hormanfd953b82014-05-15 20:39:30 +0900218 scif0: serial@ffe40000 {
Geert Uytterhoevenb2ac44f2016-01-29 10:32:03 +0100219 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
220 "renesas,scif";
Simon Hormanfd953b82014-05-15 20:39:30 +0900221 reg = <0xffe40000 0x100>;
Simon Horman854b77332016-01-21 13:52:46 +0900222 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoevenf2be5f02016-01-29 11:04:38 +0100223 clocks = <&mstp0_clks R8A7779_CLK_SCIF0>,
224 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
225 clock-names = "fck", "brg_int", "scif_clk";
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200226 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Simon Hormanfd953b82014-05-15 20:39:30 +0900227 status = "disabled";
228 };
229
230 scif1: serial@ffe41000 {
Geert Uytterhoevenb2ac44f2016-01-29 10:32:03 +0100231 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
232 "renesas,scif";
Simon Hormanfd953b82014-05-15 20:39:30 +0900233 reg = <0xffe41000 0x100>;
Simon Horman854b77332016-01-21 13:52:46 +0900234 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoevenf2be5f02016-01-29 11:04:38 +0100235 clocks = <&mstp0_clks R8A7779_CLK_SCIF1>,
236 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
237 clock-names = "fck", "brg_int", "scif_clk";
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200238 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Simon Hormanfd953b82014-05-15 20:39:30 +0900239 status = "disabled";
240 };
241
242 scif2: serial@ffe42000 {
Geert Uytterhoevenb2ac44f2016-01-29 10:32:03 +0100243 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
244 "renesas,scif";
Simon Hormanfd953b82014-05-15 20:39:30 +0900245 reg = <0xffe42000 0x100>;
Simon Horman854b77332016-01-21 13:52:46 +0900246 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoevenf2be5f02016-01-29 11:04:38 +0100247 clocks = <&mstp0_clks R8A7779_CLK_SCIF2>,
248 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
249 clock-names = "fck", "brg_int", "scif_clk";
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200250 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Simon Hormanfd953b82014-05-15 20:39:30 +0900251 status = "disabled";
252 };
253
254 scif3: serial@ffe43000 {
Geert Uytterhoevenb2ac44f2016-01-29 10:32:03 +0100255 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
256 "renesas,scif";
Simon Hormanfd953b82014-05-15 20:39:30 +0900257 reg = <0xffe43000 0x100>;
Simon Horman854b77332016-01-21 13:52:46 +0900258 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoevenf2be5f02016-01-29 11:04:38 +0100259 clocks = <&mstp0_clks R8A7779_CLK_SCIF3>,
260 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
261 clock-names = "fck", "brg_int", "scif_clk";
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200262 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Simon Hormanfd953b82014-05-15 20:39:30 +0900263 status = "disabled";
264 };
265
266 scif4: serial@ffe44000 {
Geert Uytterhoevenb2ac44f2016-01-29 10:32:03 +0100267 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
268 "renesas,scif";
Simon Hormanfd953b82014-05-15 20:39:30 +0900269 reg = <0xffe44000 0x100>;
Simon Horman854b77332016-01-21 13:52:46 +0900270 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoevenf2be5f02016-01-29 11:04:38 +0100271 clocks = <&mstp0_clks R8A7779_CLK_SCIF4>,
272 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
273 clock-names = "fck", "brg_int", "scif_clk";
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200274 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Simon Hormanfd953b82014-05-15 20:39:30 +0900275 status = "disabled";
276 };
277
278 scif5: serial@ffe45000 {
Geert Uytterhoevenb2ac44f2016-01-29 10:32:03 +0100279 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
280 "renesas,scif";
Simon Hormanfd953b82014-05-15 20:39:30 +0900281 reg = <0xffe45000 0x100>;
Simon Horman854b77332016-01-21 13:52:46 +0900282 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoevenf2be5f02016-01-29 11:04:38 +0100283 clocks = <&mstp0_clks R8A7779_CLK_SCIF5>,
284 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
285 clock-names = "fck", "brg_int", "scif_clk";
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200286 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Simon Hormanfd953b82014-05-15 20:39:30 +0900287 status = "disabled";
288 };
289
Ulrich Hecht055d15a2019-01-18 11:48:15 +0100290 hscif0: serial@ffe48000 {
291 compatible = "renesas,hscif-r8a7779",
292 "renesas,rcar-gen1-hscif", "renesas,hscif";
293 reg = <0xffe48000 96>;
294 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
295 clocks = <&mstp0_clks R8A7779_CLK_HSCIF0>,
296 <&cpg_clocks R8A7779_CLK_S>,
297 <&scif_clk>;
298 clock-names = "fck", "brg_int", "scif_clk";
Geert Uytterhoevena03fa772019-08-16 10:22:29 +0200299 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Ulrich Hecht055d15a2019-01-18 11:48:15 +0100300 status = "disabled";
301 };
302
303 hscif1: serial@ffe49000 {
304 compatible = "renesas,hscif-r8a7779",
305 "renesas,rcar-gen1-hscif", "renesas,hscif";
306 reg = <0xffe49000 96>;
307 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
308 clocks = <&mstp0_clks R8A7779_CLK_HSCIF1>,
309 <&cpg_clocks R8A7779_CLK_S>,
310 <&scif_clk>;
311 clock-names = "fck", "brg_int", "scif_clk";
Geert Uytterhoevena03fa772019-08-16 10:22:29 +0200312 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Ulrich Hecht055d15a2019-01-18 11:48:15 +0100313 status = "disabled";
314 };
315
Simon Hormanb07b7632017-04-26 12:05:34 +0200316 pfc: pin-controller@fffc0000 {
Laurent Pinchart3ab03d02013-05-09 15:05:57 +0200317 compatible = "renesas,pfc-r8a7779";
318 reg = <0xfffc0000 0x23c>;
319 };
320
Kuninori Morimoto25a65972013-03-04 00:32:16 -0800321 thermal@ffc48000 {
Geert Uytterhoeven4d50e6d2014-08-28 10:20:40 +0200322 compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
Kuninori Morimoto25a65972013-03-04 00:32:16 -0800323 reg = <0xffc48000 0x38>;
324 };
Vladimir Barinov7840a652013-02-27 23:34:36 +0300325
Laurent Pinchartef890ea2014-07-09 15:12:39 +0200326 tmu0: timer@ffd80000 {
Simon Hormana51b7b32014-09-08 09:27:48 +0900327 compatible = "renesas,tmu-r8a7779", "renesas,tmu";
Laurent Pinchartef890ea2014-07-09 15:12:39 +0200328 reg = <0xffd80000 0x30>;
Simon Horman854b77332016-01-21 13:52:46 +0900329 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
330 <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
331 <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartef890ea2014-07-09 15:12:39 +0200332 clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
333 clock-names = "fck";
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200334 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Laurent Pinchartef890ea2014-07-09 15:12:39 +0200335
336 #renesas,channels = <3>;
337
338 status = "disabled";
339 };
340
341 tmu1: timer@ffd81000 {
Simon Hormana51b7b32014-09-08 09:27:48 +0900342 compatible = "renesas,tmu-r8a7779", "renesas,tmu";
Laurent Pinchartef890ea2014-07-09 15:12:39 +0200343 reg = <0xffd81000 0x30>;
Simon Horman854b77332016-01-21 13:52:46 +0900344 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
345 <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
346 <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartef890ea2014-07-09 15:12:39 +0200347 clocks = <&mstp0_clks R8A7779_CLK_TMU1>;
348 clock-names = "fck";
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200349 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Laurent Pinchartef890ea2014-07-09 15:12:39 +0200350
351 #renesas,channels = <3>;
352
353 status = "disabled";
354 };
355
356 tmu2: timer@ffd82000 {
Simon Hormana51b7b32014-09-08 09:27:48 +0900357 compatible = "renesas,tmu-r8a7779", "renesas,tmu";
Laurent Pinchartef890ea2014-07-09 15:12:39 +0200358 reg = <0xffd82000 0x30>;
Simon Horman854b77332016-01-21 13:52:46 +0900359 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
360 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
361 <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartef890ea2014-07-09 15:12:39 +0200362 clocks = <&mstp0_clks R8A7779_CLK_TMU2>;
363 clock-names = "fck";
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200364 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Laurent Pinchartef890ea2014-07-09 15:12:39 +0200365
366 #renesas,channels = <3>;
367
368 status = "disabled";
369 };
370
Vladimir Barinov7840a652013-02-27 23:34:36 +0300371 sata: sata@fc600000 {
Geert Uytterhoeven25af9c82014-10-29 14:58:51 +0100372 compatible = "renesas,sata-r8a7779", "renesas,rcar-sata";
Geert Uytterhoeven441f61e2018-07-20 14:28:57 +0200373 reg = <0xfc600000 0x200000>;
Simon Horman854b77332016-01-21 13:52:46 +0900374 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900375 clocks = <&mstp1_clks R8A7779_CLK_SATA>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200376 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Geert Uytterhoevene8aa6812017-01-16 17:56:53 +0100377 status = "disabled";
Vladimir Barinov7840a652013-02-27 23:34:36 +0300378 };
Kuninori Morimotoc4866e72013-10-10 23:36:22 -0700379
Kuninori Morimoto26247052013-10-21 19:36:02 -0700380 sdhi0: sd@ffe4c000 {
Simon Horman0863a6e2017-10-17 08:09:54 +0200381 compatible = "renesas,sdhi-r8a7779",
382 "renesas,rcar-gen1-sdhi";
Kuninori Morimotoc4866e72013-10-10 23:36:22 -0700383 reg = <0xffe4c000 0x100>;
Simon Horman854b77332016-01-21 13:52:46 +0900384 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900385 clocks = <&mstp3_clks R8A7779_CLK_SDHI0>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200386 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Kuninori Morimotoc4866e72013-10-10 23:36:22 -0700387 status = "disabled";
388 };
389
Kuninori Morimoto26247052013-10-21 19:36:02 -0700390 sdhi1: sd@ffe4d000 {
Simon Horman0863a6e2017-10-17 08:09:54 +0200391 compatible = "renesas,sdhi-r8a7779",
392 "renesas,rcar-gen1-sdhi";
Kuninori Morimotoc4866e72013-10-10 23:36:22 -0700393 reg = <0xffe4d000 0x100>;
Simon Horman854b77332016-01-21 13:52:46 +0900394 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900395 clocks = <&mstp3_clks R8A7779_CLK_SDHI1>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200396 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Kuninori Morimotoc4866e72013-10-10 23:36:22 -0700397 status = "disabled";
398 };
399
Kuninori Morimoto26247052013-10-21 19:36:02 -0700400 sdhi2: sd@ffe4e000 {
Simon Horman0863a6e2017-10-17 08:09:54 +0200401 compatible = "renesas,sdhi-r8a7779",
402 "renesas,rcar-gen1-sdhi";
Kuninori Morimotoc4866e72013-10-10 23:36:22 -0700403 reg = <0xffe4e000 0x100>;
Simon Horman854b77332016-01-21 13:52:46 +0900404 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900405 clocks = <&mstp3_clks R8A7779_CLK_SDHI2>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200406 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Kuninori Morimotoc4866e72013-10-10 23:36:22 -0700407 status = "disabled";
408 };
409
Kuninori Morimoto26247052013-10-21 19:36:02 -0700410 sdhi3: sd@ffe4f000 {
Simon Horman0863a6e2017-10-17 08:09:54 +0200411 compatible = "renesas,sdhi-r8a7779",
412 "renesas,rcar-gen1-sdhi";
Kuninori Morimotoc4866e72013-10-10 23:36:22 -0700413 reg = <0xffe4f000 0x100>;
Simon Horman854b77332016-01-21 13:52:46 +0900414 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900415 clocks = <&mstp3_clks R8A7779_CLK_SDHI3>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200416 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Kuninori Morimotoc4866e72013-10-10 23:36:22 -0700417 status = "disabled";
418 };
Simon Horman3c3f6ad2013-11-26 16:47:11 +0900419
420 hspi0: spi@fffc7000 {
Geert Uytterhoeven7709c332014-03-14 11:06:40 +0100421 compatible = "renesas,hspi-r8a7779", "renesas,hspi";
Simon Horman3c3f6ad2013-11-26 16:47:11 +0900422 reg = <0xfffc7000 0x18>;
Simon Horman854b77332016-01-21 13:52:46 +0900423 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven7709c332014-03-14 11:06:40 +0100424 #address-cells = <1>;
425 #size-cells = <0>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900426 clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200427 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Simon Horman3c3f6ad2013-11-26 16:47:11 +0900428 status = "disabled";
429 };
430
431 hspi1: spi@fffc8000 {
Geert Uytterhoeven7709c332014-03-14 11:06:40 +0100432 compatible = "renesas,hspi-r8a7779", "renesas,hspi";
Simon Horman3c3f6ad2013-11-26 16:47:11 +0900433 reg = <0xfffc8000 0x18>;
Simon Horman854b77332016-01-21 13:52:46 +0900434 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven7709c332014-03-14 11:06:40 +0100435 #address-cells = <1>;
436 #size-cells = <0>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900437 clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200438 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Simon Horman3c3f6ad2013-11-26 16:47:11 +0900439 status = "disabled";
440 };
441
442 hspi2: spi@fffc6000 {
Geert Uytterhoeven7709c332014-03-14 11:06:40 +0100443 compatible = "renesas,hspi-r8a7779", "renesas,hspi";
Simon Horman3c3f6ad2013-11-26 16:47:11 +0900444 reg = <0xfffc6000 0x18>;
Simon Horman854b77332016-01-21 13:52:46 +0900445 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven7709c332014-03-14 11:06:40 +0100446 #address-cells = <1>;
447 #size-cells = <0>;
Simon Horman3325cbe2014-05-15 20:32:00 +0900448 clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200449 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Simon Horman3c3f6ad2013-11-26 16:47:11 +0900450 status = "disabled";
451 };
Simon Horman1e851532014-05-15 20:31:57 +0900452
Laurent Pinchart1f08bbe2014-01-21 16:00:46 +0100453 du: display@fff80000 {
454 compatible = "renesas,du-r8a7779";
Laurent Pinchart30524ed2016-10-19 01:23:02 +0300455 reg = <0xfff80000 0x40000>;
Simon Horman854b77332016-01-21 13:52:46 +0900456 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart1f08bbe2014-01-21 16:00:46 +0100457 clocks = <&mstp1_clks R8A7779_CLK_DU>;
Geert Uytterhoeven751e29b2015-06-03 10:14:01 +0200458 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
Laurent Pinchart1f08bbe2014-01-21 16:00:46 +0100459 status = "disabled";
460
461 ports {
462 #address-cells = <1>;
463 #size-cells = <0>;
464
465 port@0 {
466 reg = <0>;
467 du_out_rgb0: endpoint {
468 };
469 };
470 port@1 {
471 reg = <1>;
472 du_out_rgb1: endpoint {
473 };
474 };
475 };
476 };
477
Simon Horman1e851532014-05-15 20:31:57 +0900478 clocks {
Geert Uytterhoeven5cc8afc2014-05-23 09:46:19 +0200479 #address-cells = <1>;
480 #size-cells = <1>;
Simon Horman1e851532014-05-15 20:31:57 +0900481 ranges;
482
483 /* External root clock */
Simon Horman3f6dba72016-03-18 08:15:34 +0900484 extal_clk: extal {
Simon Horman1e851532014-05-15 20:31:57 +0900485 compatible = "fixed-clock";
486 #clock-cells = <0>;
487 /* This value must be overriden by the board. */
488 clock-frequency = <0>;
Simon Horman1e851532014-05-15 20:31:57 +0900489 };
490
Geert Uytterhoevenf2be5f02016-01-29 11:04:38 +0100491 /* External SCIF clock */
492 scif_clk: scif {
493 compatible = "fixed-clock";
494 #clock-cells = <0>;
495 /* This value must be overridden by the board. */
496 clock-frequency = <0>;
Geert Uytterhoevenf2be5f02016-01-29 11:04:38 +0100497 };
498
Simon Horman1e851532014-05-15 20:31:57 +0900499 /* Special CPG clocks */
Geert Uytterhoeven2909b872014-05-23 09:46:20 +0200500 cpg_clocks: clocks@ffc80000 {
Simon Horman1e851532014-05-15 20:31:57 +0900501 compatible = "renesas,r8a7779-cpg-clocks";
Geert Uytterhoeven5cc8afc2014-05-23 09:46:19 +0200502 reg = <0xffc80000 0x30>;
Simon Horman1e851532014-05-15 20:31:57 +0900503 clocks = <&extal_clk>;
504 #clock-cells = <1>;
505 clock-output-names = "plla", "z", "zs", "s",
506 "s1", "p", "b", "out";
Geert Uytterhoeven33c36322015-08-04 14:28:09 +0200507 #power-domain-cells = <0>;
Simon Horman1e851532014-05-15 20:31:57 +0900508 };
509
510 /* Fixed factor clocks */
Simon Horman3f6dba72016-03-18 08:15:34 +0900511 i_clk: i {
Simon Horman1e851532014-05-15 20:31:57 +0900512 compatible = "fixed-factor-clock";
513 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
514 #clock-cells = <0>;
515 clock-div = <2>;
516 clock-mult = <1>;
Simon Horman1e851532014-05-15 20:31:57 +0900517 };
Simon Horman3f6dba72016-03-18 08:15:34 +0900518 s3_clk: s3 {
Simon Horman1e851532014-05-15 20:31:57 +0900519 compatible = "fixed-factor-clock";
520 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
521 #clock-cells = <0>;
522 clock-div = <8>;
523 clock-mult = <1>;
Simon Horman1e851532014-05-15 20:31:57 +0900524 };
Simon Horman3f6dba72016-03-18 08:15:34 +0900525 s4_clk: s4 {
Simon Horman1e851532014-05-15 20:31:57 +0900526 compatible = "fixed-factor-clock";
527 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
528 #clock-cells = <0>;
529 clock-div = <16>;
530 clock-mult = <1>;
Simon Horman1e851532014-05-15 20:31:57 +0900531 };
Simon Horman3f6dba72016-03-18 08:15:34 +0900532 g_clk: g {
Simon Horman1e851532014-05-15 20:31:57 +0900533 compatible = "fixed-factor-clock";
534 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
535 #clock-cells = <0>;
536 clock-div = <24>;
537 clock-mult = <1>;
Simon Horman1e851532014-05-15 20:31:57 +0900538 };
539
540 /* Gate clocks */
Geert Uytterhoeven2909b872014-05-23 09:46:20 +0200541 mstp0_clks: clocks@ffc80030 {
Simon Horman1e851532014-05-15 20:31:57 +0900542 compatible = "renesas,r8a7779-mstp-clocks",
Geert Uytterhoeven99e544c2014-08-28 10:21:55 +0200543 "renesas,cpg-mstp-clocks";
Geert Uytterhoeven5cc8afc2014-05-23 09:46:19 +0200544 reg = <0xffc80030 4>;
Simon Horman1e851532014-05-15 20:31:57 +0900545 clocks = <&cpg_clocks R8A7779_CLK_S>,
Geert Uytterhoeven99e544c2014-08-28 10:21:55 +0200546 <&cpg_clocks R8A7779_CLK_P>,
Simon Horman1e851532014-05-15 20:31:57 +0900547 <&cpg_clocks R8A7779_CLK_P>,
548 <&cpg_clocks R8A7779_CLK_P>,
549 <&cpg_clocks R8A7779_CLK_S>,
550 <&cpg_clocks R8A7779_CLK_S>,
Magnus Dammc6ce3cd2014-12-15 14:00:34 +0900551 <&cpg_clocks R8A7779_CLK_P>,
552 <&cpg_clocks R8A7779_CLK_P>,
553 <&cpg_clocks R8A7779_CLK_P>,
554 <&cpg_clocks R8A7779_CLK_P>,
555 <&cpg_clocks R8A7779_CLK_P>,
556 <&cpg_clocks R8A7779_CLK_P>,
Simon Horman1e851532014-05-15 20:31:57 +0900557 <&cpg_clocks R8A7779_CLK_P>,
558 <&cpg_clocks R8A7779_CLK_P>,
559 <&cpg_clocks R8A7779_CLK_P>,
560 <&cpg_clocks R8A7779_CLK_P>;
561 #clock-cells = <1>;
Geert Uytterhoeven64530fc2014-11-10 19:49:36 +0100562 clock-indices = <
Simon Horman1e851532014-05-15 20:31:57 +0900563 R8A7779_CLK_HSPI R8A7779_CLK_TMU2
564 R8A7779_CLK_TMU1 R8A7779_CLK_TMU0
565 R8A7779_CLK_HSCIF1 R8A7779_CLK_HSCIF0
566 R8A7779_CLK_SCIF5 R8A7779_CLK_SCIF4
567 R8A7779_CLK_SCIF3 R8A7779_CLK_SCIF2
568 R8A7779_CLK_SCIF1 R8A7779_CLK_SCIF0
569 R8A7779_CLK_I2C3 R8A7779_CLK_I2C2
570 R8A7779_CLK_I2C1 R8A7779_CLK_I2C0
571 >;
572 clock-output-names =
573 "hspi", "tmu2", "tmu1", "tmu0", "hscif1",
574 "hscif0", "scif5", "scif4", "scif3", "scif2",
575 "scif1", "scif0", "i2c3", "i2c2", "i2c1",
576 "i2c0";
577 };
Geert Uytterhoeven2909b872014-05-23 09:46:20 +0200578 mstp1_clks: clocks@ffc80034 {
Simon Horman1e851532014-05-15 20:31:57 +0900579 compatible = "renesas,r8a7779-mstp-clocks",
Geert Uytterhoeven99e544c2014-08-28 10:21:55 +0200580 "renesas,cpg-mstp-clocks";
Geert Uytterhoeven5cc8afc2014-05-23 09:46:19 +0200581 reg = <0xffc80034 4>, <0xffc80044 4>;
Simon Horman1e851532014-05-15 20:31:57 +0900582 clocks = <&cpg_clocks R8A7779_CLK_P>,
583 <&cpg_clocks R8A7779_CLK_P>,
584 <&cpg_clocks R8A7779_CLK_S>,
585 <&cpg_clocks R8A7779_CLK_S>,
586 <&cpg_clocks R8A7779_CLK_S>,
587 <&cpg_clocks R8A7779_CLK_S>,
588 <&cpg_clocks R8A7779_CLK_P>,
589 <&cpg_clocks R8A7779_CLK_P>,
590 <&cpg_clocks R8A7779_CLK_P>,
591 <&cpg_clocks R8A7779_CLK_S>;
592 #clock-cells = <1>;
Geert Uytterhoeven64530fc2014-11-10 19:49:36 +0100593 clock-indices = <
Simon Horman1e851532014-05-15 20:31:57 +0900594 R8A7779_CLK_USB01 R8A7779_CLK_USB2
595 R8A7779_CLK_DU R8A7779_CLK_VIN2
596 R8A7779_CLK_VIN1 R8A7779_CLK_VIN0
597 R8A7779_CLK_ETHER R8A7779_CLK_SATA
598 R8A7779_CLK_PCIE R8A7779_CLK_VIN3
599 >;
600 clock-output-names =
601 "usb01", "usb2",
602 "du", "vin2",
603 "vin1", "vin0",
604 "ether", "sata",
605 "pcie", "vin3";
606 };
Geert Uytterhoeven2909b872014-05-23 09:46:20 +0200607 mstp3_clks: clocks@ffc8003c {
Simon Horman1e851532014-05-15 20:31:57 +0900608 compatible = "renesas,r8a7779-mstp-clocks",
Geert Uytterhoeven99e544c2014-08-28 10:21:55 +0200609 "renesas,cpg-mstp-clocks";
Geert Uytterhoeven5cc8afc2014-05-23 09:46:19 +0200610 reg = <0xffc8003c 4>;
Simon Horman1e851532014-05-15 20:31:57 +0900611 clocks = <&s4_clk>, <&s4_clk>, <&s4_clk>, <&s4_clk>,
612 <&s4_clk>, <&s4_clk>;
613 #clock-cells = <1>;
Geert Uytterhoeven64530fc2014-11-10 19:49:36 +0100614 clock-indices = <
Simon Horman1e851532014-05-15 20:31:57 +0900615 R8A7779_CLK_SDHI3 R8A7779_CLK_SDHI2
616 R8A7779_CLK_SDHI1 R8A7779_CLK_SDHI0
617 R8A7779_CLK_MMC1 R8A7779_CLK_MMC0
618 >;
619 clock-output-names =
620 "sdhi3", "sdhi2", "sdhi1", "sdhi0",
621 "mmc1", "mmc0";
622 };
623 };
Geert Uytterhoevenb2df3aa2015-06-03 10:14:01 +0200624
Geert Uytterhoeven9ba368e2016-11-14 19:37:10 +0100625 prr: chipid@ff000044 {
626 compatible = "renesas,prr";
627 reg = <0xff000044 4>;
628 };
629
Geert Uytterhoevenad401502016-06-01 13:47:30 +0200630 rst: reset-controller@ffcc0000 {
631 compatible = "renesas,r8a7779-reset-wdt";
632 reg = <0xffcc0000 0x48>;
633 };
634
Geert Uytterhoevenb2df3aa2015-06-03 10:14:01 +0200635 sysc: system-controller@ffd85000 {
636 compatible = "renesas,r8a7779-sysc";
637 reg = <0xffd85000 0x0200>;
638 #power-domain-cells = <1>;
639 };
Simon Hormanc58a1542013-01-29 14:21:46 +0900640};