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
26 #include "r8a7791.dtsi"
27 #include <dt-bindings/gpio/gpio.h>
28 #include <dt-bindings/input/input.h>
32 compatible = "renesas,koelsch", "renesas,r8a7791";
40 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
45 device_type = "memory";
46 reg = <0 0x40000000 0 0x40000000>;
50 device_type = "memory";
51 reg = <2 0x00000000 0 0x40000000>;
60 compatible = "gpio-keys";
63 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
67 debounce-interval = <20>;
70 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
74 debounce-interval = <20>;
77 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
81 debounce-interval = <20>;
84 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
88 debounce-interval = <20>;
91 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
95 debounce-interval = <20>;
98 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
102 debounce-interval = <20>;
105 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
106 linux,code = <KEY_C>;
109 debounce-interval = <20>;
112 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
113 linux,code = <KEY_D>;
116 debounce-interval = <20>;
119 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
120 linux,code = <KEY_E>;
123 debounce-interval = <20>;
126 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
127 linux,code = <KEY_F>;
130 debounce-interval = <20>;
133 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
134 linux,code = <KEY_G>;
137 debounce-interval = <20>;
142 compatible = "gpio-leds";
144 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
147 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
150 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
154 vcc_sdhi0: regulator@0 {
155 compatible = "regulator-fixed";
157 regulator-name = "SDHI0 Vcc";
158 regulator-min-microvolt = <3300000>;
159 regulator-max-microvolt = <3300000>;
161 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
165 vccq_sdhi0: regulator@1 {
166 compatible = "regulator-gpio";
168 regulator-name = "SDHI0 VccQ";
169 regulator-min-microvolt = <1800000>;
170 regulator-max-microvolt = <3300000>;
172 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
178 vcc_sdhi1: regulator@2 {
179 compatible = "regulator-fixed";
181 regulator-name = "SDHI1 Vcc";
182 regulator-min-microvolt = <3300000>;
183 regulator-max-microvolt = <3300000>;
185 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
189 vccq_sdhi1: regulator@3 {
190 compatible = "regulator-gpio";
192 regulator-name = "SDHI1 VccQ";
193 regulator-min-microvolt = <1800000>;
194 regulator-max-microvolt = <3300000>;
196 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
202 vcc_sdhi2: regulator@4 {
203 compatible = "regulator-fixed";
205 regulator-name = "SDHI2 Vcc";
206 regulator-min-microvolt = <3300000>;
207 regulator-max-microvolt = <3300000>;
209 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
213 vccq_sdhi2: regulator@5 {
214 compatible = "regulator-gpio";
216 regulator-name = "SDHI2 VccQ";
217 regulator-min-microvolt = <1800000>;
218 regulator-max-microvolt = <3300000>;
220 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
227 compatible = "simple-audio-card";
229 simple-audio-card,format = "left_j";
230 simple-audio-card,bitclock-master = <&sndcodec>;
231 simple-audio-card,frame-master = <&sndcodec>;
233 sndcpu: simple-audio-card,cpu {
234 sound-dai = <&rcar_sound>;
237 sndcodec: simple-audio-card,codec {
238 sound-dai = <&ak4643>;
239 system-clock-frequency = <11289600>;
245 pinctrl-0 = <&du_pins>;
246 pinctrl-names = "default";
251 lvds_connector: endpoint {
258 clock-frequency = <20000000>;
263 renesas,groups = "i2c2";
264 renesas,function = "i2c2";
268 renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0";
269 renesas,function = "du";
272 scif0_pins: serial0 {
273 renesas,groups = "scif0_data_d";
274 renesas,function = "scif0";
277 scif1_pins: serial1 {
278 renesas,groups = "scif1_data_d";
279 renesas,function = "scif1";
283 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
284 renesas,function = "eth";
288 renesas,groups = "intc_irq0";
289 renesas,function = "intc";
293 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
294 renesas,function = "sdhi0";
298 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
299 renesas,function = "sdhi1";
303 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
304 renesas,function = "sdhi2";
308 renesas,groups = "qspi_ctrl", "qspi_data4";
309 renesas,function = "qspi";
313 renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
315 renesas,function = "msiof0";
319 renesas,groups = "usb0";
320 renesas,function = "usb0";
324 renesas,groups = "usb1";
325 renesas,function = "usb1";
329 renesas,groups = "vin1_data8", "vin1_clk";
330 renesas,function = "vin1";
334 renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
335 renesas,function = "ssi";
338 sound_clk_pins: sound_clk {
339 renesas,groups = "audio_clk_a";
340 renesas,function = "audio_clk";
345 pinctrl-0 = <ðer_pins &phy1_pins>;
346 pinctrl-names = "default";
348 phy-handle = <&phy1>;
349 renesas,ether-link-active-low;
352 phy1: ethernet-phy@1 {
354 interrupt-parent = <&irqc0>;
355 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
356 micrel,led-mode = <1>;
369 pinctrl-0 = <&scif0_pins>;
370 pinctrl-names = "default";
376 pinctrl-0 = <&scif1_pins>;
377 pinctrl-names = "default";
383 pinctrl-0 = <&sdhi0_pins>;
384 pinctrl-names = "default";
386 vmmc-supply = <&vcc_sdhi0>;
387 vqmmc-supply = <&vccq_sdhi0>;
388 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
389 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
394 pinctrl-0 = <&sdhi1_pins>;
395 pinctrl-names = "default";
397 vmmc-supply = <&vcc_sdhi1>;
398 vqmmc-supply = <&vccq_sdhi1>;
399 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
400 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
405 pinctrl-0 = <&sdhi2_pins>;
406 pinctrl-names = "default";
408 vmmc-supply = <&vcc_sdhi2>;
409 vqmmc-supply = <&vccq_sdhi2>;
410 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
415 pinctrl-0 = <&qspi_pins>;
416 pinctrl-names = "default";
421 #address-cells = <1>;
423 compatible = "spansion,s25fl512s";
425 spi-max-frequency = <30000000>;
426 spi-tx-bus-width = <4>;
427 spi-rx-bus-width = <4>;
432 reg = <0x00000000 0x00080000>;
437 reg = <0x00080000 0x00080000>;
442 reg = <0x00100000 0x03f00000>;
448 pinctrl-0 = <&msiof0_pins>;
449 pinctrl-names = "default";
454 compatible = "renesas,r2a11302ft";
456 spi-max-frequency = <6000000>;
463 pinctrl-0 = <&i2c2_pins>;
464 pinctrl-names = "default";
467 clock-frequency = <100000>;
469 ak4643: sound-codec@12 {
470 compatible = "asahi-kasei,ak4643";
471 #sound-dai-cells = <0>;
476 compatible = "adi,adv7180";
483 remote-endpoint = <&vin1ep>;
489 compatible = "renesas,24c02";
497 clock-frequency = <100000>;
499 vdd_dvfs: regulator@68 {
500 compatible = "dlg,da9210";
503 regulator-min-microvolt = <1000000>;
504 regulator-max-microvolt = <1000000>;
512 pinctrl-0 = <&usb0_pins>;
513 pinctrl-names = "default";
518 pinctrl-0 = <&usb1_pins>;
519 pinctrl-names = "default";
524 pinctrl-0 = <&usb0_pins>;
525 pinctrl-names = "default";
526 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
542 cpu0-supply = <&vdd_dvfs>;
545 /* composite video input */
548 pinctrl-0 = <&vin1_pins>;
549 pinctrl-names = "default";
552 #address-cells = <1>;
556 remote-endpoint = <&adv7180>;
563 pinctrl-0 = <&sound_pins &sound_clk_pins>;
564 pinctrl-names = "default";
566 #sound-dai-cells = <0>;
572 playback = <&ssi0 &src2>;
573 capture = <&ssi1 &src3>;