blob: 823a119cb1b4acb5c231d42c3ea9f2bc53e38d78 [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.
Wolfram Sang880cb572016-02-15 13:57:49 +01006 * Copyright (C) 2015-2016 Renesas Electronics Corporation
Magnus Damm3cc828f2013-03-29 17:49:37 +09007 *
8 * This file is licensed under the terms of the GNU General Public License
9 * version 2. This program is licensed "as is" without any warranty of any
10 * kind, whether express or implied.
11 */
12
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -080013/*
14 * SSI-AK4643
15 *
16 * SW1: 1: AK4643
17 * 2: CN22
18 * 3: ADV7511
19 *
20 * This command is required when Playback/Capture
21 *
22 * amixer set "LINEOUT Mixer DACL" on
Kuninori Morimotoe110c542014-11-03 17:48:38 -080023 * amixer set "DVC Out" 100%
24 * amixer set "DVC In" 100%
25 *
26 * You can use Mute
27 *
28 * amixer set "DVC Out Mute" on
29 * amixer set "DVC In Mute" on
Kuninori Morimotobd2e4a62014-11-11 04:36:47 +000030 *
31 * You can use Volume Ramp
32 *
33 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
34 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
35 * amixer set "DVC Out Ramp" on
36 * aplay xxx.wav &
37 * amixer set "DVC Out" 80% // Volume Down
38 * amixer set "DVC Out" 100% // Volume Up
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -080039 */
40
Magnus Damm3cc828f2013-03-29 17:49:37 +090041/dts-v1/;
Laurent Pinchart31c46cb2013-11-09 13:23:53 +010042#include "r8a7790.dtsi"
Laurent Pinchart39fa5112013-12-11 15:13:47 +010043#include <dt-bindings/gpio/gpio.h>
Magnus Dammf7dcd382014-03-18 21:57:48 +090044#include <dt-bindings/input/input.h>
Magnus Damm3cc828f2013-03-29 17:49:37 +090045
46/ {
47 model = "Lager";
48 compatible = "renesas,lager", "renesas,r8a7790";
49
Laurent Pinchart4e9c4872014-04-30 02:31:45 +020050 aliases {
Ulrich Hecht430d7ba2015-11-13 17:22:23 +010051 serial0 = &scif0;
Laurent Pinchart78c11ec2013-10-18 16:00:00 +020052 serial1 = &scifa1;
Wolfram Sang880cb572016-02-15 13:57:49 +010053 i2c8 = "i2cexio";
Laurent Pinchart4e9c4872014-04-30 02:31:45 +020054 };
55
Magnus Damm3cc828f2013-03-29 17:49:37 +090056 chosen {
Geert Uytterhoeven569dd562014-12-02 18:39:48 +010057 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
Geert Uytterhoeven57d19f82015-12-08 18:54:15 +010058 stdout-path = "serial0:115200n8";
Magnus Damm3cc828f2013-03-29 17:49:37 +090059 };
60
61 memory@40000000 {
62 device_type = "memory";
Magnus Damm7b16c612014-06-06 15:40:26 +090063 reg = <0 0x40000000 0 0x40000000>;
Magnus Damm3cc828f2013-03-29 17:49:37 +090064 };
65
Simon Horman126f9982014-09-03 09:49:01 +090066 memory@140000000 {
Magnus Damm62bc32a2013-10-31 12:21:41 +090067 device_type = "memory";
Magnus Damm7b16c612014-06-06 15:40:26 +090068 reg = <1 0x40000000 0 0xc0000000>;
Magnus Damm62bc32a2013-10-31 12:21:41 +090069 };
70
Magnus Damm3cc828f2013-03-29 17:49:37 +090071 lbsc {
72 #address-cells = <1>;
73 #size-cells = <1>;
74 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +010075
Simon Horman54caf682014-11-12 17:59:35 +090076 keyboard {
Magnus Dammf7dcd382014-03-18 21:57:48 +090077 compatible = "gpio-keys";
78
79 button@1 {
80 linux,code = <KEY_1>;
81 label = "SW2-1";
Sudeep Holla0cc16882015-10-21 11:10:11 +010082 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +090083 debounce-interval = <20>;
84 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
85 };
86 button@2 {
87 linux,code = <KEY_2>;
88 label = "SW2-2";
Sudeep Holla0cc16882015-10-21 11:10:11 +010089 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +090090 debounce-interval = <20>;
91 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
92 };
93 button@3 {
94 linux,code = <KEY_3>;
95 label = "SW2-3";
Sudeep Holla0cc16882015-10-21 11:10:11 +010096 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +090097 debounce-interval = <20>;
98 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
99 };
100 button@4 {
101 linux,code = <KEY_4>;
102 label = "SW2-4";
Sudeep Holla0cc16882015-10-21 11:10:11 +0100103 wakeup-source;
Magnus Dammf7dcd382014-03-18 21:57:48 +0900104 debounce-interval = <20>;
105 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
106 };
107 };
108
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100109 leds {
110 compatible = "gpio-leds";
111 led6 {
112 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
113 };
114 led7 {
115 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
116 };
117 led8 {
118 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
119 };
120 };
121
122 fixedregulator3v3: fixedregulator@0 {
123 compatible = "regulator-fixed";
124 regulator-name = "fixed-3.3V";
125 regulator-min-microvolt = <3300000>;
126 regulator-max-microvolt = <3300000>;
127 regulator-boot-on;
128 regulator-always-on;
129 };
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800130
131 vcc_sdhi0: regulator@1 {
132 compatible = "regulator-fixed";
133
134 regulator-name = "SDHI0 Vcc";
135 regulator-min-microvolt = <3300000>;
136 regulator-max-microvolt = <3300000>;
137
138 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
139 enable-active-high;
140 };
141
142 vccq_sdhi0: regulator@2 {
143 compatible = "regulator-gpio";
144
145 regulator-name = "SDHI0 VccQ";
146 regulator-min-microvolt = <1800000>;
147 regulator-max-microvolt = <3300000>;
148
149 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
150 gpios-states = <1>;
151 states = <3300000 1
152 1800000 0>;
153 };
154
155 vcc_sdhi2: regulator@3 {
156 compatible = "regulator-fixed";
157
158 regulator-name = "SDHI2 Vcc";
159 regulator-min-microvolt = <3300000>;
160 regulator-max-microvolt = <3300000>;
161
162 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
163 enable-active-high;
164 };
165
166 vccq_sdhi2: regulator@4 {
167 compatible = "regulator-gpio";
168
169 regulator-name = "SDHI2 VccQ";
170 regulator-min-microvolt = <1800000>;
171 regulator-max-microvolt = <3300000>;
172
173 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
174 gpios-states = <1>;
175 states = <3300000 1
176 1800000 0>;
177 };
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100178
Simon Hormana5bad2c2016-03-18 08:17:57 +0900179 audio_clock: audio_clock {
Kuninori Morimoto6bc651a2015-08-20 03:09:52 +0000180 compatible = "fixed-clock";
181 #clock-cells = <0>;
182 clock-frequency = <11289600>;
Kuninori Morimoto6bc651a2015-08-20 03:09:52 +0000183 };
184
Kuninori Morimoto30be0ba2015-07-14 04:56:10 +0000185 rsnd_ak4643: sound {
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800186 compatible = "simple-audio-card";
187
188 simple-audio-card,format = "left_j";
189 simple-audio-card,bitclock-master = <&sndcodec>;
190 simple-audio-card,frame-master = <&sndcodec>;
191
192 sndcpu: simple-audio-card,cpu {
193 sound-dai = <&rcar_sound>;
194 };
195
196 sndcodec: simple-audio-card,codec {
197 sound-dai = <&ak4643>;
Kuninori Morimoto6bc651a2015-08-20 03:09:52 +0000198 clocks = <&audio_clock>;
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800199 };
200 };
201
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100202 vga-encoder {
203 compatible = "adi,adv7123";
204
205 ports {
206 #address-cells = <1>;
207 #size-cells = <0>;
208
209 port@0 {
210 reg = <0>;
211 adv7123_in: endpoint {
212 remote-endpoint = <&du_out_rgb>;
213 };
214 };
215 port@1 {
216 reg = <1>;
217 adv7123_out: endpoint {
218 remote-endpoint = <&vga_in>;
219 };
220 };
221 };
222 };
223
224 vga {
225 compatible = "vga-connector";
226
227 port {
228 vga_in: endpoint {
229 remote-endpoint = <&adv7123_out>;
230 };
231 };
232 };
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200233
234 hdmi-out {
235 compatible = "hdmi-connector";
236 type = "a";
237
238 port {
239 hdmi_con: endpoint {
240 remote-endpoint = <&adv7511_out>;
241 };
242 };
243 };
Laurent Pinchart26c00ab2015-02-26 11:21:22 +0200244
245 x2_clk: x2-clock {
246 compatible = "fixed-clock";
247 #clock-cells = <0>;
248 clock-frequency = <148500000>;
249 };
250
251 x13_clk: x13-clock {
252 compatible = "fixed-clock";
253 #clock-cells = <0>;
254 clock-frequency = <148500000>;
255 };
Wolfram Sang880cb572016-02-15 13:57:49 +0100256
257 /*
258 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
259 * We use the I2C demuxer, so the desired IP core can be selected at runtime
260 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
261 * Note: For testing the I2C slave feature, it is convenient to connect this
262 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
263 * instantiate the slave device at runtime according to the documentation.
264 * You can then communicate with the slave via IIC3.
265 */
266 i2cexio: i2c@8 {
267 compatible = "i2c-demux-pinctrl";
268 i2c-parent = <&iic0>, <&i2c0>;
269 i2c-bus-name = "i2c-exio";
270 #address-cells = <1>;
271 #size-cells = <0>;
272 };
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100273};
274
275&du {
276 pinctrl-0 = <&du_pins>;
277 pinctrl-names = "default";
278 status = "okay";
279
Laurent Pinchart26c00ab2015-02-26 11:21:22 +0200280 clocks = <&mstp7_clks R8A7790_CLK_DU0>,
281 <&mstp7_clks R8A7790_CLK_DU1>,
282 <&mstp7_clks R8A7790_CLK_DU2>,
283 <&mstp7_clks R8A7790_CLK_LVDS0>,
284 <&mstp7_clks R8A7790_CLK_LVDS1>,
285 <&x13_clk>, <&x2_clk>;
286 clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1",
287 "dclkin.0", "dclkin.1";
288
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100289 ports {
290 port@0 {
291 endpoint {
292 remote-endpoint = <&adv7123_in>;
293 };
294 };
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200295 port@1 {
296 endpoint {
297 remote-endpoint = <&adv7511_in>;
298 };
299 };
Laurent Pinchart3edd18f2014-01-21 16:02:54 +0100300 port@2 {
301 lvds_connector: endpoint {
302 };
303 };
304 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100305};
306
Laurent Pinchart62e43052013-12-11 15:13:49 +0100307&extal_clk {
308 clock-frequency = <20000000>;
309};
310
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100311&pfc {
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100312 pinctrl-0 = <&scif_clk_pins>;
313 pinctrl-names = "default";
314
Laurent Pinchart3024f502014-02-16 22:31:59 +0100315 du_pins: du {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900316 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
317 function = "du";
Laurent Pinchart3024f502014-02-16 22:31:59 +0100318 };
319
Ulrich Hecht430d7ba2015-11-13 17:22:23 +0100320 scif0_pins: serial0 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900321 groups = "scif0_data";
322 function = "scif0";
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100323 };
324
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100325 scif_clk_pins: scif_clk {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900326 groups = "scif_clk";
327 function = "scif_clk";
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100328 };
329
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300330 ether_pins: ether {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900331 groups = "eth_link", "eth_mdio", "eth_rmii";
332 function = "eth";
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300333 };
334
335 phy1_pins: phy1 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900336 groups = "intc_irq0";
337 function = "intc";
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300338 };
339
Wolfram Sang7c055892014-09-16 18:10:37 +0200340 scifa1_pins: serial1 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900341 groups = "scifa1_data";
342 function = "scifa1";
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100343 };
344
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800345 sdhi0_pins: sd0 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900346 groups = "sdhi0_data4", "sdhi0_ctrl";
347 function = "sdhi0";
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800348 };
349
350 sdhi2_pins: sd2 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900351 groups = "sdhi2_data4", "sdhi2_ctrl";
352 function = "sdhi2";
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800353 };
354
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100355 mmc1_pins: mmc1 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900356 groups = "mmc1_data8", "mmc1_ctrl";
357 function = "mmc1";
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100358 };
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100359
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +0100360 qspi_pins: spi0 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900361 groups = "qspi_ctrl", "qspi_data4";
362 function = "qspi";
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100363 };
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100364
365 msiof1_pins: spi2 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900366 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100367 "msiof1_tx";
Simon Horman2ffc224f2016-03-16 10:03:09 +0900368 function = "msiof1";
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100369 };
Benoit Cousson05f72e02014-06-03 21:02:12 +0900370
Wolfram Sang880cb572016-02-15 13:57:49 +0100371 i2c0_pins: i2c0 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900372 groups = "i2c0";
373 function = "i2c0";
Wolfram Sang880cb572016-02-15 13:57:49 +0100374 };
375
Wolfram Sang535118c2015-09-09 19:48:19 +0200376 iic0_pins: iic0 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900377 groups = "iic0";
378 function = "iic0";
Wolfram Sang535118c2015-09-09 19:48:19 +0200379 };
380
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200381 iic1_pins: iic1 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900382 groups = "iic1";
383 function = "iic1";
Simon Hormand90bf602014-06-06 16:11:00 +0900384 };
385
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200386 iic2_pins: iic2 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900387 groups = "iic2";
388 function = "iic2";
Simon Hormand90bf602014-06-06 16:11:00 +0900389 };
390
Khiem Nguyen5179ffd2014-07-04 09:19:51 +0900391 iic3_pins: iic3 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900392 groups = "iic3";
393 function = "iic3";
Benoit Cousson05f72e02014-06-03 21:02:12 +0900394 };
Ben Dooksd8584662014-06-24 22:02:21 +0400395
Yoshihiro Shimodae03074a2014-10-24 19:44:34 +0900396 hsusb_pins: hsusb {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900397 groups = "usb0_ovc_vbus";
398 function = "usb0";
Yoshihiro Shimodae03074a2014-10-24 19:44:34 +0900399 };
400
Ben Dooksd8584662014-06-24 22:02:21 +0400401 usb0_pins: usb0 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900402 groups = "usb0";
403 function = "usb0";
Ben Dooksd8584662014-06-24 22:02:21 +0400404 };
405
406 usb1_pins: usb1 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900407 groups = "usb1";
408 function = "usb1";
Ben Dooksd8584662014-06-24 22:02:21 +0400409 };
410
411 usb2_pins: usb2 {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900412 groups = "usb2";
413 function = "usb2";
Ben Dooksd8584662014-06-24 22:02:21 +0400414 };
Ben Dooksd594c972014-08-13 00:18:26 +0400415
416 vin1_pins: vin {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900417 groups = "vin1_data8", "vin1_clk";
418 function = "vin1";
Ben Dooksd594c972014-08-13 00:18:26 +0400419 };
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800420
421 sound_pins: sound {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900422 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
423 function = "ssi";
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800424 };
425
426 sound_clk_pins: sound_clk {
Simon Horman2ffc224f2016-03-16 10:03:09 +0900427 groups = "audio_clk_a";
428 function = "audio_clk";
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800429 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100430};
431
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300432&ether {
433 pinctrl-0 = <&ether_pins &phy1_pins>;
434 pinctrl-names = "default";
435
436 phy-handle = <&phy1>;
437 renesas,ether-link-active-low;
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100438 status = "okay";
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300439
440 phy1: ethernet-phy@1 {
441 reg = <1>;
442 interrupt-parent = <&irqc0>;
443 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
Simon Horman1c47a6a2014-04-08 09:21:35 +0900444 micrel,led-mode = <1>;
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300445 };
446};
447
Laurent Pinchart247fd5e2014-07-09 15:12:41 +0200448&cmt0 {
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100449 status = "okay";
Laurent Pinchart247fd5e2014-07-09 15:12:41 +0200450};
451
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100452&mmcif1 {
453 pinctrl-0 = <&mmc1_pins>;
454 pinctrl-names = "default";
455
456 vmmc-supply = <&fixedregulator3v3>;
457 bus-width = <8>;
458 non-removable;
459 status = "okay";
Magnus Damm3cc828f2013-03-29 17:49:37 +0900460};
Valentine Barshakc6181b92014-01-14 21:05:31 +0400461
462&sata1 {
463 status = "okay";
464};
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100465
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +0100466&qspi {
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100467 pinctrl-0 = <&qspi_pins>;
468 pinctrl-names = "default";
469
470 status = "okay";
471
472 flash: flash@0 {
Geert Uytterhoeven755185b2015-05-20 20:16:52 +0200473 compatible = "spansion,s25fl512s", "jedec,spi-nor";
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100474 reg = <0>;
475 spi-max-frequency = <30000000>;
Geert Uytterhoeven9909d2c2014-04-14 19:36:00 +0200476 spi-tx-bus-width = <4>;
477 spi-rx-bus-width = <4>;
Hisashi Nakamuracbf41162014-12-10 11:30:27 +0900478 spi-cpha;
479 spi-cpol;
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100480 m25p,fast-read;
481
Geert Uytterhoevenf58bac72015-11-20 11:38:53 -0800482 partitions {
Geert Uytterhoevenb88ddbd2015-12-21 11:33:48 +0100483 compatible = "fixed-partitions";
Geert Uytterhoevenf58bac72015-11-20 11:38:53 -0800484 #address-cells = <1>;
485 #size-cells = <1>;
486
487 partition@0 {
488 label = "loader";
489 reg = <0x00000000 0x00040000>;
490 read-only;
491 };
492 partition@40000 {
493 label = "user";
494 reg = <0x00040000 0x00400000>;
495 read-only;
496 };
497 partition@440000 {
498 label = "flash";
499 reg = <0x00440000 0x03bc0000>;
500 };
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100501 };
502 };
503};
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800504
Ulrich Hecht430d7ba2015-11-13 17:22:23 +0100505&scif0 {
506 pinctrl-0 = <&scif0_pins>;
Laurent Pinchart4e9c4872014-04-30 02:31:45 +0200507 pinctrl-names = "default";
508
509 status = "okay";
510};
511
Wolfram Sang7c055892014-09-16 18:10:37 +0200512&scifa1 {
513 pinctrl-0 = <&scifa1_pins>;
Laurent Pinchart4e9c4872014-04-30 02:31:45 +0200514 pinctrl-names = "default";
515
516 status = "okay";
517};
518
Geert Uytterhoeven17814602016-01-29 11:17:22 +0100519&scif_clk {
520 clock-frequency = <14745600>;
521 status = "okay";
522};
523
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100524&msiof1 {
525 pinctrl-0 = <&msiof1_pins>;
526 pinctrl-names = "default";
527
528 status = "okay";
529
530 pmic: pmic@0 {
531 compatible = "renesas,r2a11302ft";
532 reg = <0>;
533 spi-max-frequency = <6000000>;
534 spi-cpol;
535 spi-cpha;
536 };
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100537};
538
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800539&sdhi0 {
540 pinctrl-0 = <&sdhi0_pins>;
541 pinctrl-names = "default";
542
543 vmmc-supply = <&vcc_sdhi0>;
544 vqmmc-supply = <&vccq_sdhi0>;
545 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
546 status = "okay";
547};
548
549&sdhi2 {
550 pinctrl-0 = <&sdhi2_pins>;
551 pinctrl-names = "default";
552
553 vmmc-supply = <&vcc_sdhi2>;
554 vqmmc-supply = <&vccq_sdhi2>;
555 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
556 status = "okay";
557};
Benoit Cousson05f72e02014-06-03 21:02:12 +0900558
Benoit Coussonb989e132014-06-03 21:02:24 +0900559&cpu0 {
560 cpu0-supply = <&vdd_dvfs>;
561};
Ben Dookse489c2a2014-02-12 17:04:33 +0000562
Wolfram Sang880cb572016-02-15 13:57:49 +0100563&i2c0 {
564 pinctrl-0 = <&i2c0_pins>;
565 pinctrl-names = "i2c-exio";
566};
567
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200568&iic0 {
Wolfram Sang535118c2015-09-09 19:48:19 +0200569 pinctrl-0 = <&iic0_pins>;
Wolfram Sang880cb572016-02-15 13:57:49 +0100570 pinctrl-names = "i2c-exio";
Ben Dookse489c2a2014-02-12 17:04:33 +0000571};
572
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200573&iic1 {
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100574 status = "okay";
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200575 pinctrl-0 = <&iic1_pins>;
Ben Dookse1a2c4e2014-02-12 17:04:34 +0000576 pinctrl-names = "default";
Ben Dookse489c2a2014-02-12 17:04:33 +0000577};
578
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200579&iic2 {
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100580 status = "okay";
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200581 pinctrl-0 = <&iic2_pins>;
Ben Dookse1a2c4e2014-02-12 17:04:34 +0000582 pinctrl-names = "default";
Ben Dooksd594c972014-08-13 00:18:26 +0400583
Kuninori Morimoto177d8be2014-11-03 17:47:46 -0800584 clock-frequency = <100000>;
585
Geert Uytterhoevend22b1682015-04-28 12:29:22 +0200586 ak4643: codec@12 {
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800587 compatible = "asahi-kasei,ak4643";
588 #sound-dai-cells = <0>;
589 reg = <0x12>;
590 };
591
Ben Dooksd594c972014-08-13 00:18:26 +0400592 composite-in@20 {
593 compatible = "adi,adv7180";
594 reg = <0x20>;
595 remote = <&vin1>;
596
597 port {
598 adv7180: endpoint {
599 bus-width = <8>;
600 remote-endpoint = <&vin1ep0>;
601 };
602 };
603 };
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200604
605 hdmi@39 {
606 compatible = "adi,adv7511w";
607 reg = <0x39>;
608 interrupt-parent = <&gpio1>;
Laurent Pinchart850346e2015-05-06 07:05:31 +0300609 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
Laurent Pinchartfd25cdd2014-12-11 01:42:11 +0200610
611 adi,input-depth = <8>;
612 adi,input-colorspace = "rgb";
613 adi,input-clock = "1x";
614 adi,input-style = <1>;
615 adi,input-justification = "evenly";
616
617 ports {
618 #address-cells = <1>;
619 #size-cells = <0>;
620
621 port@0 {
622 reg = <0>;
623 adv7511_in: endpoint {
624 remote-endpoint = <&du_out_lvds0>;
625 };
626 };
627
628 port@1 {
629 reg = <1>;
630 adv7511_out: endpoint {
631 remote-endpoint = <&hdmi_con>;
632 };
633 };
634 };
635 };
Ben Dookse489c2a2014-02-12 17:04:33 +0000636};
637
Khiem Nguyen5179ffd2014-07-04 09:19:51 +0900638&iic3 {
Simon Hormanaca4ec42014-06-09 11:09:44 +0900639 pinctrl-names = "default";
Khiem Nguyen5179ffd2014-07-04 09:19:51 +0900640 pinctrl-0 = <&iic3_pins>;
Simon Hormanaca4ec42014-06-09 11:09:44 +0900641 status = "okay";
642
Geert Uytterhoeven46dd8a82015-03-09 21:06:57 +0100643 pmic@58 {
644 compatible = "dlg,da9063";
645 reg = <0x58>;
646 interrupt-parent = <&irqc0>;
647 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
648 interrupt-controller;
649
650 rtc {
651 compatible = "dlg,da9063-rtc";
652 };
653
654 wdt {
655 compatible = "dlg,da9063-watchdog";
656 };
657 };
658
Simon Hormanaca4ec42014-06-09 11:09:44 +0900659 vdd_dvfs: regulator@68 {
Steve Twissbd597f42014-08-22 15:26:55 +0100660 compatible = "dlg,da9210";
Simon Hormanaca4ec42014-06-09 11:09:44 +0900661 reg = <0x68>;
Geert Uytterhoevenceb77472015-03-09 21:06:56 +0100662 interrupt-parent = <&irqc0>;
663 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
Simon Hormanaca4ec42014-06-09 11:09:44 +0900664
665 regulator-min-microvolt = <1000000>;
666 regulator-max-microvolt = <1000000>;
667 regulator-boot-on;
668 regulator-always-on;
669 };
Ben Dookse489c2a2014-02-12 17:04:33 +0000670};
Ben Dooksd8584662014-06-24 22:02:21 +0400671
672&pci0 {
673 status = "okay";
674 pinctrl-0 = <&usb0_pins>;
675 pinctrl-names = "default";
676};
677
678&pci1 {
679 status = "okay";
680 pinctrl-0 = <&usb1_pins>;
681 pinctrl-names = "default";
682};
683
Yoshihiro Shimoda37f7c1b2014-10-24 19:41:47 +0900684&xhci {
685 status = "okay";
686 pinctrl-0 = <&usb2_pins>;
687 pinctrl-names = "default";
688};
689
Ben Dooksd8584662014-06-24 22:02:21 +0400690&pci2 {
691 status = "okay";
692 pinctrl-0 = <&usb2_pins>;
693 pinctrl-names = "default";
694};
Ben Dooksd594c972014-08-13 00:18:26 +0400695
Yoshihiro Shimodae03074a2014-10-24 19:44:34 +0900696&hsusb {
697 status = "okay";
698 pinctrl-0 = <&hsusb_pins>;
699 pinctrl-names = "default";
700 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
701};
702
Sergei Shtylyov6742caf2014-09-27 01:01:35 +0400703&usbphy {
704 status = "okay";
705};
706
Ben Dooksd594c972014-08-13 00:18:26 +0400707/* composite video input */
708&vin1 {
709 pinctrl-0 = <&vin1_pins>;
710 pinctrl-names = "default";
711
Geert Uytterhoevenfd7a8cb2014-12-09 12:25:01 +0100712 status = "okay";
Ben Dooksd594c972014-08-13 00:18:26 +0400713
714 port {
715 #address-cells = <1>;
716 #size-cells = <0>;
717
718 vin1ep0: endpoint {
719 remote-endpoint = <&adv7180>;
720 bus-width = <8>;
721 };
722 };
723};
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800724
725&rcar_sound {
726 pinctrl-0 = <&sound_pins &sound_clk_pins>;
727 pinctrl-names = "default";
728
Kuninori Morimotoad632412014-12-17 06:11:52 +0000729 /* Single DAI */
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800730 #sound-dai-cells = <0>;
731
732 status = "okay";
733
734 rcar_sound,dai {
735 dai0 {
Kuninori Morimotoe110c542014-11-03 17:48:38 -0800736 playback = <&ssi0 &src2 &dvc0>;
737 capture = <&ssi1 &src3 &dvc1>;
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800738 };
739 };
740};
741
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800742&ssi1 {
Kuninori Morimoto8ea7a442014-11-03 17:47:56 -0800743 shared-pin;
744};