blob: c8978f4f62e9f2dcf14ccf1614b2664b9df9de7a [file] [log] [blame]
Wolfram Sangcdbfaf62018-06-11 23:49:36 +09001// SPDX-License-Identifier: GPL-2.0
Ulrich Hechtb8af4592015-06-01 16:22:56 +02002/*
3 * Device Tree Source for the Gose board
4 *
5 * Copyright (C) 2014-2015 Renesas Electronics Corporation
Ulrich Hechtb8af4592015-06-01 16:22:56 +02006 */
7
Simon Hormanf8905ce2015-12-02 16:45:35 +09008/*
9 * SSI-AK4643
10 *
11 * SW1: 1: AK4643
12 * 2: CN22
13 * 3: ADV7511
14 *
15 * This command is required when Playback/Capture
16 *
17 * amixer set "LINEOUT Mixer DACL" on
Simon Hormanae79f662015-12-02 16:59:44 +090018 * amixer set "DVC Out" 100%
19 * amixer set "DVC In" 100%
20 *
21 * You can use Mute
22 *
23 * amixer set "DVC Out Mute" on
24 * amixer set "DVC In Mute" on
25 *
26 * You can use Volume Ramp
27 *
28 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
29 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
30 * amixer set "DVC Out Ramp" on
31 * aplay xxx.wav &
32 * amixer set "DVC Out" 80% // Volume Down
33 * amixer set "DVC Out" 100% // Volume Up
Simon Hormanf8905ce2015-12-02 16:45:35 +090034 */
Simon Hormanae79f662015-12-02 16:59:44 +090035
Ulrich Hechtb8af4592015-06-01 16:22:56 +020036/dts-v1/;
37#include "r8a7793.dtsi"
38#include <dt-bindings/gpio/gpio.h>
39#include <dt-bindings/input/input.h>
40
41/ {
42 model = "Gose";
43 compatible = "renesas,gose", "renesas,r8a7793";
44
45 aliases {
46 serial0 = &scif0;
47 serial1 = &scif1;
Wolfram Sang786ef2ee2018-02-06 23:29:57 +010048 i2c9 = &gpioi2c2;
Wolfram Sang931bc7e2018-02-06 23:29:58 +010049 i2c10 = &gpioi2c4;
Wolfram Sang786ef2ee2018-02-06 23:29:57 +010050 i2c11 = &i2chdmi;
Wolfram Sang931bc7e2018-02-06 23:29:58 +010051 i2c12 = &i2cexio4;
Yoshihiro Shimodada926e82021-02-12 21:01:56 +090052 mmc0 = &sdhi0;
53 mmc1 = &sdhi1;
54 mmc2 = &sdhi2;
Ulrich Hechtb8af4592015-06-01 16:22:56 +020055 };
56
57 chosen {
Magnus Damm07d2bf92019-05-18 19:03:57 +090058 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
Geert Uytterhoeven16010a32015-12-08 18:54:11 +010059 stdout-path = "serial0:115200n8";
Ulrich Hechtb8af4592015-06-01 16:22:56 +020060 };
61
62 memory@40000000 {
63 device_type = "memory";
64 reg = <0 0x40000000 0 0x40000000>;
65 };
Simon Hormand7d59742015-11-18 14:20:34 -080066
Geert Uytterhoeven0003fa72021-04-30 15:10:54 +020067 keyboard {
Simon Hormand7d59742015-11-18 14:20:34 -080068 compatible = "gpio-keys";
69
Geert Uytterhoeven0003fa72021-04-30 15:10:54 +020070 pinctrl-0 = <&keyboard_pins>;
71 pinctrl-names = "default";
72
Simon Hormand7d59742015-11-18 14:20:34 -080073 key-1 {
Geert Uytterhoeven3b47f222019-09-04 14:01:13 +020074 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_1>;
76 label = "SW2-1";
77 wakeup-source;
78 debounce-interval = <20>;
Simon Hormand7d59742015-11-18 14:20:34 -080079 };
80 key-2 {
Geert Uytterhoeven3b47f222019-09-04 14:01:13 +020081 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_2>;
83 label = "SW2-2";
84 wakeup-source;
85 debounce-interval = <20>;
Simon Hormand7d59742015-11-18 14:20:34 -080086 };
87 key-3 {
Geert Uytterhoeven3b47f222019-09-04 14:01:13 +020088 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_3>;
90 label = "SW2-3";
91 wakeup-source;
92 debounce-interval = <20>;
Simon Hormand7d59742015-11-18 14:20:34 -080093 };
94 key-4 {
Geert Uytterhoeven3b47f222019-09-04 14:01:13 +020095 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_4>;
97 label = "SW2-4";
98 wakeup-source;
99 debounce-interval = <20>;
Simon Hormand7d59742015-11-18 14:20:34 -0800100 };
101 key-a {
Geert Uytterhoeven3b47f222019-09-04 14:01:13 +0200102 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_A>;
104 label = "SW30";
105 wakeup-source;
106 debounce-interval = <20>;
Simon Hormand7d59742015-11-18 14:20:34 -0800107 };
108 key-b {
Geert Uytterhoeven3b47f222019-09-04 14:01:13 +0200109 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_B>;
111 label = "SW31";
112 wakeup-source;
113 debounce-interval = <20>;
Simon Hormand7d59742015-11-18 14:20:34 -0800114 };
115 key-c {
Geert Uytterhoeven3b47f222019-09-04 14:01:13 +0200116 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_C>;
118 label = "SW32";
119 wakeup-source;
120 debounce-interval = <20>;
Simon Hormand7d59742015-11-18 14:20:34 -0800121 };
122 key-d {
Geert Uytterhoeven3b47f222019-09-04 14:01:13 +0200123 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_D>;
125 label = "SW33";
126 wakeup-source;
127 debounce-interval = <20>;
Simon Hormand7d59742015-11-18 14:20:34 -0800128 };
129 key-e {
Geert Uytterhoeven3b47f222019-09-04 14:01:13 +0200130 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
131 linux,code = <KEY_E>;
132 label = "SW34";
133 wakeup-source;
134 debounce-interval = <20>;
Simon Hormand7d59742015-11-18 14:20:34 -0800135 };
136 key-f {
Geert Uytterhoeven3b47f222019-09-04 14:01:13 +0200137 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
138 linux,code = <KEY_F>;
139 label = "SW35";
140 wakeup-source;
141 debounce-interval = <20>;
Simon Hormand7d59742015-11-18 14:20:34 -0800142 };
143 key-g {
Geert Uytterhoeven3b47f222019-09-04 14:01:13 +0200144 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
145 linux,code = <KEY_G>;
146 label = "SW36";
147 wakeup-source;
148 debounce-interval = <20>;
Simon Hormand7d59742015-11-18 14:20:34 -0800149 };
150 };
Simon Horman3b18d852015-11-18 14:20:35 -0800151
152 leds {
153 compatible = "gpio-leds";
154 led6 {
155 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
156 label = "LED6";
157 };
158 led7 {
159 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
160 label = "LED7";
161 };
162 led8 {
163 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
164 label = "LED8";
165 };
166 };
Magnus Damm8871eb02016-01-18 20:03:10 +0900167
Geert Uytterhoevenb6dfc0d2016-05-20 09:10:05 +0200168 vcc_sdhi0: regulator-vcc-sdhi0 {
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200169 compatible = "regulator-fixed";
170
171 regulator-name = "SDHI0 Vcc";
172 regulator-min-microvolt = <3300000>;
173 regulator-max-microvolt = <3300000>;
174
175 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
176 enable-active-high;
177 };
178
Geert Uytterhoevenb6dfc0d2016-05-20 09:10:05 +0200179 vccq_sdhi0: regulator-vccq-sdhi0 {
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200180 compatible = "regulator-gpio";
181
182 regulator-name = "SDHI0 VccQ";
183 regulator-min-microvolt = <1800000>;
184 regulator-max-microvolt = <3300000>;
185
186 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
187 gpios-states = <1>;
Geert Uytterhoeven8a481af2019-12-13 17:41:08 +0100188 states = <3300000 1>, <1800000 0>;
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200189 };
190
Geert Uytterhoevenb6dfc0d2016-05-20 09:10:05 +0200191 vcc_sdhi1: regulator-vcc-sdhi1 {
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200192 compatible = "regulator-fixed";
193
194 regulator-name = "SDHI1 Vcc";
195 regulator-min-microvolt = <3300000>;
196 regulator-max-microvolt = <3300000>;
197
198 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
199 enable-active-high;
200 };
201
Geert Uytterhoevenb6dfc0d2016-05-20 09:10:05 +0200202 vccq_sdhi1: regulator-vccq-sdhi1 {
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200203 compatible = "regulator-gpio";
204
205 regulator-name = "SDHI1 VccQ";
206 regulator-min-microvolt = <1800000>;
207 regulator-max-microvolt = <3300000>;
208
209 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
210 gpios-states = <1>;
Geert Uytterhoeven8a481af2019-12-13 17:41:08 +0100211 states = <3300000 1>, <1800000 0>;
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200212 };
213
Geert Uytterhoevenb6dfc0d2016-05-20 09:10:05 +0200214 vcc_sdhi2: regulator-vcc-sdhi2 {
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200215 compatible = "regulator-fixed";
216
217 regulator-name = "SDHI2 Vcc";
218 regulator-min-microvolt = <3300000>;
219 regulator-max-microvolt = <3300000>;
220
221 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
222 enable-active-high;
223 };
224
Geert Uytterhoevenb6dfc0d2016-05-20 09:10:05 +0200225 vccq_sdhi2: regulator-vccq-sdhi2 {
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200226 compatible = "regulator-gpio";
227
228 regulator-name = "SDHI2 VccQ";
229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <3300000>;
231
232 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
233 gpios-states = <1>;
Geert Uytterhoeven8a481af2019-12-13 17:41:08 +0100234 states = <3300000 1>, <1800000 0>;
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200235 };
236
Simon Horman45e4f512016-03-18 08:17:57 +0900237 audio_clock: audio_clock {
Simon Hormanf8905ce2015-12-02 16:45:35 +0900238 compatible = "fixed-clock";
239 #clock-cells = <0>;
240 clock-frequency = <11289600>;
Simon Hormanf8905ce2015-12-02 16:45:35 +0900241 };
242
243 rsnd_ak4643: sound {
244 compatible = "simple-audio-card";
245
246 simple-audio-card,format = "left_j";
247 simple-audio-card,bitclock-master = <&sndcodec>;
248 simple-audio-card,frame-master = <&sndcodec>;
249
250 sndcpu: simple-audio-card,cpu {
251 sound-dai = <&rcar_sound>;
252 };
253
254 sndcodec: simple-audio-card,codec {
255 sound-dai = <&ak4643>;
256 clocks = <&audio_clock>;
257 };
258 };
259
Ulrich Hechtbc63cd82017-05-19 15:07:01 +0200260 hdmi-in {
261 compatible = "hdmi-connector";
262 type = "a";
263
264 port {
265 hdmi_con_in: endpoint {
266 remote-endpoint = <&adv7612_in>;
267 };
268 };
269 };
270
Magnus Damm8871eb02016-01-18 20:03:10 +0900271 hdmi-out {
272 compatible = "hdmi-connector";
273 type = "a";
274
275 port {
Ulrich Hechtbc63cd82017-05-19 15:07:01 +0200276 hdmi_con_out: endpoint {
Magnus Damm8871eb02016-01-18 20:03:10 +0900277 remote-endpoint = <&adv7511_out>;
278 };
279 };
280 };
281
Ulrich Hecht8cae3592017-05-19 15:07:04 +0200282 composite-in {
283 compatible = "composite-video-connector";
284
285 port {
286 composite_con_in: endpoint {
287 remote-endpoint = <&adv7180_in>;
288 };
289 };
290 };
291
Magnus Damm8871eb02016-01-18 20:03:10 +0900292 x2_clk: x2-clock {
293 compatible = "fixed-clock";
294 #clock-cells = <0>;
295 clock-frequency = <74250000>;
296 };
297
298 x13_clk: x13-clock {
299 compatible = "fixed-clock";
300 #clock-cells = <0>;
301 clock-frequency = <148500000>;
302 };
Wolfram Sang786ef2ee2018-02-06 23:29:57 +0100303
304 gpioi2c2: i2c-9 {
305 #address-cells = <1>;
306 #size-cells = <0>;
307 compatible = "i2c-gpio";
308 status = "disabled";
309 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
310 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
311 i2c-gpio,delay-us = <5>;
312 };
313
Wolfram Sang931bc7e2018-02-06 23:29:58 +0100314 gpioi2c4: i2c-10 {
315 #address-cells = <1>;
316 #size-cells = <0>;
317 compatible = "i2c-gpio";
318 status = "disabled";
319 scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
320 sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
321 i2c-gpio,delay-us = <5>;
322 };
323
Wolfram Sang786ef2ee2018-02-06 23:29:57 +0100324 /*
325 * A fallback to GPIO is provided for I2C2.
326 */
327 i2chdmi: i2c-11 {
328 compatible = "i2c-demux-pinctrl";
329 i2c-parent = <&i2c2>, <&gpioi2c2>;
330 i2c-bus-name = "i2c-hdmi";
331 #address-cells = <1>;
332 #size-cells = <0>;
333
334 ak4643: codec@12 {
335 compatible = "asahi-kasei,ak4643";
336 #sound-dai-cells = <0>;
337 reg = <0x12>;
338 };
339
340 composite-in@20 {
341 compatible = "adi,adv7180cp";
342 reg = <0x20>;
Wolfram Sang786ef2ee2018-02-06 23:29:57 +0100343
Niklas Söderlundd3442342020-07-04 17:58:55 +0200344 ports {
Wolfram Sang786ef2ee2018-02-06 23:29:57 +0100345 #address-cells = <1>;
346 #size-cells = <0>;
347
348 port@0 {
349 reg = <0>;
350 adv7180_in: endpoint {
351 remote-endpoint = <&composite_con_in>;
352 };
353 };
354
355 port@3 {
356 reg = <3>;
357 adv7180_out: endpoint {
358 bus-width = <8>;
359 remote-endpoint = <&vin1ep>;
360 };
361 };
362 };
363 };
364
365 hdmi@39 {
366 compatible = "adi,adv7511w";
367 reg = <0x39>;
368 interrupt-parent = <&gpio3>;
369 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
370
371 adi,input-depth = <8>;
372 adi,input-colorspace = "rgb";
373 adi,input-clock = "1x";
Wolfram Sang786ef2ee2018-02-06 23:29:57 +0100374
375 ports {
376 #address-cells = <1>;
377 #size-cells = <0>;
378
379 port@0 {
380 reg = <0>;
381 adv7511_in: endpoint {
382 remote-endpoint = <&du_out_rgb>;
383 };
384 };
385
386 port@1 {
387 reg = <1>;
388 adv7511_out: endpoint {
389 remote-endpoint = <&hdmi_con_out>;
390 };
391 };
392 };
393 };
394
395 hdmi-in@4c {
396 compatible = "adi,adv7612";
397 reg = <0x4c>;
398 interrupt-parent = <&gpio4>;
399 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
400 default-input = <0>;
401
Niklas Söderlund59692ac2020-07-13 13:10:16 +0200402 ports {
Wolfram Sang786ef2ee2018-02-06 23:29:57 +0100403 #address-cells = <1>;
404 #size-cells = <0>;
405
406 port@0 {
407 reg = <0>;
408 adv7612_in: endpoint {
409 remote-endpoint = <&hdmi_con_in>;
410 };
411 };
412
413 port@2 {
414 reg = <2>;
415 adv7612_out: endpoint {
416 remote-endpoint = <&vin0ep2>;
417 };
418 };
419 };
420 };
421
422 eeprom@50 {
423 compatible = "renesas,r1ex24002", "atmel,24c02";
424 reg = <0x50>;
425 pagesize = <16>;
426 };
427 };
Wolfram Sang931bc7e2018-02-06 23:29:58 +0100428
429 /*
430 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
431 * A fallback to GPIO is provided.
432 */
433 i2cexio4: i2c-12 {
434 compatible = "i2c-demux-pinctrl";
435 i2c-parent = <&i2c4>, <&gpioi2c4>;
436 i2c-bus-name = "i2c-exio4";
437 #address-cells = <1>;
438 #size-cells = <0>;
439 };
Magnus Damm8871eb02016-01-18 20:03:10 +0900440};
441
442&du {
443 pinctrl-0 = <&du_pins>;
444 pinctrl-names = "default";
445 status = "okay";
446
Laurent Pinchartedb0c3a2018-04-20 14:57:54 +0300447 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
Magnus Damm8871eb02016-01-18 20:03:10 +0900448 <&x13_clk>, <&x2_clk>;
Laurent Pinchartedb0c3a2018-04-20 14:57:54 +0300449 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
Magnus Damm8871eb02016-01-18 20:03:10 +0900450
451 ports {
452 port@0 {
453 endpoint {
454 remote-endpoint = <&adv7511_in>;
455 };
456 };
Laurent Pinchartedb0c3a2018-04-20 14:57:54 +0300457 };
458};
459
460&lvds0 {
461 ports {
Magnus Damm8871eb02016-01-18 20:03:10 +0900462 port@1 {
463 lvds_connector: endpoint {
464 };
465 };
466 };
Ulrich Hechtb8af4592015-06-01 16:22:56 +0200467};
468
469&extal_clk {
470 clock-frequency = <20000000>;
471};
472
Simon Hormana81f0502015-11-09 10:33:19 +0900473&pfc {
Geert Uytterhoeven81a81ba2016-01-29 11:17:20 +0100474 pinctrl-0 = <&scif_clk_pins>;
475 pinctrl-names = "default";
476
Simon Hormanf6890af2016-01-05 09:16:20 +1100477 i2c2_pins: i2c2 {
Simon Horman2e207c12016-03-18 07:55:47 +0900478 groups = "i2c2";
479 function = "i2c2";
Simon Hormanf6890af2016-01-05 09:16:20 +1100480 };
481
Wolfram Sang931bc7e2018-02-06 23:29:58 +0100482 i2c4_pins: i2c4 {
483 groups = "i2c4_c";
484 function = "i2c4";
485 };
486
Magnus Damm8871eb02016-01-18 20:03:10 +0900487 du_pins: du {
Simon Horman2e207c12016-03-18 07:55:47 +0900488 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
489 function = "du";
Magnus Damm8871eb02016-01-18 20:03:10 +0900490 };
491
Geert Uytterhoeven167d34a2016-06-10 15:00:59 +0200492 scif0_pins: scif0 {
Simon Horman2e207c12016-03-18 07:55:47 +0900493 groups = "scif0_data_d";
494 function = "scif0";
Simon Hormana81f0502015-11-09 10:33:19 +0900495 };
496
Geert Uytterhoeven167d34a2016-06-10 15:00:59 +0200497 scif1_pins: scif1 {
Simon Horman2e207c12016-03-18 07:55:47 +0900498 groups = "scif1_data_d";
499 function = "scif1";
Simon Hormana81f0502015-11-09 10:33:19 +0900500 };
501
Geert Uytterhoeven81a81ba2016-01-29 11:17:20 +0100502 scif_clk_pins: scif_clk {
Simon Horman2e207c12016-03-18 07:55:47 +0900503 groups = "scif_clk";
504 function = "scif_clk";
Geert Uytterhoeven81a81ba2016-01-29 11:17:20 +0100505 };
506
Simon Hormana81f0502015-11-09 10:33:19 +0900507 ether_pins: ether {
Simon Horman2e207c12016-03-18 07:55:47 +0900508 groups = "eth_link", "eth_mdio", "eth_rmii";
509 function = "eth";
Simon Hormana81f0502015-11-09 10:33:19 +0900510 };
511
512 phy1_pins: phy1 {
Simon Horman2e207c12016-03-18 07:55:47 +0900513 groups = "intc_irq0";
514 function = "intc";
Simon Hormana81f0502015-11-09 10:33:19 +0900515 };
Simon Horman6380d622015-11-12 10:29:23 +0900516
Marek Vasut185555f2019-05-15 10:23:26 +0200517 pmic_irq_pins: pmicirq {
518 groups = "intc_irq2";
519 function = "intc";
520 };
521
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200522 sdhi0_pins: sd0 {
Simon Hormanaf897252016-09-16 12:04:54 +0200523 groups = "sdhi0_data4", "sdhi0_ctrl";
524 function = "sdhi0";
Simon Horman6d25a412017-04-18 14:55:39 +0900525 power-source = <3300>;
526 };
527
528 sdhi0_pins_uhs: sd0_uhs {
529 groups = "sdhi0_data4", "sdhi0_ctrl";
530 function = "sdhi0";
531 power-source = <1800>;
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200532 };
533
534 sdhi1_pins: sd1 {
Simon Hormanaf897252016-09-16 12:04:54 +0200535 groups = "sdhi1_data4", "sdhi1_ctrl";
536 function = "sdhi1";
Simon Horman6d25a412017-04-18 14:55:39 +0900537 power-source = <3300>;
538 };
539
540 sdhi1_pins_uhs: sd1_uhs {
541 groups = "sdhi1_data4", "sdhi1_ctrl";
542 function = "sdhi1";
543 power-source = <1800>;
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200544 };
545
546 sdhi2_pins: sd2 {
Simon Hormanaf897252016-09-16 12:04:54 +0200547 groups = "sdhi2_data4", "sdhi2_ctrl";
548 function = "sdhi2";
Simon Horman6d25a412017-04-18 14:55:39 +0900549 power-source = <3300>;
550 };
551
552 sdhi2_pins_uhs: sd2_uhs {
553 groups = "sdhi2_data4", "sdhi2_ctrl";
554 function = "sdhi2";
555 power-source = <1800>;
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200556 };
557
Geert Uytterhoeven740f5c82016-06-10 15:01:00 +0200558 qspi_pins: qspi {
Simon Horman2e207c12016-03-18 07:55:47 +0900559 groups = "qspi_ctrl", "qspi_data4";
560 function = "qspi";
Simon Horman6380d622015-11-12 10:29:23 +0900561 };
Simon Hormanf8905ce2015-12-02 16:45:35 +0900562
563 sound_pins: sound {
Simon Horman2e207c12016-03-18 07:55:47 +0900564 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
565 function = "ssi";
Simon Hormanf8905ce2015-12-02 16:45:35 +0900566 };
567
568 sound_clk_pins: sound_clk {
Simon Horman2e207c12016-03-18 07:55:47 +0900569 groups = "audio_clk_a";
570 function = "audio_clk";
Simon Hormanf8905ce2015-12-02 16:45:35 +0900571 };
Ulrich Hechtbc63cd82017-05-19 15:07:01 +0200572
Geert Uytterhoeven0003fa72021-04-30 15:10:54 +0200573 keyboard_pins: keyboard {
574 pins = "GP_5_0", "GP_5_1", "GP_5_2", "GP_5_3";
575 bias-pull-up;
576 };
577
Ulrich Hechtbc63cd82017-05-19 15:07:01 +0200578 vin0_pins: vin0 {
579 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
580 function = "vin0";
581 };
Ulrich Hecht8cae3592017-05-19 15:07:04 +0200582
583 vin1_pins: vin1 {
584 groups = "vin1_data8", "vin1_clk";
585 function = "vin1";
586 };
Simon Hormana81f0502015-11-09 10:33:19 +0900587};
588
Ulrich Hechtb8af4592015-06-01 16:22:56 +0200589&ether {
Geert Uytterhoevende16af52021-02-04 14:05:15 +0100590 pinctrl-0 = <&ether_pins>, <&phy1_pins>;
Simon Hormana81f0502015-11-09 10:33:19 +0900591 pinctrl-names = "default";
592
Ulrich Hechtb8af4592015-06-01 16:22:56 +0200593 phy-handle = <&phy1>;
594 renesas,ether-link-active-low;
595 status = "okay";
596
597 phy1: ethernet-phy@1 {
Geert Uytterhoeven18474182021-09-09 10:49:37 +0200598 compatible = "ethernet-phy-id0022.1537",
599 "ethernet-phy-ieee802.3-c22";
Ulrich Hechtb8af4592015-06-01 16:22:56 +0200600 reg = <1>;
601 interrupt-parent = <&irqc0>;
602 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
603 micrel,led-mode = <1>;
Marek Vasut516f6892020-01-15 06:12:25 +0100604 reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
Ulrich Hechtb8af4592015-06-01 16:22:56 +0200605 };
606};
607
608&cmt0 {
609 status = "okay";
610};
611
Marek Vasutd17f45e2018-07-30 13:17:26 +0200612&cpu0 {
613 cpu0-supply = <&vdd_dvfs>;
614};
615
Geert Uytterhoeven80aed522018-02-08 11:34:15 +0100616&rwdt {
617 timeout-sec = <60>;
618 status = "okay";
619};
620
Ulrich Hechtb8af4592015-06-01 16:22:56 +0200621&scif0 {
Simon Hormana81f0502015-11-09 10:33:19 +0900622 pinctrl-0 = <&scif0_pins>;
623 pinctrl-names = "default";
624
Ulrich Hechtb8af4592015-06-01 16:22:56 +0200625 status = "okay";
626};
627
628&scif1 {
Simon Hormana81f0502015-11-09 10:33:19 +0900629 pinctrl-0 = <&scif1_pins>;
630 pinctrl-names = "default";
631
Ulrich Hechtb8af4592015-06-01 16:22:56 +0200632 status = "okay";
633};
Simon Horman6380d622015-11-12 10:29:23 +0900634
Geert Uytterhoeven81a81ba2016-01-29 11:17:20 +0100635&scif_clk {
636 clock-frequency = <14745600>;
Geert Uytterhoeven81a81ba2016-01-29 11:17:20 +0100637};
638
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200639&sdhi0 {
640 pinctrl-0 = <&sdhi0_pins>;
Simon Horman6d25a412017-04-18 14:55:39 +0900641 pinctrl-1 = <&sdhi0_pins_uhs>;
642 pinctrl-names = "default", "state_uhs";
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200643
644 vmmc-supply = <&vcc_sdhi0>;
645 vqmmc-supply = <&vccq_sdhi0>;
646 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
647 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
Simon Horman6d25a412017-04-18 14:55:39 +0900648 sd-uhs-sdr50;
649 sd-uhs-sdr104;
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200650 status = "okay";
651};
652
653&sdhi1 {
654 pinctrl-0 = <&sdhi1_pins>;
Simon Horman6d25a412017-04-18 14:55:39 +0900655 pinctrl-1 = <&sdhi1_pins_uhs>;
656 pinctrl-names = "default", "state_uhs";
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200657
658 vmmc-supply = <&vcc_sdhi1>;
659 vqmmc-supply = <&vccq_sdhi1>;
660 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
661 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
Simon Horman6d25a412017-04-18 14:55:39 +0900662 sd-uhs-sdr50;
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200663 status = "okay";
664};
665
666&sdhi2 {
667 pinctrl-0 = <&sdhi2_pins>;
Simon Horman6d25a412017-04-18 14:55:39 +0900668 pinctrl-1 = <&sdhi2_pins_uhs>;
669 pinctrl-names = "default", "state_uhs";
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200670
671 vmmc-supply = <&vcc_sdhi2>;
672 vqmmc-supply = <&vccq_sdhi2>;
673 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
Simon Horman6d25a412017-04-18 14:55:39 +0900674 sd-uhs-sdr50;
Ulrich Hecht6f92cb22016-04-18 18:02:57 +0200675 status = "okay";
676};
677
Simon Horman6380d622015-11-12 10:29:23 +0900678&qspi {
679 pinctrl-0 = <&qspi_pins>;
680 pinctrl-names = "default";
681
682 status = "okay";
683
684 flash@0 {
685 compatible = "spansion,s25fl512s", "jedec,spi-nor";
686 reg = <0>;
687 spi-max-frequency = <30000000>;
688 spi-tx-bus-width = <4>;
689 spi-rx-bus-width = <4>;
690 spi-cpol;
691 spi-cpha;
692 m25p,fast-read;
693
694 partitions {
Geert Uytterhoevene5e6f9b2015-12-21 11:33:51 +0100695 compatible = "fixed-partitions";
Simon Horman6380d622015-11-12 10:29:23 +0900696 #address-cells = <1>;
697 #size-cells = <1>;
698
699 partition@0 {
700 label = "loader";
701 reg = <0x00000000 0x00040000>;
702 read-only;
703 };
704 partition@40000 {
705 label = "user";
706 reg = <0x00040000 0x00400000>;
707 read-only;
708 };
709 partition@440000 {
710 label = "flash";
711 reg = <0x00440000 0x03bc0000>;
712 };
713 };
714 };
715};
Simon Hormanf6890af2016-01-05 09:16:20 +1100716
717&i2c2 {
718 pinctrl-0 = <&i2c2_pins>;
Wolfram Sang786ef2ee2018-02-06 23:29:57 +0100719 pinctrl-names = "i2c-hdmi";
Simon Hormanf6890af2016-01-05 09:16:20 +1100720
721 status = "okay";
722 clock-frequency = <100000>;
723
Simon Hormanf6890af2016-01-05 09:16:20 +1100724};
Simon Hormanf8905ce2015-12-02 16:45:35 +0900725
Geert Uytterhoevenc20839a2016-11-17 19:37:46 +0100726&i2c6 {
Marek Vasut185555f2019-05-15 10:23:26 +0200727 pinctrl-names = "default";
728 pinctrl-0 = <&pmic_irq_pins>;
Geert Uytterhoevenc20839a2016-11-17 19:37:46 +0100729 status = "okay";
730 clock-frequency = <100000>;
731
732 pmic@58 {
733 compatible = "dlg,da9063";
734 reg = <0x58>;
735 interrupt-parent = <&irqc0>;
736 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
737 interrupt-controller;
738
739 rtc {
740 compatible = "dlg,da9063-rtc";
741 };
742
743 wdt {
744 compatible = "dlg,da9063-watchdog";
745 };
746 };
Marek Vasutd17f45e2018-07-30 13:17:26 +0200747
748 vdd_dvfs: regulator@68 {
749 compatible = "dlg,da9210";
750 reg = <0x68>;
751 interrupt-parent = <&irqc0>;
752 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
753
754 regulator-min-microvolt = <1000000>;
755 regulator-max-microvolt = <1000000>;
756 regulator-boot-on;
757 regulator-always-on;
758 };
Geert Uytterhoevenc20839a2016-11-17 19:37:46 +0100759};
760
Wolfram Sang931bc7e2018-02-06 23:29:58 +0100761&i2c4 {
762 pinctrl-0 = <&i2c4_pins>;
763 pinctrl-names = "i2c-exio4";
764};
765
Simon Hormanf8905ce2015-12-02 16:45:35 +0900766&rcar_sound {
Geert Uytterhoevende16af52021-02-04 14:05:15 +0100767 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
Simon Hormanf8905ce2015-12-02 16:45:35 +0900768 pinctrl-names = "default";
769
770 /* Single DAI */
771 #sound-dai-cells = <0>;
772
773 status = "okay";
774
775 rcar_sound,dai {
776 dai0 {
Geert Uytterhoeven23d2ed62021-02-04 14:05:14 +0100777 playback = <&ssi0>, <&src2>, <&dvc0>;
778 capture = <&ssi1>, <&src3>, <&dvc1>;
Simon Hormanf8905ce2015-12-02 16:45:35 +0900779 };
780 };
781};
782
Simon Hormanf8905ce2015-12-02 16:45:35 +0900783&ssi1 {
Simon Hormanf8905ce2015-12-02 16:45:35 +0900784 shared-pin;
785};
Ulrich Hechtbc63cd82017-05-19 15:07:01 +0200786
787/* HDMI video input */
788&vin0 {
789 status = "okay";
790 pinctrl-0 = <&vin0_pins>;
791 pinctrl-names = "default";
792
793 port {
Ulrich Hechtbc63cd82017-05-19 15:07:01 +0200794 vin0ep2: endpoint {
795 remote-endpoint = <&adv7612_out>;
796 bus-width = <24>;
797 hsync-active = <0>;
798 vsync-active = <0>;
799 pclk-sample = <1>;
800 data-active = <1>;
801 };
802 };
803};
Ulrich Hecht8cae3592017-05-19 15:07:04 +0200804
805/* composite video input */
806&vin1 {
807 pinctrl-0 = <&vin1_pins>;
808 pinctrl-names = "default";
809
810 status = "okay";
811
812 port {
Ulrich Hecht8cae3592017-05-19 15:07:04 +0200813 vin1ep: endpoint {
814 remote-endpoint = <&adv7180_out>;
815 bus-width = <8>;
816 };
817 };
818};