Commit | Line | Data |
---|---|---|
1f52c659 HN |
1 | /* |
2 | * Device Tree Source for the Koelsch board | |
3 | * | |
4 | * Copyright (C) 2013 Renesas Electronics Corporation | |
08e8f0f3 SS |
5 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
6 | * Copyright (C) 2014 Cogent Embedded, Inc. | |
1f52c659 HN |
7 | * |
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. | |
11 | */ | |
12 | ||
13 | /dts-v1/; | |
31c46cbf | 14 | #include "r8a7791.dtsi" |
f8e2535d | 15 | #include <dt-bindings/gpio/gpio.h> |
7f168b1e | 16 | #include <dt-bindings/input/input.h> |
1f52c659 HN |
17 | |
18 | / { | |
19 | model = "Koelsch"; | |
20 | compatible = "renesas,koelsch", "renesas,r8a7791"; | |
21 | ||
5ba55fa8 LP |
22 | aliases { |
23 | serial6 = &scif0; | |
24 | serial7 = &scif1; | |
25 | }; | |
26 | ||
1f52c659 HN |
27 | chosen { |
28 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; | |
29 | }; | |
30 | ||
31 | memory@40000000 { | |
32 | device_type = "memory"; | |
4cd1bad4 TY |
33 | reg = <0 0x40000000 0 0x40000000>; |
34 | }; | |
35 | ||
36 | memory@200000000 { | |
37 | device_type = "memory"; | |
38 | reg = <2 0x00000000 0 0x40000000>; | |
1f52c659 HN |
39 | }; |
40 | ||
41 | lbsc { | |
42 | #address-cells = <1>; | |
43 | #size-cells = <1>; | |
44 | }; | |
f8e2535d | 45 | |
aff5274f LP |
46 | gpio-keys { |
47 | compatible = "gpio-keys"; | |
48 | ||
7f168b1e MD |
49 | key-1 { |
50 | gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; | |
51 | linux,code = <KEY_1>; | |
52 | label = "SW2-1"; | |
53 | gpio-key,wakeup; | |
54 | debounce-interval = <20>; | |
55 | }; | |
56 | key-2 { | |
57 | gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; | |
58 | linux,code = <KEY_2>; | |
59 | label = "SW2-2"; | |
60 | gpio-key,wakeup; | |
61 | debounce-interval = <20>; | |
62 | }; | |
63 | key-3 { | |
64 | gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; | |
65 | linux,code = <KEY_3>; | |
66 | label = "SW2-3"; | |
67 | gpio-key,wakeup; | |
68 | debounce-interval = <20>; | |
69 | }; | |
70 | key-4 { | |
71 | gpios = <&gpio5 3 GPIO_ACTIVE_LOW>; | |
72 | linux,code = <KEY_4>; | |
73 | label = "SW2-4"; | |
74 | gpio-key,wakeup; | |
75 | debounce-interval = <20>; | |
76 | }; | |
aff5274f LP |
77 | key-a { |
78 | gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; | |
7f168b1e | 79 | linux,code = <KEY_A>; |
aff5274f LP |
80 | label = "SW30"; |
81 | gpio-key,wakeup; | |
82 | debounce-interval = <20>; | |
83 | }; | |
84 | key-b { | |
85 | gpios = <&gpio7 1 GPIO_ACTIVE_LOW>; | |
7f168b1e | 86 | linux,code = <KEY_B>; |
aff5274f LP |
87 | label = "SW31"; |
88 | gpio-key,wakeup; | |
89 | debounce-interval = <20>; | |
90 | }; | |
91 | key-c { | |
92 | gpios = <&gpio7 2 GPIO_ACTIVE_LOW>; | |
7f168b1e | 93 | linux,code = <KEY_C>; |
aff5274f LP |
94 | label = "SW32"; |
95 | gpio-key,wakeup; | |
96 | debounce-interval = <20>; | |
97 | }; | |
98 | key-d { | |
99 | gpios = <&gpio7 3 GPIO_ACTIVE_LOW>; | |
7f168b1e | 100 | linux,code = <KEY_D>; |
aff5274f LP |
101 | label = "SW33"; |
102 | gpio-key,wakeup; | |
103 | debounce-interval = <20>; | |
104 | }; | |
105 | key-e { | |
106 | gpios = <&gpio7 4 GPIO_ACTIVE_LOW>; | |
7f168b1e | 107 | linux,code = <KEY_E>; |
aff5274f LP |
108 | label = "SW34"; |
109 | gpio-key,wakeup; | |
110 | debounce-interval = <20>; | |
111 | }; | |
112 | key-f { | |
113 | gpios = <&gpio7 5 GPIO_ACTIVE_LOW>; | |
7f168b1e | 114 | linux,code = <KEY_F>; |
aff5274f LP |
115 | label = "SW35"; |
116 | gpio-key,wakeup; | |
117 | debounce-interval = <20>; | |
118 | }; | |
119 | key-g { | |
120 | gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; | |
7f168b1e | 121 | linux,code = <KEY_G>; |
aff5274f LP |
122 | label = "SW36"; |
123 | gpio-key,wakeup; | |
124 | debounce-interval = <20>; | |
125 | }; | |
126 | }; | |
127 | ||
f8e2535d LP |
128 | leds { |
129 | compatible = "gpio-leds"; | |
130 | led6 { | |
131 | gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; | |
132 | }; | |
133 | led7 { | |
134 | gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>; | |
135 | }; | |
136 | led8 { | |
137 | gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; | |
138 | }; | |
139 | }; | |
2c60a7df MD |
140 | |
141 | vcc_sdhi0: regulator@0 { | |
142 | compatible = "regulator-fixed"; | |
143 | ||
144 | regulator-name = "SDHI0 Vcc"; | |
145 | regulator-min-microvolt = <3300000>; | |
146 | regulator-max-microvolt = <3300000>; | |
147 | ||
148 | gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>; | |
149 | enable-active-high; | |
150 | }; | |
151 | ||
152 | vccq_sdhi0: regulator@1 { | |
153 | compatible = "regulator-gpio"; | |
154 | ||
155 | regulator-name = "SDHI0 VccQ"; | |
156 | regulator-min-microvolt = <1800000>; | |
157 | regulator-max-microvolt = <3300000>; | |
158 | ||
159 | gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; | |
160 | gpios-states = <1>; | |
161 | states = <3300000 1 | |
162 | 1800000 0>; | |
163 | }; | |
164 | ||
165 | vcc_sdhi1: regulator@2 { | |
166 | compatible = "regulator-fixed"; | |
167 | ||
168 | regulator-name = "SDHI1 Vcc"; | |
169 | regulator-min-microvolt = <3300000>; | |
170 | regulator-max-microvolt = <3300000>; | |
171 | ||
172 | gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>; | |
173 | enable-active-high; | |
174 | }; | |
175 | ||
176 | vccq_sdhi1: regulator@3 { | |
177 | compatible = "regulator-gpio"; | |
178 | ||
179 | regulator-name = "SDHI1 VccQ"; | |
180 | regulator-min-microvolt = <1800000>; | |
181 | regulator-max-microvolt = <3300000>; | |
182 | ||
183 | gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; | |
184 | gpios-states = <1>; | |
185 | states = <3300000 1 | |
186 | 1800000 0>; | |
187 | }; | |
188 | ||
189 | vcc_sdhi2: regulator@4 { | |
190 | compatible = "regulator-fixed"; | |
191 | ||
192 | regulator-name = "SDHI2 Vcc"; | |
193 | regulator-min-microvolt = <3300000>; | |
194 | regulator-max-microvolt = <3300000>; | |
195 | ||
196 | gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>; | |
197 | enable-active-high; | |
198 | }; | |
199 | ||
200 | vccq_sdhi2: regulator@5 { | |
201 | compatible = "regulator-gpio"; | |
202 | ||
203 | regulator-name = "SDHI2 VccQ"; | |
204 | regulator-min-microvolt = <1800000>; | |
205 | regulator-max-microvolt = <3300000>; | |
206 | ||
207 | gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; | |
208 | gpios-states = <1>; | |
209 | states = <3300000 1 | |
210 | 1800000 0>; | |
211 | }; | |
f8e2535d LP |
212 | }; |
213 | ||
fcf0c725 LP |
214 | &extal_clk { |
215 | clock-frequency = <20000000>; | |
216 | }; | |
217 | ||
38c53516 WS |
218 | &i2c2 { |
219 | pinctrl-0 = <&i2c2_pins>; | |
220 | pinctrl-names = "default"; | |
221 | ||
222 | status = "okay"; | |
223 | clock-frequency = <400000>; | |
224 | ||
225 | eeprom@50 { | |
226 | compatible = "renesas,24c02"; | |
227 | reg = <0x50>; | |
228 | pagesize = <16>; | |
229 | }; | |
230 | }; | |
231 | ||
aa28e55d WS |
232 | &i2c6 { |
233 | status = "okay"; | |
234 | clock-frequency = <100000>; | |
235 | }; | |
236 | ||
f8e2535d | 237 | &pfc { |
5ba55fa8 | 238 | pinctrl-0 = <&du_pins>; |
f8e2535d LP |
239 | pinctrl-names = "default"; |
240 | ||
e6a4c001 | 241 | i2c2_pins: i2c2 { |
38c53516 WS |
242 | renesas,groups = "i2c2"; |
243 | renesas,function = "i2c2"; | |
244 | }; | |
245 | ||
afba941c LP |
246 | du_pins: du { |
247 | renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0"; | |
248 | renesas,function = "du"; | |
249 | }; | |
250 | ||
f8e2535d LP |
251 | scif0_pins: serial0 { |
252 | renesas,groups = "scif0_data_d"; | |
253 | renesas,function = "scif0"; | |
254 | }; | |
255 | ||
256 | scif1_pins: serial1 { | |
257 | renesas,groups = "scif1_data_d"; | |
258 | renesas,function = "scif1"; | |
259 | }; | |
e02ee513 | 260 | |
08e8f0f3 SS |
261 | ether_pins: ether { |
262 | renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; | |
263 | renesas,function = "eth"; | |
264 | }; | |
265 | ||
266 | phy1_pins: phy1 { | |
267 | renesas,groups = "intc_irq0"; | |
268 | renesas,function = "intc"; | |
269 | }; | |
270 | ||
2c60a7df | 271 | sdhi0_pins: sd0 { |
d5dda038 | 272 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl"; |
2c60a7df MD |
273 | renesas,function = "sdhi0"; |
274 | }; | |
275 | ||
276 | sdhi1_pins: sd1 { | |
d5dda038 | 277 | renesas,groups = "sdhi1_data4", "sdhi1_ctrl"; |
2c60a7df MD |
278 | renesas,function = "sdhi1"; |
279 | }; | |
280 | ||
281 | sdhi2_pins: sd2 { | |
d5dda038 | 282 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; |
2c60a7df MD |
283 | renesas,function = "sdhi2"; |
284 | }; | |
285 | ||
6f3e4ee3 | 286 | qspi_pins: spi0 { |
e02ee513 GU |
287 | renesas,groups = "qspi_ctrl", "qspi_data4"; |
288 | renesas,function = "qspi"; | |
289 | }; | |
b16f05ab GU |
290 | |
291 | msiof0_pins: spi1 { | |
292 | renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx", | |
293 | "msiof0_tx"; | |
294 | renesas,function = "msiof0"; | |
295 | }; | |
1f52c659 | 296 | }; |
760c277b | 297 | |
08e8f0f3 SS |
298 | ðer { |
299 | pinctrl-0 = <ðer_pins &phy1_pins>; | |
300 | pinctrl-names = "default"; | |
301 | ||
302 | phy-handle = <&phy1>; | |
303 | renesas,ether-link-active-low; | |
304 | status = "ok"; | |
305 | ||
306 | phy1: ethernet-phy@1 { | |
307 | reg = <1>; | |
308 | interrupt-parent = <&irqc0>; | |
309 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | |
19f647cb | 310 | micrel,led-mode = <1>; |
08e8f0f3 SS |
311 | }; |
312 | }; | |
313 | ||
760c277b VB |
314 | &sata0 { |
315 | status = "okay"; | |
316 | }; | |
e02ee513 | 317 | |
5ba55fa8 LP |
318 | &scif0 { |
319 | pinctrl-0 = <&scif0_pins>; | |
320 | pinctrl-names = "default"; | |
321 | ||
322 | status = "okay"; | |
323 | }; | |
324 | ||
325 | &scif1 { | |
326 | pinctrl-0 = <&scif1_pins>; | |
327 | pinctrl-names = "default"; | |
328 | ||
329 | status = "okay"; | |
330 | }; | |
331 | ||
2c60a7df MD |
332 | &sdhi0 { |
333 | pinctrl-0 = <&sdhi0_pins>; | |
334 | pinctrl-names = "default"; | |
335 | ||
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>; | |
340 | status = "okay"; | |
341 | }; | |
342 | ||
343 | &sdhi1 { | |
344 | pinctrl-0 = <&sdhi1_pins>; | |
345 | pinctrl-names = "default"; | |
346 | ||
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>; | |
351 | status = "okay"; | |
352 | }; | |
353 | ||
354 | &sdhi2 { | |
355 | pinctrl-0 = <&sdhi2_pins>; | |
356 | pinctrl-names = "default"; | |
357 | ||
358 | vmmc-supply = <&vcc_sdhi2>; | |
359 | vqmmc-supply = <&vccq_sdhi2>; | |
360 | cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; | |
361 | status = "okay"; | |
362 | }; | |
363 | ||
6f3e4ee3 | 364 | &qspi { |
e02ee513 GU |
365 | pinctrl-0 = <&qspi_pins>; |
366 | pinctrl-names = "default"; | |
367 | ||
368 | status = "okay"; | |
369 | ||
370 | flash: flash@0 { | |
371 | #address-cells = <1>; | |
372 | #size-cells = <1>; | |
373 | compatible = "spansion,s25fl512s"; | |
374 | reg = <0>; | |
375 | spi-max-frequency = <30000000>; | |
ed56083a GU |
376 | spi-tx-bus-width = <4>; |
377 | spi-rx-bus-width = <4>; | |
e02ee513 GU |
378 | m25p,fast-read; |
379 | ||
380 | partition@0 { | |
381 | label = "loader"; | |
382 | reg = <0x00000000 0x00080000>; | |
383 | read-only; | |
384 | }; | |
385 | partition@80000 { | |
386 | label = "bootenv"; | |
387 | reg = <0x00080000 0x00080000>; | |
388 | read-only; | |
389 | }; | |
390 | partition@100000 { | |
391 | label = "data"; | |
392 | reg = <0x00100000 0x03f00000>; | |
393 | }; | |
394 | }; | |
395 | }; | |
b16f05ab GU |
396 | |
397 | &msiof0 { | |
398 | pinctrl-0 = <&msiof0_pins>; | |
399 | pinctrl-names = "default"; | |
400 | ||
401 | status = "okay"; | |
402 | ||
403 | pmic: pmic@0 { | |
404 | compatible = "renesas,r2a11302ft"; | |
405 | reg = <0>; | |
406 | spi-max-frequency = <6000000>; | |
407 | spi-cpol; | |
408 | spi-cpha; | |
409 | }; | |
410 | }; |