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.
14 #include "r8a7791.dtsi"
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/input.h>
20 compatible = "renesas,koelsch", "renesas,r8a7791";
28 bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
33 device_type = "memory";
34 reg = <0 0x40000000 0 0x40000000>;
38 device_type = "memory";
39 reg = <2 0x00000000 0 0x40000000>;
48 compatible = "gpio-keys";
51 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
55 debounce-interval = <20>;
58 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
62 debounce-interval = <20>;
65 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
69 debounce-interval = <20>;
72 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
76 debounce-interval = <20>;
79 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
83 debounce-interval = <20>;
86 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
90 debounce-interval = <20>;
93 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
97 debounce-interval = <20>;
100 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_D>;
104 debounce-interval = <20>;
107 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
108 linux,code = <KEY_E>;
111 debounce-interval = <20>;
114 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_F>;
118 debounce-interval = <20>;
121 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
122 linux,code = <KEY_G>;
125 debounce-interval = <20>;
130 compatible = "gpio-leds";
132 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
135 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
138 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
142 vcc_sdhi0: regulator@0 {
143 compatible = "regulator-fixed";
145 regulator-name = "SDHI0 Vcc";
146 regulator-min-microvolt = <3300000>;
147 regulator-max-microvolt = <3300000>;
149 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
153 vccq_sdhi0: regulator@1 {
154 compatible = "regulator-gpio";
156 regulator-name = "SDHI0 VccQ";
157 regulator-min-microvolt = <1800000>;
158 regulator-max-microvolt = <3300000>;
160 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
166 vcc_sdhi1: regulator@2 {
167 compatible = "regulator-fixed";
169 regulator-name = "SDHI1 Vcc";
170 regulator-min-microvolt = <3300000>;
171 regulator-max-microvolt = <3300000>;
173 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
177 vccq_sdhi1: regulator@3 {
178 compatible = "regulator-gpio";
180 regulator-name = "SDHI1 VccQ";
181 regulator-min-microvolt = <1800000>;
182 regulator-max-microvolt = <3300000>;
184 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
190 vcc_sdhi2: regulator@4 {
191 compatible = "regulator-fixed";
193 regulator-name = "SDHI2 Vcc";
194 regulator-min-microvolt = <3300000>;
195 regulator-max-microvolt = <3300000>;
197 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
201 vccq_sdhi2: regulator@5 {
202 compatible = "regulator-gpio";
204 regulator-name = "SDHI2 VccQ";
205 regulator-min-microvolt = <1800000>;
206 regulator-max-microvolt = <3300000>;
208 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
216 pinctrl-0 = <&du_pins>;
217 pinctrl-names = "default";
222 lvds_connector: endpoint {
229 clock-frequency = <20000000>;
234 renesas,groups = "i2c2";
235 renesas,function = "i2c2";
239 renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0";
240 renesas,function = "du";
243 scif0_pins: serial0 {
244 renesas,groups = "scif0_data_d";
245 renesas,function = "scif0";
248 scif1_pins: serial1 {
249 renesas,groups = "scif1_data_d";
250 renesas,function = "scif1";
254 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
255 renesas,function = "eth";
259 renesas,groups = "intc_irq0";
260 renesas,function = "intc";
264 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
265 renesas,function = "sdhi0";
269 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
270 renesas,function = "sdhi1";
274 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
275 renesas,function = "sdhi2";
279 renesas,groups = "qspi_ctrl", "qspi_data4";
280 renesas,function = "qspi";
284 renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
286 renesas,function = "msiof0";
290 renesas,groups = "usb0";
291 renesas,function = "usb0";
295 renesas,groups = "usb1";
296 renesas,function = "usb1";
300 renesas,groups = "vin1_data8", "vin1_clk";
301 renesas,function = "vin1";
306 pinctrl-0 = <ðer_pins &phy1_pins>;
307 pinctrl-names = "default";
309 phy-handle = <&phy1>;
310 renesas,ether-link-active-low;
313 phy1: ethernet-phy@1 {
315 interrupt-parent = <&irqc0>;
316 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
317 micrel,led-mode = <1>;
330 pinctrl-0 = <&scif0_pins>;
331 pinctrl-names = "default";
337 pinctrl-0 = <&scif1_pins>;
338 pinctrl-names = "default";
344 pinctrl-0 = <&sdhi0_pins>;
345 pinctrl-names = "default";
347 vmmc-supply = <&vcc_sdhi0>;
348 vqmmc-supply = <&vccq_sdhi0>;
349 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
350 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
355 pinctrl-0 = <&sdhi1_pins>;
356 pinctrl-names = "default";
358 vmmc-supply = <&vcc_sdhi1>;
359 vqmmc-supply = <&vccq_sdhi1>;
360 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
361 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
366 pinctrl-0 = <&sdhi2_pins>;
367 pinctrl-names = "default";
369 vmmc-supply = <&vcc_sdhi2>;
370 vqmmc-supply = <&vccq_sdhi2>;
371 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
376 pinctrl-0 = <&qspi_pins>;
377 pinctrl-names = "default";
382 #address-cells = <1>;
384 compatible = "spansion,s25fl512s";
386 spi-max-frequency = <30000000>;
387 spi-tx-bus-width = <4>;
388 spi-rx-bus-width = <4>;
393 reg = <0x00000000 0x00080000>;
398 reg = <0x00080000 0x00080000>;
403 reg = <0x00100000 0x03f00000>;
409 pinctrl-0 = <&msiof0_pins>;
410 pinctrl-names = "default";
415 compatible = "renesas,r2a11302ft";
417 spi-max-frequency = <6000000>;
424 pinctrl-0 = <&i2c2_pins>;
425 pinctrl-names = "default";
428 clock-frequency = <400000>;
431 compatible = "adi,adv7180";
438 remote-endpoint = <&vin1ep>;
444 compatible = "renesas,24c02";
452 clock-frequency = <100000>;
454 vdd_dvfs: regulator@68 {
455 compatible = "dlg,da9210";
458 regulator-min-microvolt = <1000000>;
459 regulator-max-microvolt = <1000000>;
467 pinctrl-0 = <&usb0_pins>;
468 pinctrl-names = "default";
473 pinctrl-0 = <&usb1_pins>;
474 pinctrl-names = "default";
479 pinctrl-0 = <&usb0_pins>;
480 pinctrl-names = "default";
481 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
497 cpu0-supply = <&vdd_dvfs>;
500 /* composite video input */
503 pinctrl-0 = <&vin1_pins>;
504 pinctrl-names = "default";
507 #address-cells = <1>;
511 remote-endpoint = <&adv7180>;