blob: 004a5eacd460da9517be440663cf7fd080fd2b1b [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Marek Vasutb47bc372017-10-09 21:08:10 +02002/*
Marek Vasut2a8450f2023-01-26 21:01:32 +01003 * Device Tree Source for the Eagle board with R-Car V3M
Marek Vasutb47bc372017-10-09 21:08:10 +02004 *
5 * Copyright (C) 2016-2017 Renesas Electronics Corp.
6 * Copyright (C) 2017 Cogent Embedded, Inc.
Marek Vasutb47bc372017-10-09 21:08:10 +02007 */
8
9/dts-v1/;
10#include "r8a77970.dtsi"
Marek Vasut2a8450f2023-01-26 21:01:32 +010011#include <dt-bindings/gpio/gpio.h>
Marek Vasutb47bc372017-10-09 21:08:10 +020012
13/ {
14 model = "Renesas Eagle board based on r8a77970";
15 compatible = "renesas,eagle", "renesas,r8a77970";
16
17 aliases {
Marek Vasut2a8450f2023-01-26 21:01:32 +010018 i2c0 = &i2c0;
19 i2c1 = &i2c1;
20 i2c2 = &i2c2;
21 i2c3 = &i2c3;
22 i2c4 = &i2c4;
Marek Vasutb47bc372017-10-09 21:08:10 +020023 serial0 = &scif0;
24 ethernet0 = &avb;
25 };
26
27 chosen {
Marek Vasutadaa0162020-04-04 16:12:48 +020028 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
Marek Vasutb47bc372017-10-09 21:08:10 +020029 stdout-path = "serial0:115200n8";
30 };
31
Marek Vasutadaa0162020-04-04 16:12:48 +020032 d3p3: regulator-fixed {
33 compatible = "regulator-fixed";
34 regulator-name = "fixed-3.3V";
35 regulator-min-microvolt = <3300000>;
36 regulator-max-microvolt = <3300000>;
37 regulator-boot-on;
38 regulator-always-on;
Marek Vasutb47bc372017-10-09 21:08:10 +020039 };
Marek Vasutab9fbe92018-12-03 21:43:05 +010040
41 hdmi-out {
42 compatible = "hdmi-connector";
43 type = "a";
44
45 port {
46 hdmi_con_out: endpoint {
47 remote-endpoint = <&adv7511_out>;
48 };
49 };
50 };
51
Marek Vasutab9fbe92018-12-03 21:43:05 +010052 lvds-decoder {
53 compatible = "thine,thc63lvd1024";
54
55 vcc-supply = <&d3p3>;
56
57 ports {
58 #address-cells = <1>;
59 #size-cells = <0>;
60
61 port@0 {
62 reg = <0>;
63 thc63lvd1024_in: endpoint {
64 remote-endpoint = <&lvds0_out>;
65 };
66 };
67
68 port@2 {
69 reg = <2>;
70 thc63lvd1024_out: endpoint {
71 remote-endpoint = <&adv7511_in>;
72 };
73 };
74 };
75 };
Marek Vasutadaa0162020-04-04 16:12:48 +020076
77 memory@48000000 {
78 device_type = "memory";
79 /* first 128MB is reserved for secure area. */
80 reg = <0x0 0x48000000 0x0 0x38000000>;
81 };
Marek Vasut2a8450f2023-01-26 21:01:32 +010082
83 x1_clk: x1-clock {
84 compatible = "fixed-clock";
85 #clock-cells = <0>;
86 clock-frequency = <148500000>;
87 };
Marek Vasutb47bc372017-10-09 21:08:10 +020088};
89
Marek Vasut051a5262018-06-06 20:03:30 +020090&avb {
Marek Vasutab9fbe92018-12-03 21:43:05 +010091 pinctrl-0 = <&avb_pins>;
92 pinctrl-names = "default";
93
Marek Vasut051a5262018-06-06 20:03:30 +020094 renesas,no-ether-link;
95 phy-handle = <&phy0>;
Marek Vasut2a8450f2023-01-26 21:01:32 +010096 rx-internal-delay-ps = <1800>;
97 tx-internal-delay-ps = <2000>;
Marek Vasut051a5262018-06-06 20:03:30 +020098 status = "okay";
99
100 phy0: ethernet-phy@0 {
Marek Vasut2a8450f2023-01-26 21:01:32 +0100101 compatible = "ethernet-phy-id0022.1622",
102 "ethernet-phy-ieee802.3-c22";
Marek Vasut051a5262018-06-06 20:03:30 +0200103 rxc-skew-ps = <1500>;
104 reg = <0>;
105 interrupt-parent = <&gpio1>;
106 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
Marek Vasut2a8450f2023-01-26 21:01:32 +0100107 reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
Marek Vasut051a5262018-06-06 20:03:30 +0200108 };
109};
110
Marek Vasutab9fbe92018-12-03 21:43:05 +0100111&canfd {
112 pinctrl-0 = <&canfd0_pins>;
113 pinctrl-names = "default";
114 status = "okay";
115
116 channel0 {
117 status = "okay";
118 };
119};
120
Marek Vasut2a8450f2023-01-26 21:01:32 +0100121&csi40 {
122 status = "okay";
123
124 ports {
125 port@0 {
126 csi40_in: endpoint {
127 clock-lanes = <0>;
128 data-lanes = <1 2 3 4>;
129 remote-endpoint = <&max9286_out0>;
130 };
131 };
132 };
133};
134
Marek Vasutadaa0162020-04-04 16:12:48 +0200135&du {
Marek Vasut2a8450f2023-01-26 21:01:32 +0100136 clocks = <&cpg CPG_MOD 724>, <&x1_clk>;
137 clock-names = "du.0", "dclkin.0";
Marek Vasutadaa0162020-04-04 16:12:48 +0200138 status = "okay";
139};
140
Marek Vasutb47bc372017-10-09 21:08:10 +0200141&extal_clk {
142 clock-frequency = <16666666>;
143};
144
145&extalr_clk {
146 clock-frequency = <32768>;
147};
148
Marek Vasut051a5262018-06-06 20:03:30 +0200149&i2c0 {
150 pinctrl-0 = <&i2c0_pins>;
Marek Vasutb47bc372017-10-09 21:08:10 +0200151 pinctrl-names = "default";
152
Marek Vasut051a5262018-06-06 20:03:30 +0200153 status = "okay";
154 clock-frequency = <400000>;
155
156 io_expander: gpio@20 {
157 compatible = "onnn,pca9654";
158 reg = <0x20>;
159 gpio-controller;
160 #gpio-cells = <2>;
Marek Vasutb47bc372017-10-09 21:08:10 +0200161 };
Marek Vasutab9fbe92018-12-03 21:43:05 +0100162
163 hdmi@39 {
164 compatible = "adi,adv7511w";
165 reg = <0x39>;
166 interrupt-parent = <&gpio1>;
167 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
168
169 adi,input-depth = <8>;
170 adi,input-colorspace = "rgb";
171 adi,input-clock = "1x";
Marek Vasutab9fbe92018-12-03 21:43:05 +0100172
173 ports {
174 #address-cells = <1>;
175 #size-cells = <0>;
176
177 port@0 {
178 reg = <0>;
179 adv7511_in: endpoint {
180 remote-endpoint = <&thc63lvd1024_out>;
181 };
182 };
183
184 port@1 {
185 reg = <1>;
186 adv7511_out: endpoint {
187 remote-endpoint = <&hdmi_con_out>;
188 };
189 };
190 };
191 };
Marek Vasut051a5262018-06-06 20:03:30 +0200192};
Marek Vasutb47bc372017-10-09 21:08:10 +0200193
Marek Vasut2a8450f2023-01-26 21:01:32 +0100194&i2c3 {
195 pinctrl-0 = <&i2c3_pins>;
196 pinctrl-names = "default";
197
198 status = "okay";
199 clock-frequency = <400000>;
200
201 gmsl0: gmsl-deserializer@48 {
202 compatible = "maxim,max9286";
203 reg = <0x48>;
204
205 maxim,gpio-poc = <0 GPIO_ACTIVE_LOW>;
206 enable-gpios = <&io_expander 0 GPIO_ACTIVE_HIGH>;
207
208 ports {
209 #address-cells = <1>;
210 #size-cells = <0>;
211
212 port@0 {
213 reg = <0>;
214 };
215
216 port@1 {
217 reg = <1>;
218 };
219
220 port@2 {
221 reg = <2>;
222 };
223
224 port@3 {
225 reg = <3>;
226 };
227
228 port@4 {
229 reg = <4>;
230 max9286_out0: endpoint {
231 clock-lanes = <0>;
232 data-lanes = <1 2 3 4>;
233 remote-endpoint = <&csi40_in>;
234 };
235 };
236 };
237
238 i2c-mux {
239 #address-cells = <1>;
240 #size-cells = <0>;
241
242 i2c@0 {
243 #address-cells = <1>;
244 #size-cells = <0>;
245 reg = <0>;
246
247 status = "disabled";
248 };
249
250 i2c@1 {
251 #address-cells = <1>;
252 #size-cells = <0>;
253 reg = <1>;
254
255 status = "disabled";
256 };
257
258 i2c@2 {
259 #address-cells = <1>;
260 #size-cells = <0>;
261 reg = <2>;
262
263 status = "disabled";
264 };
265
266 i2c@3 {
267 #address-cells = <1>;
268 #size-cells = <0>;
269 reg = <3>;
270
271 status = "disabled";
272 };
273 };
274 };
275};
276
Marek Vasutadaa0162020-04-04 16:12:48 +0200277&lvds0 {
278 status = "okay";
279
280 ports {
281 port@1 {
282 lvds0_out: endpoint {
283 remote-endpoint = <&thc63lvd1024_in>;
284 };
285 };
286 };
287};
288
Marek Vasut051a5262018-06-06 20:03:30 +0200289&pfc {
Marek Vasutab9fbe92018-12-03 21:43:05 +0100290 avb_pins: avb0 {
291 groups = "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk";
292 function = "avb0";
293 };
294
295 canfd0_pins: canfd0 {
296 groups = "canfd0_data_a";
297 function = "canfd0";
298 };
299
Marek Vasut051a5262018-06-06 20:03:30 +0200300 i2c0_pins: i2c0 {
301 groups = "i2c0";
302 function = "i2c0";
Marek Vasutb47bc372017-10-09 21:08:10 +0200303 };
304
Marek Vasut2a8450f2023-01-26 21:01:32 +0100305 i2c3_pins: i2c3 {
306 groups = "i2c3_a";
307 function = "i2c3";
308 };
309
310 qspi0_pins: qspi0 {
311 groups = "qspi0_ctrl", "qspi0_data4";
312 function = "qspi0";
313 };
314
Marek Vasut051a5262018-06-06 20:03:30 +0200315 scif0_pins: scif0 {
316 groups = "scif0_data";
317 function = "scif0";
Marek Vasutb47bc372017-10-09 21:08:10 +0200318 };
319};
320
Marek Vasut2a8450f2023-01-26 21:01:32 +0100321&rpc {
322 pinctrl-0 = <&qspi0_pins>;
323 pinctrl-names = "default";
324
325 status = "okay";
326
327 flash@0 {
328 compatible = "spansion,s25fs512s", "jedec,spi-nor";
329 reg = <0>;
330 spi-max-frequency = <50000000>;
331 spi-rx-bus-width = <4>;
332
333 partitions {
334 compatible = "fixed-partitions";
335 #address-cells = <1>;
336 #size-cells = <1>;
337
338 bootparam@0 {
339 reg = <0x00000000 0x040000>;
340 read-only;
341 };
342 cr7@40000 {
343 reg = <0x00040000 0x080000>;
344 read-only;
345 };
346 cert_header_sa3@c0000 {
347 reg = <0x000c0000 0x080000>;
348 read-only;
349 };
350 bl2@140000 {
351 reg = <0x00140000 0x040000>;
352 read-only;
353 };
354 cert_header_sa6@180000 {
355 reg = <0x00180000 0x040000>;
356 read-only;
357 };
358 bl31@1c0000 {
359 reg = <0x001c0000 0x460000>;
360 read-only;
361 };
362 uboot@640000 {
363 reg = <0x00640000 0x0c0000>;
364 read-only;
365 };
366 uboot-env@700000 {
367 reg = <0x00700000 0x040000>;
368 read-only;
369 };
370 dtb@740000 {
371 reg = <0x00740000 0x080000>;
372 };
373 kernel@7c0000 {
374 reg = <0x007c0000 0x1400000>;
375 };
376 user@1bc0000 {
377 reg = <0x01bc0000 0x2440000>;
378 };
379 };
380 };
381};
382
Marek Vasut051a5262018-06-06 20:03:30 +0200383&rwdt {
384 timeout-sec = <60>;
Marek Vasutb47bc372017-10-09 21:08:10 +0200385 status = "okay";
386};
387
Marek Vasut051a5262018-06-06 20:03:30 +0200388&scif0 {
389 pinctrl-0 = <&scif0_pins>;
Marek Vasutb47bc372017-10-09 21:08:10 +0200390 pinctrl-names = "default";
Marek Vasutb47bc372017-10-09 21:08:10 +0200391
Marek Vasut051a5262018-06-06 20:03:30 +0200392 status = "okay";
Marek Vasutb47bc372017-10-09 21:08:10 +0200393};