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";
62 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
63 stdout-path = "serial0:115200n8";
67 device_type = "memory";
68 reg = <0 0x40000000 0 0x40000000>;
72 device_type = "memory";
73 reg = <2 0x00000000 0 0x40000000>;
77 compatible = "gpio-keys";
79 pinctrl-0 = <&keyboard_pins>;
80 pinctrl-names = "default";
83 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
87 debounce-interval = <20>;
90 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
94 debounce-interval = <20>;
97 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
101 debounce-interval = <20>;
104 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
105 linux,code = <KEY_4>;
108 debounce-interval = <20>;
111 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
112 linux,code = <KEY_A>;
115 debounce-interval = <20>;
118 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
119 linux,code = <KEY_B>;
122 debounce-interval = <20>;
125 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
126 linux,code = <KEY_C>;
129 debounce-interval = <20>;
132 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
133 linux,code = <KEY_D>;
136 debounce-interval = <20>;
139 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
140 linux,code = <KEY_E>;
143 debounce-interval = <20>;
146 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
147 linux,code = <KEY_F>;
150 debounce-interval = <20>;
153 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
154 linux,code = <KEY_G>;
157 debounce-interval = <20>;
162 compatible = "gpio-leds";
164 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
168 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
172 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
177 reg_1p8v: regulator-1v8 {
178 compatible = "regulator-fixed";
179 regulator-name = "fixed-1.8V";
180 regulator-min-microvolt = <1800000>;
181 regulator-max-microvolt = <1800000>;
186 reg_3p3v: regulator-3v3 {
187 compatible = "regulator-fixed";
188 regulator-name = "fixed-3.3V";
189 regulator-min-microvolt = <3300000>;
190 regulator-max-microvolt = <3300000>;
195 vcc_sdhi0: regulator-vcc-sdhi0 {
196 compatible = "regulator-fixed";
198 regulator-name = "SDHI0 Vcc";
199 regulator-min-microvolt = <3300000>;
200 regulator-max-microvolt = <3300000>;
202 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
206 vccq_sdhi0: regulator-vccq-sdhi0 {
207 compatible = "regulator-gpio";
209 regulator-name = "SDHI0 VccQ";
210 regulator-min-microvolt = <1800000>;
211 regulator-max-microvolt = <3300000>;
213 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
215 states = <3300000 1>, <1800000 0>;
218 vcc_sdhi1: regulator-vcc-sdhi1 {
219 compatible = "regulator-fixed";
221 regulator-name = "SDHI1 Vcc";
222 regulator-min-microvolt = <3300000>;
223 regulator-max-microvolt = <3300000>;
225 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
229 vccq_sdhi1: regulator-vccq-sdhi1 {
230 compatible = "regulator-gpio";
232 regulator-name = "SDHI1 VccQ";
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <3300000>;
236 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
238 states = <3300000 1>, <1800000 0>;
241 vcc_sdhi2: regulator-vcc-sdhi2 {
242 compatible = "regulator-fixed";
244 regulator-name = "SDHI2 Vcc";
245 regulator-min-microvolt = <3300000>;
246 regulator-max-microvolt = <3300000>;
248 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
252 vccq_sdhi2: regulator-vccq-sdhi2 {
253 compatible = "regulator-gpio";
255 regulator-name = "SDHI2 VccQ";
256 regulator-min-microvolt = <1800000>;
257 regulator-max-microvolt = <3300000>;
259 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
261 states = <3300000 1>, <1800000 0>;
264 audio_clock: audio_clock {
265 compatible = "fixed-clock";
267 clock-frequency = <11289600>;
271 compatible = "simple-audio-card";
273 simple-audio-card,format = "left_j";
274 simple-audio-card,bitclock-master = <&sndcodec>;
275 simple-audio-card,frame-master = <&sndcodec>;
277 sndcpu: simple-audio-card,cpu {
278 sound-dai = <&rcar_sound>;
281 sndcodec: simple-audio-card,codec {
282 sound-dai = <&ak4643>;
283 clocks = <&audio_clock>;
288 compatible = "hdmi-connector";
292 hdmi_con_in: endpoint {
293 remote-endpoint = <&adv7612_in>;
298 cec_clock: cec-clock {
299 compatible = "fixed-clock";
301 clock-frequency = <12000000>;
305 compatible = "hdmi-connector";
309 hdmi_con_out: endpoint {
310 remote-endpoint = <&adv7511_out>;
316 compatible = "fixed-clock";
318 clock-frequency = <74250000>;
322 compatible = "fixed-clock";
324 clock-frequency = <148500000>;
328 #address-cells = <1>;
330 compatible = "i2c-gpio";
332 scl-gpios = <&gpio7 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
333 sda-gpios = <&gpio7 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
334 i2c-gpio,delay-us = <5>;
338 #address-cells = <1>;
340 compatible = "i2c-gpio";
342 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
343 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
344 i2c-gpio,delay-us = <5>;
348 #address-cells = <1>;
350 compatible = "i2c-gpio";
352 scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
353 sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
354 i2c-gpio,delay-us = <5>;
358 * I2C1 is routed to EXIO connector B, pins 64 (SCL) + 66 (SDA).
359 * A fallback to GPIO is provided.
362 compatible = "i2c-demux-pinctrl";
363 i2c-parent = <&i2c1>, <&gpioi2c1>;
364 i2c-bus-name = "i2c-exio1";
365 #address-cells = <1>;
370 * A fallback to GPIO is provided for I2C2.
373 compatible = "i2c-demux-pinctrl";
374 i2c-parent = <&i2c2>, <&gpioi2c2>;
375 i2c-bus-name = "i2c-hdmi";
376 #address-cells = <1>;
380 compatible = "asahi-kasei,ak4643";
381 #sound-dai-cells = <0>;
386 compatible = "adi,adv7180";
392 remote-endpoint = <&vin1ep>;
398 compatible = "adi,adv7511w";
400 interrupt-parent = <&gpio3>;
401 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
402 clocks = <&cec_clock>;
405 avdd-supply = <®_1p8v>;
406 dvdd-supply = <®_1p8v>;
407 pvdd-supply = <®_1p8v>;
408 dvdd-3v-supply = <®_3p3v>;
409 bgvdd-supply = <®_1p8v>;
411 adi,input-depth = <8>;
412 adi,input-colorspace = "rgb";
413 adi,input-clock = "1x";
416 #address-cells = <1>;
421 adv7511_in: endpoint {
422 remote-endpoint = <&du_out_rgb>;
428 adv7511_out: endpoint {
429 remote-endpoint = <&hdmi_con_out>;
436 compatible = "adi,adv7612";
438 interrupt-parent = <&gpio4>;
439 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
443 #address-cells = <1>;
448 adv7612_in: endpoint {
449 remote-endpoint = <&hdmi_con_in>;
455 adv7612_out: endpoint {
456 remote-endpoint = <&vin0ep2>;
463 compatible = "renesas,r1ex24002", "atmel,24c02";
470 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
471 * A fallback to GPIO is provided.
474 compatible = "i2c-demux-pinctrl";
475 i2c-parent = <&i2c4>, <&gpioi2c4>;
476 i2c-bus-name = "i2c-exio4";
477 #address-cells = <1>;
483 pinctrl-0 = <&du_pins>;
484 pinctrl-names = "default";
487 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
488 <&x13_clk>, <&x2_clk>;
489 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
494 remote-endpoint = <&adv7511_in>;
503 lvds_connector: endpoint {
510 clock-frequency = <20000000>;
514 pinctrl-0 = <&scif_clk_pins>;
515 pinctrl-names = "default";
533 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
538 groups = "scif0_data_d";
543 groups = "scif1_data_d";
547 scif_clk_pins: scif_clk {
549 function = "scif_clk";
553 groups = "eth_link", "eth_mdio", "eth_rmii";
558 groups = "intc_irq0";
562 pmic_irq_pins: pmicirq {
563 groups = "intc_irq2";
568 groups = "sdhi0_data4", "sdhi0_ctrl";
570 power-source = <3300>;
573 sdhi0_pins_uhs: sd0_uhs {
574 groups = "sdhi0_data4", "sdhi0_ctrl";
576 power-source = <1800>;
580 groups = "sdhi1_data4", "sdhi1_ctrl";
582 power-source = <3300>;
585 sdhi1_pins_uhs: sd1_uhs {
586 groups = "sdhi1_data4", "sdhi1_ctrl";
588 power-source = <1800>;
592 groups = "sdhi2_data4", "sdhi2_ctrl";
594 power-source = <3300>;
597 sdhi2_pins_uhs: sd2_uhs {
598 groups = "sdhi2_data4", "sdhi2_ctrl";
600 power-source = <1800>;
604 groups = "qspi_ctrl", "qspi_data4";
608 msiof0_pins: msiof0 {
609 groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
625 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
630 groups = "vin1_data8", "vin1_clk";
635 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
639 sound_clk_pins: sound_clk {
640 groups = "audio_clk_a";
641 function = "audio_clk";
644 keyboard_pins: keyboard {
645 pins = "GP_5_0", "GP_5_1", "GP_5_2", "GP_5_3";
651 pinctrl-0 = <ðer_pins>, <&phy1_pins>;
652 pinctrl-names = "default";
654 phy-handle = <&phy1>;
655 renesas,ether-link-active-low;
658 phy1: ethernet-phy@1 {
659 compatible = "ethernet-phy-id0022.1537",
660 "ethernet-phy-ieee802.3-c22";
662 interrupt-parent = <&irqc0>;
663 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
664 micrel,led-mode = <1>;
665 reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
683 pinctrl-0 = <&scif0_pins>;
684 pinctrl-names = "default";
690 pinctrl-0 = <&scif1_pins>;
691 pinctrl-names = "default";
697 clock-frequency = <14745600>;
701 pinctrl-0 = <&sdhi0_pins>;
702 pinctrl-1 = <&sdhi0_pins_uhs>;
703 pinctrl-names = "default", "state_uhs";
705 vmmc-supply = <&vcc_sdhi0>;
706 vqmmc-supply = <&vccq_sdhi0>;
707 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
708 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
715 pinctrl-0 = <&sdhi1_pins>;
716 pinctrl-1 = <&sdhi1_pins_uhs>;
717 pinctrl-names = "default", "state_uhs";
719 vmmc-supply = <&vcc_sdhi1>;
720 vqmmc-supply = <&vccq_sdhi1>;
721 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
722 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
728 pinctrl-0 = <&sdhi2_pins>;
729 pinctrl-1 = <&sdhi2_pins_uhs>;
730 pinctrl-names = "default", "state_uhs";
732 vmmc-supply = <&vcc_sdhi2>;
733 vqmmc-supply = <&vccq_sdhi2>;
734 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
740 pinctrl-0 = <&qspi_pins>;
741 pinctrl-names = "default";
746 compatible = "spansion,s25fl512s", "jedec,spi-nor";
748 spi-max-frequency = <30000000>;
749 spi-tx-bus-width = <4>;
750 spi-rx-bus-width = <4>;
756 compatible = "fixed-partitions";
757 #address-cells = <1>;
762 reg = <0x00000000 0x00080000>;
767 reg = <0x00080000 0x00580000>;
772 reg = <0x00600000 0x03a00000>;
779 pinctrl-0 = <&msiof0_pins>;
780 pinctrl-names = "default";
785 compatible = "renesas,r2a11302ft";
787 spi-max-frequency = <6000000>;
794 pinctrl-0 = <&i2c1_pins>;
795 pinctrl-names = "i2c-exio1";
799 pinctrl-0 = <&i2c2_pins>;
800 pinctrl-names = "i2c-hdmi";
802 clock-frequency = <100000>;
806 pinctrl-0 = <&i2c4_pins>;
807 pinctrl-names = "i2c-exio4";
811 pinctrl-names = "default";
812 pinctrl-0 = <&pmic_irq_pins>;
814 clock-frequency = <100000>;
817 compatible = "dlg,da9063";
819 interrupt-parent = <&irqc0>;
820 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
821 interrupt-controller;
822 #interrupt-cells = <2>;
825 compatible = "dlg,da9063-rtc";
829 compatible = "dlg,da9063-watchdog";
833 vdd_dvfs: regulator@68 {
834 compatible = "dlg,da9210";
836 interrupt-parent = <&irqc0>;
837 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
839 regulator-min-microvolt = <1000000>;
840 regulator-max-microvolt = <1000000>;
848 pinctrl-0 = <&usb0_pins>;
849 pinctrl-names = "default";
854 pinctrl-0 = <&usb1_pins>;
855 pinctrl-names = "default";
860 pinctrl-0 = <&usb0_pins>;
861 pinctrl-names = "default";
862 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
870 clock-frequency = <100000000>;
878 cpu0-supply = <&vdd_dvfs>;
881 /* HDMI video input */
884 pinctrl-0 = <&vin0_pins>;
885 pinctrl-names = "default";
889 remote-endpoint = <&adv7612_out>;
899 /* composite video input */
902 pinctrl-0 = <&vin1_pins>;
903 pinctrl-names = "default";
907 remote-endpoint = <&adv7180>;
914 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
915 pinctrl-names = "default";
918 #sound-dai-cells = <0>;
924 playback = <&ssi0>, <&src2>, <&dvc0>;
925 capture = <&ssi1>, <&src3>, <&dvc1>;