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
33 #include "r8a7791.dtsi"
34 #include <dt-bindings/gpio/gpio.h>
35 #include <dt-bindings/input/input.h>
39 compatible = "renesas,koelsch", "renesas,r8a7791";
47 bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
52 device_type = "memory";
53 reg = <0 0x40000000 0 0x40000000>;
57 device_type = "memory";
58 reg = <2 0x00000000 0 0x40000000>;
67 compatible = "gpio-keys";
70 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
74 debounce-interval = <20>;
77 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
81 debounce-interval = <20>;
84 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
88 debounce-interval = <20>;
91 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
95 debounce-interval = <20>;
98 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
102 debounce-interval = <20>;
105 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
106 linux,code = <KEY_B>;
109 debounce-interval = <20>;
112 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
113 linux,code = <KEY_C>;
116 debounce-interval = <20>;
119 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
120 linux,code = <KEY_D>;
123 debounce-interval = <20>;
126 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
127 linux,code = <KEY_E>;
130 debounce-interval = <20>;
133 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
134 linux,code = <KEY_F>;
137 debounce-interval = <20>;
140 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
141 linux,code = <KEY_G>;
144 debounce-interval = <20>;
149 compatible = "gpio-leds";
151 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
154 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
157 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
161 vcc_sdhi0: regulator@0 {
162 compatible = "regulator-fixed";
164 regulator-name = "SDHI0 Vcc";
165 regulator-min-microvolt = <3300000>;
166 regulator-max-microvolt = <3300000>;
168 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
172 vccq_sdhi0: regulator@1 {
173 compatible = "regulator-gpio";
175 regulator-name = "SDHI0 VccQ";
176 regulator-min-microvolt = <1800000>;
177 regulator-max-microvolt = <3300000>;
179 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
185 vcc_sdhi1: regulator@2 {
186 compatible = "regulator-fixed";
188 regulator-name = "SDHI1 Vcc";
189 regulator-min-microvolt = <3300000>;
190 regulator-max-microvolt = <3300000>;
192 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
196 vccq_sdhi1: regulator@3 {
197 compatible = "regulator-gpio";
199 regulator-name = "SDHI1 VccQ";
200 regulator-min-microvolt = <1800000>;
201 regulator-max-microvolt = <3300000>;
203 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
209 vcc_sdhi2: regulator@4 {
210 compatible = "regulator-fixed";
212 regulator-name = "SDHI2 Vcc";
213 regulator-min-microvolt = <3300000>;
214 regulator-max-microvolt = <3300000>;
216 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
220 vccq_sdhi2: regulator@5 {
221 compatible = "regulator-gpio";
223 regulator-name = "SDHI2 VccQ";
224 regulator-min-microvolt = <1800000>;
225 regulator-max-microvolt = <3300000>;
227 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
234 compatible = "simple-audio-card";
236 simple-audio-card,format = "left_j";
237 simple-audio-card,bitclock-master = <&sndcodec>;
238 simple-audio-card,frame-master = <&sndcodec>;
240 sndcpu: simple-audio-card,cpu {
241 sound-dai = <&rcar_sound>;
244 sndcodec: simple-audio-card,codec {
245 sound-dai = <&ak4643>;
246 system-clock-frequency = <11289600>;
252 pinctrl-0 = <&du_pins>;
253 pinctrl-names = "default";
258 lvds_connector: endpoint {
265 clock-frequency = <20000000>;
270 renesas,groups = "i2c2";
271 renesas,function = "i2c2";
275 renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0";
276 renesas,function = "du";
279 scif0_pins: serial0 {
280 renesas,groups = "scif0_data_d";
281 renesas,function = "scif0";
284 scif1_pins: serial1 {
285 renesas,groups = "scif1_data_d";
286 renesas,function = "scif1";
290 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
291 renesas,function = "eth";
295 renesas,groups = "intc_irq0";
296 renesas,function = "intc";
300 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
301 renesas,function = "sdhi0";
305 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
306 renesas,function = "sdhi1";
310 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
311 renesas,function = "sdhi2";
315 renesas,groups = "qspi_ctrl", "qspi_data4";
316 renesas,function = "qspi";
320 renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
322 renesas,function = "msiof0";
326 renesas,groups = "usb0";
327 renesas,function = "usb0";
331 renesas,groups = "usb1";
332 renesas,function = "usb1";
336 renesas,groups = "vin1_data8", "vin1_clk";
337 renesas,function = "vin1";
341 renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
342 renesas,function = "ssi";
345 sound_clk_pins: sound_clk {
346 renesas,groups = "audio_clk_a";
347 renesas,function = "audio_clk";
352 pinctrl-0 = <ðer_pins &phy1_pins>;
353 pinctrl-names = "default";
355 phy-handle = <&phy1>;
356 renesas,ether-link-active-low;
359 phy1: ethernet-phy@1 {
361 interrupt-parent = <&irqc0>;
362 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
363 micrel,led-mode = <1>;
376 pinctrl-0 = <&scif0_pins>;
377 pinctrl-names = "default";
383 pinctrl-0 = <&scif1_pins>;
384 pinctrl-names = "default";
390 pinctrl-0 = <&sdhi0_pins>;
391 pinctrl-names = "default";
393 vmmc-supply = <&vcc_sdhi0>;
394 vqmmc-supply = <&vccq_sdhi0>;
395 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
396 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
401 pinctrl-0 = <&sdhi1_pins>;
402 pinctrl-names = "default";
404 vmmc-supply = <&vcc_sdhi1>;
405 vqmmc-supply = <&vccq_sdhi1>;
406 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
407 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
412 pinctrl-0 = <&sdhi2_pins>;
413 pinctrl-names = "default";
415 vmmc-supply = <&vcc_sdhi2>;
416 vqmmc-supply = <&vccq_sdhi2>;
417 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
422 pinctrl-0 = <&qspi_pins>;
423 pinctrl-names = "default";
428 #address-cells = <1>;
430 compatible = "spansion,s25fl512s";
432 spi-max-frequency = <30000000>;
433 spi-tx-bus-width = <4>;
434 spi-rx-bus-width = <4>;
439 reg = <0x00000000 0x00080000>;
444 reg = <0x00080000 0x00080000>;
449 reg = <0x00100000 0x03f00000>;
455 pinctrl-0 = <&msiof0_pins>;
456 pinctrl-names = "default";
461 compatible = "renesas,r2a11302ft";
463 spi-max-frequency = <6000000>;
470 pinctrl-0 = <&i2c2_pins>;
471 pinctrl-names = "default";
474 clock-frequency = <100000>;
476 ak4643: sound-codec@12 {
477 compatible = "asahi-kasei,ak4643";
478 #sound-dai-cells = <0>;
483 compatible = "adi,adv7180";
490 remote-endpoint = <&vin1ep>;
496 compatible = "renesas,24c02";
504 clock-frequency = <100000>;
506 vdd_dvfs: regulator@68 {
507 compatible = "dlg,da9210";
510 regulator-min-microvolt = <1000000>;
511 regulator-max-microvolt = <1000000>;
519 pinctrl-0 = <&usb0_pins>;
520 pinctrl-names = "default";
525 pinctrl-0 = <&usb1_pins>;
526 pinctrl-names = "default";
531 pinctrl-0 = <&usb0_pins>;
532 pinctrl-names = "default";
533 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
549 cpu0-supply = <&vdd_dvfs>;
552 /* composite video input */
555 pinctrl-0 = <&vin1_pins>;
556 pinctrl-names = "default";
559 #address-cells = <1>;
563 remote-endpoint = <&adv7180>;
570 pinctrl-0 = <&sound_pins &sound_clk_pins>;
571 pinctrl-names = "default";
573 #sound-dai-cells = <0>;
579 playback = <&ssi0 &src2 &dvc0>;
580 capture = <&ssi1 &src3 &dvc1>;