Commit | Line | Data |
---|---|---|
3cc828fd MD |
1 | /* |
2 | * Device Tree Source for the Lager board | |
3 | * | |
da4ea951 SS |
4 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
5 | * Copyright (C) 2014 Cogent Embedded, Inc. | |
880cb570 | 6 | * Copyright (C) 2015-2016 Renesas Electronics Corporation |
3cc828fd MD |
7 | * |
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 | ||
8ea7a44a KM |
13 | /* |
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 | |
e110c541 KM |
23 | * 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 | |
bd2e4a62 KM |
30 | * |
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 | |
8ea7a44a KM |
39 | */ |
40 | ||
3cc828fd | 41 | /dts-v1/; |
31c46cbf | 42 | #include "r8a7790.dtsi" |
39fa511b | 43 | #include <dt-bindings/gpio/gpio.h> |
f7dcd382 | 44 | #include <dt-bindings/input/input.h> |
3cc828fd MD |
45 | |
46 | / { | |
47 | model = "Lager"; | |
48 | compatible = "renesas,lager", "renesas,r8a7790"; | |
49 | ||
4e9c4877 | 50 | aliases { |
430d7bad | 51 | serial0 = &scif0; |
78c11ec2 | 52 | serial1 = &scifa1; |
b2f15ca6 | 53 | i2c8 = &gpioi2c1; |
1e26fcf3 | 54 | i2c10 = &i2cexio0; |
b2f15ca6 | 55 | i2c11 = &i2cexio1; |
4e9c4877 LP |
56 | }; |
57 | ||
3cc828fd | 58 | chosen { |
569dd56c | 59 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
57d19f81 | 60 | stdout-path = "serial0:115200n8"; |
3cc828fd MD |
61 | }; |
62 | ||
63 | memory@40000000 { | |
64 | device_type = "memory"; | |
7b16c61a | 65 | reg = <0 0x40000000 0 0x40000000>; |
3cc828fd MD |
66 | }; |
67 | ||
126f998e | 68 | memory@140000000 { |
62bc32a2 | 69 | device_type = "memory"; |
7b16c61a | 70 | reg = <1 0x40000000 0 0xc0000000>; |
62bc32a2 MD |
71 | }; |
72 | ||
3cc828fd MD |
73 | lbsc { |
74 | #address-cells = <1>; | |
75 | #size-cells = <1>; | |
76 | }; | |
39fa511b | 77 | |
54caf681 | 78 | keyboard { |
f7dcd382 MD |
79 | compatible = "gpio-keys"; |
80 | ||
affe802c | 81 | one { |
f7dcd382 MD |
82 | linux,code = <KEY_1>; |
83 | label = "SW2-1"; | |
0cc16889 | 84 | wakeup-source; |
f7dcd382 MD |
85 | debounce-interval = <20>; |
86 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; | |
87 | }; | |
affe802c | 88 | two { |
f7dcd382 MD |
89 | linux,code = <KEY_2>; |
90 | label = "SW2-2"; | |
0cc16889 | 91 | wakeup-source; |
f7dcd382 MD |
92 | debounce-interval = <20>; |
93 | gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; | |
94 | }; | |
affe802c | 95 | three { |
f7dcd382 MD |
96 | linux,code = <KEY_3>; |
97 | label = "SW2-3"; | |
0cc16889 | 98 | wakeup-source; |
f7dcd382 MD |
99 | debounce-interval = <20>; |
100 | gpios = <&gpio1 26 GPIO_ACTIVE_LOW>; | |
101 | }; | |
affe802c | 102 | four { |
f7dcd382 MD |
103 | linux,code = <KEY_4>; |
104 | label = "SW2-4"; | |
0cc16889 | 105 | wakeup-source; |
f7dcd382 MD |
106 | debounce-interval = <20>; |
107 | gpios = <&gpio1 28 GPIO_ACTIVE_LOW>; | |
108 | }; | |
109 | }; | |
110 | ||
39fa511b LP |
111 | 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 | ||
affe802c | 124 | fixedregulator3v3: regulator-3v3 { |
39fa511b LP |
125 | 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 | }; | |
c6119944 | 132 | |
affe802c | 133 | vcc_sdhi0: regulator-vcc-sdhi0 { |
c6119944 KM |
134 | 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 | ||
affe802c | 144 | vccq_sdhi0: regulator-vccq-sdhi0 { |
c6119944 KM |
145 | 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 | ||
affe802c | 157 | vcc_sdhi2: regulator-vcc-sdhi2 { |
c6119944 KM |
158 | 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 | ||
affe802c | 168 | vccq_sdhi2: regulator-vccq-sdhi2 { |
c6119944 KM |
169 | 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 | }; | |
3edd18ff | 180 | |
a5bad2c7 | 181 | audio_clock: audio_clock { |
6bc651af KM |
182 | compatible = "fixed-clock"; |
183 | #clock-cells = <0>; | |
184 | clock-frequency = <11289600>; | |
6bc651af KM |
185 | }; |
186 | ||
30be0ba5 | 187 | rsnd_ak4643: sound { |
8ea7a44a KM |
188 | 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>; | |
6bc651af | 200 | clocks = <&audio_clock>; |
8ea7a44a KM |
201 | }; |
202 | }; | |
203 | ||
3edd18ff LP |
204 | 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 | }; | |
fd25cdd1 | 235 | |
56548d0c WT |
236 | 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 | ||
fd25cdd1 LP |
247 | hdmi-out { |
248 | compatible = "hdmi-connector"; | |
249 | type = "a"; | |
250 | ||
251 | port { | |
56548d0c | 252 | hdmi_con_out: endpoint { |
fd25cdd1 LP |
253 | remote-endpoint = <&adv7511_out>; |
254 | }; | |
255 | }; | |
256 | }; | |
26c00ab4 LP |
257 | |
258 | x2_clk: x2-clock { | |
259 | compatible = "fixed-clock"; | |
260 | #clock-cells = <0>; | |
261 | clock-frequency = <148500000>; | |
262 | }; | |
263 | ||
264 | x13_clk: x13-clock { | |
265 | compatible = "fixed-clock"; | |
266 | #clock-cells = <0>; | |
267 | clock-frequency = <148500000>; | |
268 | }; | |
880cb570 | 269 | |
b2f15ca6 SH |
270 | gpioi2c1: i2c-8 { |
271 | #address-cells = <1>; | |
272 | #size-cells = <0>; | |
273 | compatible = "i2c-gpio"; | |
274 | status = "disabled"; | |
275 | gpios = <&gpio1 17 GPIO_ACTIVE_HIGH /* sda */ | |
276 | &gpio1 16 GPIO_ACTIVE_HIGH /* scl */ | |
277 | >; | |
278 | i2c-gpio,delay-us = <5>; | |
279 | }; | |
280 | ||
880cb570 WS |
281 | /* |
282 | * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only. | |
283 | * We use the I2C demuxer, so the desired IP core can be selected at runtime | |
284 | * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0). | |
285 | * Note: For testing the I2C slave feature, it is convenient to connect this | |
286 | * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and | |
287 | * instantiate the slave device at runtime according to the documentation. | |
288 | * You can then communicate with the slave via IIC3. | |
1e26fcf3 SH |
289 | * |
290 | * IIC0/I2C0 does not appear to support fallback to GPIO. | |
880cb570 | 291 | */ |
1e26fcf3 | 292 | i2cexio0: i2c-10 { |
880cb570 WS |
293 | compatible = "i2c-demux-pinctrl"; |
294 | i2c-parent = <&iic0>, <&i2c0>; | |
1e26fcf3 | 295 | i2c-bus-name = "i2c-exio0"; |
880cb570 WS |
296 | #address-cells = <1>; |
297 | #size-cells = <0>; | |
298 | }; | |
b2f15ca6 SH |
299 | |
300 | /* | |
301 | * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA). | |
302 | * This is similar to the arangement described for i2cexio0 (above) | |
303 | * with a fallback to GPIO also provided. | |
304 | */ | |
305 | i2cexio1: i2c-11 { | |
306 | compatible = "i2c-demux-pinctrl"; | |
307 | i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>; | |
308 | i2c-bus-name = "i2c-exio1"; | |
309 | #address-cells = <1>; | |
310 | #size-cells = <0>; | |
311 | }; | |
3edd18ff LP |
312 | }; |
313 | ||
314 | &du { | |
315 | pinctrl-0 = <&du_pins>; | |
316 | pinctrl-names = "default"; | |
317 | status = "okay"; | |
318 | ||
5802c420 GU |
319 | clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>, |
320 | <&cpg CPG_MOD 726>, <&cpg CPG_MOD 725>, | |
26c00ab4 LP |
321 | <&x13_clk>, <&x2_clk>; |
322 | clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1", | |
323 | "dclkin.0", "dclkin.1"; | |
324 | ||
3edd18ff LP |
325 | ports { |
326 | port@0 { | |
327 | endpoint { | |
328 | remote-endpoint = <&adv7123_in>; | |
329 | }; | |
330 | }; | |
fd25cdd1 LP |
331 | port@1 { |
332 | endpoint { | |
333 | remote-endpoint = <&adv7511_in>; | |
334 | }; | |
335 | }; | |
3edd18ff LP |
336 | port@2 { |
337 | lvds_connector: endpoint { | |
338 | }; | |
339 | }; | |
340 | }; | |
39fa511b LP |
341 | }; |
342 | ||
62e43056 LP |
343 | &extal_clk { |
344 | clock-frequency = <20000000>; | |
345 | }; | |
346 | ||
39fa511b | 347 | &pfc { |
1781460c GU |
348 | pinctrl-0 = <&scif_clk_pins>; |
349 | pinctrl-names = "default"; | |
350 | ||
3024f507 | 351 | du_pins: du { |
2ffc224f SH |
352 | groups = "du_rgb666", "du_sync_1", "du_clk_out_0"; |
353 | function = "du"; | |
3024f507 LP |
354 | }; |
355 | ||
ca348298 | 356 | scif0_pins: scif0 { |
2ffc224f SH |
357 | groups = "scif0_data"; |
358 | function = "scif0"; | |
39fa511b LP |
359 | }; |
360 | ||
1781460c | 361 | scif_clk_pins: scif_clk { |
2ffc224f SH |
362 | groups = "scif_clk"; |
363 | function = "scif_clk"; | |
1781460c GU |
364 | }; |
365 | ||
da4ea951 | 366 | ether_pins: ether { |
2ffc224f SH |
367 | groups = "eth_link", "eth_mdio", "eth_rmii"; |
368 | function = "eth"; | |
da4ea951 SS |
369 | }; |
370 | ||
371 | phy1_pins: phy1 { | |
2ffc224f SH |
372 | groups = "intc_irq0"; |
373 | function = "intc"; | |
da4ea951 SS |
374 | }; |
375 | ||
ca348298 | 376 | scifa1_pins: scifa1 { |
2ffc224f SH |
377 | groups = "scifa1_data"; |
378 | function = "scifa1"; | |
39fa511b LP |
379 | }; |
380 | ||
c6119944 | 381 | sdhi0_pins: sd0 { |
2ffc224f SH |
382 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
383 | function = "sdhi0"; | |
1ca79699 WS |
384 | power-source = <3300>; |
385 | }; | |
386 | ||
387 | sdhi0_pins_uhs: sd0_uhs { | |
388 | groups = "sdhi0_data4", "sdhi0_ctrl"; | |
389 | function = "sdhi0"; | |
390 | power-source = <1800>; | |
c6119944 KM |
391 | }; |
392 | ||
393 | sdhi2_pins: sd2 { | |
2ffc224f SH |
394 | groups = "sdhi2_data4", "sdhi2_ctrl"; |
395 | function = "sdhi2"; | |
1ca79699 WS |
396 | power-source = <3300>; |
397 | }; | |
398 | ||
399 | sdhi2_pins_uhs: sd2_uhs { | |
400 | groups = "sdhi2_data4", "sdhi2_ctrl"; | |
401 | function = "sdhi2"; | |
402 | power-source = <1800>; | |
c6119944 KM |
403 | }; |
404 | ||
39fa511b | 405 | mmc1_pins: mmc1 { |
2ffc224f SH |
406 | groups = "mmc1_data8", "mmc1_ctrl"; |
407 | function = "mmc1"; | |
39fa511b | 408 | }; |
9fe7c4f8 | 409 | |
85c5e4c4 | 410 | qspi_pins: qspi { |
2ffc224f SH |
411 | groups = "qspi_ctrl", "qspi_data4"; |
412 | function = "qspi"; | |
9fe7c4f8 | 413 | }; |
b0403b91 | 414 | |
85c5e4c4 | 415 | msiof1_pins: msiof1 { |
2ffc224f | 416 | groups = "msiof1_clk", "msiof1_sync", "msiof1_rx", |
b0403b91 | 417 | "msiof1_tx"; |
2ffc224f | 418 | function = "msiof1"; |
b0403b91 | 419 | }; |
05f72e03 | 420 | |
880cb570 | 421 | i2c0_pins: i2c0 { |
2ffc224f SH |
422 | groups = "i2c0"; |
423 | function = "i2c0"; | |
880cb570 WS |
424 | }; |
425 | ||
535118ca | 426 | iic0_pins: iic0 { |
2ffc224f SH |
427 | groups = "iic0"; |
428 | function = "iic0"; | |
535118ca WS |
429 | }; |
430 | ||
b2f15ca6 SH |
431 | i2c1_pins: i2c1 { |
432 | groups = "i2c1"; | |
433 | function = "i2c1"; | |
434 | }; | |
435 | ||
cb9a2b12 | 436 | iic1_pins: iic1 { |
2ffc224f SH |
437 | groups = "iic1"; |
438 | function = "iic1"; | |
d90bf60c SH |
439 | }; |
440 | ||
cb9a2b12 | 441 | iic2_pins: iic2 { |
2ffc224f SH |
442 | groups = "iic2"; |
443 | function = "iic2"; | |
d90bf60c SH |
444 | }; |
445 | ||
5179ffd0 | 446 | iic3_pins: iic3 { |
2ffc224f SH |
447 | groups = "iic3"; |
448 | function = "iic3"; | |
05f72e03 | 449 | }; |
d8584660 | 450 | |
e03074a7 | 451 | hsusb_pins: hsusb { |
2ffc224f SH |
452 | groups = "usb0_ovc_vbus"; |
453 | function = "usb0"; | |
e03074a7 YS |
454 | }; |
455 | ||
d8584660 | 456 | usb0_pins: usb0 { |
2ffc224f SH |
457 | groups = "usb0"; |
458 | function = "usb0"; | |
d8584660 BD |
459 | }; |
460 | ||
461 | usb1_pins: usb1 { | |
2ffc224f SH |
462 | groups = "usb1"; |
463 | function = "usb1"; | |
d8584660 BD |
464 | }; |
465 | ||
466 | usb2_pins: usb2 { | |
2ffc224f SH |
467 | groups = "usb2"; |
468 | function = "usb2"; | |
d8584660 | 469 | }; |
d594c977 | 470 | |
56548d0c WT |
471 | vin0_pins: vin0 { |
472 | groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk"; | |
473 | function = "vin0"; | |
474 | }; | |
475 | ||
da84fd93 | 476 | vin1_pins: vin1 { |
2ffc224f SH |
477 | groups = "vin1_data8", "vin1_clk"; |
478 | function = "vin1"; | |
d594c977 | 479 | }; |
8ea7a44a KM |
480 | |
481 | sound_pins: sound { | |
2ffc224f SH |
482 | groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; |
483 | function = "ssi"; | |
8ea7a44a KM |
484 | }; |
485 | ||
486 | sound_clk_pins: sound_clk { | |
2ffc224f SH |
487 | groups = "audio_clk_a"; |
488 | function = "audio_clk"; | |
8ea7a44a | 489 | }; |
39fa511b LP |
490 | }; |
491 | ||
da4ea951 SS |
492 | ðer { |
493 | pinctrl-0 = <ðer_pins &phy1_pins>; | |
494 | pinctrl-names = "default"; | |
495 | ||
496 | phy-handle = <&phy1>; | |
497 | renesas,ether-link-active-low; | |
fd7a8cbf | 498 | status = "okay"; |
da4ea951 SS |
499 | |
500 | phy1: ethernet-phy@1 { | |
501 | reg = <1>; | |
502 | interrupt-parent = <&irqc0>; | |
503 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | |
1c47a6aa | 504 | micrel,led-mode = <1>; |
da4ea951 SS |
505 | }; |
506 | }; | |
507 | ||
247fd5ec | 508 | &cmt0 { |
fd7a8cbf | 509 | status = "okay"; |
247fd5ec LP |
510 | }; |
511 | ||
39fa511b LP |
512 | &mmcif1 { |
513 | pinctrl-0 = <&mmc1_pins>; | |
514 | pinctrl-names = "default"; | |
515 | ||
516 | vmmc-supply = <&fixedregulator3v3>; | |
517 | bus-width = <8>; | |
518 | non-removable; | |
519 | status = "okay"; | |
3cc828fd | 520 | }; |
c6181b9f VB |
521 | |
522 | &sata1 { | |
523 | status = "okay"; | |
524 | }; | |
9fe7c4f8 | 525 | |
fad6d45c | 526 | &qspi { |
9fe7c4f8 GU |
527 | pinctrl-0 = <&qspi_pins>; |
528 | pinctrl-names = "default"; | |
529 | ||
530 | status = "okay"; | |
531 | ||
532 | flash: flash@0 { | |
755185b2 | 533 | compatible = "spansion,s25fl512s", "jedec,spi-nor"; |
9fe7c4f8 GU |
534 | reg = <0>; |
535 | spi-max-frequency = <30000000>; | |
9909d2cb GU |
536 | spi-tx-bus-width = <4>; |
537 | spi-rx-bus-width = <4>; | |
cbf41168 HN |
538 | spi-cpha; |
539 | spi-cpol; | |
9fe7c4f8 GU |
540 | m25p,fast-read; |
541 | ||
f58bac70 | 542 | partitions { |
b88ddbdd | 543 | compatible = "fixed-partitions"; |
f58bac70 GU |
544 | #address-cells = <1>; |
545 | #size-cells = <1>; | |
546 | ||
547 | partition@0 { | |
548 | label = "loader"; | |
549 | reg = <0x00000000 0x00040000>; | |
550 | read-only; | |
551 | }; | |
552 | partition@40000 { | |
553 | label = "user"; | |
554 | reg = <0x00040000 0x00400000>; | |
555 | read-only; | |
556 | }; | |
557 | partition@440000 { | |
558 | label = "flash"; | |
559 | reg = <0x00440000 0x03bc0000>; | |
560 | }; | |
9fe7c4f8 GU |
561 | }; |
562 | }; | |
563 | }; | |
c6119944 | 564 | |
430d7bad UH |
565 | &scif0 { |
566 | pinctrl-0 = <&scif0_pins>; | |
4e9c4877 LP |
567 | pinctrl-names = "default"; |
568 | ||
569 | status = "okay"; | |
570 | }; | |
571 | ||
7c055894 WS |
572 | &scifa1 { |
573 | pinctrl-0 = <&scifa1_pins>; | |
4e9c4877 LP |
574 | pinctrl-names = "default"; |
575 | ||
576 | status = "okay"; | |
577 | }; | |
578 | ||
1781460c GU |
579 | &scif_clk { |
580 | clock-frequency = <14745600>; | |
1781460c GU |
581 | }; |
582 | ||
b0403b91 GU |
583 | &msiof1 { |
584 | pinctrl-0 = <&msiof1_pins>; | |
585 | pinctrl-names = "default"; | |
586 | ||
587 | status = "okay"; | |
588 | ||
589 | pmic: pmic@0 { | |
590 | compatible = "renesas,r2a11302ft"; | |
591 | reg = <0>; | |
592 | spi-max-frequency = <6000000>; | |
593 | spi-cpol; | |
594 | spi-cpha; | |
595 | }; | |
b0403b91 GU |
596 | }; |
597 | ||
c6119944 KM |
598 | &sdhi0 { |
599 | pinctrl-0 = <&sdhi0_pins>; | |
1ca79699 WS |
600 | pinctrl-1 = <&sdhi0_pins_uhs>; |
601 | pinctrl-names = "default", "state_uhs"; | |
c6119944 KM |
602 | |
603 | vmmc-supply = <&vcc_sdhi0>; | |
604 | vqmmc-supply = <&vccq_sdhi0>; | |
605 | cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; | |
1ca79699 | 606 | sd-uhs-sdr50; |
dcc2fe78 | 607 | sd-uhs-sdr104; |
c6119944 KM |
608 | status = "okay"; |
609 | }; | |
610 | ||
611 | &sdhi2 { | |
612 | pinctrl-0 = <&sdhi2_pins>; | |
1ca79699 WS |
613 | pinctrl-1 = <&sdhi2_pins_uhs>; |
614 | pinctrl-names = "default", "state_uhs"; | |
c6119944 KM |
615 | |
616 | vmmc-supply = <&vcc_sdhi2>; | |
617 | vqmmc-supply = <&vccq_sdhi2>; | |
618 | cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>; | |
1ca79699 | 619 | sd-uhs-sdr50; |
c6119944 KM |
620 | status = "okay"; |
621 | }; | |
05f72e03 | 622 | |
b989e138 BC |
623 | &cpu0 { |
624 | cpu0-supply = <&vdd_dvfs>; | |
625 | }; | |
e489c2a9 | 626 | |
880cb570 WS |
627 | &i2c0 { |
628 | pinctrl-0 = <&i2c0_pins>; | |
1e26fcf3 | 629 | pinctrl-names = "i2c-exio0"; |
880cb570 WS |
630 | }; |
631 | ||
cb9a2b12 | 632 | &iic0 { |
535118ca | 633 | pinctrl-0 = <&iic0_pins>; |
1e26fcf3 | 634 | pinctrl-names = "i2c-exio0"; |
e489c2a9 BD |
635 | }; |
636 | ||
b2f15ca6 SH |
637 | &i2c1 { |
638 | pinctrl-0 = <&i2c1_pins>; | |
639 | pinctrl-names = "i2c-exio1"; | |
640 | }; | |
641 | ||
cb9a2b12 | 642 | &iic1 { |
cb9a2b12 | 643 | pinctrl-0 = <&iic1_pins>; |
b2f15ca6 | 644 | pinctrl-names = "i2c-exio1"; |
e489c2a9 BD |
645 | }; |
646 | ||
cb9a2b12 | 647 | &iic2 { |
fd7a8cbf | 648 | status = "okay"; |
cb9a2b12 | 649 | pinctrl-0 = <&iic2_pins>; |
e1a2c4eb | 650 | pinctrl-names = "default"; |
d594c977 | 651 | |
177d8bea KM |
652 | clock-frequency = <100000>; |
653 | ||
d22b1687 | 654 | ak4643: codec@12 { |
8ea7a44a KM |
655 | compatible = "asahi-kasei,ak4643"; |
656 | #sound-dai-cells = <0>; | |
657 | reg = <0x12>; | |
658 | }; | |
659 | ||
d594c977 BD |
660 | composite-in@20 { |
661 | compatible = "adi,adv7180"; | |
662 | reg = <0x20>; | |
663 | remote = <&vin1>; | |
664 | ||
665 | port { | |
666 | adv7180: endpoint { | |
667 | bus-width = <8>; | |
668 | remote-endpoint = <&vin1ep0>; | |
669 | }; | |
670 | }; | |
671 | }; | |
fd25cdd1 LP |
672 | |
673 | hdmi@39 { | |
674 | compatible = "adi,adv7511w"; | |
675 | reg = <0x39>; | |
676 | interrupt-parent = <&gpio1>; | |
850346ec | 677 | interrupts = <15 IRQ_TYPE_LEVEL_LOW>; |
fd25cdd1 LP |
678 | |
679 | adi,input-depth = <8>; | |
680 | adi,input-colorspace = "rgb"; | |
681 | adi,input-clock = "1x"; | |
682 | adi,input-style = <1>; | |
683 | adi,input-justification = "evenly"; | |
684 | ||
685 | ports { | |
686 | #address-cells = <1>; | |
687 | #size-cells = <0>; | |
688 | ||
689 | port@0 { | |
690 | reg = <0>; | |
691 | adv7511_in: endpoint { | |
692 | remote-endpoint = <&du_out_lvds0>; | |
693 | }; | |
694 | }; | |
695 | ||
696 | port@1 { | |
697 | reg = <1>; | |
698 | adv7511_out: endpoint { | |
56548d0c WT |
699 | remote-endpoint = <&hdmi_con_out>; |
700 | }; | |
701 | }; | |
702 | }; | |
703 | }; | |
704 | ||
705 | hdmi-in@4c { | |
706 | compatible = "adi,adv7612"; | |
707 | reg = <0x4c>; | |
708 | interrupt-parent = <&gpio1>; | |
709 | interrupts = <20 IRQ_TYPE_LEVEL_LOW>; | |
710 | default-input = <0>; | |
711 | ||
712 | ports { | |
713 | #address-cells = <1>; | |
714 | #size-cells = <0>; | |
715 | ||
716 | port@0 { | |
717 | reg = <0>; | |
718 | adv7612_in: endpoint { | |
719 | remote-endpoint = <&hdmi_con_in>; | |
720 | }; | |
721 | }; | |
722 | ||
723 | port@2 { | |
724 | reg = <2>; | |
725 | adv7612_out: endpoint { | |
726 | remote-endpoint = <&vin0ep2>; | |
fd25cdd1 LP |
727 | }; |
728 | }; | |
729 | }; | |
730 | }; | |
e489c2a9 BD |
731 | }; |
732 | ||
5179ffd0 | 733 | &iic3 { |
aca4ec44 | 734 | pinctrl-names = "default"; |
5179ffd0 | 735 | pinctrl-0 = <&iic3_pins>; |
aca4ec44 SH |
736 | status = "okay"; |
737 | ||
46dd8a80 GU |
738 | pmic@58 { |
739 | compatible = "dlg,da9063"; | |
740 | reg = <0x58>; | |
741 | interrupt-parent = <&irqc0>; | |
742 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; | |
743 | interrupt-controller; | |
744 | ||
745 | rtc { | |
746 | compatible = "dlg,da9063-rtc"; | |
747 | }; | |
748 | ||
749 | wdt { | |
750 | compatible = "dlg,da9063-watchdog"; | |
751 | }; | |
752 | }; | |
753 | ||
aca4ec44 | 754 | vdd_dvfs: regulator@68 { |
bd597f47 | 755 | compatible = "dlg,da9210"; |
aca4ec44 | 756 | reg = <0x68>; |
ceb77479 GU |
757 | interrupt-parent = <&irqc0>; |
758 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; | |
aca4ec44 SH |
759 | |
760 | regulator-min-microvolt = <1000000>; | |
761 | regulator-max-microvolt = <1000000>; | |
762 | regulator-boot-on; | |
763 | regulator-always-on; | |
764 | }; | |
e489c2a9 | 765 | }; |
d8584660 BD |
766 | |
767 | &pci0 { | |
768 | status = "okay"; | |
769 | pinctrl-0 = <&usb0_pins>; | |
770 | pinctrl-names = "default"; | |
771 | }; | |
772 | ||
773 | &pci1 { | |
774 | status = "okay"; | |
775 | pinctrl-0 = <&usb1_pins>; | |
776 | pinctrl-names = "default"; | |
777 | }; | |
778 | ||
37f7c1b0 YS |
779 | &xhci { |
780 | status = "okay"; | |
781 | pinctrl-0 = <&usb2_pins>; | |
782 | pinctrl-names = "default"; | |
783 | }; | |
784 | ||
d8584660 BD |
785 | &pci2 { |
786 | status = "okay"; | |
787 | pinctrl-0 = <&usb2_pins>; | |
788 | pinctrl-names = "default"; | |
789 | }; | |
d594c977 | 790 | |
e03074a7 YS |
791 | &hsusb { |
792 | status = "okay"; | |
793 | pinctrl-0 = <&hsusb_pins>; | |
794 | pinctrl-names = "default"; | |
795 | renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>; | |
796 | }; | |
797 | ||
6742cafb SS |
798 | &usbphy { |
799 | status = "okay"; | |
800 | }; | |
801 | ||
56548d0c WT |
802 | /* HDMI video input */ |
803 | &vin0 { | |
804 | pinctrl-0 = <&vin0_pins>; | |
805 | pinctrl-names = "default"; | |
806 | ||
807 | status = "okay"; | |
808 | ||
809 | port { | |
810 | vin0ep2: endpoint { | |
811 | remote-endpoint = <&adv7612_out>; | |
812 | bus-width = <24>; | |
813 | hsync-active = <0>; | |
814 | vsync-active = <0>; | |
815 | pclk-sample = <1>; | |
816 | data-active = <1>; | |
817 | }; | |
818 | }; | |
819 | }; | |
820 | ||
d594c977 BD |
821 | /* composite video input */ |
822 | &vin1 { | |
823 | pinctrl-0 = <&vin1_pins>; | |
824 | pinctrl-names = "default"; | |
825 | ||
fd7a8cbf | 826 | status = "okay"; |
d594c977 BD |
827 | |
828 | port { | |
829 | #address-cells = <1>; | |
830 | #size-cells = <0>; | |
831 | ||
832 | vin1ep0: endpoint { | |
833 | remote-endpoint = <&adv7180>; | |
834 | bus-width = <8>; | |
835 | }; | |
836 | }; | |
837 | }; | |
8ea7a44a KM |
838 | |
839 | &rcar_sound { | |
840 | pinctrl-0 = <&sound_pins &sound_clk_pins>; | |
841 | pinctrl-names = "default"; | |
842 | ||
ad63241c | 843 | /* Single DAI */ |
8ea7a44a KM |
844 | #sound-dai-cells = <0>; |
845 | ||
846 | status = "okay"; | |
847 | ||
848 | rcar_sound,dai { | |
849 | dai0 { | |
e110c541 KM |
850 | playback = <&ssi0 &src2 &dvc0>; |
851 | capture = <&ssi1 &src3 &dvc1>; | |
8ea7a44a KM |
852 | }; |
853 | }; | |
854 | }; | |
855 | ||
8ea7a44a | 856 | &ssi1 { |
8ea7a44a KM |
857 | shared-pin; |
858 | }; |