2 * Device Tree Source for the Koelsch board
4 * Copyright (C) 2013 Renesas Electronics Corporation
5 * Copyright (C) 2013-2014 Renesas Solutions Corp.
6 * Copyright (C) 2014 Cogent Embedded, Inc.
8 * This file is licensed under the terms of the GNU General Public License
9 * version 2. This program is licensed "as is" without any warranty of any
10 * kind, whether express or implied.
20 * This command is required when Playback/Capture
22 * amixer set "LINEOUT Mixer DACL" on
23 * amixer set "DVC Out" 100%
24 * amixer set "DVC In" 100%
28 * amixer set "DVC Out Mute" on
29 * amixer set "DVC In Mute" on
31 * You can use Volume Ramp
33 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
34 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
35 * amixer set "DVC Out Ramp" on
37 * amixer set "DVC Out" 80% // Volume Down
38 * amixer set "DVC Out" 100% // Volume Up
42 #include "r8a7791.dtsi"
43 #include <dt-bindings/gpio/gpio.h>
44 #include <dt-bindings/input/input.h>
48 compatible = "renesas,koelsch", "renesas,r8a7791";
58 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
59 stdout-path = "serial0:115200n8";
63 device_type = "memory";
64 reg = <0 0x40000000 0 0x40000000>;
68 device_type = "memory";
69 reg = <2 0x00000000 0 0x40000000>;
78 compatible = "gpio-keys";
81 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
85 debounce-interval = <20>;
88 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
92 debounce-interval = <20>;
95 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
99 debounce-interval = <20>;
102 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_4>;
106 debounce-interval = <20>;
109 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_A>;
113 debounce-interval = <20>;
116 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_B>;
120 debounce-interval = <20>;
123 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_C>;
127 debounce-interval = <20>;
130 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
131 linux,code = <KEY_D>;
134 debounce-interval = <20>;
137 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
138 linux,code = <KEY_E>;
141 debounce-interval = <20>;
144 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
145 linux,code = <KEY_F>;
148 debounce-interval = <20>;
151 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
152 linux,code = <KEY_G>;
155 debounce-interval = <20>;
160 compatible = "gpio-leds";
162 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
166 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
170 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
175 vcc_sdhi0: regulator-vcc-sdhi0 {
176 compatible = "regulator-fixed";
178 regulator-name = "SDHI0 Vcc";
179 regulator-min-microvolt = <3300000>;
180 regulator-max-microvolt = <3300000>;
182 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
186 vccq_sdhi0: regulator-vccq-sdhi0 {
187 compatible = "regulator-gpio";
189 regulator-name = "SDHI0 VccQ";
190 regulator-min-microvolt = <1800000>;
191 regulator-max-microvolt = <3300000>;
193 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
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>;
223 vcc_sdhi2: regulator-vcc-sdhi2 {
224 compatible = "regulator-fixed";
226 regulator-name = "SDHI2 Vcc";
227 regulator-min-microvolt = <3300000>;
228 regulator-max-microvolt = <3300000>;
230 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
234 vccq_sdhi2: regulator-vccq-sdhi2 {
235 compatible = "regulator-gpio";
237 regulator-name = "SDHI2 VccQ";
238 regulator-min-microvolt = <1800000>;
239 regulator-max-microvolt = <3300000>;
241 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
247 audio_clock: audio_clock {
248 compatible = "fixed-clock";
250 clock-frequency = <11289600>;
254 compatible = "simple-audio-card";
256 simple-audio-card,format = "left_j";
257 simple-audio-card,bitclock-master = <&sndcodec>;
258 simple-audio-card,frame-master = <&sndcodec>;
260 sndcpu: simple-audio-card,cpu {
261 sound-dai = <&rcar_sound>;
264 sndcodec: simple-audio-card,codec {
265 sound-dai = <&ak4643>;
266 clocks = <&audio_clock>;
271 compatible = "hdmi-connector";
275 hdmi_con_in: endpoint {
276 remote-endpoint = <&adv7612_in>;
281 cec_clock: cec-clock {
282 compatible = "fixed-clock";
284 clock-frequency = <12000000>;
288 compatible = "hdmi-connector";
292 hdmi_con_out: endpoint {
293 remote-endpoint = <&adv7511_out>;
299 compatible = "fixed-clock";
301 clock-frequency = <74250000>;
305 compatible = "fixed-clock";
307 clock-frequency = <148500000>;
311 #address-cells = <1>;
313 compatible = "i2c-gpio";
315 sda-gpios = <&gpio7 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
316 scl-gpios = <&gpio7 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
317 i2c-gpio,delay-us = <5>;
321 * I2C1 is routed to EXIO connector B, pins 64 (SCL) + 66 (SDA).
322 * A fallback to GPIO is provided.
325 compatible = "i2c-demux-pinctrl";
326 i2c-parent = <&i2c1>, <&gpioi2c1>;
327 i2c-bus-name = "i2c-exio1";
328 #address-cells = <1>;
334 pinctrl-0 = <&du_pins>;
335 pinctrl-names = "default";
338 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 726>,
339 <&x13_clk>, <&x2_clk>;
340 clock-names = "du.0", "du.1", "lvds.0",
341 "dclkin.0", "dclkin.1";
346 remote-endpoint = <&adv7511_in>;
350 lvds_connector: endpoint {
357 clock-frequency = <20000000>;
361 pinctrl-0 = <&scif_clk_pins>;
362 pinctrl-names = "default";
375 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
380 groups = "scif0_data_d";
385 groups = "scif1_data_d";
389 scif_clk_pins: scif_clk {
391 function = "scif_clk";
395 groups = "eth_link", "eth_mdio", "eth_rmii";
400 groups = "intc_irq0";
405 groups = "sdhi0_data4", "sdhi0_ctrl";
407 power-source = <3300>;
410 sdhi0_pins_uhs: sd0_uhs {
411 groups = "sdhi0_data4", "sdhi0_ctrl";
413 power-source = <1800>;
417 groups = "sdhi1_data4", "sdhi1_ctrl";
419 power-source = <3300>;
422 sdhi1_pins_uhs: sd1_uhs {
423 groups = "sdhi1_data4", "sdhi1_ctrl";
425 power-source = <1800>;
429 groups = "sdhi2_data4", "sdhi2_ctrl";
431 power-source = <3300>;
434 sdhi2_pins_uhs: sd2_uhs {
435 groups = "sdhi2_data4", "sdhi2_ctrl";
437 power-source = <1800>;
441 groups = "qspi_ctrl", "qspi_data4";
445 msiof0_pins: msiof0 {
446 groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
462 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
467 groups = "vin1_data8", "vin1_clk";
472 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
476 sound_clk_pins: sound_clk {
477 groups = "audio_clk_a";
478 function = "audio_clk";
483 pinctrl-0 = <ðer_pins &phy1_pins>;
484 pinctrl-names = "default";
486 phy-handle = <&phy1>;
487 renesas,ether-link-active-low;
490 phy1: ethernet-phy@1 {
492 interrupt-parent = <&irqc0>;
493 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
494 micrel,led-mode = <1>;
507 pinctrl-0 = <&scif0_pins>;
508 pinctrl-names = "default";
514 pinctrl-0 = <&scif1_pins>;
515 pinctrl-names = "default";
521 clock-frequency = <14745600>;
525 pinctrl-0 = <&sdhi0_pins>;
526 pinctrl-1 = <&sdhi0_pins_uhs>;
527 pinctrl-names = "default", "state_uhs";
529 vmmc-supply = <&vcc_sdhi0>;
530 vqmmc-supply = <&vccq_sdhi0>;
531 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
532 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
539 pinctrl-0 = <&sdhi1_pins>;
540 pinctrl-1 = <&sdhi1_pins_uhs>;
541 pinctrl-names = "default", "state_uhs";
543 vmmc-supply = <&vcc_sdhi1>;
544 vqmmc-supply = <&vccq_sdhi1>;
545 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
546 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
552 pinctrl-0 = <&sdhi2_pins>;
553 pinctrl-1 = <&sdhi2_pins_uhs>;
554 pinctrl-names = "default", "state_uhs";
556 vmmc-supply = <&vcc_sdhi2>;
557 vqmmc-supply = <&vccq_sdhi2>;
558 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
564 pinctrl-0 = <&qspi_pins>;
565 pinctrl-names = "default";
570 compatible = "spansion,s25fl512s", "jedec,spi-nor";
572 spi-max-frequency = <30000000>;
573 spi-tx-bus-width = <4>;
574 spi-rx-bus-width = <4>;
580 compatible = "fixed-partitions";
581 #address-cells = <1>;
586 reg = <0x00000000 0x00080000>;
591 reg = <0x00080000 0x00580000>;
596 reg = <0x00600000 0x03a00000>;
603 pinctrl-0 = <&msiof0_pins>;
604 pinctrl-names = "default";
609 compatible = "renesas,r2a11302ft";
611 spi-max-frequency = <6000000>;
618 pinctrl-0 = <&i2c1_pins>;
619 pinctrl-names = "i2c-exio1";
623 pinctrl-0 = <&i2c2_pins>;
624 pinctrl-names = "default";
627 clock-frequency = <100000>;
630 compatible = "asahi-kasei,ak4643";
631 #sound-dai-cells = <0>;
636 compatible = "adi,adv7180";
643 remote-endpoint = <&vin1ep>;
649 compatible = "adi,adv7511w";
651 interrupt-parent = <&gpio3>;
652 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
653 clocks = <&cec_clock>;
656 adi,input-depth = <8>;
657 adi,input-colorspace = "rgb";
658 adi,input-clock = "1x";
659 adi,input-style = <1>;
660 adi,input-justification = "evenly";
663 #address-cells = <1>;
668 adv7511_in: endpoint {
669 remote-endpoint = <&du_out_rgb>;
675 adv7511_out: endpoint {
676 remote-endpoint = <&hdmi_con_out>;
683 compatible = "adi,adv7612";
685 interrupt-parent = <&gpio4>;
686 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
690 #address-cells = <1>;
695 adv7612_in: endpoint {
696 remote-endpoint = <&hdmi_con_in>;
702 adv7612_out: endpoint {
703 remote-endpoint = <&vin0ep2>;
710 compatible = "renesas,r1ex24002", "atmel,24c02";
718 clock-frequency = <100000>;
721 compatible = "dlg,da9063";
723 interrupt-parent = <&irqc0>;
724 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
725 interrupt-controller;
728 compatible = "dlg,da9063-rtc";
732 compatible = "dlg,da9063-watchdog";
736 vdd_dvfs: regulator@68 {
737 compatible = "dlg,da9210";
739 interrupt-parent = <&irqc0>;
740 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
742 regulator-min-microvolt = <1000000>;
743 regulator-max-microvolt = <1000000>;
751 pinctrl-0 = <&usb0_pins>;
752 pinctrl-names = "default";
757 pinctrl-0 = <&usb1_pins>;
758 pinctrl-names = "default";
763 pinctrl-0 = <&usb0_pins>;
764 pinctrl-names = "default";
765 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
773 clock-frequency = <100000000>;
781 cpu0-supply = <&vdd_dvfs>;
784 /* HDMI video input */
787 pinctrl-0 = <&vin0_pins>;
788 pinctrl-names = "default";
791 #address-cells = <1>;
795 remote-endpoint = <&adv7612_out>;
805 /* composite video input */
808 pinctrl-0 = <&vin1_pins>;
809 pinctrl-names = "default";
812 #address-cells = <1>;
816 remote-endpoint = <&adv7180>;
823 pinctrl-0 = <&sound_pins &sound_clk_pins>;
824 pinctrl-names = "default";
827 #sound-dai-cells = <0>;
833 playback = <&ssi0 &src2 &dvc0>;
834 capture = <&ssi1 &src3 &dvc1>;