blob: cdc0414f5f0716dde7bc454cb656173dc418f012 [file] [log] [blame]
Magnus Damm3cc828f2013-03-29 17:49:37 +09001/*
2 * Device Tree Source for the Lager board
3 *
Sergei Shtylyovda4ea952014-02-20 02:22:31 +03004 * Copyright (C) 2013-2014 Renesas Solutions Corp.
5 * Copyright (C) 2014 Cogent Embedded, Inc.
Magnus Damm3cc828f2013-03-29 17:49:37 +09006 *
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
10 */
11
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -080012/*
13 * SSI-AK4643
14 *
15 * SW1: 1: AK4643
16 * 2: CN22
17 * 3: ADV7511
18 *
19 * This command is required when Playback/Capture
20 *
21 * amixer set "LINEOUT Mixer DACL" on
Kuninori Morimotoe110c542014-11-03 17:48:38 -080022 * amixer set "DVC Out" 100%
23 * amixer set "DVC In" 100%
24 *
25 * You can use Mute
26 *
27 * amixer set "DVC Out Mute" on
28 * amixer set "DVC In Mute" on
Kuninori Morimotobd2e4a62014-11-11 04:36:47 +000029 *
30 * You can use Volume Ramp
31 *
32 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
33 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
34 * amixer set "DVC Out Ramp" on
35 * aplay xxx.wav &
36 * amixer set "DVC Out" 80% // Volume Down
37 * amixer set "DVC Out" 100% // Volume Up
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -080038 */
39
Magnus Damm3cc828f2013-03-29 17:49:37 +090040/dts-v1/;
Laurent Pinchart31c46cb2013-11-09 13:23:53 +010041#include "r8a7790.dtsi"
Laurent Pinchart39fa5112013-12-11 15:13:47 +010042#include <dt-bindings/gpio/gpio.h>
Magnus Dammf7dcd382014-03-18 21:57:48 +090043#include <dt-bindings/input/input.h>
Magnus Damm3cc828f2013-03-29 17:49:37 +090044
45/ {
46 model = "Lager";
47 compatible = "renesas,lager", "renesas,r8a7790";
48
Laurent Pinchart4e9c4872014-04-30 02:31:45 +020049 aliases {
Ulrich Hecht430d7ba2015-11-13 17:22:23 +010050 serial0 = &scif0;
Laurent Pinchart78c11ec2013-10-18 16:00:00 +020051 serial1 = &scifa1;
Laurent Pinchart4e9c4872014-04-30 02:31:45 +020052 };
53
Magnus Damm3cc828f2013-03-29 17:49:37 +090054 chosen {
Geert Uytterhoeven569dd562014-12-02 18:39:48 +010055 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
Geert Uytterhoeven57d19f82015-12-08 18:54:15 +010056 stdout-path = "serial0:115200n8";
Magnus Damm3cc828f2013-03-29 17:49:37 +090057 };
58
59 memory@40000000 {
60 device_type = "memory";
Magnus Damm7b16c612014-06-06 15:40:26 +090061 reg = <0 0x40000000 0 0x40000000>;
Magnus Damm3cc828f2013-03-29 17:49:37 +090062 };
63
Simon Horman126f9982014-09-03 09:49:01 +090064 memory@140000000 {
Magnus Damm62bc32a2013-10-31 12:21:41 +090065 device_type = "memory";
Magnus Damm7b16c612014-06-06 15:40:26 +090066 reg = <1 0x40000000 0 0xc0000000>;
Magnus Damm62bc32a2013-10-31 12:21:41 +090067 };
68
Magnus Damm3cc828f2013-03-29 17:49:37 +090069 lbsc {
70 #address-cells = <1>;
71 #size-cells = <1>;
72 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +010073
Simon Horman54caf682014-11-12 17:59:35 +090074 keyboard {
Magnus Dammf7dcd382014-03-18 21:57:48 +090075 compatible = "gpio-keys";
76
77 button@1 {
78 linux,code = <KEY_1>;
79 label = "SW2-1";
Sudeep Holla0cc16882015-10-21 11:10:11 +010080 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +090081 debounce-interval = <20>;
82 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
83 };
84 button@2 {
85 linux,code = <KEY_2>;
86 label = "SW2-2";
Sudeep Holla0cc16882015-10-21 11:10:11 +010087 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +090088 debounce-interval = <20>;
89 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
90 };
91 button@3 {
92 linux,code = <KEY_3>;
93 label = "SW2-3";
Sudeep Holla0cc16882015-10-21 11:10:11 +010094 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +090095 debounce-interval = <20>;
96 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
97 };
98 button@4 {
99 linux,code = <KEY_4>;
100 label = "SW2-4";
Sudeep Holla0cc16882015-10-21 11:10:11 +0100101 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +0900102 debounce-interval = <20>;
103 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
104 };
105 };
106
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100107 leds {
108 compatible = "gpio-leds";
109 led6 {
110 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
111 };
112 led7 {
113 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
114 };
115 led8 {
116 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
117 };
118 };
119
120 fixedregulator3v3: fixedregulator@0 {
121 compatible = "regulator-fixed";
122 regulator-name = "fixed-3.3V";
123 regulator-min-microvolt = <3300000>;
124 regulator-max-microvolt = <3300000>;
125 regulator-boot-on;
126 regulator-always-on;
127 };
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800128
129 vcc_sdhi0: regulator@1 {
130 compatible = "regulator-fixed";
131
132 regulator-name = "SDHI0 Vcc";
133 regulator-min-microvolt = <3300000>;
134 regulator-max-microvolt = <3300000>;
135
136 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
137 enable-active-high;
138 };
139
140 vccq_sdhi0: regulator@2 {
141 compatible = "regulator-gpio";
142
143 regulator-name = "SDHI0 VccQ";
144 regulator-min-microvolt = <1800000>;
145 regulator-max-microvolt = <3300000>;
146
147 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
148 gpios-states = <1>;
149 states = <3300000 1
150 1800000 0>;
151 };
152
153 vcc_sdhi2: regulator@3 {
154 compatible = "regulator-fixed";
155
156 regulator-name = "SDHI2 Vcc";
157 regulator-min-microvolt = <3300000>;
158 regulator-max-microvolt = <3300000>;
159
160 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
161 enable-active-high;
162 };
163
164 vccq_sdhi2: regulator@4 {
165 compatible = "regulator-gpio";
166
167 regulator-name = "SDHI2 VccQ";
168 regulator-min-microvolt = <1800000>;
169 regulator-max-microvolt = <3300000>;
170
171 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
172 gpios-states = <1>;
173 states = <3300000 1
174 1800000 0>;
175 };
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100176
Kuninori Morimoto6bc651a2015-08-20 03:09:52 +0000177 audio_clock: clock {
178 compatible = "fixed-clock";
179 #clock-cells = <0>;
180 clock-frequency = <11289600>;
181 clock-output-names = "audio_clock";
182 };
183
Kuninori Morimoto30be0ba2015-07-14 04:56:10 +0000184 rsnd_ak4643: sound {
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800185 compatible = "simple-audio-card";
186
187 simple-audio-card,format = "left_j";
188 simple-audio-card,bitclock-master = <&sndcodec>;
189 simple-audio-card,frame-master = <&sndcodec>;
190
191 sndcpu: simple-audio-card,cpu {
192 sound-dai = <&rcar_sound>;
193 };
194
195 sndcodec: simple-audio-card,codec {
196 sound-dai = <&ak4643>;
Kuninori Morimoto6bc651a2015-08-20 03:09:52 +0000197 clocks = <&audio_clock>;
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800198 };
199 };
200
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100201 vga-encoder {
202 compatible = "adi,adv7123";
203
204 ports {
205 #address-cells = <1>;
206 #size-cells = <0>;
207
208 port@0 {
209 reg = <0>;
210 adv7123_in: endpoint {
211 remote-endpoint = <&du_out_rgb>;
212 };
213 };
214 port@1 {
215 reg = <1>;
216 adv7123_out: endpoint {
217 remote-endpoint = <&vga_in>;
218 };
219 };
220 };
221 };
222
223 vga {
224 compatible = "vga-connector";
225
226 port {
227 vga_in: endpoint {
228 remote-endpoint = <&adv7123_out>;
229 };
230 };
231 };
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200232
233 hdmi-out {
234 compatible = "hdmi-connector";
235 type = "a";
236
237 port {
238 hdmi_con: endpoint {
239 remote-endpoint = <&adv7511_out>;
240 };
241 };
242 };
Laurent Pinchart26c00ab2015-02-26 11:21:22 +0200243
244 x2_clk: x2-clock {
245 compatible = "fixed-clock";
246 #clock-cells = <0>;
247 clock-frequency = <148500000>;
248 };
249
250 x13_clk: x13-clock {
251 compatible = "fixed-clock";
252 #clock-cells = <0>;
253 clock-frequency = <148500000>;
254 };
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100255};
256
257&du {
258 pinctrl-0 = <&du_pins>;
259 pinctrl-names = "default";
260 status = "okay";
261
Laurent Pinchart26c00ab2015-02-26 11:21:22 +0200262 clocks = <&mstp7_clks R8A7790_CLK_DU0>,
263 <&mstp7_clks R8A7790_CLK_DU1>,
264 <&mstp7_clks R8A7790_CLK_DU2>,
265 <&mstp7_clks R8A7790_CLK_LVDS0>,
266 <&mstp7_clks R8A7790_CLK_LVDS1>,
267 <&x13_clk>, <&x2_clk>;
268 clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1",
269 "dclkin.0", "dclkin.1";
270
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100271 ports {
272 port@0 {
273 endpoint {
274 remote-endpoint = <&adv7123_in>;
275 };
276 };
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200277 port@1 {
278 endpoint {
279 remote-endpoint = <&adv7511_in>;
280 };
281 };
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100282 port@2 {
283 lvds_connector: endpoint {
284 };
285 };
286 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100287};
288
Laurent Pinchart62e43052013-12-11 15:13:49 +0100289&extal_clk {
290 clock-frequency = <20000000>;
291};
292
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100293&pfc {
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100294 pinctrl-0 = <&scif_clk_pins>;
295 pinctrl-names = "default";
296
Laurent Pinchart3024f502014-02-16 22:31:59 +0100297 du_pins: du {
298 renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
299 renesas,function = "du";
300 };
301
Ulrich Hecht430d7ba2015-11-13 17:22:23 +0100302 scif0_pins: serial0 {
303 renesas,groups = "scif0_data";
304 renesas,function = "scif0";
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100305 };
306
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100307 scif_clk_pins: scif_clk {
308 renesas,groups = "scif_clk";
309 renesas,function = "scif_clk";
310 };
311
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300312 ether_pins: ether {
313 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
314 renesas,function = "eth";
315 };
316
317 phy1_pins: phy1 {
318 renesas,groups = "intc_irq0";
319 renesas,function = "intc";
320 };
321
Wolfram Sang7c055892014-09-16 18:10:37 +0200322 scifa1_pins: serial1 {
323 renesas,groups = "scifa1_data";
324 renesas,function = "scifa1";
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100325 };
326
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800327 sdhi0_pins: sd0 {
Rob Taylorb08eed02014-04-07 20:16:52 +0100328 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800329 renesas,function = "sdhi0";
330 };
331
332 sdhi2_pins: sd2 {
Rob Taylorb08eed02014-04-07 20:16:52 +0100333 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800334 renesas,function = "sdhi2";
335 };
336
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100337 mmc1_pins: mmc1 {
338 renesas,groups = "mmc1_data8", "mmc1_ctrl";
339 renesas,function = "mmc1";
340 };
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100341
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +0100342 qspi_pins: spi0 {
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100343 renesas,groups = "qspi_ctrl", "qspi_data4";
344 renesas,function = "qspi";
345 };
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100346
347 msiof1_pins: spi2 {
348 renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
349 "msiof1_tx";
350 renesas,function = "msiof1";
351 };
Benoit Cousson05f72e02014-06-03 21:02:12 +0900352
Wolfram Sang535118c2015-09-09 19:48:19 +0200353 iic0_pins: iic0 {
354 renesas,groups = "iic0";
355 renesas,function = "iic0";
356 };
357
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200358 iic1_pins: iic1 {
359 renesas,groups = "iic1";
360 renesas,function = "iic1";
Simon Hormand90bf602014-06-06 16:11:00 +0900361 };
362
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200363 iic2_pins: iic2 {
364 renesas,groups = "iic2";
365 renesas,function = "iic2";
Simon Hormand90bf602014-06-06 16:11:00 +0900366 };
367
Khiem Nguyen5179ffd2014-07-04 09:19:51 +0900368 iic3_pins: iic3 {
369 renesas,groups = "iic3";
370 renesas,function = "iic3";
Benoit Cousson05f72e02014-06-03 21:02:12 +0900371 };
Ben Dooksd8584662014-06-24 22:02:21 +0400372
Yoshihiro Shimodae03074a2014-10-24 19:44:34 +0900373 hsusb_pins: hsusb {
374 renesas,groups = "usb0_ovc_vbus";
375 renesas,function = "usb0";
376 };
377
Ben Dooksd8584662014-06-24 22:02:21 +0400378 usb0_pins: usb0 {
379 renesas,groups = "usb0";
380 renesas,function = "usb0";
381 };
382
383 usb1_pins: usb1 {
384 renesas,groups = "usb1";
385 renesas,function = "usb1";
386 };
387
388 usb2_pins: usb2 {
389 renesas,groups = "usb2";
390 renesas,function = "usb2";
391 };
Ben Dooksd594c972014-08-13 00:18:26 +0400392
393 vin1_pins: vin {
394 renesas,groups = "vin1_data8", "vin1_clk";
395 renesas,function = "vin1";
396 };
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800397
398 sound_pins: sound {
399 renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
400 renesas,function = "ssi";
401 };
402
403 sound_clk_pins: sound_clk {
404 renesas,groups = "audio_clk_a";
405 renesas,function = "audio_clk";
406 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100407};
408
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300409&ether {
410 pinctrl-0 = <&ether_pins &phy1_pins>;
411 pinctrl-names = "default";
412
413 phy-handle = <&phy1>;
414 renesas,ether-link-active-low;
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100415 status = "okay";
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300416
417 phy1: ethernet-phy@1 {
418 reg = <1>;
419 interrupt-parent = <&irqc0>;
420 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
Simon Horman1c47a6a2014-04-08 09:21:35 +0900421 micrel,led-mode = <1>;
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300422 };
423};
424
Laurent Pinchart247fd5e2014-07-09 15:12:41 +0200425&cmt0 {
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100426 status = "okay";
Laurent Pinchart247fd5e2014-07-09 15:12:41 +0200427};
428
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100429&mmcif1 {
430 pinctrl-0 = <&mmc1_pins>;
431 pinctrl-names = "default";
432
433 vmmc-supply = <&fixedregulator3v3>;
434 bus-width = <8>;
435 non-removable;
436 status = "okay";
Magnus Damm3cc828f2013-03-29 17:49:37 +0900437};
Valentine Barshakc6181b92014-01-14 21:05:31 +0400438
439&sata1 {
440 status = "okay";
441};
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100442
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +0100443&qspi {
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100444 pinctrl-0 = <&qspi_pins>;
445 pinctrl-names = "default";
446
447 status = "okay";
448
449 flash: flash@0 {
Geert Uytterhoeven755185b2015-05-20 20:16:52 +0200450 compatible = "spansion,s25fl512s", "jedec,spi-nor";
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100451 reg = <0>;
452 spi-max-frequency = <30000000>;
Geert Uytterhoeven9909d2c2014-04-14 19:36:00 +0200453 spi-tx-bus-width = <4>;
454 spi-rx-bus-width = <4>;
Hisashi Nakamuracbf41162014-12-10 11:30:27 +0900455 spi-cpha;
456 spi-cpol;
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100457 m25p,fast-read;
458
Geert Uytterhoevenf58bac72015-11-20 11:38:53 -0800459 partitions {
Geert Uytterhoevenb88ddbd2015-12-21 11:33:48 +0100460 compatible = "fixed-partitions";
Geert Uytterhoevenf58bac72015-11-20 11:38:53 -0800461 #address-cells = <1>;
462 #size-cells = <1>;
463
464 partition@0 {
465 label = "loader";
466 reg = <0x00000000 0x00040000>;
467 read-only;
468 };
469 partition@40000 {
470 label = "user";
471 reg = <0x00040000 0x00400000>;
472 read-only;
473 };
474 partition@440000 {
475 label = "flash";
476 reg = <0x00440000 0x03bc0000>;
477 };
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100478 };
479 };
480};
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800481
Ulrich Hecht430d7ba2015-11-13 17:22:23 +0100482&scif0 {
483 pinctrl-0 = <&scif0_pins>;
Laurent Pinchart4e9c4872014-04-30 02:31:45 +0200484 pinctrl-names = "default";
485
486 status = "okay";
487};
488
Wolfram Sang7c055892014-09-16 18:10:37 +0200489&scifa1 {
490 pinctrl-0 = <&scifa1_pins>;
Laurent Pinchart4e9c4872014-04-30 02:31:45 +0200491 pinctrl-names = "default";
492
493 status = "okay";
494};
495
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100496&scif_clk {
497 clock-frequency = <14745600>;
498 status = "okay";
499};
500
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100501&msiof1 {
502 pinctrl-0 = <&msiof1_pins>;
503 pinctrl-names = "default";
504
505 status = "okay";
506
507 pmic: pmic@0 {
508 compatible = "renesas,r2a11302ft";
509 reg = <0>;
510 spi-max-frequency = <6000000>;
511 spi-cpol;
512 spi-cpha;
513 };
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100514};
515
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800516&sdhi0 {
517 pinctrl-0 = <&sdhi0_pins>;
518 pinctrl-names = "default";
519
520 vmmc-supply = <&vcc_sdhi0>;
521 vqmmc-supply = <&vccq_sdhi0>;
522 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
523 status = "okay";
524};
525
526&sdhi2 {
527 pinctrl-0 = <&sdhi2_pins>;
528 pinctrl-names = "default";
529
530 vmmc-supply = <&vcc_sdhi2>;
531 vqmmc-supply = <&vccq_sdhi2>;
532 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
533 status = "okay";
534};
Benoit Cousson05f72e02014-06-03 21:02:12 +0900535
Benoit Coussonb989e132014-06-03 21:02:24 +0900536&cpu0 {
537 cpu0-supply = <&vdd_dvfs>;
538};
Ben Dookse489c2a2014-02-12 17:04:33 +0000539
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200540&iic0 {
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100541 status = "okay";
Wolfram Sang535118c2015-09-09 19:48:19 +0200542 pinctrl-0 = <&iic0_pins>;
543 pinctrl-names = "default";
Ben Dookse489c2a2014-02-12 17:04:33 +0000544};
545
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200546&iic1 {
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100547 status = "okay";
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200548 pinctrl-0 = <&iic1_pins>;
Ben Dookse1a2c4e2014-02-12 17:04:34 +0000549 pinctrl-names = "default";
Ben Dookse489c2a2014-02-12 17:04:33 +0000550};
551
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200552&iic2 {
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100553 status = "okay";
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200554 pinctrl-0 = <&iic2_pins>;
Ben Dookse1a2c4e2014-02-12 17:04:34 +0000555 pinctrl-names = "default";
Ben Dooksd594c972014-08-13 00:18:26 +0400556
Kuninori Morimoto177d8be2014-11-03 17:47:46 -0800557 clock-frequency = <100000>;
558
Geert Uytterhoevend22b1682015-04-28 12:29:22 +0200559 ak4643: codec@12 {
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800560 compatible = "asahi-kasei,ak4643";
561 #sound-dai-cells = <0>;
562 reg = <0x12>;
563 };
564
Ben Dooksd594c972014-08-13 00:18:26 +0400565 composite-in@20 {
566 compatible = "adi,adv7180";
567 reg = <0x20>;
568 remote = <&vin1>;
569
570 port {
571 adv7180: endpoint {
572 bus-width = <8>;
573 remote-endpoint = <&vin1ep0>;
574 };
575 };
576 };
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200577
578 hdmi@39 {
579 compatible = "adi,adv7511w";
580 reg = <0x39>;
581 interrupt-parent = <&gpio1>;
Laurent Pinchart850346e2015-05-06 07:05:31 +0300582 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200583
584 adi,input-depth = <8>;
585 adi,input-colorspace = "rgb";
586 adi,input-clock = "1x";
587 adi,input-style = <1>;
588 adi,input-justification = "evenly";
589
590 ports {
591 #address-cells = <1>;
592 #size-cells = <0>;
593
594 port@0 {
595 reg = <0>;
596 adv7511_in: endpoint {
597 remote-endpoint = <&du_out_lvds0>;
598 };
599 };
600
601 port@1 {
602 reg = <1>;
603 adv7511_out: endpoint {
604 remote-endpoint = <&hdmi_con>;
605 };
606 };
607 };
608 };
Ben Dookse489c2a2014-02-12 17:04:33 +0000609};
610
Khiem Nguyen5179ffd2014-07-04 09:19:51 +0900611&iic3 {
Simon Hormanaca4ec42014-06-09 11:09:44 +0900612 pinctrl-names = "default";
Khiem Nguyen5179ffd2014-07-04 09:19:51 +0900613 pinctrl-0 = <&iic3_pins>;
Simon Hormanaca4ec42014-06-09 11:09:44 +0900614 status = "okay";
615
Geert Uytterhoeven46dd8a82015-03-09 21:06:57 +0100616 pmic@58 {
617 compatible = "dlg,da9063";
618 reg = <0x58>;
619 interrupt-parent = <&irqc0>;
620 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
621 interrupt-controller;
622
623 rtc {
624 compatible = "dlg,da9063-rtc";
625 };
626
627 wdt {
628 compatible = "dlg,da9063-watchdog";
629 };
630 };
631
Simon Hormanaca4ec42014-06-09 11:09:44 +0900632 vdd_dvfs: regulator@68 {
Steve Twissbd597f42014-08-22 15:26:55 +0100633 compatible = "dlg,da9210";
Simon Hormanaca4ec42014-06-09 11:09:44 +0900634 reg = <0x68>;
Geert Uytterhoevenceb77472015-03-09 21:06:56 +0100635 interrupt-parent = <&irqc0>;
636 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
Simon Hormanaca4ec42014-06-09 11:09:44 +0900637
638 regulator-min-microvolt = <1000000>;
639 regulator-max-microvolt = <1000000>;
640 regulator-boot-on;
641 regulator-always-on;
642 };
Ben Dookse489c2a2014-02-12 17:04:33 +0000643};
Ben Dooksd8584662014-06-24 22:02:21 +0400644
645&pci0 {
646 status = "okay";
647 pinctrl-0 = <&usb0_pins>;
648 pinctrl-names = "default";
649};
650
651&pci1 {
652 status = "okay";
653 pinctrl-0 = <&usb1_pins>;
654 pinctrl-names = "default";
655};
656
Yoshihiro Shimoda37f7c1b2014-10-24 19:41:47 +0900657&xhci {
658 status = "okay";
659 pinctrl-0 = <&usb2_pins>;
660 pinctrl-names = "default";
661};
662
Ben Dooksd8584662014-06-24 22:02:21 +0400663&pci2 {
664 status = "okay";
665 pinctrl-0 = <&usb2_pins>;
666 pinctrl-names = "default";
667};
Ben Dooksd594c972014-08-13 00:18:26 +0400668
Yoshihiro Shimodae03074a2014-10-24 19:44:34 +0900669&hsusb {
670 status = "okay";
671 pinctrl-0 = <&hsusb_pins>;
672 pinctrl-names = "default";
673 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
674};
675
Sergei Shtylyov6742caf2014-09-27 01:01:35 +0400676&usbphy {
677 status = "okay";
678};
679
Ben Dooksd594c972014-08-13 00:18:26 +0400680/* composite video input */
681&vin1 {
682 pinctrl-0 = <&vin1_pins>;
683 pinctrl-names = "default";
684
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100685 status = "okay";
Ben Dooksd594c972014-08-13 00:18:26 +0400686
687 port {
688 #address-cells = <1>;
689 #size-cells = <0>;
690
691 vin1ep0: endpoint {
692 remote-endpoint = <&adv7180>;
693 bus-width = <8>;
694 };
695 };
696};
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800697
698&rcar_sound {
699 pinctrl-0 = <&sound_pins &sound_clk_pins>;
700 pinctrl-names = "default";
701
Kuninori Morimotoad632412014-12-17 06:11:52 +0000702 /* Single DAI */
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800703 #sound-dai-cells = <0>;
704
705 status = "okay";
706
707 rcar_sound,dai {
708 dai0 {
Kuninori Morimotoe110c542014-11-03 17:48:38 -0800709 playback = <&ssi0 &src2 &dvc0>;
710 capture = <&ssi1 &src3 &dvc1>;
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800711 };
712 };
713};
714
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800715&ssi1 {
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800716 shared-pin;
717};