Loading...
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the Gose board
4 *
5 * Copyright (C) 2014-2015 Renesas Electronics Corporation
6 */
7
8/*
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
18 * 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
34 */
35
36/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;
48 i2c9 = &gpioi2c2;
49 i2c10 = &gpioi2c4;
50 i2c11 = &i2chdmi;
51 i2c12 = &i2cexio4;
52 mmc0 = &sdhi0;
53 mmc1 = &sdhi1;
54 mmc2 = &sdhi2;
55 };
56
57 chosen {
58 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
59 stdout-path = "serial0:115200n8";
60 };
61
62 memory@40000000 {
63 device_type = "memory";
64 reg = <0 0x40000000 0 0x40000000>;
65 };
66
67 keyboard {
68 compatible = "gpio-keys";
69
70 pinctrl-0 = <&keyboard_pins>;
71 pinctrl-names = "default";
72
73 key-1 {
74 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_1>;
76 label = "SW2-1";
77 wakeup-source;
78 debounce-interval = <20>;
79 };
80 key-2 {
81 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_2>;
83 label = "SW2-2";
84 wakeup-source;
85 debounce-interval = <20>;
86 };
87 key-3 {
88 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_3>;
90 label = "SW2-3";
91 wakeup-source;
92 debounce-interval = <20>;
93 };
94 key-4 {
95 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_4>;
97 label = "SW2-4";
98 wakeup-source;
99 debounce-interval = <20>;
100 };
101 key-a {
102 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_A>;
104 label = "SW30";
105 wakeup-source;
106 debounce-interval = <20>;
107 };
108 key-b {
109 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_B>;
111 label = "SW31";
112 wakeup-source;
113 debounce-interval = <20>;
114 };
115 key-c {
116 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_C>;
118 label = "SW32";
119 wakeup-source;
120 debounce-interval = <20>;
121 };
122 key-d {
123 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_D>;
125 label = "SW33";
126 wakeup-source;
127 debounce-interval = <20>;
128 };
129 key-e {
130 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
131 linux,code = <KEY_E>;
132 label = "SW34";
133 wakeup-source;
134 debounce-interval = <20>;
135 };
136 key-f {
137 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
138 linux,code = <KEY_F>;
139 label = "SW35";
140 wakeup-source;
141 debounce-interval = <20>;
142 };
143 key-g {
144 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
145 linux,code = <KEY_G>;
146 label = "SW36";
147 wakeup-source;
148 debounce-interval = <20>;
149 };
150 };
151
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 };
167
168 vcc_sdhi0: regulator-vcc-sdhi0 {
169 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
179 vccq_sdhi0: regulator-vccq-sdhi0 {
180 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>;
188 states = <3300000 1>, <1800000 0>;
189 };
190
191 vcc_sdhi1: regulator-vcc-sdhi1 {
192 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
202 vccq_sdhi1: regulator-vccq-sdhi1 {
203 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>;
211 states = <3300000 1>, <1800000 0>;
212 };
213
214 vcc_sdhi2: regulator-vcc-sdhi2 {
215 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
225 vccq_sdhi2: regulator-vccq-sdhi2 {
226 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>;
234 states = <3300000 1>, <1800000 0>;
235 };
236
237 audio_clock: audio_clock {
238 compatible = "fixed-clock";
239 #clock-cells = <0>;
240 clock-frequency = <11289600>;
241 };
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
260 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
271 hdmi-out {
272 compatible = "hdmi-connector";
273 type = "a";
274
275 port {
276 hdmi_con_out: endpoint {
277 remote-endpoint = <&adv7511_out>;
278 };
279 };
280 };
281
282 composite-in {
283 compatible = "composite-video-connector";
284
285 port {
286 composite_con_in: endpoint {
287 remote-endpoint = <&adv7180_in>;
288 };
289 };
290 };
291
292 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 };
303
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
314 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
324 /*
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>;
343
344 ports {
345 #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";
374
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
402 ports {
403 #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 };
428
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 };
440};
441
442&du {
443 pinctrl-0 = <&du_pins>;
444 pinctrl-names = "default";
445 status = "okay";
446
447 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
448 <&x13_clk>, <&x2_clk>;
449 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
450
451 ports {
452 port@0 {
453 endpoint {
454 remote-endpoint = <&adv7511_in>;
455 };
456 };
457 };
458};
459
460&lvds0 {
461 ports {
462 port@1 {
463 lvds_connector: endpoint {
464 };
465 };
466 };
467};
468
469&extal_clk {
470 clock-frequency = <20000000>;
471};
472
473&pfc {
474 pinctrl-0 = <&scif_clk_pins>;
475 pinctrl-names = "default";
476
477 i2c2_pins: i2c2 {
478 groups = "i2c2";
479 function = "i2c2";
480 };
481
482 i2c4_pins: i2c4 {
483 groups = "i2c4_c";
484 function = "i2c4";
485 };
486
487 du_pins: du {
488 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
489 function = "du";
490 };
491
492 scif0_pins: scif0 {
493 groups = "scif0_data_d";
494 function = "scif0";
495 };
496
497 scif1_pins: scif1 {
498 groups = "scif1_data_d";
499 function = "scif1";
500 };
501
502 scif_clk_pins: scif_clk {
503 groups = "scif_clk";
504 function = "scif_clk";
505 };
506
507 ether_pins: ether {
508 groups = "eth_link", "eth_mdio", "eth_rmii";
509 function = "eth";
510 };
511
512 phy1_pins: phy1 {
513 groups = "intc_irq0";
514 function = "intc";
515 };
516
517 pmic_irq_pins: pmicirq {
518 groups = "intc_irq2";
519 function = "intc";
520 };
521
522 sdhi0_pins: sd0 {
523 groups = "sdhi0_data4", "sdhi0_ctrl";
524 function = "sdhi0";
525 power-source = <3300>;
526 };
527
528 sdhi0_pins_uhs: sd0_uhs {
529 groups = "sdhi0_data4", "sdhi0_ctrl";
530 function = "sdhi0";
531 power-source = <1800>;
532 };
533
534 sdhi1_pins: sd1 {
535 groups = "sdhi1_data4", "sdhi1_ctrl";
536 function = "sdhi1";
537 power-source = <3300>;
538 };
539
540 sdhi1_pins_uhs: sd1_uhs {
541 groups = "sdhi1_data4", "sdhi1_ctrl";
542 function = "sdhi1";
543 power-source = <1800>;
544 };
545
546 sdhi2_pins: sd2 {
547 groups = "sdhi2_data4", "sdhi2_ctrl";
548 function = "sdhi2";
549 power-source = <3300>;
550 };
551
552 sdhi2_pins_uhs: sd2_uhs {
553 groups = "sdhi2_data4", "sdhi2_ctrl";
554 function = "sdhi2";
555 power-source = <1800>;
556 };
557
558 qspi_pins: qspi {
559 groups = "qspi_ctrl", "qspi_data4";
560 function = "qspi";
561 };
562
563 sound_pins: sound {
564 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
565 function = "ssi";
566 };
567
568 sound_clk_pins: sound_clk {
569 groups = "audio_clk_a";
570 function = "audio_clk";
571 };
572
573 keyboard_pins: keyboard {
574 pins = "GP_5_0", "GP_5_1", "GP_5_2", "GP_5_3";
575 bias-pull-up;
576 };
577
578 vin0_pins: vin0 {
579 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
580 function = "vin0";
581 };
582
583 vin1_pins: vin1 {
584 groups = "vin1_data8", "vin1_clk";
585 function = "vin1";
586 };
587};
588
589ðer {
590 pinctrl-0 = <ðer_pins>, <&phy1_pins>;
591 pinctrl-names = "default";
592
593 phy-handle = <&phy1>;
594 renesas,ether-link-active-low;
595 status = "okay";
596
597 phy1: ethernet-phy@1 {
598 reg = <1>;
599 interrupt-parent = <&irqc0>;
600 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
601 micrel,led-mode = <1>;
602 reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
603 };
604};
605
606&cmt0 {
607 status = "okay";
608};
609
610&cpu0 {
611 cpu0-supply = <&vdd_dvfs>;
612};
613
614&rwdt {
615 timeout-sec = <60>;
616 status = "okay";
617};
618
619&scif0 {
620 pinctrl-0 = <&scif0_pins>;
621 pinctrl-names = "default";
622
623 status = "okay";
624};
625
626&scif1 {
627 pinctrl-0 = <&scif1_pins>;
628 pinctrl-names = "default";
629
630 status = "okay";
631};
632
633&scif_clk {
634 clock-frequency = <14745600>;
635};
636
637&sdhi0 {
638 pinctrl-0 = <&sdhi0_pins>;
639 pinctrl-1 = <&sdhi0_pins_uhs>;
640 pinctrl-names = "default", "state_uhs";
641
642 vmmc-supply = <&vcc_sdhi0>;
643 vqmmc-supply = <&vccq_sdhi0>;
644 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
645 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
646 sd-uhs-sdr50;
647 sd-uhs-sdr104;
648 status = "okay";
649};
650
651&sdhi1 {
652 pinctrl-0 = <&sdhi1_pins>;
653 pinctrl-1 = <&sdhi1_pins_uhs>;
654 pinctrl-names = "default", "state_uhs";
655
656 vmmc-supply = <&vcc_sdhi1>;
657 vqmmc-supply = <&vccq_sdhi1>;
658 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
659 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
660 sd-uhs-sdr50;
661 status = "okay";
662};
663
664&sdhi2 {
665 pinctrl-0 = <&sdhi2_pins>;
666 pinctrl-1 = <&sdhi2_pins_uhs>;
667 pinctrl-names = "default", "state_uhs";
668
669 vmmc-supply = <&vcc_sdhi2>;
670 vqmmc-supply = <&vccq_sdhi2>;
671 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
672 sd-uhs-sdr50;
673 status = "okay";
674};
675
676&qspi {
677 pinctrl-0 = <&qspi_pins>;
678 pinctrl-names = "default";
679
680 status = "okay";
681
682 flash@0 {
683 compatible = "spansion,s25fl512s", "jedec,spi-nor";
684 reg = <0>;
685 spi-max-frequency = <30000000>;
686 spi-tx-bus-width = <4>;
687 spi-rx-bus-width = <4>;
688 spi-cpol;
689 spi-cpha;
690 m25p,fast-read;
691
692 partitions {
693 compatible = "fixed-partitions";
694 #address-cells = <1>;
695 #size-cells = <1>;
696
697 partition@0 {
698 label = "loader";
699 reg = <0x00000000 0x00040000>;
700 read-only;
701 };
702 partition@40000 {
703 label = "user";
704 reg = <0x00040000 0x00400000>;
705 read-only;
706 };
707 partition@440000 {
708 label = "flash";
709 reg = <0x00440000 0x03bc0000>;
710 };
711 };
712 };
713};
714
715&i2c2 {
716 pinctrl-0 = <&i2c2_pins>;
717 pinctrl-names = "i2c-hdmi";
718
719 status = "okay";
720 clock-frequency = <100000>;
721
722};
723
724&i2c6 {
725 pinctrl-names = "default";
726 pinctrl-0 = <&pmic_irq_pins>;
727 status = "okay";
728 clock-frequency = <100000>;
729
730 pmic@58 {
731 compatible = "dlg,da9063";
732 reg = <0x58>;
733 interrupt-parent = <&irqc0>;
734 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
735 interrupt-controller;
736
737 rtc {
738 compatible = "dlg,da9063-rtc";
739 };
740
741 wdt {
742 compatible = "dlg,da9063-watchdog";
743 };
744 };
745
746 vdd_dvfs: regulator@68 {
747 compatible = "dlg,da9210";
748 reg = <0x68>;
749 interrupt-parent = <&irqc0>;
750 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
751
752 regulator-min-microvolt = <1000000>;
753 regulator-max-microvolt = <1000000>;
754 regulator-boot-on;
755 regulator-always-on;
756 };
757};
758
759&i2c4 {
760 pinctrl-0 = <&i2c4_pins>;
761 pinctrl-names = "i2c-exio4";
762};
763
764&rcar_sound {
765 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
766 pinctrl-names = "default";
767
768 /* Single DAI */
769 #sound-dai-cells = <0>;
770
771 status = "okay";
772
773 rcar_sound,dai {
774 dai0 {
775 playback = <&ssi0>, <&src2>, <&dvc0>;
776 capture = <&ssi1>, <&src3>, <&dvc1>;
777 };
778 };
779};
780
781&ssi1 {
782 shared-pin;
783};
784
785/* HDMI video input */
786&vin0 {
787 status = "okay";
788 pinctrl-0 = <&vin0_pins>;
789 pinctrl-names = "default";
790
791 port {
792 vin0ep2: endpoint {
793 remote-endpoint = <&adv7612_out>;
794 bus-width = <24>;
795 hsync-active = <0>;
796 vsync-active = <0>;
797 pclk-sample = <1>;
798 data-active = <1>;
799 };
800 };
801};
802
803/* composite video input */
804&vin1 {
805 pinctrl-0 = <&vin1_pins>;
806 pinctrl-names = "default";
807
808 status = "okay";
809
810 port {
811 vin1ep: endpoint {
812 remote-endpoint = <&adv7180_out>;
813 bus-width = <8>;
814 };
815 };
816};
1/*
2 * Device Tree Source for the Gose board
3 *
4 * Copyright (C) 2014-2015 Renesas Electronics Corporation
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
9 */
10
11/*
12 * SSI-AK4643
13 *
14 * SW1: 1: AK4643
15 * 2: CN22
16 * 3: ADV7511
17 *
18 * This command is required when Playback/Capture
19 *
20 * amixer set "LINEOUT Mixer DACL" on
21 * amixer set "DVC Out" 100%
22 * amixer set "DVC In" 100%
23 *
24 * You can use Mute
25 *
26 * amixer set "DVC Out Mute" on
27 * amixer set "DVC In Mute" on
28 *
29 * You can use Volume Ramp
30 *
31 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
32 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
33 * amixer set "DVC Out Ramp" on
34 * aplay xxx.wav &
35 * amixer set "DVC Out" 80% // Volume Down
36 * amixer set "DVC Out" 100% // Volume Up
37 */
38
39/dts-v1/;
40#include "r8a7793.dtsi"
41#include <dt-bindings/gpio/gpio.h>
42#include <dt-bindings/input/input.h>
43
44/ {
45 model = "Gose";
46 compatible = "renesas,gose", "renesas,r8a7793";
47
48 aliases {
49 serial0 = &scif0;
50 serial1 = &scif1;
51 };
52
53 chosen {
54 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
55 stdout-path = "serial0:115200n8";
56 };
57
58 memory@40000000 {
59 device_type = "memory";
60 reg = <0 0x40000000 0 0x40000000>;
61 };
62
63 gpio-keys {
64 compatible = "gpio-keys";
65
66 key-1 {
67 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_1>;
69 label = "SW2-1";
70 wakeup-source;
71 debounce-interval = <20>;
72 };
73 key-2 {
74 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_2>;
76 label = "SW2-2";
77 wakeup-source;
78 debounce-interval = <20>;
79 };
80 key-3 {
81 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_3>;
83 label = "SW2-3";
84 wakeup-source;
85 debounce-interval = <20>;
86 };
87 key-4 {
88 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_4>;
90 label = "SW2-4";
91 wakeup-source;
92 debounce-interval = <20>;
93 };
94 key-a {
95 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_A>;
97 label = "SW30";
98 wakeup-source;
99 debounce-interval = <20>;
100 };
101 key-b {
102 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_B>;
104 label = "SW31";
105 wakeup-source;
106 debounce-interval = <20>;
107 };
108 key-c {
109 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_C>;
111 label = "SW32";
112 wakeup-source;
113 debounce-interval = <20>;
114 };
115 key-d {
116 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_D>;
118 label = "SW33";
119 wakeup-source;
120 debounce-interval = <20>;
121 };
122 key-e {
123 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_E>;
125 label = "SW34";
126 wakeup-source;
127 debounce-interval = <20>;
128 };
129 key-f {
130 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
131 linux,code = <KEY_F>;
132 label = "SW35";
133 wakeup-source;
134 debounce-interval = <20>;
135 };
136 key-g {
137 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
138 linux,code = <KEY_G>;
139 label = "SW36";
140 wakeup-source;
141 debounce-interval = <20>;
142 };
143 };
144
145 leds {
146 compatible = "gpio-leds";
147 led6 {
148 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
149 label = "LED6";
150 };
151 led7 {
152 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
153 label = "LED7";
154 };
155 led8 {
156 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
157 label = "LED8";
158 };
159 };
160
161 audio_clock: clock {
162 compatible = "fixed-clock";
163 #clock-cells = <0>;
164 clock-frequency = <11289600>;
165 clock-output-names = "audio_clock";
166 };
167
168 rsnd_ak4643: sound {
169 compatible = "simple-audio-card";
170
171 simple-audio-card,format = "left_j";
172 simple-audio-card,bitclock-master = <&sndcodec>;
173 simple-audio-card,frame-master = <&sndcodec>;
174
175 sndcpu: simple-audio-card,cpu {
176 sound-dai = <&rcar_sound>;
177 };
178
179 sndcodec: simple-audio-card,codec {
180 sound-dai = <&ak4643>;
181 clocks = <&audio_clock>;
182 };
183 };
184
185 hdmi-out {
186 compatible = "hdmi-connector";
187 type = "a";
188
189 port {
190 hdmi_con: endpoint {
191 remote-endpoint = <&adv7511_out>;
192 };
193 };
194 };
195
196 x2_clk: x2-clock {
197 compatible = "fixed-clock";
198 #clock-cells = <0>;
199 clock-frequency = <74250000>;
200 };
201
202 x13_clk: x13-clock {
203 compatible = "fixed-clock";
204 #clock-cells = <0>;
205 clock-frequency = <148500000>;
206 };
207};
208
209&du {
210 pinctrl-0 = <&du_pins>;
211 pinctrl-names = "default";
212 status = "okay";
213
214 clocks = <&mstp7_clks R8A7793_CLK_DU0>,
215 <&mstp7_clks R8A7793_CLK_DU1>,
216 <&mstp7_clks R8A7793_CLK_LVDS0>,
217 <&x13_clk>, <&x2_clk>;
218 clock-names = "du.0", "du.1", "lvds.0",
219 "dclkin.0", "dclkin.1";
220
221 ports {
222 port@0 {
223 endpoint {
224 remote-endpoint = <&adv7511_in>;
225 };
226 };
227 port@1 {
228 lvds_connector: endpoint {
229 };
230 };
231 };
232};
233
234&extal_clk {
235 clock-frequency = <20000000>;
236};
237
238&pfc {
239 pinctrl-0 = <&scif_clk_pins>;
240 pinctrl-names = "default";
241
242 i2c2_pins: i2c2 {
243 renesas,groups = "i2c2";
244 renesas,function = "i2c2";
245 };
246
247 du_pins: du {
248 renesas,groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
249 renesas,function = "du";
250 };
251
252 scif0_pins: serial0 {
253 renesas,groups = "scif0_data_d";
254 renesas,function = "scif0";
255 };
256
257 scif1_pins: serial1 {
258 renesas,groups = "scif1_data_d";
259 renesas,function = "scif1";
260 };
261
262 scif_clk_pins: scif_clk {
263 renesas,groups = "scif_clk";
264 renesas,function = "scif_clk";
265 };
266
267 ether_pins: ether {
268 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
269 renesas,function = "eth";
270 };
271
272 phy1_pins: phy1 {
273 renesas,groups = "intc_irq0";
274 renesas,function = "intc";
275 };
276
277 qspi_pins: spi0 {
278 renesas,groups = "qspi_ctrl", "qspi_data4";
279 renesas,function = "qspi";
280 };
281
282 sound_pins: sound {
283 renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
284 renesas,function = "ssi";
285 };
286
287 sound_clk_pins: sound_clk {
288 renesas,groups = "audio_clk_a";
289 renesas,function = "audio_clk";
290 };
291};
292
293ðer {
294 pinctrl-0 = <ðer_pins &phy1_pins>;
295 pinctrl-names = "default";
296
297 phy-handle = <&phy1>;
298 renesas,ether-link-active-low;
299 status = "okay";
300
301 phy1: ethernet-phy@1 {
302 reg = <1>;
303 interrupt-parent = <&irqc0>;
304 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
305 micrel,led-mode = <1>;
306 };
307};
308
309&cmt0 {
310 status = "okay";
311};
312
313&scif0 {
314 pinctrl-0 = <&scif0_pins>;
315 pinctrl-names = "default";
316
317 status = "okay";
318};
319
320&scif1 {
321 pinctrl-0 = <&scif1_pins>;
322 pinctrl-names = "default";
323
324 status = "okay";
325};
326
327&scif_clk {
328 clock-frequency = <14745600>;
329 status = "okay";
330};
331
332&qspi {
333 pinctrl-0 = <&qspi_pins>;
334 pinctrl-names = "default";
335
336 status = "okay";
337
338 flash@0 {
339 compatible = "spansion,s25fl512s", "jedec,spi-nor";
340 reg = <0>;
341 spi-max-frequency = <30000000>;
342 spi-tx-bus-width = <4>;
343 spi-rx-bus-width = <4>;
344 spi-cpol;
345 spi-cpha;
346 m25p,fast-read;
347
348 partitions {
349 compatible = "fixed-partitions";
350 #address-cells = <1>;
351 #size-cells = <1>;
352
353 partition@0 {
354 label = "loader";
355 reg = <0x00000000 0x00040000>;
356 read-only;
357 };
358 partition@40000 {
359 label = "user";
360 reg = <0x00040000 0x00400000>;
361 read-only;
362 };
363 partition@440000 {
364 label = "flash";
365 reg = <0x00440000 0x03bc0000>;
366 };
367 };
368 };
369};
370
371&i2c2 {
372 pinctrl-0 = <&i2c2_pins>;
373 pinctrl-names = "default";
374
375 status = "okay";
376 clock-frequency = <100000>;
377
378 ak4643: codec@12 {
379 compatible = "asahi-kasei,ak4643";
380 #sound-dai-cells = <0>;
381 reg = <0x12>;
382 };
383
384 hdmi@39 {
385 compatible = "adi,adv7511w";
386 reg = <0x39>;
387 interrupt-parent = <&gpio3>;
388 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
389
390 adi,input-depth = <8>;
391 adi,input-colorspace = "rgb";
392 adi,input-clock = "1x";
393 adi,input-style = <1>;
394 adi,input-justification = "evenly";
395
396 ports {
397 #address-cells = <1>;
398 #size-cells = <0>;
399
400 port@0 {
401 reg = <0>;
402 adv7511_in: endpoint {
403 remote-endpoint = <&du_out_rgb>;
404 };
405 };
406
407 port@1 {
408 reg = <1>;
409 adv7511_out: endpoint {
410 remote-endpoint = <&hdmi_con>;
411 };
412 };
413 };
414 };
415
416 eeprom@50 {
417 compatible = "renesas,r1ex24002", "atmel,24c02";
418 reg = <0x50>;
419 pagesize = <16>;
420 };
421};
422
423&rcar_sound {
424 pinctrl-0 = <&sound_pins &sound_clk_pins>;
425 pinctrl-names = "default";
426
427 /* Single DAI */
428 #sound-dai-cells = <0>;
429
430 status = "okay";
431
432 rcar_sound,dai {
433 dai0 {
434 playback = <&ssi0 &src2 &dvc0>;
435 capture = <&ssi1 &src3 &dvc1>;
436 };
437 };
438};
439
440&ssi1 {
441 shared-pin;
442};