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";
228 pinctrl-0 = <&du_pins &scif0_pins &scif1_pins>;
229 pinctrl-names = "default";
232 renesas,groups = "i2c2";
233 renesas,function = "i2c2";
237 renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0";
238 renesas,function = "du";
241 scif0_pins: serial0 {
242 renesas,groups = "scif0_data_d";
243 renesas,function = "scif0";
246 scif1_pins: serial1 {
247 renesas,groups = "scif1_data_d";
248 renesas,function = "scif1";
252 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
253 renesas,function = "eth";
257 renesas,groups = "intc_irq0";
258 renesas,function = "intc";
262 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
263 renesas,function = "sdhi0";
267 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
268 renesas,function = "sdhi1";
272 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
273 renesas,function = "sdhi2";
277 renesas,groups = "qspi_ctrl", "qspi_data4";
278 renesas,function = "qspi";
282 renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
284 renesas,function = "msiof0";
289 pinctrl-0 = <ðer_pins &phy1_pins>;
290 pinctrl-names = "default";
292 phy-handle = <&phy1>;
293 renesas,ether-link-active-low;
296 phy1: ethernet-phy@1 {
298 interrupt-parent = <&irqc0>;
299 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
300 micrel,led-mode = <1>;
309 pinctrl-0 = <&sdhi0_pins>;
310 pinctrl-names = "default";
312 vmmc-supply = <&vcc_sdhi0>;
313 vqmmc-supply = <&vccq_sdhi0>;
314 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
315 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
320 pinctrl-0 = <&sdhi1_pins>;
321 pinctrl-names = "default";
323 vmmc-supply = <&vcc_sdhi1>;
324 vqmmc-supply = <&vccq_sdhi1>;
325 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
326 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
331 pinctrl-0 = <&sdhi2_pins>;
332 pinctrl-names = "default";
334 vmmc-supply = <&vcc_sdhi2>;
335 vqmmc-supply = <&vccq_sdhi2>;
336 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
341 pinctrl-0 = <&qspi_pins>;
342 pinctrl-names = "default";
347 #address-cells = <1>;
349 compatible = "spansion,s25fl512s";
351 spi-max-frequency = <30000000>;
356 reg = <0x00000000 0x00080000>;
361 reg = <0x00080000 0x00080000>;
366 reg = <0x00100000 0x03f00000>;
372 pinctrl-0 = <&msiof0_pins>;
373 pinctrl-names = "default";
378 compatible = "renesas,r2a11302ft";
380 spi-max-frequency = <6000000>;