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=dhcp";
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>;
486 lvds_connector: endpoint {
493 clock-frequency = <20000000>;
497 pinctrl-0 = <&scif_clk_pins>;
498 pinctrl-names = "default";
516 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
521 groups = "scif0_data_d";
526 groups = "scif1_data_d";
530 scif_clk_pins: scif_clk {
532 function = "scif_clk";
536 groups = "eth_link", "eth_mdio", "eth_rmii";
541 groups = "intc_irq0";
546 groups = "sdhi0_data4", "sdhi0_ctrl";
548 power-source = <3300>;
551 sdhi0_pins_uhs: sd0_uhs {
552 groups = "sdhi0_data4", "sdhi0_ctrl";
554 power-source = <1800>;
558 groups = "sdhi1_data4", "sdhi1_ctrl";
560 power-source = <3300>;
563 sdhi1_pins_uhs: sd1_uhs {
564 groups = "sdhi1_data4", "sdhi1_ctrl";
566 power-source = <1800>;
570 groups = "sdhi2_data4", "sdhi2_ctrl";
572 power-source = <3300>;
575 sdhi2_pins_uhs: sd2_uhs {
576 groups = "sdhi2_data4", "sdhi2_ctrl";
578 power-source = <1800>;
582 groups = "qspi_ctrl", "qspi_data4";
586 msiof0_pins: msiof0 {
587 groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
603 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
608 groups = "vin1_data8", "vin1_clk";
613 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
617 sound_clk_pins: sound_clk {
618 groups = "audio_clk_a";
619 function = "audio_clk";
624 pinctrl-0 = <ðer_pins &phy1_pins>;
625 pinctrl-names = "default";
627 phy-handle = <&phy1>;
628 renesas,ether-link-active-low;
631 phy1: ethernet-phy@1 {
633 interrupt-parent = <&irqc0>;
634 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
635 micrel,led-mode = <1>;
653 pinctrl-0 = <&scif0_pins>;
654 pinctrl-names = "default";
660 pinctrl-0 = <&scif1_pins>;
661 pinctrl-names = "default";
667 clock-frequency = <14745600>;
671 pinctrl-0 = <&sdhi0_pins>;
672 pinctrl-1 = <&sdhi0_pins_uhs>;
673 pinctrl-names = "default", "state_uhs";
675 vmmc-supply = <&vcc_sdhi0>;
676 vqmmc-supply = <&vccq_sdhi0>;
677 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
678 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
685 pinctrl-0 = <&sdhi1_pins>;
686 pinctrl-1 = <&sdhi1_pins_uhs>;
687 pinctrl-names = "default", "state_uhs";
689 vmmc-supply = <&vcc_sdhi1>;
690 vqmmc-supply = <&vccq_sdhi1>;
691 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
692 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
698 pinctrl-0 = <&sdhi2_pins>;
699 pinctrl-1 = <&sdhi2_pins_uhs>;
700 pinctrl-names = "default", "state_uhs";
702 vmmc-supply = <&vcc_sdhi2>;
703 vqmmc-supply = <&vccq_sdhi2>;
704 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
710 pinctrl-0 = <&qspi_pins>;
711 pinctrl-names = "default";
716 compatible = "spansion,s25fl512s", "jedec,spi-nor";
718 spi-max-frequency = <30000000>;
719 spi-tx-bus-width = <4>;
720 spi-rx-bus-width = <4>;
726 compatible = "fixed-partitions";
727 #address-cells = <1>;
732 reg = <0x00000000 0x00080000>;
737 reg = <0x00080000 0x00580000>;
742 reg = <0x00600000 0x03a00000>;
749 pinctrl-0 = <&msiof0_pins>;
750 pinctrl-names = "default";
755 compatible = "renesas,r2a11302ft";
757 spi-max-frequency = <6000000>;
764 pinctrl-0 = <&i2c1_pins>;
765 pinctrl-names = "i2c-exio1";
769 pinctrl-0 = <&i2c2_pins>;
770 pinctrl-names = "i2c-hdmi";
772 clock-frequency = <100000>;
776 pinctrl-0 = <&i2c4_pins>;
777 pinctrl-names = "i2c-exio4";
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>;