Commit | Line | Data |
---|---|---|
7a475267 NF |
1 | /* |
2 | * at91-sama5d4ek.dts - Device Tree file for SAMA5D4 Evaluation Kit | |
3 | * | |
4 | * Copyright (C) 2014 Atmel, | |
5 | * 2014 Nicolas Ferre <nicolas.ferre@atmel.com> | |
6 | * | |
7 | * This file is dual-licensed: you can use it either under the terms | |
8 | * of the GPL or the X11 license, at your option. Note that this dual | |
9 | * licensing only applies to this file, and not this project as a | |
10 | * whole. | |
11 | * | |
1d2a0563 | 12 | * a) This file is free software; you can redistribute it and/or |
7a475267 NF |
13 | * modify it under the terms of the GNU General Public License as |
14 | * published by the Free Software Foundation; either version 2 of the | |
15 | * License, or (at your option) any later version. | |
16 | * | |
1d2a0563 | 17 | * This file is distributed in the hope that it will be useful, |
7a475267 NF |
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | * GNU General Public License for more details. | |
21 | * | |
22 | * Or, alternatively, | |
23 | * | |
24 | * b) Permission is hereby granted, free of charge, to any person | |
25 | * obtaining a copy of this software and associated documentation | |
26 | * files (the "Software"), to deal in the Software without | |
27 | * restriction, including without limitation the rights to use, | |
28 | * copy, modify, merge, publish, distribute, sublicense, and/or | |
29 | * sell copies of the Software, and to permit persons to whom the | |
30 | * Software is furnished to do so, subject to the following | |
31 | * conditions: | |
32 | * | |
33 | * The above copyright notice and this permission notice shall be | |
34 | * included in all copies or substantial portions of the Software. | |
35 | * | |
36 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
37 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
38 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
39 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
40 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
41 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
42 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
43 | * OTHER DEALINGS IN THE SOFTWARE. | |
44 | */ | |
45 | /dts-v1/; | |
46 | #include "sama5d4.dtsi" | |
47 | ||
48 | / { | |
49 | model = "Atmel SAMA5D4-EK"; | |
50 | compatible = "atmel,sama5d4ek", "atmel,sama5d4", "atmel,sama5"; | |
51 | ||
52 | chosen { | |
9e73126e AB |
53 | bootargs = "ignore_loglevel earlyprintk"; |
54 | stdout-path = "serial0:115200n8"; | |
7a475267 NF |
55 | }; |
56 | ||
57 | memory { | |
58 | reg = <0x20000000 0x20000000>; | |
59 | }; | |
60 | ||
61 | clocks { | |
62 | #address-cells = <1>; | |
63 | #size-cells = <1>; | |
64 | ranges; | |
65 | ||
66 | main_clock: clock@0 { | |
67 | compatible = "atmel,osc", "fixed-clock"; | |
68 | clock-frequency = <12000000>; | |
69 | }; | |
70 | ||
71 | slow_xtal { | |
72 | clock-frequency = <32768>; | |
73 | }; | |
74 | ||
75 | main_xtal { | |
76 | clock-frequency = <12000000>; | |
77 | }; | |
78 | }; | |
79 | ||
80 | ahb { | |
81 | apb { | |
82 | lcd_bus@f0000000 { | |
83 | status = "okay"; | |
84 | ||
85 | lcd@f0000000 { | |
86 | status = "okay"; | |
87 | }; | |
88 | ||
89 | lcdovl1@f0000140 { | |
90 | status = "okay"; | |
91 | }; | |
92 | ||
93 | lcdovl2@f0000240 { | |
94 | status = "okay"; | |
95 | }; | |
96 | ||
97 | lcdheo1@f0000340 { | |
98 | status = "okay"; | |
99 | }; | |
100 | }; | |
101 | ||
102 | adc0: adc@fc034000 { | |
103 | /* The vref depends on JP22 of EK. If connect 1-2 then use 3.3V. connect 2-3 use 3.0V */ | |
104 | atmel,adc-vref = <3300>; | |
105 | /*atmel,adc-ts-wires = <4>;*/ /* Set up ADC touch screen */ | |
106 | status = "okay"; /* Enable ADC IIO support */ | |
107 | }; | |
108 | ||
109 | mmc0: mmc@f8000000 { | |
110 | pinctrl-names = "default"; | |
111 | pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_cd>; | |
ea25525c LD |
112 | slot@0 { |
113 | reg = <0>; | |
7a475267 NF |
114 | bus-width = <4>; |
115 | cd-gpios = <&pioE 5 0>; | |
116 | }; | |
117 | }; | |
118 | ||
06981c51 BS |
119 | ssc0: ssc@f8008000 { |
120 | status = "okay"; | |
121 | }; | |
122 | ||
7a475267 NF |
123 | spi0: spi@f8010000 { |
124 | cs-gpios = <&pioC 3 0>, <0>, <0>, <0>; | |
125 | status = "okay"; | |
126 | m25p80@0 { | |
127 | compatible = "atmel,at25df321a"; | |
128 | spi-max-frequency = <50000000>; | |
129 | reg = <0>; | |
130 | }; | |
131 | }; | |
132 | ||
133 | i2c0: i2c@f8014000 { | |
134 | status = "okay"; | |
5afd9451 BS |
135 | |
136 | wm8904: codec@1a { | |
137 | compatible = "wlf,wm8904"; | |
138 | reg = <0x1a>; | |
139 | clocks = <&pck2>; | |
140 | clock-names = "mclk"; | |
141 | }; | |
7a475267 NF |
142 | }; |
143 | ||
144 | macb0: ethernet@f8020000 { | |
145 | phy-mode = "rmii"; | |
146 | status = "okay"; | |
147 | }; | |
148 | ||
149 | mmc1: mmc@fc000000 { | |
150 | pinctrl-names = "default"; | |
151 | pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>; | |
152 | status = "okay"; | |
153 | slot@0 { | |
154 | reg = <0>; | |
155 | bus-width = <4>; | |
156 | cd-gpios = <&pioE 6 0>; | |
157 | }; | |
158 | }; | |
159 | ||
160 | usart2: serial@fc008000 { | |
161 | status = "okay"; | |
162 | }; | |
163 | ||
164 | usart3: serial@fc00c000 { | |
165 | status = "okay"; | |
166 | }; | |
167 | ||
168 | usart4: serial@fc010000 { | |
169 | status = "okay"; | |
170 | }; | |
171 | ||
172 | watchdog@fc068640 { | |
173 | status = "okay"; | |
174 | }; | |
175 | ||
176 | pinctrl@fc06a000 { | |
177 | board { | |
178 | pinctrl_mmc0_cd: mmc0_cd { | |
179 | atmel,pins = | |
180 | <AT91_PIOE 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; | |
181 | }; | |
182 | pinctrl_mmc1_cd: mmc1_cd { | |
183 | atmel,pins = | |
184 | <AT91_PIOE 6 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; | |
185 | }; | |
15ff964d BS |
186 | pinctrl_pck2_as_audio_mck: pck2_as_audio_mck { |
187 | atmel,pins = | |
188 | <AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE>; | |
189 | }; | |
7a475267 NF |
190 | pinctrl_usba_vbus: usba_vbus { |
191 | atmel,pins = | |
192 | <AT91_PIOE 31 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; | |
193 | }; | |
194 | pinctrl_key_gpio: key_gpio_0 { | |
195 | atmel,pins = | |
196 | <AT91_PIOE 13 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PE13 gpio */ | |
197 | }; | |
198 | }; | |
199 | }; | |
200 | }; | |
201 | ||
202 | usb0: gadget@00400000 { | |
203 | atmel,vbus-gpio = <&pioE 31 GPIO_ACTIVE_HIGH>; | |
204 | pinctrl-names = "default"; | |
205 | pinctrl-0 = <&pinctrl_usba_vbus>; | |
206 | status = "okay"; | |
207 | }; | |
208 | ||
209 | usb1: ohci@00500000 { | |
210 | num-ports = <3>; | |
211 | atmel,vbus-gpio = <0 /* &pioE 10 GPIO_ACTIVE_LOW */ | |
212 | &pioE 11 GPIO_ACTIVE_LOW | |
213 | &pioE 12 GPIO_ACTIVE_LOW | |
214 | >; | |
215 | status = "okay"; | |
216 | }; | |
217 | ||
218 | usb2: ehci@00600000 { | |
219 | status = "okay"; | |
220 | }; | |
221 | ||
222 | nand0: nand@80000000 { | |
223 | nand-bus-width = <8>; | |
224 | nand-ecc-mode = "hw"; | |
225 | nand-on-flash-bbt; | |
226 | atmel,has-pmecc; | |
227 | status = "okay"; | |
228 | ||
229 | at91bootstrap@0 { | |
230 | label = "at91bootstrap"; | |
231 | reg = <0x0 0x40000>; | |
232 | }; | |
233 | ||
234 | bootloader@40000 { | |
235 | label = "bootloader"; | |
236 | reg = <0x40000 0x80000>; | |
237 | }; | |
238 | ||
239 | bootloaderenv@c0000 { | |
240 | label = "bootloader env"; | |
241 | reg = <0xc0000 0xc0000>; | |
242 | }; | |
243 | ||
244 | dtb@180000 { | |
245 | label = "device tree"; | |
246 | reg = <0x180000 0x80000>; | |
247 | }; | |
248 | ||
249 | kernel@200000 { | |
250 | label = "kernel"; | |
251 | reg = <0x200000 0x600000>; | |
252 | }; | |
253 | ||
254 | rootfs@800000 { | |
255 | label = "rootfs"; | |
256 | reg = <0x800000 0x0f800000>; | |
257 | }; | |
258 | }; | |
259 | }; | |
260 | ||
261 | gpio_keys { | |
262 | compatible = "gpio-keys"; | |
7a475267 NF |
263 | |
264 | pinctrl-names = "default"; | |
265 | pinctrl-0 = <&pinctrl_key_gpio>; | |
266 | ||
267 | pb_user1 { | |
268 | label = "pb_user1"; | |
269 | gpios = <&pioE 13 GPIO_ACTIVE_HIGH>; | |
270 | linux,code = <0x100>; | |
271 | gpio-key,wakeup; | |
272 | }; | |
273 | }; | |
1bc54652 JW |
274 | |
275 | leds { | |
276 | compatible = "gpio-leds"; | |
277 | status = "okay"; | |
278 | ||
279 | d8 { | |
280 | label = "d8"; | |
281 | /* PE28, conflicts with usart4 rts pin */ | |
282 | gpios = <&pioE 28 GPIO_ACTIVE_LOW>; | |
283 | }; | |
284 | ||
285 | d9 { | |
286 | label = "d9"; | |
287 | gpios = <&pioE 9 GPIO_ACTIVE_HIGH>; | |
288 | }; | |
289 | ||
290 | d10 { | |
291 | label = "d10"; | |
292 | gpios = <&pioE 8 GPIO_ACTIVE_LOW>; | |
293 | linux,default-trigger = "heartbeat"; | |
294 | }; | |
295 | }; | |
15ff964d BS |
296 | |
297 | sound { | |
298 | compatible = "atmel,asoc-wm8904"; | |
299 | pinctrl-names = "default"; | |
300 | pinctrl-0 = <&pinctrl_pck2_as_audio_mck>; | |
301 | ||
302 | atmel,model = "wm8904 @ SAMA5D4EK"; | |
303 | atmel,audio-routing = | |
304 | "Headphone Jack", "HPOUTL", | |
305 | "Headphone Jack", "HPOUTR", | |
306 | "IN1L", "Line In Jack", | |
307 | "IN1R", "Line In Jack"; | |
308 | ||
309 | atmel,ssc-controller = <&ssc0>; | |
310 | atmel,audio-codec = <&wm8904>; | |
311 | }; | |
7a475267 | 312 | }; |