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";
56 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
57 stdout-path = "serial0:115200n8";
61 device_type = "memory";
62 reg = <0 0x40000000 0 0x40000000>;
66 device_type = "memory";
67 reg = <2 0x00000000 0 0x40000000>;
76 compatible = "gpio-keys";
79 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
83 debounce-interval = <20>;
86 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
90 debounce-interval = <20>;
93 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
97 debounce-interval = <20>;
100 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_4>;
104 debounce-interval = <20>;
107 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
108 linux,code = <KEY_A>;
111 debounce-interval = <20>;
114 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_B>;
118 debounce-interval = <20>;
121 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
122 linux,code = <KEY_C>;
125 debounce-interval = <20>;
128 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
129 linux,code = <KEY_D>;
132 debounce-interval = <20>;
135 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
136 linux,code = <KEY_E>;
139 debounce-interval = <20>;
142 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
143 linux,code = <KEY_F>;
146 debounce-interval = <20>;
149 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
150 linux,code = <KEY_G>;
153 debounce-interval = <20>;
158 compatible = "gpio-leds";
160 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
164 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
168 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
173 vcc_sdhi0: regulator-vcc-sdhi0 {
174 compatible = "regulator-fixed";
176 regulator-name = "SDHI0 Vcc";
177 regulator-min-microvolt = <3300000>;
178 regulator-max-microvolt = <3300000>;
180 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
184 vccq_sdhi0: regulator-vccq-sdhi0 {
185 compatible = "regulator-gpio";
187 regulator-name = "SDHI0 VccQ";
188 regulator-min-microvolt = <1800000>;
189 regulator-max-microvolt = <3300000>;
191 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
197 vcc_sdhi1: regulator-vcc-sdhi1 {
198 compatible = "regulator-fixed";
200 regulator-name = "SDHI1 Vcc";
201 regulator-min-microvolt = <3300000>;
202 regulator-max-microvolt = <3300000>;
204 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
208 vccq_sdhi1: regulator-vccq-sdhi1 {
209 compatible = "regulator-gpio";
211 regulator-name = "SDHI1 VccQ";
212 regulator-min-microvolt = <1800000>;
213 regulator-max-microvolt = <3300000>;
215 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
221 vcc_sdhi2: regulator-vcc-sdhi2 {
222 compatible = "regulator-fixed";
224 regulator-name = "SDHI2 Vcc";
225 regulator-min-microvolt = <3300000>;
226 regulator-max-microvolt = <3300000>;
228 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
232 vccq_sdhi2: regulator-vccq-sdhi2 {
233 compatible = "regulator-gpio";
235 regulator-name = "SDHI2 VccQ";
236 regulator-min-microvolt = <1800000>;
237 regulator-max-microvolt = <3300000>;
239 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
245 audio_clock: audio_clock {
246 compatible = "fixed-clock";
248 clock-frequency = <11289600>;
252 compatible = "simple-audio-card";
254 simple-audio-card,format = "left_j";
255 simple-audio-card,bitclock-master = <&sndcodec>;
256 simple-audio-card,frame-master = <&sndcodec>;
258 sndcpu: simple-audio-card,cpu {
259 sound-dai = <&rcar_sound>;
262 sndcodec: simple-audio-card,codec {
263 sound-dai = <&ak4643>;
264 clocks = <&audio_clock>;
269 compatible = "hdmi-connector";
274 remote-endpoint = <&adv7511_out>;
280 compatible = "fixed-clock";
282 clock-frequency = <74250000>;
286 compatible = "fixed-clock";
288 clock-frequency = <148500000>;
293 pinctrl-0 = <&du_pins>;
294 pinctrl-names = "default";
297 clocks = <&mstp7_clks R8A7791_CLK_DU0>,
298 <&mstp7_clks R8A7791_CLK_DU1>,
299 <&mstp7_clks R8A7791_CLK_LVDS0>,
300 <&x13_clk>, <&x2_clk>;
301 clock-names = "du.0", "du.1", "lvds.0",
302 "dclkin.0", "dclkin.1";
307 remote-endpoint = <&adv7511_in>;
311 lvds_connector: endpoint {
318 clock-frequency = <20000000>;
322 pinctrl-0 = <&scif_clk_pins>;
323 pinctrl-names = "default";
331 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
336 groups = "scif0_data_d";
341 groups = "scif1_data_d";
345 scif_clk_pins: scif_clk {
347 function = "scif_clk";
351 groups = "eth_link", "eth_mdio", "eth_rmii";
356 groups = "intc_irq0";
361 groups = "sdhi0_data4", "sdhi0_ctrl";
366 groups = "sdhi1_data4", "sdhi1_ctrl";
371 groups = "sdhi2_data4", "sdhi2_ctrl";
376 groups = "qspi_ctrl", "qspi_data4";
380 msiof0_pins: msiof0 {
381 groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
397 groups = "vin1_data8", "vin1_clk";
402 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
406 sound_clk_pins: sound_clk {
407 groups = "audio_clk_a";
408 function = "audio_clk";
413 pinctrl-0 = <ðer_pins &phy1_pins>;
414 pinctrl-names = "default";
416 phy-handle = <&phy1>;
417 renesas,ether-link-active-low;
420 phy1: ethernet-phy@1 {
422 interrupt-parent = <&irqc0>;
423 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
424 micrel,led-mode = <1>;
437 pinctrl-0 = <&scif0_pins>;
438 pinctrl-names = "default";
444 pinctrl-0 = <&scif1_pins>;
445 pinctrl-names = "default";
451 clock-frequency = <14745600>;
456 pinctrl-0 = <&sdhi0_pins>;
457 pinctrl-names = "default";
459 vmmc-supply = <&vcc_sdhi0>;
460 vqmmc-supply = <&vccq_sdhi0>;
461 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
462 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
467 pinctrl-0 = <&sdhi1_pins>;
468 pinctrl-names = "default";
470 vmmc-supply = <&vcc_sdhi1>;
471 vqmmc-supply = <&vccq_sdhi1>;
472 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
473 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
478 pinctrl-0 = <&sdhi2_pins>;
479 pinctrl-names = "default";
481 vmmc-supply = <&vcc_sdhi2>;
482 vqmmc-supply = <&vccq_sdhi2>;
483 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
488 pinctrl-0 = <&qspi_pins>;
489 pinctrl-names = "default";
494 compatible = "spansion,s25fl512s", "jedec,spi-nor";
496 spi-max-frequency = <30000000>;
497 spi-tx-bus-width = <4>;
498 spi-rx-bus-width = <4>;
504 compatible = "fixed-partitions";
505 #address-cells = <1>;
510 reg = <0x00000000 0x00080000>;
515 reg = <0x00080000 0x00580000>;
520 reg = <0x00600000 0x03a00000>;
527 pinctrl-0 = <&msiof0_pins>;
528 pinctrl-names = "default";
533 compatible = "renesas,r2a11302ft";
535 spi-max-frequency = <6000000>;
542 pinctrl-0 = <&i2c2_pins>;
543 pinctrl-names = "default";
546 clock-frequency = <100000>;
549 compatible = "asahi-kasei,ak4643";
550 #sound-dai-cells = <0>;
555 compatible = "adi,adv7180";
562 remote-endpoint = <&vin1ep>;
568 compatible = "adi,adv7511w";
570 interrupt-parent = <&gpio3>;
571 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
573 adi,input-depth = <8>;
574 adi,input-colorspace = "rgb";
575 adi,input-clock = "1x";
576 adi,input-style = <1>;
577 adi,input-justification = "evenly";
580 #address-cells = <1>;
585 adv7511_in: endpoint {
586 remote-endpoint = <&du_out_rgb>;
592 adv7511_out: endpoint {
593 remote-endpoint = <&hdmi_con>;
600 compatible = "renesas,24c02";
608 clock-frequency = <100000>;
611 compatible = "dlg,da9063";
613 interrupt-parent = <&irqc0>;
614 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
615 interrupt-controller;
618 compatible = "dlg,da9063-rtc";
622 compatible = "dlg,da9063-watchdog";
626 vdd_dvfs: regulator@68 {
627 compatible = "dlg,da9210";
629 interrupt-parent = <&irqc0>;
630 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
632 regulator-min-microvolt = <1000000>;
633 regulator-max-microvolt = <1000000>;
641 pinctrl-0 = <&usb0_pins>;
642 pinctrl-names = "default";
647 pinctrl-0 = <&usb1_pins>;
648 pinctrl-names = "default";
653 pinctrl-0 = <&usb0_pins>;
654 pinctrl-names = "default";
655 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
663 clock-frequency = <100000000>;
672 cpu0-supply = <&vdd_dvfs>;
675 /* composite video input */
678 pinctrl-0 = <&vin1_pins>;
679 pinctrl-names = "default";
682 #address-cells = <1>;
686 remote-endpoint = <&adv7180>;
693 pinctrl-0 = <&sound_pins &sound_clk_pins>;
694 pinctrl-names = "default";
697 #sound-dai-cells = <0>;
703 playback = <&ssi0 &src2 &dvc0>;
704 capture = <&ssi1 &src3 &dvc1>;