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";
374 remote-endpoint = <&vin1ep>;
380 compatible = "adi,adv7511w";
382 interrupt-parent = <&gpio3>;
383 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
384 clocks = <&cec_clock>;
387 adi,input-depth = <8>;
388 adi,input-colorspace = "rgb";
389 adi,input-clock = "1x";
392 #address-cells = <1>;
397 adv7511_in: endpoint {
398 remote-endpoint = <&du_out_rgb>;
404 adv7511_out: endpoint {
405 remote-endpoint = <&hdmi_con_out>;
412 compatible = "adi,adv7612";
414 interrupt-parent = <&gpio4>;
415 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
419 #address-cells = <1>;
424 adv7612_in: endpoint {
425 remote-endpoint = <&hdmi_con_in>;
431 adv7612_out: endpoint {
432 remote-endpoint = <&vin0ep2>;
439 compatible = "renesas,r1ex24002", "atmel,24c02";
446 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
447 * A fallback to GPIO is provided.
450 compatible = "i2c-demux-pinctrl";
451 i2c-parent = <&i2c4>, <&gpioi2c4>;
452 i2c-bus-name = "i2c-exio4";
453 #address-cells = <1>;
459 pinctrl-0 = <&du_pins>;
460 pinctrl-names = "default";
463 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
464 <&x13_clk>, <&x2_clk>;
465 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
470 remote-endpoint = <&adv7511_in>;
479 lvds_connector: endpoint {
486 clock-frequency = <20000000>;
490 pinctrl-0 = <&scif_clk_pins>;
491 pinctrl-names = "default";
509 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
514 groups = "scif0_data_d";
519 groups = "scif1_data_d";
523 scif_clk_pins: scif_clk {
525 function = "scif_clk";
529 groups = "eth_link", "eth_mdio", "eth_rmii";
534 groups = "intc_irq0";
538 pmic_irq_pins: pmicirq {
539 groups = "intc_irq2";
544 groups = "sdhi0_data4", "sdhi0_ctrl";
546 power-source = <3300>;
549 sdhi0_pins_uhs: sd0_uhs {
550 groups = "sdhi0_data4", "sdhi0_ctrl";
552 power-source = <1800>;
556 groups = "sdhi1_data4", "sdhi1_ctrl";
558 power-source = <3300>;
561 sdhi1_pins_uhs: sd1_uhs {
562 groups = "sdhi1_data4", "sdhi1_ctrl";
564 power-source = <1800>;
568 groups = "sdhi2_data4", "sdhi2_ctrl";
570 power-source = <3300>;
573 sdhi2_pins_uhs: sd2_uhs {
574 groups = "sdhi2_data4", "sdhi2_ctrl";
576 power-source = <1800>;
580 groups = "qspi_ctrl", "qspi_data4";
584 msiof0_pins: msiof0 {
585 groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
601 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
606 groups = "vin1_data8", "vin1_clk";
611 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
615 sound_clk_pins: sound_clk {
616 groups = "audio_clk_a";
617 function = "audio_clk";
622 pinctrl-0 = <ðer_pins &phy1_pins>;
623 pinctrl-names = "default";
625 phy-handle = <&phy1>;
626 renesas,ether-link-active-low;
629 phy1: ethernet-phy@1 {
631 interrupt-parent = <&irqc0>;
632 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
633 micrel,led-mode = <1>;
634 reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
652 pinctrl-0 = <&scif0_pins>;
653 pinctrl-names = "default";
659 pinctrl-0 = <&scif1_pins>;
660 pinctrl-names = "default";
666 clock-frequency = <14745600>;
670 pinctrl-0 = <&sdhi0_pins>;
671 pinctrl-1 = <&sdhi0_pins_uhs>;
672 pinctrl-names = "default", "state_uhs";
674 vmmc-supply = <&vcc_sdhi0>;
675 vqmmc-supply = <&vccq_sdhi0>;
676 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
677 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
684 pinctrl-0 = <&sdhi1_pins>;
685 pinctrl-1 = <&sdhi1_pins_uhs>;
686 pinctrl-names = "default", "state_uhs";
688 vmmc-supply = <&vcc_sdhi1>;
689 vqmmc-supply = <&vccq_sdhi1>;
690 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
691 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
697 pinctrl-0 = <&sdhi2_pins>;
698 pinctrl-1 = <&sdhi2_pins_uhs>;
699 pinctrl-names = "default", "state_uhs";
701 vmmc-supply = <&vcc_sdhi2>;
702 vqmmc-supply = <&vccq_sdhi2>;
703 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
709 pinctrl-0 = <&qspi_pins>;
710 pinctrl-names = "default";
715 compatible = "spansion,s25fl512s", "jedec,spi-nor";
717 spi-max-frequency = <30000000>;
718 spi-tx-bus-width = <4>;
719 spi-rx-bus-width = <4>;
725 compatible = "fixed-partitions";
726 #address-cells = <1>;
731 reg = <0x00000000 0x00080000>;
736 reg = <0x00080000 0x00580000>;
741 reg = <0x00600000 0x03a00000>;
748 pinctrl-0 = <&msiof0_pins>;
749 pinctrl-names = "default";
754 compatible = "renesas,r2a11302ft";
756 spi-max-frequency = <6000000>;
763 pinctrl-0 = <&i2c1_pins>;
764 pinctrl-names = "i2c-exio1";
768 pinctrl-0 = <&i2c2_pins>;
769 pinctrl-names = "i2c-hdmi";
771 clock-frequency = <100000>;
775 pinctrl-0 = <&i2c4_pins>;
776 pinctrl-names = "i2c-exio4";
780 pinctrl-names = "default";
781 pinctrl-0 = <&pmic_irq_pins>;
783 clock-frequency = <100000>;
786 compatible = "dlg,da9063";
788 interrupt-parent = <&irqc0>;
789 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
790 interrupt-controller;
793 compatible = "dlg,da9063-rtc";
797 compatible = "dlg,da9063-watchdog";
801 vdd_dvfs: regulator@68 {
802 compatible = "dlg,da9210";
804 interrupt-parent = <&irqc0>;
805 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
807 regulator-min-microvolt = <1000000>;
808 regulator-max-microvolt = <1000000>;
816 pinctrl-0 = <&usb0_pins>;
817 pinctrl-names = "default";
822 pinctrl-0 = <&usb1_pins>;
823 pinctrl-names = "default";
828 pinctrl-0 = <&usb0_pins>;
829 pinctrl-names = "default";
830 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
838 clock-frequency = <100000000>;
846 cpu0-supply = <&vdd_dvfs>;
849 /* HDMI video input */
852 pinctrl-0 = <&vin0_pins>;
853 pinctrl-names = "default";
857 remote-endpoint = <&adv7612_out>;
867 /* composite video input */
870 pinctrl-0 = <&vin1_pins>;
871 pinctrl-names = "default";
875 remote-endpoint = <&adv7180>;
882 pinctrl-0 = <&sound_pins &sound_clk_pins>;
883 pinctrl-names = "default";
886 #sound-dai-cells = <0>;
892 playback = <&ssi0 &src2 &dvc0>;
893 capture = <&ssi1 &src3 &dvc1>;