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>;
196 states = <3300000 1>, <1800000 0>;
199 vcc_sdhi1: regulator-vcc-sdhi1 {
200 compatible = "regulator-fixed";
202 regulator-name = "SDHI1 Vcc";
203 regulator-min-microvolt = <3300000>;
204 regulator-max-microvolt = <3300000>;
206 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
210 vccq_sdhi1: regulator-vccq-sdhi1 {
211 compatible = "regulator-gpio";
213 regulator-name = "SDHI1 VccQ";
214 regulator-min-microvolt = <1800000>;
215 regulator-max-microvolt = <3300000>;
217 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
219 states = <3300000 1>, <1800000 0>;
222 vcc_sdhi2: regulator-vcc-sdhi2 {
223 compatible = "regulator-fixed";
225 regulator-name = "SDHI2 Vcc";
226 regulator-min-microvolt = <3300000>;
227 regulator-max-microvolt = <3300000>;
229 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
233 vccq_sdhi2: regulator-vccq-sdhi2 {
234 compatible = "regulator-gpio";
236 regulator-name = "SDHI2 VccQ";
237 regulator-min-microvolt = <1800000>;
238 regulator-max-microvolt = <3300000>;
240 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
242 states = <3300000 1>, <1800000 0>;
245 audio_clock: audio_clock {
246 compatible = "fixed-clock";
248 clock-frequency = <11289600>;
252 compatible = "simple-audio-card";
254 simple-audio-card,format = "left_j";
255 simple-audio-card,bitclock-master = <&sndcodec>;
256 simple-audio-card,frame-master = <&sndcodec>;
258 sndcpu: simple-audio-card,cpu {
259 sound-dai = <&rcar_sound>;
262 sndcodec: simple-audio-card,codec {
263 sound-dai = <&ak4643>;
264 clocks = <&audio_clock>;
269 compatible = "hdmi-connector";
273 hdmi_con_in: endpoint {
274 remote-endpoint = <&adv7612_in>;
279 cec_clock: cec-clock {
280 compatible = "fixed-clock";
282 clock-frequency = <12000000>;
286 compatible = "hdmi-connector";
290 hdmi_con_out: endpoint {
291 remote-endpoint = <&adv7511_out>;
297 compatible = "fixed-clock";
299 clock-frequency = <74250000>;
303 compatible = "fixed-clock";
305 clock-frequency = <148500000>;
309 #address-cells = <1>;
311 compatible = "i2c-gpio";
313 scl-gpios = <&gpio7 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
314 sda-gpios = <&gpio7 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
315 i2c-gpio,delay-us = <5>;
319 #address-cells = <1>;
321 compatible = "i2c-gpio";
323 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
324 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
325 i2c-gpio,delay-us = <5>;
329 #address-cells = <1>;
331 compatible = "i2c-gpio";
333 scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
334 sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
335 i2c-gpio,delay-us = <5>;
339 * I2C1 is routed to EXIO connector B, pins 64 (SCL) + 66 (SDA).
340 * A fallback to GPIO is provided.
343 compatible = "i2c-demux-pinctrl";
344 i2c-parent = <&i2c1>, <&gpioi2c1>;
345 i2c-bus-name = "i2c-exio1";
346 #address-cells = <1>;
351 * A fallback to GPIO is provided for I2C2.
354 compatible = "i2c-demux-pinctrl";
355 i2c-parent = <&i2c2>, <&gpioi2c2>;
356 i2c-bus-name = "i2c-hdmi";
357 #address-cells = <1>;
361 compatible = "asahi-kasei,ak4643";
362 #sound-dai-cells = <0>;
367 compatible = "adi,adv7180";
373 remote-endpoint = <&vin1ep>;
379 compatible = "adi,adv7511w";
381 interrupt-parent = <&gpio3>;
382 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
383 clocks = <&cec_clock>;
386 adi,input-depth = <8>;
387 adi,input-colorspace = "rgb";
388 adi,input-clock = "1x";
391 #address-cells = <1>;
396 adv7511_in: endpoint {
397 remote-endpoint = <&du_out_rgb>;
403 adv7511_out: endpoint {
404 remote-endpoint = <&hdmi_con_out>;
411 compatible = "adi,adv7612";
413 interrupt-parent = <&gpio4>;
414 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
418 #address-cells = <1>;
423 adv7612_in: endpoint {
424 remote-endpoint = <&hdmi_con_in>;
430 adv7612_out: endpoint {
431 remote-endpoint = <&vin0ep2>;
438 compatible = "renesas,r1ex24002", "atmel,24c02";
445 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
446 * A fallback to GPIO is provided.
449 compatible = "i2c-demux-pinctrl";
450 i2c-parent = <&i2c4>, <&gpioi2c4>;
451 i2c-bus-name = "i2c-exio4";
452 #address-cells = <1>;
458 pinctrl-0 = <&du_pins>;
459 pinctrl-names = "default";
462 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
463 <&x13_clk>, <&x2_clk>;
464 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
469 remote-endpoint = <&adv7511_in>;
478 lvds_connector: endpoint {
485 clock-frequency = <20000000>;
489 pinctrl-0 = <&scif_clk_pins>;
490 pinctrl-names = "default";
508 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
513 groups = "scif0_data_d";
518 groups = "scif1_data_d";
522 scif_clk_pins: scif_clk {
524 function = "scif_clk";
528 groups = "eth_link", "eth_mdio", "eth_rmii";
533 groups = "intc_irq0";
537 pmic_irq_pins: pmicirq {
538 groups = "intc_irq2";
543 groups = "sdhi0_data4", "sdhi0_ctrl";
545 power-source = <3300>;
548 sdhi0_pins_uhs: sd0_uhs {
549 groups = "sdhi0_data4", "sdhi0_ctrl";
551 power-source = <1800>;
555 groups = "sdhi1_data4", "sdhi1_ctrl";
557 power-source = <3300>;
560 sdhi1_pins_uhs: sd1_uhs {
561 groups = "sdhi1_data4", "sdhi1_ctrl";
563 power-source = <1800>;
567 groups = "sdhi2_data4", "sdhi2_ctrl";
569 power-source = <3300>;
572 sdhi2_pins_uhs: sd2_uhs {
573 groups = "sdhi2_data4", "sdhi2_ctrl";
575 power-source = <1800>;
579 groups = "qspi_ctrl", "qspi_data4";
583 msiof0_pins: msiof0 {
584 groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
600 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
605 groups = "vin1_data8", "vin1_clk";
610 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
614 sound_clk_pins: sound_clk {
615 groups = "audio_clk_a";
616 function = "audio_clk";
621 pinctrl-0 = <ðer_pins &phy1_pins>;
622 pinctrl-names = "default";
624 phy-handle = <&phy1>;
625 renesas,ether-link-active-low;
628 phy1: ethernet-phy@1 {
630 interrupt-parent = <&irqc0>;
631 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
632 micrel,led-mode = <1>;
633 reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
651 pinctrl-0 = <&scif0_pins>;
652 pinctrl-names = "default";
658 pinctrl-0 = <&scif1_pins>;
659 pinctrl-names = "default";
665 clock-frequency = <14745600>;
669 pinctrl-0 = <&sdhi0_pins>;
670 pinctrl-1 = <&sdhi0_pins_uhs>;
671 pinctrl-names = "default", "state_uhs";
673 vmmc-supply = <&vcc_sdhi0>;
674 vqmmc-supply = <&vccq_sdhi0>;
675 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
676 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
683 pinctrl-0 = <&sdhi1_pins>;
684 pinctrl-1 = <&sdhi1_pins_uhs>;
685 pinctrl-names = "default", "state_uhs";
687 vmmc-supply = <&vcc_sdhi1>;
688 vqmmc-supply = <&vccq_sdhi1>;
689 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
690 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
696 pinctrl-0 = <&sdhi2_pins>;
697 pinctrl-1 = <&sdhi2_pins_uhs>;
698 pinctrl-names = "default", "state_uhs";
700 vmmc-supply = <&vcc_sdhi2>;
701 vqmmc-supply = <&vccq_sdhi2>;
702 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
708 pinctrl-0 = <&qspi_pins>;
709 pinctrl-names = "default";
714 compatible = "spansion,s25fl512s", "jedec,spi-nor";
716 spi-max-frequency = <30000000>;
717 spi-tx-bus-width = <4>;
718 spi-rx-bus-width = <4>;
724 compatible = "fixed-partitions";
725 #address-cells = <1>;
730 reg = <0x00000000 0x00080000>;
735 reg = <0x00080000 0x00580000>;
740 reg = <0x00600000 0x03a00000>;
747 pinctrl-0 = <&msiof0_pins>;
748 pinctrl-names = "default";
753 compatible = "renesas,r2a11302ft";
755 spi-max-frequency = <6000000>;
762 pinctrl-0 = <&i2c1_pins>;
763 pinctrl-names = "i2c-exio1";
767 pinctrl-0 = <&i2c2_pins>;
768 pinctrl-names = "i2c-hdmi";
770 clock-frequency = <100000>;
774 pinctrl-0 = <&i2c4_pins>;
775 pinctrl-names = "i2c-exio4";
779 pinctrl-names = "default";
780 pinctrl-0 = <&pmic_irq_pins>;
782 clock-frequency = <100000>;
785 compatible = "dlg,da9063";
787 interrupt-parent = <&irqc0>;
788 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
789 interrupt-controller;
792 compatible = "dlg,da9063-rtc";
796 compatible = "dlg,da9063-watchdog";
800 vdd_dvfs: regulator@68 {
801 compatible = "dlg,da9210";
803 interrupt-parent = <&irqc0>;
804 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
806 regulator-min-microvolt = <1000000>;
807 regulator-max-microvolt = <1000000>;
815 pinctrl-0 = <&usb0_pins>;
816 pinctrl-names = "default";
821 pinctrl-0 = <&usb1_pins>;
822 pinctrl-names = "default";
827 pinctrl-0 = <&usb0_pins>;
828 pinctrl-names = "default";
829 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
837 clock-frequency = <100000000>;
845 cpu0-supply = <&vdd_dvfs>;
848 /* HDMI video input */
851 pinctrl-0 = <&vin0_pins>;
852 pinctrl-names = "default";
856 remote-endpoint = <&adv7612_out>;
866 /* composite video input */
869 pinctrl-0 = <&vin1_pins>;
870 pinctrl-names = "default";
874 remote-endpoint = <&adv7180>;
881 pinctrl-0 = <&sound_pins &sound_clk_pins>;
882 pinctrl-names = "default";
885 #sound-dai-cells = <0>;
891 playback = <&ssi0 &src2 &dvc0>;
892 capture = <&ssi1 &src3 &dvc1>;