1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the Koelsch board
5 * Copyright (C) 2013 Renesas Electronics Corporation
6 * Copyright (C) 2013-2014 Renesas Solutions Corp.
7 * Copyright (C) 2014 Cogent Embedded, Inc.
17 * This command is required when Playback/Capture
19 * amixer set "LINEOUT Mixer DACL" on
20 * amixer set "DVC Out" 100%
21 * amixer set "DVC In" 100%
25 * amixer set "DVC Out Mute" on
26 * amixer set "DVC In Mute" on
28 * You can use Volume Ramp
30 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
31 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
32 * amixer set "DVC Out Ramp" on
34 * amixer set "DVC Out" 80% // Volume Down
35 * amixer set "DVC Out" 100% // Volume Up
39 #include "r8a7791.dtsi"
40 #include <dt-bindings/gpio/gpio.h>
41 #include <dt-bindings/input/input.h>
45 compatible = "renesas,koelsch", "renesas,r8a7791";
59 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
60 stdout-path = "serial0:115200n8";
64 device_type = "memory";
65 reg = <0 0x40000000 0 0x40000000>;
69 device_type = "memory";
70 reg = <2 0x00000000 0 0x40000000>;
79 compatible = "gpio-keys";
82 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
86 debounce-interval = <20>;
89 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
93 debounce-interval = <20>;
96 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
100 debounce-interval = <20>;
103 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_4>;
107 debounce-interval = <20>;
110 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
111 linux,code = <KEY_A>;
114 debounce-interval = <20>;
117 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
118 linux,code = <KEY_B>;
121 debounce-interval = <20>;
124 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
125 linux,code = <KEY_C>;
128 debounce-interval = <20>;
131 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
132 linux,code = <KEY_D>;
135 debounce-interval = <20>;
138 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
139 linux,code = <KEY_E>;
142 debounce-interval = <20>;
145 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
146 linux,code = <KEY_F>;
149 debounce-interval = <20>;
152 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
153 linux,code = <KEY_G>;
156 debounce-interval = <20>;
161 compatible = "gpio-leds";
163 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
167 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
171 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
176 vcc_sdhi0: regulator-vcc-sdhi0 {
177 compatible = "regulator-fixed";
179 regulator-name = "SDHI0 Vcc";
180 regulator-min-microvolt = <3300000>;
181 regulator-max-microvolt = <3300000>;
183 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
187 vccq_sdhi0: regulator-vccq-sdhi0 {
188 compatible = "regulator-gpio";
190 regulator-name = "SDHI0 VccQ";
191 regulator-min-microvolt = <1800000>;
192 regulator-max-microvolt = <3300000>;
194 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
200 vcc_sdhi1: regulator-vcc-sdhi1 {
201 compatible = "regulator-fixed";
203 regulator-name = "SDHI1 Vcc";
204 regulator-min-microvolt = <3300000>;
205 regulator-max-microvolt = <3300000>;
207 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
211 vccq_sdhi1: regulator-vccq-sdhi1 {
212 compatible = "regulator-gpio";
214 regulator-name = "SDHI1 VccQ";
215 regulator-min-microvolt = <1800000>;
216 regulator-max-microvolt = <3300000>;
218 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
224 vcc_sdhi2: regulator-vcc-sdhi2 {
225 compatible = "regulator-fixed";
227 regulator-name = "SDHI2 Vcc";
228 regulator-min-microvolt = <3300000>;
229 regulator-max-microvolt = <3300000>;
231 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
235 vccq_sdhi2: regulator-vccq-sdhi2 {
236 compatible = "regulator-gpio";
238 regulator-name = "SDHI2 VccQ";
239 regulator-min-microvolt = <1800000>;
240 regulator-max-microvolt = <3300000>;
242 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
248 audio_clock: audio_clock {
249 compatible = "fixed-clock";
251 clock-frequency = <11289600>;
255 compatible = "simple-audio-card";
257 simple-audio-card,format = "left_j";
258 simple-audio-card,bitclock-master = <&sndcodec>;
259 simple-audio-card,frame-master = <&sndcodec>;
261 sndcpu: simple-audio-card,cpu {
262 sound-dai = <&rcar_sound>;
265 sndcodec: simple-audio-card,codec {
266 sound-dai = <&ak4643>;
267 clocks = <&audio_clock>;
272 compatible = "hdmi-connector";
276 hdmi_con_in: endpoint {
277 remote-endpoint = <&adv7612_in>;
282 cec_clock: cec-clock {
283 compatible = "fixed-clock";
285 clock-frequency = <12000000>;
289 compatible = "hdmi-connector";
293 hdmi_con_out: endpoint {
294 remote-endpoint = <&adv7511_out>;
300 compatible = "fixed-clock";
302 clock-frequency = <74250000>;
306 compatible = "fixed-clock";
308 clock-frequency = <148500000>;
312 #address-cells = <1>;
314 compatible = "i2c-gpio";
316 scl-gpios = <&gpio7 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
317 sda-gpios = <&gpio7 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
318 i2c-gpio,delay-us = <5>;
322 #address-cells = <1>;
324 compatible = "i2c-gpio";
326 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
327 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
328 i2c-gpio,delay-us = <5>;
332 #address-cells = <1>;
334 compatible = "i2c-gpio";
336 scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
337 sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
338 i2c-gpio,delay-us = <5>;
342 * I2C1 is routed to EXIO connector B, pins 64 (SCL) + 66 (SDA).
343 * A fallback to GPIO is provided.
346 compatible = "i2c-demux-pinctrl";
347 i2c-parent = <&i2c1>, <&gpioi2c1>;
348 i2c-bus-name = "i2c-exio1";
349 #address-cells = <1>;
354 * A fallback to GPIO is provided for I2C2.
357 compatible = "i2c-demux-pinctrl";
358 i2c-parent = <&i2c2>, <&gpioi2c2>;
359 i2c-bus-name = "i2c-hdmi";
360 #address-cells = <1>;
364 compatible = "asahi-kasei,ak4643";
365 #sound-dai-cells = <0>;
370 compatible = "adi,adv7180";
377 remote-endpoint = <&vin1ep>;
383 compatible = "adi,adv7511w";
385 interrupt-parent = <&gpio3>;
386 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
387 clocks = <&cec_clock>;
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";
397 #address-cells = <1>;
402 adv7511_in: endpoint {
403 remote-endpoint = <&du_out_rgb>;
409 adv7511_out: endpoint {
410 remote-endpoint = <&hdmi_con_out>;
417 compatible = "adi,adv7612";
419 interrupt-parent = <&gpio4>;
420 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
424 #address-cells = <1>;
429 adv7612_in: endpoint {
430 remote-endpoint = <&hdmi_con_in>;
436 adv7612_out: endpoint {
437 remote-endpoint = <&vin0ep2>;
444 compatible = "renesas,r1ex24002", "atmel,24c02";
451 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
452 * A fallback to GPIO is provided.
455 compatible = "i2c-demux-pinctrl";
456 i2c-parent = <&i2c4>, <&gpioi2c4>;
457 i2c-bus-name = "i2c-exio4";
458 #address-cells = <1>;
464 pinctrl-0 = <&du_pins>;
465 pinctrl-names = "default";
468 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
469 <&x13_clk>, <&x2_clk>;
470 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
475 remote-endpoint = <&adv7511_in>;
484 lvds_connector: endpoint {
491 clock-frequency = <20000000>;
495 pinctrl-0 = <&scif_clk_pins>;
496 pinctrl-names = "default";
514 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
519 groups = "scif0_data_d";
524 groups = "scif1_data_d";
528 scif_clk_pins: scif_clk {
530 function = "scif_clk";
534 groups = "eth_link", "eth_mdio", "eth_rmii";
539 groups = "intc_irq0";
543 pmic_irq_pins: pmicirq {
544 groups = "intc_irq2";
549 groups = "sdhi0_data4", "sdhi0_ctrl";
551 power-source = <3300>;
554 sdhi0_pins_uhs: sd0_uhs {
555 groups = "sdhi0_data4", "sdhi0_ctrl";
557 power-source = <1800>;
561 groups = "sdhi1_data4", "sdhi1_ctrl";
563 power-source = <3300>;
566 sdhi1_pins_uhs: sd1_uhs {
567 groups = "sdhi1_data4", "sdhi1_ctrl";
569 power-source = <1800>;
573 groups = "sdhi2_data4", "sdhi2_ctrl";
575 power-source = <3300>;
578 sdhi2_pins_uhs: sd2_uhs {
579 groups = "sdhi2_data4", "sdhi2_ctrl";
581 power-source = <1800>;
585 groups = "qspi_ctrl", "qspi_data4";
589 msiof0_pins: msiof0 {
590 groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
606 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
611 groups = "vin1_data8", "vin1_clk";
616 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
620 sound_clk_pins: sound_clk {
621 groups = "audio_clk_a";
622 function = "audio_clk";
627 pinctrl-0 = <ðer_pins &phy1_pins>;
628 pinctrl-names = "default";
630 phy-handle = <&phy1>;
631 renesas,ether-link-active-low;
634 phy1: ethernet-phy@1 {
636 interrupt-parent = <&irqc0>;
637 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
638 micrel,led-mode = <1>;
656 pinctrl-0 = <&scif0_pins>;
657 pinctrl-names = "default";
663 pinctrl-0 = <&scif1_pins>;
664 pinctrl-names = "default";
670 clock-frequency = <14745600>;
674 pinctrl-0 = <&sdhi0_pins>;
675 pinctrl-1 = <&sdhi0_pins_uhs>;
676 pinctrl-names = "default", "state_uhs";
678 vmmc-supply = <&vcc_sdhi0>;
679 vqmmc-supply = <&vccq_sdhi0>;
680 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
681 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
688 pinctrl-0 = <&sdhi1_pins>;
689 pinctrl-1 = <&sdhi1_pins_uhs>;
690 pinctrl-names = "default", "state_uhs";
692 vmmc-supply = <&vcc_sdhi1>;
693 vqmmc-supply = <&vccq_sdhi1>;
694 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
695 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
701 pinctrl-0 = <&sdhi2_pins>;
702 pinctrl-1 = <&sdhi2_pins_uhs>;
703 pinctrl-names = "default", "state_uhs";
705 vmmc-supply = <&vcc_sdhi2>;
706 vqmmc-supply = <&vccq_sdhi2>;
707 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
713 pinctrl-0 = <&qspi_pins>;
714 pinctrl-names = "default";
719 compatible = "spansion,s25fl512s", "jedec,spi-nor";
721 spi-max-frequency = <30000000>;
722 spi-tx-bus-width = <4>;
723 spi-rx-bus-width = <4>;
729 compatible = "fixed-partitions";
730 #address-cells = <1>;
735 reg = <0x00000000 0x00080000>;
740 reg = <0x00080000 0x00580000>;
745 reg = <0x00600000 0x03a00000>;
752 pinctrl-0 = <&msiof0_pins>;
753 pinctrl-names = "default";
758 compatible = "renesas,r2a11302ft";
760 spi-max-frequency = <6000000>;
767 pinctrl-0 = <&i2c1_pins>;
768 pinctrl-names = "i2c-exio1";
772 pinctrl-0 = <&i2c2_pins>;
773 pinctrl-names = "i2c-hdmi";
775 clock-frequency = <100000>;
779 pinctrl-0 = <&i2c4_pins>;
780 pinctrl-names = "i2c-exio4";
784 pinctrl-names = "default";
785 pinctrl-0 = <&pmic_irq_pins>;
787 clock-frequency = <100000>;
790 compatible = "dlg,da9063";
792 interrupt-parent = <&irqc0>;
793 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
794 interrupt-controller;
797 compatible = "dlg,da9063-rtc";
801 compatible = "dlg,da9063-watchdog";
805 vdd_dvfs: regulator@68 {
806 compatible = "dlg,da9210";
808 interrupt-parent = <&irqc0>;
809 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
811 regulator-min-microvolt = <1000000>;
812 regulator-max-microvolt = <1000000>;
820 pinctrl-0 = <&usb0_pins>;
821 pinctrl-names = "default";
826 pinctrl-0 = <&usb1_pins>;
827 pinctrl-names = "default";
832 pinctrl-0 = <&usb0_pins>;
833 pinctrl-names = "default";
834 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
842 clock-frequency = <100000000>;
850 cpu0-supply = <&vdd_dvfs>;
853 /* HDMI video input */
856 pinctrl-0 = <&vin0_pins>;
857 pinctrl-names = "default";
861 remote-endpoint = <&adv7612_out>;
871 /* composite video input */
874 pinctrl-0 = <&vin1_pins>;
875 pinctrl-names = "default";
879 remote-endpoint = <&adv7180>;
886 pinctrl-0 = <&sound_pins &sound_clk_pins>;
887 pinctrl-names = "default";
890 #sound-dai-cells = <0>;
896 playback = <&ssi0 &src2 &dvc0>;
897 capture = <&ssi1 &src3 &dvc1>;