blob: 6ec2cf7eb35455d3ca05f1a5b8def04f00391bd6 [file] [log] [blame]
Wolfram Sangcdbfaf62018-06-11 23:49:36 +09001// SPDX-License-Identifier: GPL-2.0
Magnus Damm3cc828f2013-03-29 17:49:37 +09002/*
3 * Device Tree Source for the Lager board
4 *
Sergei Shtylyovda4ea952014-02-20 02:22:31 +03005 * Copyright (C) 2013-2014 Renesas Solutions Corp.
6 * Copyright (C) 2014 Cogent Embedded, Inc.
Wolfram Sang880cb572016-02-15 13:57:49 +01007 * Copyright (C) 2015-2016 Renesas Electronics Corporation
Magnus Damm3cc828f2013-03-29 17:49:37 +09008 */
9
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -080010/*
11 * SSI-AK4643
12 *
13 * SW1: 1: AK4643
14 * 2: CN22
15 * 3: ADV7511
16 *
17 * This command is required when Playback/Capture
18 *
19 * amixer set "LINEOUT Mixer DACL" on
Kuninori Morimotoe110c542014-11-03 17:48:38 -080020 * amixer set "DVC Out" 100%
21 * amixer set "DVC In" 100%
22 *
23 * You can use Mute
24 *
25 * amixer set "DVC Out Mute" on
26 * amixer set "DVC In Mute" on
Kuninori Morimotobd2e4a62014-11-11 04:36:47 +000027 *
28 * You can use Volume Ramp
29 *
30 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
31 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
32 * amixer set "DVC Out Ramp" on
33 * aplay xxx.wav &
34 * amixer set "DVC Out" 80% // Volume Down
35 * amixer set "DVC Out" 100% // Volume Up
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -080036 */
37
Magnus Damm3cc828f2013-03-29 17:49:37 +090038/dts-v1/;
Laurent Pinchart31c46cb2013-11-09 13:23:53 +010039#include "r8a7790.dtsi"
Laurent Pinchart39fa5112013-12-11 15:13:47 +010040#include <dt-bindings/gpio/gpio.h>
Magnus Dammf7dcd382014-03-18 21:57:48 +090041#include <dt-bindings/input/input.h>
Magnus Damm3cc828f2013-03-29 17:49:37 +090042
43/ {
44 model = "Lager";
45 compatible = "renesas,lager", "renesas,r8a7790";
46
Laurent Pinchart4e9c4872014-04-30 02:31:45 +020047 aliases {
Ulrich Hecht430d7ba2015-11-13 17:22:23 +010048 serial0 = &scif0;
Laurent Pinchart78c11ec2013-10-18 16:00:00 +020049 serial1 = &scifa1;
Simon Hormanb2f15ca2016-11-06 21:20:20 +010050 i2c8 = &gpioi2c1;
Wolfram Sang4e65e1b2018-02-06 23:29:50 +010051 i2c9 = &gpioi2c2;
Simon Horman1e26fcf2016-11-06 21:20:19 +010052 i2c10 = &i2cexio0;
Simon Hormanb2f15ca2016-11-06 21:20:20 +010053 i2c11 = &i2cexio1;
Wolfram Sang4e65e1b2018-02-06 23:29:50 +010054 i2c12 = &i2chdmi;
Wolfram Sange6081b22018-02-06 23:29:51 +010055 i2c13 = &i2cpwr;
Laurent Pinchart4e9c4872014-04-30 02:31:45 +020056 };
57
Magnus Damm3cc828f2013-03-29 17:49:37 +090058 chosen {
Magnus Damm07d2bf92019-05-18 19:03:57 +090059 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
Geert Uytterhoeven57d19f82015-12-08 18:54:15 +010060 stdout-path = "serial0:115200n8";
Magnus Damm3cc828f2013-03-29 17:49:37 +090061 };
62
63 memory@40000000 {
64 device_type = "memory";
Magnus Damm7b16c612014-06-06 15:40:26 +090065 reg = <0 0x40000000 0 0x40000000>;
Magnus Damm3cc828f2013-03-29 17:49:37 +090066 };
67
Simon Horman126f9982014-09-03 09:49:01 +090068 memory@140000000 {
Magnus Damm62bc32a2013-10-31 12:21:41 +090069 device_type = "memory";
Magnus Damm7b16c612014-06-06 15:40:26 +090070 reg = <1 0x40000000 0 0xc0000000>;
Magnus Damm62bc32a2013-10-31 12:21:41 +090071 };
72
Magnus Damm3cc828f2013-03-29 17:49:37 +090073 lbsc {
74 #address-cells = <1>;
75 #size-cells = <1>;
76 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +010077
Simon Horman54caf682014-11-12 17:59:35 +090078 keyboard {
Magnus Dammf7dcd382014-03-18 21:57:48 +090079 compatible = "gpio-keys";
80
Geert Uytterhoevenaffe8022016-05-20 09:10:09 +020081 one {
Magnus Dammf7dcd382014-03-18 21:57:48 +090082 linux,code = <KEY_1>;
83 label = "SW2-1";
Sudeep Holla0cc16882015-10-21 11:10:11 +010084 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +090085 debounce-interval = <20>;
86 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
87 };
Geert Uytterhoevenaffe8022016-05-20 09:10:09 +020088 two {
Magnus Dammf7dcd382014-03-18 21:57:48 +090089 linux,code = <KEY_2>;
90 label = "SW2-2";
Sudeep Holla0cc16882015-10-21 11:10:11 +010091 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +090092 debounce-interval = <20>;
93 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
94 };
Geert Uytterhoevenaffe8022016-05-20 09:10:09 +020095 three {
Magnus Dammf7dcd382014-03-18 21:57:48 +090096 linux,code = <KEY_3>;
97 label = "SW2-3";
Sudeep Holla0cc16882015-10-21 11:10:11 +010098 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +090099 debounce-interval = <20>;
100 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
101 };
Geert Uytterhoevenaffe8022016-05-20 09:10:09 +0200102 four {
Magnus Dammf7dcd382014-03-18 21:57:48 +0900103 linux,code = <KEY_4>;
104 label = "SW2-4";
Sudeep Holla0cc16882015-10-21 11:10:11 +0100105 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +0900106 debounce-interval = <20>;
107 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
108 };
109 };
110
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100111 leds {
112 compatible = "gpio-leds";
113 led6 {
114 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
115 };
116 led7 {
117 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
118 };
119 led8 {
120 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
121 };
122 };
123
Geert Uytterhoevenaffe8022016-05-20 09:10:09 +0200124 fixedregulator3v3: regulator-3v3 {
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100125 compatible = "regulator-fixed";
126 regulator-name = "fixed-3.3V";
127 regulator-min-microvolt = <3300000>;
128 regulator-max-microvolt = <3300000>;
129 regulator-boot-on;
130 regulator-always-on;
131 };
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800132
Geert Uytterhoevenaffe8022016-05-20 09:10:09 +0200133 vcc_sdhi0: regulator-vcc-sdhi0 {
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800134 compatible = "regulator-fixed";
135
136 regulator-name = "SDHI0 Vcc";
137 regulator-min-microvolt = <3300000>;
138 regulator-max-microvolt = <3300000>;
139
140 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
141 enable-active-high;
142 };
143
Geert Uytterhoevenaffe8022016-05-20 09:10:09 +0200144 vccq_sdhi0: regulator-vccq-sdhi0 {
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800145 compatible = "regulator-gpio";
146
147 regulator-name = "SDHI0 VccQ";
148 regulator-min-microvolt = <1800000>;
149 regulator-max-microvolt = <3300000>;
150
151 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
152 gpios-states = <1>;
153 states = <3300000 1
154 1800000 0>;
155 };
156
Geert Uytterhoevenaffe8022016-05-20 09:10:09 +0200157 vcc_sdhi2: regulator-vcc-sdhi2 {
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800158 compatible = "regulator-fixed";
159
160 regulator-name = "SDHI2 Vcc";
161 regulator-min-microvolt = <3300000>;
162 regulator-max-microvolt = <3300000>;
163
164 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
165 enable-active-high;
166 };
167
Geert Uytterhoevenaffe8022016-05-20 09:10:09 +0200168 vccq_sdhi2: regulator-vccq-sdhi2 {
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800169 compatible = "regulator-gpio";
170
171 regulator-name = "SDHI2 VccQ";
172 regulator-min-microvolt = <1800000>;
173 regulator-max-microvolt = <3300000>;
174
175 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
176 gpios-states = <1>;
177 states = <3300000 1
178 1800000 0>;
179 };
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100180
Simon Hormana5bad2c2016-03-18 08:17:57 +0900181 audio_clock: audio_clock {
Kuninori Morimoto6bc651a2015-08-20 03:09:52 +0000182 compatible = "fixed-clock";
183 #clock-cells = <0>;
184 clock-frequency = <11289600>;
Kuninori Morimoto6bc651a2015-08-20 03:09:52 +0000185 };
186
Kuninori Morimoto30be0ba2015-07-14 04:56:10 +0000187 rsnd_ak4643: sound {
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800188 compatible = "simple-audio-card";
189
190 simple-audio-card,format = "left_j";
191 simple-audio-card,bitclock-master = <&sndcodec>;
192 simple-audio-card,frame-master = <&sndcodec>;
193
194 sndcpu: simple-audio-card,cpu {
195 sound-dai = <&rcar_sound>;
196 };
197
198 sndcodec: simple-audio-card,codec {
199 sound-dai = <&ak4643>;
Kuninori Morimoto6bc651a2015-08-20 03:09:52 +0000200 clocks = <&audio_clock>;
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800201 };
202 };
203
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100204 vga-encoder {
205 compatible = "adi,adv7123";
206
207 ports {
208 #address-cells = <1>;
209 #size-cells = <0>;
210
211 port@0 {
212 reg = <0>;
213 adv7123_in: endpoint {
214 remote-endpoint = <&du_out_rgb>;
215 };
216 };
217 port@1 {
218 reg = <1>;
219 adv7123_out: endpoint {
220 remote-endpoint = <&vga_in>;
221 };
222 };
223 };
224 };
225
226 vga {
227 compatible = "vga-connector";
228
229 port {
230 vga_in: endpoint {
231 remote-endpoint = <&adv7123_out>;
232 };
233 };
234 };
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200235
William Towle56548d02016-10-18 17:01:33 +0200236 hdmi-in {
237 compatible = "hdmi-connector";
238 type = "a";
239
240 port {
241 hdmi_con_in: endpoint {
242 remote-endpoint = <&adv7612_in>;
243 };
244 };
245 };
246
Geert Uytterhoevenfe61513f2018-02-13 14:40:45 +0100247 cec_clock: cec-clock {
248 compatible = "fixed-clock";
249 #clock-cells = <0>;
250 clock-frequency = <12000000>;
251 };
252
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200253 hdmi-out {
254 compatible = "hdmi-connector";
255 type = "a";
256
257 port {
William Towle56548d02016-10-18 17:01:33 +0200258 hdmi_con_out: endpoint {
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200259 remote-endpoint = <&adv7511_out>;
260 };
261 };
262 };
Laurent Pinchart26c00ab2015-02-26 11:21:22 +0200263
264 x2_clk: x2-clock {
265 compatible = "fixed-clock";
266 #clock-cells = <0>;
267 clock-frequency = <148500000>;
268 };
269
270 x13_clk: x13-clock {
271 compatible = "fixed-clock";
272 #clock-cells = <0>;
273 clock-frequency = <148500000>;
274 };
Wolfram Sang880cb572016-02-15 13:57:49 +0100275
Simon Hormanb2f15ca2016-11-06 21:20:20 +0100276 gpioi2c1: i2c-8 {
277 #address-cells = <1>;
278 #size-cells = <0>;
279 compatible = "i2c-gpio";
280 status = "disabled";
Geert Uytterhoevene99185b2017-11-30 13:57:24 +0100281 scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Wolfram Sang4e65e1b2018-02-06 23:29:50 +0100282 sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
283 i2c-gpio,delay-us = <5>;
284 };
285
286 gpioi2c2: i2c-9 {
287 #address-cells = <1>;
288 #size-cells = <0>;
289 compatible = "i2c-gpio";
290 status = "disabled";
291 scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
292 sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Simon Hormanb2f15ca2016-11-06 21:20:20 +0100293 i2c-gpio,delay-us = <5>;
294 };
295
Wolfram Sang880cb572016-02-15 13:57:49 +0100296 /*
297 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
298 * We use the I2C demuxer, so the desired IP core can be selected at runtime
299 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
300 * Note: For testing the I2C slave feature, it is convenient to connect this
301 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
302 * instantiate the slave device at runtime according to the documentation.
303 * You can then communicate with the slave via IIC3.
Simon Horman1e26fcf2016-11-06 21:20:19 +0100304 *
305 * IIC0/I2C0 does not appear to support fallback to GPIO.
Wolfram Sang880cb572016-02-15 13:57:49 +0100306 */
Simon Horman1e26fcf2016-11-06 21:20:19 +0100307 i2cexio0: i2c-10 {
Wolfram Sang880cb572016-02-15 13:57:49 +0100308 compatible = "i2c-demux-pinctrl";
309 i2c-parent = <&iic0>, <&i2c0>;
Simon Horman1e26fcf2016-11-06 21:20:19 +0100310 i2c-bus-name = "i2c-exio0";
Wolfram Sang880cb572016-02-15 13:57:49 +0100311 #address-cells = <1>;
312 #size-cells = <0>;
313 };
Simon Hormanb2f15ca2016-11-06 21:20:20 +0100314
315 /*
316 * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
317 * This is similar to the arangement described for i2cexio0 (above)
318 * with a fallback to GPIO also provided.
319 */
320 i2cexio1: i2c-11 {
321 compatible = "i2c-demux-pinctrl";
322 i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
323 i2c-bus-name = "i2c-exio1";
324 #address-cells = <1>;
325 #size-cells = <0>;
326 };
Wolfram Sang4e65e1b2018-02-06 23:29:50 +0100327
Geert Uytterhoeven9d6f4d42019-09-04 14:01:14 +0200328 /*
329 * IIC2 and I2C2 may be switched using pinmux.
330 * A fallback to GPIO is also provided.
331 */
Wolfram Sang4e65e1b2018-02-06 23:29:50 +0100332 i2chdmi: i2c-12 {
333 compatible = "i2c-demux-pinctrl";
334 i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>;
335 i2c-bus-name = "i2c-hdmi";
336 #address-cells = <1>;
337 #size-cells = <0>;
338
339 ak4643: codec@12 {
340 compatible = "asahi-kasei,ak4643";
341 #sound-dai-cells = <0>;
342 reg = <0x12>;
343 };
344
345 composite-in@20 {
346 compatible = "adi,adv7180";
347 reg = <0x20>;
348 remote = <&vin1>;
349
350 port {
351 adv7180: endpoint {
352 bus-width = <8>;
353 remote-endpoint = <&vin1ep0>;
354 };
355 };
356 };
357
Wolfram Sang4e65e1b2018-02-06 23:29:50 +0100358 hdmi@39 {
359 compatible = "adi,adv7511w";
360 reg = <0x39>;
361 interrupt-parent = <&gpio1>;
362 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
363 clocks = <&cec_clock>;
364 clock-names = "cec";
365
366 adi,input-depth = <8>;
367 adi,input-colorspace = "rgb";
368 adi,input-clock = "1x";
369 adi,input-style = <1>;
370 adi,input-justification = "evenly";
371
372 ports {
373 #address-cells = <1>;
374 #size-cells = <0>;
375
376 port@0 {
377 reg = <0>;
378 adv7511_in: endpoint {
Laurent Pinchart15a1ff32018-04-20 14:57:52 +0300379 remote-endpoint = <&lvds0_out>;
Wolfram Sang4e65e1b2018-02-06 23:29:50 +0100380 };
381 };
382
383 port@1 {
384 reg = <1>;
385 adv7511_out: endpoint {
386 remote-endpoint = <&hdmi_con_out>;
387 };
388 };
389 };
390 };
391
392 hdmi-in@4c {
393 compatible = "adi,adv7612";
394 reg = <0x4c>;
395 interrupt-parent = <&gpio1>;
396 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
397 default-input = <0>;
398
399 ports {
400 #address-cells = <1>;
401 #size-cells = <0>;
402
403 port@0 {
404 reg = <0>;
405 adv7612_in: endpoint {
406 remote-endpoint = <&hdmi_con_in>;
407 };
408 };
409
410 port@2 {
411 reg = <2>;
412 adv7612_out: endpoint {
413 remote-endpoint = <&vin0ep2>;
414 };
415 };
416 };
417 };
418 };
Wolfram Sange6081b22018-02-06 23:29:51 +0100419
420 /*
421 * IIC3 and I2C3 may be switched using pinmux.
422 * IIC3/I2C3 does not appear to support fallback to GPIO.
423 */
424 i2cpwr: i2c-13 {
425 compatible = "i2c-demux-pinctrl";
Marek Vasut185555f2019-05-15 10:23:26 +0200426 pinctrl-names = "default";
427 pinctrl-0 = <&pmic_irq_pins>;
Wolfram Sange6081b22018-02-06 23:29:51 +0100428 i2c-parent = <&iic3>, <&i2c3>;
429 i2c-bus-name = "i2c-pwr";
430 #address-cells = <1>;
431 #size-cells = <0>;
432
433 pmic@58 {
434 compatible = "dlg,da9063";
435 reg = <0x58>;
436 interrupt-parent = <&irqc0>;
437 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
438 interrupt-controller;
439
440 rtc {
441 compatible = "dlg,da9063-rtc";
442 };
443
444 wdt {
445 compatible = "dlg,da9063-watchdog";
446 };
447 };
448
449 vdd_dvfs: regulator@68 {
450 compatible = "dlg,da9210";
451 reg = <0x68>;
452 interrupt-parent = <&irqc0>;
453 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
454
455 regulator-min-microvolt = <1000000>;
456 regulator-max-microvolt = <1000000>;
457 regulator-boot-on;
458 regulator-always-on;
459 };
460 };
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100461};
462
463&du {
464 pinctrl-0 = <&du_pins>;
465 pinctrl-names = "default";
466 status = "okay";
467
Geert Uytterhoeven5802c4202017-08-18 11:11:34 +0200468 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
Laurent Pinchart26c00ab2015-02-26 11:21:22 +0200469 <&x13_clk>, <&x2_clk>;
Laurent Pinchart15a1ff32018-04-20 14:57:52 +0300470 clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1";
Laurent Pinchart26c00ab2015-02-26 11:21:22 +0200471
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100472 ports {
473 port@0 {
474 endpoint {
475 remote-endpoint = <&adv7123_in>;
476 };
477 };
Laurent Pinchart15a1ff32018-04-20 14:57:52 +0300478 };
479};
480
481&lvds0 {
482 status = "okay";
483
484 ports {
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200485 port@1 {
486 endpoint {
487 remote-endpoint = <&adv7511_in>;
488 };
489 };
Laurent Pinchart15a1ff32018-04-20 14:57:52 +0300490 };
491};
492
493&lvds1 {
Laurent Pinchart15a1ff32018-04-20 14:57:52 +0300494 ports {
495 port@1 {
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100496 lvds_connector: endpoint {
497 };
498 };
499 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100500};
501
Laurent Pinchart62e43052013-12-11 15:13:49 +0100502&extal_clk {
503 clock-frequency = <20000000>;
504};
505
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100506&pfc {
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100507 pinctrl-0 = <&scif_clk_pins>;
508 pinctrl-names = "default";
509
Laurent Pinchart3024f502014-02-16 22:31:59 +0100510 du_pins: du {
Simon Horman2ffc2242016-03-16 10:03:09 +0900511 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
512 function = "du";
Laurent Pinchart3024f502014-02-16 22:31:59 +0100513 };
514
Geert Uytterhoevenca348292016-06-10 15:00:52 +0200515 scif0_pins: scif0 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900516 groups = "scif0_data";
517 function = "scif0";
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100518 };
519
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100520 scif_clk_pins: scif_clk {
Simon Horman2ffc2242016-03-16 10:03:09 +0900521 groups = "scif_clk";
522 function = "scif_clk";
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100523 };
524
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300525 ether_pins: ether {
Simon Horman2ffc2242016-03-16 10:03:09 +0900526 groups = "eth_link", "eth_mdio", "eth_rmii";
527 function = "eth";
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300528 };
529
530 phy1_pins: phy1 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900531 groups = "intc_irq0";
532 function = "intc";
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300533 };
534
Geert Uytterhoevenca348292016-06-10 15:00:52 +0200535 scifa1_pins: scifa1 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900536 groups = "scifa1_data";
537 function = "scifa1";
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100538 };
539
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800540 sdhi0_pins: sd0 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900541 groups = "sdhi0_data4", "sdhi0_ctrl";
542 function = "sdhi0";
Wolfram Sang1ca79692016-04-01 17:44:39 +0200543 power-source = <3300>;
544 };
545
546 sdhi0_pins_uhs: sd0_uhs {
547 groups = "sdhi0_data4", "sdhi0_ctrl";
548 function = "sdhi0";
549 power-source = <1800>;
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800550 };
551
552 sdhi2_pins: sd2 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900553 groups = "sdhi2_data4", "sdhi2_ctrl";
554 function = "sdhi2";
Wolfram Sang1ca79692016-04-01 17:44:39 +0200555 power-source = <3300>;
556 };
557
558 sdhi2_pins_uhs: sd2_uhs {
559 groups = "sdhi2_data4", "sdhi2_ctrl";
560 function = "sdhi2";
561 power-source = <1800>;
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800562 };
563
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100564 mmc1_pins: mmc1 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900565 groups = "mmc1_data8", "mmc1_ctrl";
566 function = "mmc1";
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100567 };
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100568
Geert Uytterhoeven85c5e4c2016-06-10 15:00:53 +0200569 qspi_pins: qspi {
Simon Horman2ffc2242016-03-16 10:03:09 +0900570 groups = "qspi_ctrl", "qspi_data4";
571 function = "qspi";
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100572 };
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100573
Geert Uytterhoeven85c5e4c2016-06-10 15:00:53 +0200574 msiof1_pins: msiof1 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900575 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100576 "msiof1_tx";
Simon Horman2ffc2242016-03-16 10:03:09 +0900577 function = "msiof1";
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100578 };
Benoit Cousson05f72e02014-06-03 21:02:12 +0900579
Wolfram Sang880cb572016-02-15 13:57:49 +0100580 i2c0_pins: i2c0 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900581 groups = "i2c0";
582 function = "i2c0";
Wolfram Sang880cb572016-02-15 13:57:49 +0100583 };
584
Wolfram Sang535118c2015-09-09 19:48:19 +0200585 iic0_pins: iic0 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900586 groups = "iic0";
587 function = "iic0";
Wolfram Sang535118c2015-09-09 19:48:19 +0200588 };
589
Simon Hormanb2f15ca2016-11-06 21:20:20 +0100590 i2c1_pins: i2c1 {
591 groups = "i2c1";
592 function = "i2c1";
593 };
594
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200595 iic1_pins: iic1 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900596 groups = "iic1";
597 function = "iic1";
Simon Hormand90bf602014-06-06 16:11:00 +0900598 };
599
Wolfram Sang4e65e1b2018-02-06 23:29:50 +0100600 i2c2_pins: i2c2 {
601 groups = "i2c2";
602 function = "i2c2";
603 };
604
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200605 iic2_pins: iic2 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900606 groups = "iic2";
607 function = "iic2";
Simon Hormand90bf602014-06-06 16:11:00 +0900608 };
609
Wolfram Sange6081b22018-02-06 23:29:51 +0100610 i2c3_pins: i2c3 {
611 groups = "i2c3";
612 function = "i2c3";
613 };
614
Khiem Nguyen5179ffd2014-07-04 09:19:51 +0900615 iic3_pins: iic3 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900616 groups = "iic3";
617 function = "iic3";
Benoit Cousson05f72e02014-06-03 21:02:12 +0900618 };
Ben Dooksd8584662014-06-24 22:02:21 +0400619
Marek Vasut185555f2019-05-15 10:23:26 +0200620 pmic_irq_pins: pmicirq {
621 groups = "intc_irq2";
622 function = "intc";
623 };
624
Yoshihiro Shimodae03074a2014-10-24 19:44:34 +0900625 hsusb_pins: hsusb {
Simon Horman2ffc2242016-03-16 10:03:09 +0900626 groups = "usb0_ovc_vbus";
627 function = "usb0";
Yoshihiro Shimodae03074a2014-10-24 19:44:34 +0900628 };
629
Ben Dooksd8584662014-06-24 22:02:21 +0400630 usb0_pins: usb0 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900631 groups = "usb0";
632 function = "usb0";
Ben Dooksd8584662014-06-24 22:02:21 +0400633 };
634
635 usb1_pins: usb1 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900636 groups = "usb1";
637 function = "usb1";
Ben Dooksd8584662014-06-24 22:02:21 +0400638 };
639
640 usb2_pins: usb2 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900641 groups = "usb2";
642 function = "usb2";
Ben Dooksd8584662014-06-24 22:02:21 +0400643 };
Ben Dooksd594c972014-08-13 00:18:26 +0400644
William Towle56548d02016-10-18 17:01:33 +0200645 vin0_pins: vin0 {
646 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
647 function = "vin0";
648 };
649
Geert Uytterhoevenda84fd92016-06-10 15:00:54 +0200650 vin1_pins: vin1 {
Simon Horman2ffc2242016-03-16 10:03:09 +0900651 groups = "vin1_data8", "vin1_clk";
652 function = "vin1";
Ben Dooksd594c972014-08-13 00:18:26 +0400653 };
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800654
655 sound_pins: sound {
Simon Horman2ffc2242016-03-16 10:03:09 +0900656 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
657 function = "ssi";
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800658 };
659
660 sound_clk_pins: sound_clk {
Simon Horman2ffc2242016-03-16 10:03:09 +0900661 groups = "audio_clk_a";
662 function = "audio_clk";
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800663 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100664};
665
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300666&ether {
667 pinctrl-0 = <&ether_pins &phy1_pins>;
668 pinctrl-names = "default";
669
670 phy-handle = <&phy1>;
671 renesas,ether-link-active-low;
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100672 status = "okay";
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300673
674 phy1: ethernet-phy@1 {
675 reg = <1>;
676 interrupt-parent = <&irqc0>;
677 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
Simon Horman1c47a6a2014-04-08 09:21:35 +0900678 micrel,led-mode = <1>;
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300679 };
680};
681
Laurent Pinchart247fd5e2014-07-09 15:12:41 +0200682&cmt0 {
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100683 status = "okay";
Laurent Pinchart247fd5e2014-07-09 15:12:41 +0200684};
685
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100686&mmcif1 {
687 pinctrl-0 = <&mmc1_pins>;
688 pinctrl-names = "default";
689
690 vmmc-supply = <&fixedregulator3v3>;
691 bus-width = <8>;
692 non-removable;
693 status = "okay";
Magnus Damm3cc828f2013-03-29 17:49:37 +0900694};
Valentine Barshakc6181b92014-01-14 21:05:31 +0400695
696&sata1 {
697 status = "okay";
698};
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100699
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +0100700&qspi {
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100701 pinctrl-0 = <&qspi_pins>;
702 pinctrl-names = "default";
703
704 status = "okay";
705
706 flash: flash@0 {
Geert Uytterhoeven755185b2015-05-20 20:16:52 +0200707 compatible = "spansion,s25fl512s", "jedec,spi-nor";
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100708 reg = <0>;
709 spi-max-frequency = <30000000>;
Geert Uytterhoeven9909d2c2014-04-14 19:36:00 +0200710 spi-tx-bus-width = <4>;
711 spi-rx-bus-width = <4>;
Hisashi Nakamuracbf41162014-12-10 11:30:27 +0900712 spi-cpha;
713 spi-cpol;
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100714 m25p,fast-read;
715
Geert Uytterhoevenf58bac72015-11-20 11:38:53 -0800716 partitions {
Geert Uytterhoevenb88ddbd2015-12-21 11:33:48 +0100717 compatible = "fixed-partitions";
Geert Uytterhoevenf58bac72015-11-20 11:38:53 -0800718 #address-cells = <1>;
719 #size-cells = <1>;
720
721 partition@0 {
722 label = "loader";
723 reg = <0x00000000 0x00040000>;
724 read-only;
725 };
726 partition@40000 {
727 label = "user";
728 reg = <0x00040000 0x00400000>;
729 read-only;
730 };
731 partition@440000 {
732 label = "flash";
733 reg = <0x00440000 0x03bc0000>;
734 };
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100735 };
736 };
737};
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800738
Ulrich Hecht430d7ba2015-11-13 17:22:23 +0100739&scif0 {
740 pinctrl-0 = <&scif0_pins>;
Laurent Pinchart4e9c4872014-04-30 02:31:45 +0200741 pinctrl-names = "default";
742
743 status = "okay";
744};
745
Wolfram Sang7c055892014-09-16 18:10:37 +0200746&scifa1 {
747 pinctrl-0 = <&scifa1_pins>;
Laurent Pinchart4e9c4872014-04-30 02:31:45 +0200748 pinctrl-names = "default";
749
750 status = "okay";
751};
752
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100753&scif_clk {
754 clock-frequency = <14745600>;
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100755};
756
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100757&msiof1 {
758 pinctrl-0 = <&msiof1_pins>;
759 pinctrl-names = "default";
760
761 status = "okay";
762
763 pmic: pmic@0 {
764 compatible = "renesas,r2a11302ft";
765 reg = <0>;
766 spi-max-frequency = <6000000>;
767 spi-cpol;
768 spi-cpha;
769 };
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100770};
771
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800772&sdhi0 {
773 pinctrl-0 = <&sdhi0_pins>;
Wolfram Sang1ca79692016-04-01 17:44:39 +0200774 pinctrl-1 = <&sdhi0_pins_uhs>;
775 pinctrl-names = "default", "state_uhs";
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800776
777 vmmc-supply = <&vcc_sdhi0>;
778 vqmmc-supply = <&vccq_sdhi0>;
779 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
Wolfram Sang1ca79692016-04-01 17:44:39 +0200780 sd-uhs-sdr50;
Simon Hormandcc2fe72016-11-03 16:07:23 +0100781 sd-uhs-sdr104;
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800782 status = "okay";
783};
784
785&sdhi2 {
786 pinctrl-0 = <&sdhi2_pins>;
Wolfram Sang1ca79692016-04-01 17:44:39 +0200787 pinctrl-1 = <&sdhi2_pins_uhs>;
788 pinctrl-names = "default", "state_uhs";
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800789
790 vmmc-supply = <&vcc_sdhi2>;
791 vqmmc-supply = <&vccq_sdhi2>;
792 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
Wolfram Sang1ca79692016-04-01 17:44:39 +0200793 sd-uhs-sdr50;
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800794 status = "okay";
795};
Benoit Cousson05f72e02014-06-03 21:02:12 +0900796
Benoit Coussonb989e132014-06-03 21:02:24 +0900797&cpu0 {
798 cpu0-supply = <&vdd_dvfs>;
799};
Ben Dookse489c2a2014-02-12 17:04:33 +0000800
Wolfram Sang880cb572016-02-15 13:57:49 +0100801&i2c0 {
802 pinctrl-0 = <&i2c0_pins>;
Simon Horman1e26fcf2016-11-06 21:20:19 +0100803 pinctrl-names = "i2c-exio0";
Wolfram Sang880cb572016-02-15 13:57:49 +0100804};
805
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200806&iic0 {
Wolfram Sang535118c2015-09-09 19:48:19 +0200807 pinctrl-0 = <&iic0_pins>;
Simon Horman1e26fcf2016-11-06 21:20:19 +0100808 pinctrl-names = "i2c-exio0";
Ben Dookse489c2a2014-02-12 17:04:33 +0000809};
810
Simon Hormanb2f15ca2016-11-06 21:20:20 +0100811&i2c1 {
812 pinctrl-0 = <&i2c1_pins>;
813 pinctrl-names = "i2c-exio1";
814};
815
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200816&iic1 {
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200817 pinctrl-0 = <&iic1_pins>;
Simon Hormanb2f15ca2016-11-06 21:20:20 +0100818 pinctrl-names = "i2c-exio1";
Ben Dookse489c2a2014-02-12 17:04:33 +0000819};
820
Wolfram Sang4e65e1b2018-02-06 23:29:50 +0100821&i2c2 {
822 pinctrl-0 = <&i2c2_pins>;
823 pinctrl-names = "i2c-hdmi";
Ben Dooksd594c972014-08-13 00:18:26 +0400824
Kuninori Morimoto177d8be2014-11-03 17:47:46 -0800825 clock-frequency = <100000>;
Wolfram Sang4e65e1b2018-02-06 23:29:50 +0100826};
Kuninori Morimoto177d8be2014-11-03 17:47:46 -0800827
Wolfram Sang4e65e1b2018-02-06 23:29:50 +0100828&iic2 {
829 pinctrl-0 = <&iic2_pins>;
830 pinctrl-names = "i2c-hdmi";
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800831
Wolfram Sang4e65e1b2018-02-06 23:29:50 +0100832 clock-frequency = <100000>;
Ben Dookse489c2a2014-02-12 17:04:33 +0000833};
834
Wolfram Sange6081b22018-02-06 23:29:51 +0100835&i2c3 {
836 pinctrl-0 = <&i2c3_pins>;
837 pinctrl-names = "i2c-pwr";
838};
839
840&iic3 {
Khiem Nguyen5179ffd2014-07-04 09:19:51 +0900841 pinctrl-0 = <&iic3_pins>;
Wolfram Sange6081b22018-02-06 23:29:51 +0100842 pinctrl-names = "i2c-pwr";
Ben Dookse489c2a2014-02-12 17:04:33 +0000843};
Ben Dooksd8584662014-06-24 22:02:21 +0400844
845&pci0 {
846 status = "okay";
847 pinctrl-0 = <&usb0_pins>;
848 pinctrl-names = "default";
849};
850
851&pci1 {
852 status = "okay";
853 pinctrl-0 = <&usb1_pins>;
854 pinctrl-names = "default";
855};
856
Yoshihiro Shimoda37f7c1b2014-10-24 19:41:47 +0900857&xhci {
858 status = "okay";
859 pinctrl-0 = <&usb2_pins>;
860 pinctrl-names = "default";
861};
862
Ben Dooksd8584662014-06-24 22:02:21 +0400863&pci2 {
864 status = "okay";
865 pinctrl-0 = <&usb2_pins>;
866 pinctrl-names = "default";
867};
Ben Dooksd594c972014-08-13 00:18:26 +0400868
Yoshihiro Shimodae03074a2014-10-24 19:44:34 +0900869&hsusb {
870 status = "okay";
871 pinctrl-0 = <&hsusb_pins>;
872 pinctrl-names = "default";
873 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
874};
875
Sergei Shtylyov6742caf2014-09-27 01:01:35 +0400876&usbphy {
877 status = "okay";
878};
879
William Towle56548d02016-10-18 17:01:33 +0200880/* HDMI video input */
881&vin0 {
882 pinctrl-0 = <&vin0_pins>;
883 pinctrl-names = "default";
884
885 status = "okay";
886
887 port {
888 vin0ep2: endpoint {
889 remote-endpoint = <&adv7612_out>;
890 bus-width = <24>;
891 hsync-active = <0>;
892 vsync-active = <0>;
893 pclk-sample = <1>;
894 data-active = <1>;
895 };
896 };
897};
898
Ben Dooksd594c972014-08-13 00:18:26 +0400899/* composite video input */
900&vin1 {
901 pinctrl-0 = <&vin1_pins>;
902 pinctrl-names = "default";
903
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100904 status = "okay";
Ben Dooksd594c972014-08-13 00:18:26 +0400905
906 port {
Ben Dooksd594c972014-08-13 00:18:26 +0400907 vin1ep0: endpoint {
908 remote-endpoint = <&adv7180>;
909 bus-width = <8>;
910 };
911 };
912};
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800913
914&rcar_sound {
915 pinctrl-0 = <&sound_pins &sound_clk_pins>;
916 pinctrl-names = "default";
917
Kuninori Morimotoad632412014-12-17 06:11:52 +0000918 /* Single DAI */
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800919 #sound-dai-cells = <0>;
920
921 status = "okay";
922
923 rcar_sound,dai {
924 dai0 {
Kuninori Morimotoe110c542014-11-03 17:48:38 -0800925 playback = <&ssi0 &src2 &dvc0>;
926 capture = <&ssi1 &src3 &dvc1>;
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800927 };
928 };
929};
930
Geert Uytterhoeven53e480f2018-02-08 11:34:10 +0100931&rwdt {
932 timeout-sec = <60>;
933 status = "okay";
934};
935
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800936&ssi1 {
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800937 shared-pin;
938};