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>;
155 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
159 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
164 vcc_sdhi0: regulator@0 {
165 compatible = "regulator-fixed";
167 regulator-name = "SDHI0 Vcc";
168 regulator-min-microvolt = <3300000>;
169 regulator-max-microvolt = <3300000>;
171 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
175 vccq_sdhi0: regulator@1 {
176 compatible = "regulator-gpio";
178 regulator-name = "SDHI0 VccQ";
179 regulator-min-microvolt = <1800000>;
180 regulator-max-microvolt = <3300000>;
182 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
188 vcc_sdhi1: regulator@2 {
189 compatible = "regulator-fixed";
191 regulator-name = "SDHI1 Vcc";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
195 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
199 vccq_sdhi1: regulator@3 {
200 compatible = "regulator-gpio";
202 regulator-name = "SDHI1 VccQ";
203 regulator-min-microvolt = <1800000>;
204 regulator-max-microvolt = <3300000>;
206 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
212 vcc_sdhi2: regulator@4 {
213 compatible = "regulator-fixed";
215 regulator-name = "SDHI2 Vcc";
216 regulator-min-microvolt = <3300000>;
217 regulator-max-microvolt = <3300000>;
219 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
223 vccq_sdhi2: regulator@5 {
224 compatible = "regulator-gpio";
226 regulator-name = "SDHI2 VccQ";
227 regulator-min-microvolt = <1800000>;
228 regulator-max-microvolt = <3300000>;
230 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
237 compatible = "simple-audio-card";
239 simple-audio-card,format = "left_j";
240 simple-audio-card,bitclock-master = <&sndcodec>;
241 simple-audio-card,frame-master = <&sndcodec>;
243 sndcpu: simple-audio-card,cpu {
244 sound-dai = <&rcar_sound>;
247 sndcodec: simple-audio-card,codec {
248 sound-dai = <&ak4643>;
249 system-clock-frequency = <11289600>;
255 pinctrl-0 = <&du_pins>;
256 pinctrl-names = "default";
261 lvds_connector: endpoint {
268 clock-frequency = <20000000>;
273 renesas,groups = "i2c2";
274 renesas,function = "i2c2";
278 renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0";
279 renesas,function = "du";
282 scif0_pins: serial0 {
283 renesas,groups = "scif0_data_d";
284 renesas,function = "scif0";
287 scif1_pins: serial1 {
288 renesas,groups = "scif1_data_d";
289 renesas,function = "scif1";
293 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
294 renesas,function = "eth";
298 renesas,groups = "intc_irq0";
299 renesas,function = "intc";
303 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
304 renesas,function = "sdhi0";
308 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
309 renesas,function = "sdhi1";
313 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
314 renesas,function = "sdhi2";
318 renesas,groups = "qspi_ctrl", "qspi_data4";
319 renesas,function = "qspi";
323 renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
325 renesas,function = "msiof0";
329 renesas,groups = "usb0";
330 renesas,function = "usb0";
334 renesas,groups = "usb1";
335 renesas,function = "usb1";
339 renesas,groups = "vin1_data8", "vin1_clk";
340 renesas,function = "vin1";
344 renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
345 renesas,function = "ssi";
348 sound_clk_pins: sound_clk {
349 renesas,groups = "audio_clk_a";
350 renesas,function = "audio_clk";
355 pinctrl-0 = <ðer_pins &phy1_pins>;
356 pinctrl-names = "default";
358 phy-handle = <&phy1>;
359 renesas,ether-link-active-low;
362 phy1: ethernet-phy@1 {
364 interrupt-parent = <&irqc0>;
365 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
366 micrel,led-mode = <1>;
379 pinctrl-0 = <&scif0_pins>;
380 pinctrl-names = "default";
386 pinctrl-0 = <&scif1_pins>;
387 pinctrl-names = "default";
393 pinctrl-0 = <&sdhi0_pins>;
394 pinctrl-names = "default";
396 vmmc-supply = <&vcc_sdhi0>;
397 vqmmc-supply = <&vccq_sdhi0>;
398 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
399 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
404 pinctrl-0 = <&sdhi1_pins>;
405 pinctrl-names = "default";
407 vmmc-supply = <&vcc_sdhi1>;
408 vqmmc-supply = <&vccq_sdhi1>;
409 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
410 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
415 pinctrl-0 = <&sdhi2_pins>;
416 pinctrl-names = "default";
418 vmmc-supply = <&vcc_sdhi2>;
419 vqmmc-supply = <&vccq_sdhi2>;
420 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
425 pinctrl-0 = <&qspi_pins>;
426 pinctrl-names = "default";
431 #address-cells = <1>;
433 compatible = "spansion,s25fl512s";
435 spi-max-frequency = <30000000>;
436 spi-tx-bus-width = <4>;
437 spi-rx-bus-width = <4>;
442 reg = <0x00000000 0x00080000>;
447 reg = <0x00080000 0x00080000>;
452 reg = <0x00100000 0x03f00000>;
458 pinctrl-0 = <&msiof0_pins>;
459 pinctrl-names = "default";
464 compatible = "renesas,r2a11302ft";
466 spi-max-frequency = <6000000>;
473 pinctrl-0 = <&i2c2_pins>;
474 pinctrl-names = "default";
477 clock-frequency = <100000>;
479 ak4643: sound-codec@12 {
480 compatible = "asahi-kasei,ak4643";
481 #sound-dai-cells = <0>;
486 compatible = "adi,adv7180";
493 remote-endpoint = <&vin1ep>;
499 compatible = "renesas,24c02";
507 clock-frequency = <100000>;
509 vdd_dvfs: regulator@68 {
510 compatible = "dlg,da9210";
513 regulator-min-microvolt = <1000000>;
514 regulator-max-microvolt = <1000000>;
522 pinctrl-0 = <&usb0_pins>;
523 pinctrl-names = "default";
528 pinctrl-0 = <&usb1_pins>;
529 pinctrl-names = "default";
534 pinctrl-0 = <&usb0_pins>;
535 pinctrl-names = "default";
536 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
552 cpu0-supply = <&vdd_dvfs>;
555 /* composite video input */
558 pinctrl-0 = <&vin1_pins>;
559 pinctrl-names = "default";
562 #address-cells = <1>;
566 remote-endpoint = <&adv7180>;
573 pinctrl-0 = <&sound_pins &sound_clk_pins>;
574 pinctrl-names = "default";
576 #sound-dai-cells = <0>;
582 playback = <&ssi0 &src2 &dvc0>;
583 capture = <&ssi1 &src3 &dvc1>;