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 = <148500000>;
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 = <&mstp7_clks R8A7791_CLK_DU0>,
334 <&mstp7_clks R8A7791_CLK_DU1>,
335 <&mstp7_clks R8A7791_CLK_LVDS0>,
336 <&x13_clk>, <&x2_clk>;
337 clock-names = "du.0", "du.1", "lvds.0",
338 "dclkin.0", "dclkin.1";
343 remote-endpoint = <&adv7511_in>;
347 lvds_connector: endpoint {
354 clock-frequency = <20000000>;
358 pinctrl-0 = <&scif_clk_pins>;
359 pinctrl-names = "default";
372 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
377 groups = "scif0_data_d";
382 groups = "scif1_data_d";
386 scif_clk_pins: scif_clk {
388 function = "scif_clk";
392 groups = "eth_link", "eth_mdio", "eth_rmii";
397 groups = "intc_irq0";
402 groups = "sdhi0_data4", "sdhi0_ctrl";
404 power-source = <3300>;
407 sdhi0_pins_uhs: sd0_uhs {
408 groups = "sdhi0_data4", "sdhi0_ctrl";
410 power-source = <1800>;
414 groups = "sdhi1_data4", "sdhi1_ctrl";
416 power-source = <3300>;
419 sdhi1_pins_uhs: sd1_uhs {
420 groups = "sdhi1_data4", "sdhi1_ctrl";
422 power-source = <1800>;
426 groups = "sdhi2_data4", "sdhi2_ctrl";
428 power-source = <3300>;
431 sdhi2_pins_uhs: sd2_uhs {
432 groups = "sdhi2_data4", "sdhi2_ctrl";
434 power-source = <1800>;
438 groups = "qspi_ctrl", "qspi_data4";
442 msiof0_pins: msiof0 {
443 groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
459 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
464 groups = "vin1_data8", "vin1_clk";
469 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
473 sound_clk_pins: sound_clk {
474 groups = "audio_clk_a";
475 function = "audio_clk";
480 pinctrl-0 = <ðer_pins &phy1_pins>;
481 pinctrl-names = "default";
483 phy-handle = <&phy1>;
484 renesas,ether-link-active-low;
487 phy1: ethernet-phy@1 {
489 interrupt-parent = <&irqc0>;
490 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
491 micrel,led-mode = <1>;
504 pinctrl-0 = <&scif0_pins>;
505 pinctrl-names = "default";
511 pinctrl-0 = <&scif1_pins>;
512 pinctrl-names = "default";
518 clock-frequency = <14745600>;
523 pinctrl-0 = <&sdhi0_pins>;
524 pinctrl-1 = <&sdhi0_pins_uhs>;
525 pinctrl-names = "default", "state_uhs";
527 vmmc-supply = <&vcc_sdhi0>;
528 vqmmc-supply = <&vccq_sdhi0>;
529 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
530 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
537 pinctrl-0 = <&sdhi1_pins>;
538 pinctrl-1 = <&sdhi1_pins_uhs>;
539 pinctrl-names = "default", "state_uhs";
541 vmmc-supply = <&vcc_sdhi1>;
542 vqmmc-supply = <&vccq_sdhi1>;
543 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
544 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
550 pinctrl-0 = <&sdhi2_pins>;
551 pinctrl-1 = <&sdhi2_pins_uhs>;
552 pinctrl-names = "default", "state_uhs";
554 vmmc-supply = <&vcc_sdhi2>;
555 vqmmc-supply = <&vccq_sdhi2>;
556 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
562 pinctrl-0 = <&qspi_pins>;
563 pinctrl-names = "default";
568 compatible = "spansion,s25fl512s", "jedec,spi-nor";
570 spi-max-frequency = <30000000>;
571 spi-tx-bus-width = <4>;
572 spi-rx-bus-width = <4>;
578 compatible = "fixed-partitions";
579 #address-cells = <1>;
584 reg = <0x00000000 0x00080000>;
589 reg = <0x00080000 0x00580000>;
594 reg = <0x00600000 0x03a00000>;
601 pinctrl-0 = <&msiof0_pins>;
602 pinctrl-names = "default";
607 compatible = "renesas,r2a11302ft";
609 spi-max-frequency = <6000000>;
616 pinctrl-0 = <&i2c1_pins>;
617 pinctrl-names = "i2c-exio1";
621 pinctrl-0 = <&i2c2_pins>;
622 pinctrl-names = "default";
625 clock-frequency = <100000>;
628 compatible = "asahi-kasei,ak4643";
629 #sound-dai-cells = <0>;
634 compatible = "adi,adv7180";
641 remote-endpoint = <&vin1ep>;
647 compatible = "adi,adv7511w";
649 interrupt-parent = <&gpio3>;
650 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
652 adi,input-depth = <8>;
653 adi,input-colorspace = "rgb";
654 adi,input-clock = "1x";
655 adi,input-style = <1>;
656 adi,input-justification = "evenly";
659 #address-cells = <1>;
664 adv7511_in: endpoint {
665 remote-endpoint = <&du_out_rgb>;
671 adv7511_out: endpoint {
672 remote-endpoint = <&hdmi_con_out>;
679 compatible = "adi,adv7612";
681 interrupt-parent = <&gpio4>;
682 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
686 #address-cells = <1>;
691 adv7612_in: endpoint {
692 remote-endpoint = <&hdmi_con_in>;
698 adv7612_out: endpoint {
699 remote-endpoint = <&vin0ep2>;
706 compatible = "renesas,24c02";
714 clock-frequency = <100000>;
717 compatible = "dlg,da9063";
719 interrupt-parent = <&irqc0>;
720 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
721 interrupt-controller;
724 compatible = "dlg,da9063-rtc";
728 compatible = "dlg,da9063-watchdog";
732 vdd_dvfs: regulator@68 {
733 compatible = "dlg,da9210";
735 interrupt-parent = <&irqc0>;
736 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
738 regulator-min-microvolt = <1000000>;
739 regulator-max-microvolt = <1000000>;
747 pinctrl-0 = <&usb0_pins>;
748 pinctrl-names = "default";
753 pinctrl-0 = <&usb1_pins>;
754 pinctrl-names = "default";
759 pinctrl-0 = <&usb0_pins>;
760 pinctrl-names = "default";
761 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
769 clock-frequency = <100000000>;
778 cpu0-supply = <&vdd_dvfs>;
781 /* HDMI video input */
784 pinctrl-0 = <&vin0_pins>;
785 pinctrl-names = "default";
788 #address-cells = <1>;
792 remote-endpoint = <&adv7612_out>;
802 /* composite video input */
805 pinctrl-0 = <&vin1_pins>;
806 pinctrl-names = "default";
809 #address-cells = <1>;
813 remote-endpoint = <&adv7180>;
820 pinctrl-0 = <&sound_pins &sound_clk_pins>;
821 pinctrl-names = "default";
824 #sound-dai-cells = <0>;
830 playback = <&ssi0 &src2 &dvc0>;
831 capture = <&ssi1 &src3 &dvc1>;