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";
32 device_type = "memory";
33 reg = <0 0x40000000 0 0x40000000>;
37 device_type = "memory";
38 reg = <2 0x00000000 0 0x40000000>;
47 compatible = "gpio-keys";
50 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
54 debounce-interval = <20>;
57 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
61 debounce-interval = <20>;
64 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
68 debounce-interval = <20>;
71 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
75 debounce-interval = <20>;
78 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
82 debounce-interval = <20>;
85 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
89 debounce-interval = <20>;
92 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
96 debounce-interval = <20>;
99 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
100 linux,code = <KEY_D>;
103 debounce-interval = <20>;
106 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
107 linux,code = <KEY_E>;
110 debounce-interval = <20>;
113 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_F>;
117 debounce-interval = <20>;
120 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_G>;
124 debounce-interval = <20>;
129 compatible = "gpio-leds";
131 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
134 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
137 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
141 vcc_sdhi0: regulator@0 {
142 compatible = "regulator-fixed";
144 regulator-name = "SDHI0 Vcc";
145 regulator-min-microvolt = <3300000>;
146 regulator-max-microvolt = <3300000>;
148 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
152 vccq_sdhi0: regulator@1 {
153 compatible = "regulator-gpio";
155 regulator-name = "SDHI0 VccQ";
156 regulator-min-microvolt = <1800000>;
157 regulator-max-microvolt = <3300000>;
159 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
165 vcc_sdhi1: regulator@2 {
166 compatible = "regulator-fixed";
168 regulator-name = "SDHI1 Vcc";
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
172 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
176 vccq_sdhi1: regulator@3 {
177 compatible = "regulator-gpio";
179 regulator-name = "SDHI1 VccQ";
180 regulator-min-microvolt = <1800000>;
181 regulator-max-microvolt = <3300000>;
183 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
189 vcc_sdhi2: regulator@4 {
190 compatible = "regulator-fixed";
192 regulator-name = "SDHI2 Vcc";
193 regulator-min-microvolt = <3300000>;
194 regulator-max-microvolt = <3300000>;
196 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
200 vccq_sdhi2: regulator@5 {
201 compatible = "regulator-gpio";
203 regulator-name = "SDHI2 VccQ";
204 regulator-min-microvolt = <1800000>;
205 regulator-max-microvolt = <3300000>;
207 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
215 clock-frequency = <20000000>;
219 pinctrl-0 = <&i2c2_pins>;
220 pinctrl-names = "default";
223 clock-frequency = <400000>;
226 compatible = "renesas,24c02";
234 clock-frequency = <100000>;
238 pinctrl-0 = <&du_pins>;
239 pinctrl-names = "default";
242 renesas,groups = "i2c2";
243 renesas,function = "i2c2";
247 renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0";
248 renesas,function = "du";
251 scif0_pins: serial0 {
252 renesas,groups = "scif0_data_d";
253 renesas,function = "scif0";
256 scif1_pins: serial1 {
257 renesas,groups = "scif1_data_d";
258 renesas,function = "scif1";
262 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
263 renesas,function = "eth";
267 renesas,groups = "intc_irq0";
268 renesas,function = "intc";
272 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
273 renesas,function = "sdhi0";
277 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
278 renesas,function = "sdhi1";
282 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
283 renesas,function = "sdhi2";
287 renesas,groups = "qspi_ctrl", "qspi_data4";
288 renesas,function = "qspi";
292 renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
294 renesas,function = "msiof0";
299 pinctrl-0 = <ðer_pins &phy1_pins>;
300 pinctrl-names = "default";
302 phy-handle = <&phy1>;
303 renesas,ether-link-active-low;
306 phy1: ethernet-phy@1 {
308 interrupt-parent = <&irqc0>;
309 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
310 micrel,led-mode = <1>;
319 pinctrl-0 = <&scif0_pins>;
320 pinctrl-names = "default";
326 pinctrl-0 = <&scif1_pins>;
327 pinctrl-names = "default";
333 pinctrl-0 = <&sdhi0_pins>;
334 pinctrl-names = "default";
336 vmmc-supply = <&vcc_sdhi0>;
337 vqmmc-supply = <&vccq_sdhi0>;
338 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
339 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
344 pinctrl-0 = <&sdhi1_pins>;
345 pinctrl-names = "default";
347 vmmc-supply = <&vcc_sdhi1>;
348 vqmmc-supply = <&vccq_sdhi1>;
349 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
350 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
355 pinctrl-0 = <&sdhi2_pins>;
356 pinctrl-names = "default";
358 vmmc-supply = <&vcc_sdhi2>;
359 vqmmc-supply = <&vccq_sdhi2>;
360 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
365 pinctrl-0 = <&qspi_pins>;
366 pinctrl-names = "default";
371 #address-cells = <1>;
373 compatible = "spansion,s25fl512s";
375 spi-max-frequency = <30000000>;
376 spi-tx-bus-width = <4>;
377 spi-rx-bus-width = <4>;
382 reg = <0x00000000 0x00080000>;
387 reg = <0x00080000 0x00080000>;
392 reg = <0x00100000 0x03f00000>;
398 pinctrl-0 = <&msiof0_pins>;
399 pinctrl-names = "default";
404 compatible = "renesas,r2a11302ft";
406 spi-max-frequency = <6000000>;