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>;
282 compatible = "hdmi-connector";
286 hdmi_con_out: endpoint {
287 remote-endpoint = <&adv7511_out>;
293 compatible = "fixed-clock";
295 clock-frequency = <74250000>;
299 compatible = "fixed-clock";
301 clock-frequency = <148500000>;
305 #address-cells = <1>;
307 compatible = "i2c-gpio";
309 gpios = <&gpio7 16 GPIO_ACTIVE_HIGH /* sda */
310 &gpio7 15 GPIO_ACTIVE_HIGH /* scl */
312 i2c-gpio,delay-us = <5>;
316 * I2C1 is routed to EXIO connector B, pins 64 (SCL) + 66 (SDA).
317 * A fallback to GPIO is provided.
320 compatible = "i2c-demux-pinctrl";
321 i2c-parent = <&i2c1>, <&gpioi2c1>;
322 i2c-bus-name = "i2c-exio1";
323 #address-cells = <1>;
329 pinctrl-0 = <&du_pins>;
330 pinctrl-names = "default";
333 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 726>,
334 <&x13_clk>, <&x2_clk>;
335 clock-names = "du.0", "du.1", "lvds.0",
336 "dclkin.0", "dclkin.1";
341 remote-endpoint = <&adv7511_in>;
345 lvds_connector: endpoint {
352 clock-frequency = <20000000>;
356 pinctrl-0 = <&scif_clk_pins>;
357 pinctrl-names = "default";
370 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
375 groups = "scif0_data_d";
380 groups = "scif1_data_d";
384 scif_clk_pins: scif_clk {
386 function = "scif_clk";
390 groups = "eth_link", "eth_mdio", "eth_rmii";
395 groups = "intc_irq0";
400 groups = "sdhi0_data4", "sdhi0_ctrl";
402 power-source = <3300>;
405 sdhi0_pins_uhs: sd0_uhs {
406 groups = "sdhi0_data4", "sdhi0_ctrl";
408 power-source = <1800>;
412 groups = "sdhi1_data4", "sdhi1_ctrl";
414 power-source = <3300>;
417 sdhi1_pins_uhs: sd1_uhs {
418 groups = "sdhi1_data4", "sdhi1_ctrl";
420 power-source = <1800>;
424 groups = "sdhi2_data4", "sdhi2_ctrl";
426 power-source = <3300>;
429 sdhi2_pins_uhs: sd2_uhs {
430 groups = "sdhi2_data4", "sdhi2_ctrl";
432 power-source = <1800>;
436 groups = "qspi_ctrl", "qspi_data4";
440 msiof0_pins: msiof0 {
441 groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
457 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
462 groups = "vin1_data8", "vin1_clk";
467 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
471 sound_clk_pins: sound_clk {
472 groups = "audio_clk_a";
473 function = "audio_clk";
478 pinctrl-0 = <ðer_pins &phy1_pins>;
479 pinctrl-names = "default";
481 phy-handle = <&phy1>;
482 renesas,ether-link-active-low;
485 phy1: ethernet-phy@1 {
487 interrupt-parent = <&irqc0>;
488 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
489 micrel,led-mode = <1>;
502 pinctrl-0 = <&scif0_pins>;
503 pinctrl-names = "default";
509 pinctrl-0 = <&scif1_pins>;
510 pinctrl-names = "default";
516 clock-frequency = <14745600>;
520 pinctrl-0 = <&sdhi0_pins>;
521 pinctrl-1 = <&sdhi0_pins_uhs>;
522 pinctrl-names = "default", "state_uhs";
524 vmmc-supply = <&vcc_sdhi0>;
525 vqmmc-supply = <&vccq_sdhi0>;
526 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
527 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
534 pinctrl-0 = <&sdhi1_pins>;
535 pinctrl-1 = <&sdhi1_pins_uhs>;
536 pinctrl-names = "default", "state_uhs";
538 vmmc-supply = <&vcc_sdhi1>;
539 vqmmc-supply = <&vccq_sdhi1>;
540 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
541 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
547 pinctrl-0 = <&sdhi2_pins>;
548 pinctrl-1 = <&sdhi2_pins_uhs>;
549 pinctrl-names = "default", "state_uhs";
551 vmmc-supply = <&vcc_sdhi2>;
552 vqmmc-supply = <&vccq_sdhi2>;
553 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
559 pinctrl-0 = <&qspi_pins>;
560 pinctrl-names = "default";
565 compatible = "spansion,s25fl512s", "jedec,spi-nor";
567 spi-max-frequency = <30000000>;
568 spi-tx-bus-width = <4>;
569 spi-rx-bus-width = <4>;
575 compatible = "fixed-partitions";
576 #address-cells = <1>;
581 reg = <0x00000000 0x00080000>;
586 reg = <0x00080000 0x00580000>;
591 reg = <0x00600000 0x03a00000>;
598 pinctrl-0 = <&msiof0_pins>;
599 pinctrl-names = "default";
604 compatible = "renesas,r2a11302ft";
606 spi-max-frequency = <6000000>;
613 pinctrl-0 = <&i2c1_pins>;
614 pinctrl-names = "i2c-exio1";
618 pinctrl-0 = <&i2c2_pins>;
619 pinctrl-names = "default";
622 clock-frequency = <100000>;
625 compatible = "asahi-kasei,ak4643";
626 #sound-dai-cells = <0>;
631 compatible = "adi,adv7180";
638 remote-endpoint = <&vin1ep>;
643 cec_clock: cec-clock {
644 compatible = "fixed-clock";
646 clock-frequency = <12000000>;
650 compatible = "adi,adv7511w";
652 interrupt-parent = <&gpio3>;
653 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
654 clocks = <&cec_clock>;
657 adi,input-depth = <8>;
658 adi,input-colorspace = "rgb";
659 adi,input-clock = "1x";
660 adi,input-style = <1>;
661 adi,input-justification = "evenly";
664 #address-cells = <1>;
669 adv7511_in: endpoint {
670 remote-endpoint = <&du_out_rgb>;
676 adv7511_out: endpoint {
677 remote-endpoint = <&hdmi_con_out>;
684 compatible = "adi,adv7612";
686 interrupt-parent = <&gpio4>;
687 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
691 #address-cells = <1>;
696 adv7612_in: endpoint {
697 remote-endpoint = <&hdmi_con_in>;
703 adv7612_out: endpoint {
704 remote-endpoint = <&vin0ep2>;
711 compatible = "renesas,24c02", "atmel,24c02";
719 clock-frequency = <100000>;
722 compatible = "dlg,da9063";
724 interrupt-parent = <&irqc0>;
725 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
726 interrupt-controller;
729 compatible = "dlg,da9063-rtc";
733 compatible = "dlg,da9063-watchdog";
737 vdd_dvfs: regulator@68 {
738 compatible = "dlg,da9210";
740 interrupt-parent = <&irqc0>;
741 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
743 regulator-min-microvolt = <1000000>;
744 regulator-max-microvolt = <1000000>;
752 pinctrl-0 = <&usb0_pins>;
753 pinctrl-names = "default";
758 pinctrl-0 = <&usb1_pins>;
759 pinctrl-names = "default";
764 pinctrl-0 = <&usb0_pins>;
765 pinctrl-names = "default";
766 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
774 clock-frequency = <100000000>;
782 cpu0-supply = <&vdd_dvfs>;
785 /* HDMI video input */
788 pinctrl-0 = <&vin0_pins>;
789 pinctrl-names = "default";
792 #address-cells = <1>;
796 remote-endpoint = <&adv7612_out>;
806 /* composite video input */
809 pinctrl-0 = <&vin1_pins>;
810 pinctrl-names = "default";
813 #address-cells = <1>;
817 remote-endpoint = <&adv7180>;
824 pinctrl-0 = <&sound_pins &sound_clk_pins>;
825 pinctrl-names = "default";
828 #sound-dai-cells = <0>;
834 playback = <&ssi0 &src2 &dvc0>;
835 capture = <&ssi1 &src3 &dvc1>;