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";
23 bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
27 device_type = "memory";
28 reg = <0 0x40000000 0 0x40000000>;
32 device_type = "memory";
33 reg = <2 0x00000000 0 0x40000000>;
42 compatible = "gpio-keys";
45 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
49 debounce-interval = <20>;
52 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
56 debounce-interval = <20>;
59 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
63 debounce-interval = <20>;
66 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
70 debounce-interval = <20>;
73 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
77 debounce-interval = <20>;
80 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
84 debounce-interval = <20>;
87 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
91 debounce-interval = <20>;
94 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
98 debounce-interval = <20>;
101 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_E>;
105 debounce-interval = <20>;
108 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_F>;
112 debounce-interval = <20>;
115 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
116 linux,code = <KEY_G>;
119 debounce-interval = <20>;
124 compatible = "gpio-leds";
126 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
129 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
132 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
136 vcc_sdhi0: regulator@0 {
137 compatible = "regulator-fixed";
139 regulator-name = "SDHI0 Vcc";
140 regulator-min-microvolt = <3300000>;
141 regulator-max-microvolt = <3300000>;
143 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
147 vccq_sdhi0: regulator@1 {
148 compatible = "regulator-gpio";
150 regulator-name = "SDHI0 VccQ";
151 regulator-min-microvolt = <1800000>;
152 regulator-max-microvolt = <3300000>;
154 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
160 vcc_sdhi1: regulator@2 {
161 compatible = "regulator-fixed";
163 regulator-name = "SDHI1 Vcc";
164 regulator-min-microvolt = <3300000>;
165 regulator-max-microvolt = <3300000>;
167 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
171 vccq_sdhi1: regulator@3 {
172 compatible = "regulator-gpio";
174 regulator-name = "SDHI1 VccQ";
175 regulator-min-microvolt = <1800000>;
176 regulator-max-microvolt = <3300000>;
178 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
184 vcc_sdhi2: regulator@4 {
185 compatible = "regulator-fixed";
187 regulator-name = "SDHI2 Vcc";
188 regulator-min-microvolt = <3300000>;
189 regulator-max-microvolt = <3300000>;
191 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
195 vccq_sdhi2: regulator@5 {
196 compatible = "regulator-gpio";
198 regulator-name = "SDHI2 VccQ";
199 regulator-min-microvolt = <1800000>;
200 regulator-max-microvolt = <3300000>;
202 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
210 clock-frequency = <20000000>;
214 pinctrl-0 = <&i2c2_pins>;
215 pinctrl-names = "default";
218 clock-frequency = <400000>;
221 compatible = "renesas,24c02";
229 clock-frequency = <100000>;
233 pinctrl-0 = <&du_pins &scif0_pins &scif1_pins>;
234 pinctrl-names = "default";
237 renesas,groups = "i2c2";
238 renesas,function = "i2c2";
242 renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0";
243 renesas,function = "du";
246 scif0_pins: serial0 {
247 renesas,groups = "scif0_data_d";
248 renesas,function = "scif0";
251 scif1_pins: serial1 {
252 renesas,groups = "scif1_data_d";
253 renesas,function = "scif1";
257 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
258 renesas,function = "eth";
262 renesas,groups = "intc_irq0";
263 renesas,function = "intc";
267 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
268 renesas,function = "sdhi0";
272 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
273 renesas,function = "sdhi1";
277 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
278 renesas,function = "sdhi2";
282 renesas,groups = "qspi_ctrl", "qspi_data4";
283 renesas,function = "qspi";
287 renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
289 renesas,function = "msiof0";
294 pinctrl-0 = <ðer_pins &phy1_pins>;
295 pinctrl-names = "default";
297 phy-handle = <&phy1>;
298 renesas,ether-link-active-low;
301 phy1: ethernet-phy@1 {
303 interrupt-parent = <&irqc0>;
304 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
305 micrel,led-mode = <1>;
314 pinctrl-0 = <&sdhi0_pins>;
315 pinctrl-names = "default";
317 vmmc-supply = <&vcc_sdhi0>;
318 vqmmc-supply = <&vccq_sdhi0>;
319 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
320 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
325 pinctrl-0 = <&sdhi1_pins>;
326 pinctrl-names = "default";
328 vmmc-supply = <&vcc_sdhi1>;
329 vqmmc-supply = <&vccq_sdhi1>;
330 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
331 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
336 pinctrl-0 = <&sdhi2_pins>;
337 pinctrl-names = "default";
339 vmmc-supply = <&vcc_sdhi2>;
340 vqmmc-supply = <&vccq_sdhi2>;
341 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
346 pinctrl-0 = <&qspi_pins>;
347 pinctrl-names = "default";
352 #address-cells = <1>;
354 compatible = "spansion,s25fl512s";
356 spi-max-frequency = <30000000>;
357 spi-tx-bus-width = <4>;
358 spi-rx-bus-width = <4>;
363 reg = <0x00000000 0x00080000>;
368 reg = <0x00080000 0x00080000>;
373 reg = <0x00100000 0x03f00000>;
379 pinctrl-0 = <&msiof0_pins>;
380 pinctrl-names = "default";
385 compatible = "renesas,r2a11302ft";
387 spi-max-frequency = <6000000>;