blob: df15587bedccbcbf008ecd38cb1d3352a98e2e3e [file] [log] [blame]
Nicolas Ferreb7c2b612014-02-04 15:05:55 +01001/*
2 * at91-sama5d3_xplained.dts - Device Tree file for the SAMA5D3 Xplained board
3 *
4 * Copyright (C) 2014 Atmel,
5 * 2014 Nicolas Ferre <nicolas.ferre@atmel.com>
6 *
7 * Licensed under GPLv2 or later.
8 */
9/dts-v1/;
10#include "sama5d36.dtsi"
11
12/ {
13 model = "SAMA5D3 Xplained";
14 compatible = "atmel,sama5d3-xplained", "atmel,sama5d3", "atmel,sama5";
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 memory {
21 reg = <0x20000000 0x10000000>;
22 };
23
Alexandre Belloni334394c2014-06-17 15:30:20 +020024 clocks {
25 slow_xtal {
26 clock-frequency = <32768>;
27 };
Boris BREZILLON58a5c3d2014-04-22 15:12:36 +020028
Alexandre Belloni334394c2014-06-17 15:30:20 +020029 main_xtal {
30 clock-frequency = <12000000>;
31 };
Boris BREZILLON58a5c3d2014-04-22 15:12:36 +020032 };
33
Nicolas Ferreb7c2b612014-02-04 15:05:55 +010034 ahb {
35 apb {
36 mmc0: mmc@f0000000 {
37 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>;
38 status = "okay";
39 slot@0 {
40 reg = <0>;
41 bus-width = <8>;
42 cd-gpios = <&pioE 0 GPIO_ACTIVE_LOW>;
43 };
44 };
45
Ben Dooks6f4728c52015-04-27 15:19:10 +020046 mmc1: mmc@f8000000 {
47 vmmc-supply = <&vcc_3v3_reg>;
48 vqmmc-supply = <&vcc_3v3_reg>;
49 status = "disabled";
50 slot@0 {
51 reg = <0>;
52 bus-width = <4>;
53 cd-gpios = <&pioE 1 GPIO_ACTIVE_LOW>;
54 };
55 };
56
Nicolas Ferreb7c2b612014-02-04 15:05:55 +010057 spi0: spi@f0004000 {
Bo Shend44db492014-04-01 15:12:43 +080058 cs-gpios = <&pioD 13 0>, <0>, <0>, <&pioD 16 0>;
Nicolas Ferreb7c2b612014-02-04 15:05:55 +010059 status = "okay";
60 };
61
62 can0: can@f000c000 {
63 status = "okay";
64 };
65
66 i2c0: i2c@f0014000 {
Nicolas Ferrea3b8a7c2014-03-27 11:44:11 +010067 pinctrl-0 = <&pinctrl_i2c0_pu>;
Nicolas Ferreb7c2b612014-02-04 15:05:55 +010068 status = "okay";
69 };
70
71 i2c1: i2c@f0018000 {
72 status = "okay";
Wenyou Yanga93f9c82014-04-21 12:29:07 +080073
74 pmic: act8865@5b {
75 compatible = "active-semi,act8865";
76 reg = <0x5b>;
77 status = "okay";
78
79 regulators {
80 vcc_1v8_reg: DCDC_REG1 {
81 regulator-name = "VCC_1V8";
82 regulator-min-microvolt = <1800000>;
83 regulator-max-microvolt = <1800000>;
84 regulator-always-on;
85 };
86
87 vcc_1v2_reg: DCDC_REG2 {
88 regulator-name = "VCC_1V2";
89 regulator-min-microvolt = <1200000>;
90 regulator-max-microvolt = <1200000>;
91 regulator-always-on;
92 };
93
94 vcc_3v3_reg: DCDC_REG3 {
95 regulator-name = "VCC_3V3";
96 regulator-min-microvolt = <3300000>;
97 regulator-max-microvolt = <3300000>;
98 regulator-always-on;
99 };
100
101 vddfuse_reg: LDO_REG1 {
102 regulator-name = "FUSE_2V5";
103 regulator-min-microvolt = <2500000>;
104 regulator-max-microvolt = <2500000>;
105 };
106
107 vddana_reg: LDO_REG2 {
108 regulator-name = "VDDANA";
109 regulator-min-microvolt = <3300000>;
110 regulator-max-microvolt = <3300000>;
111 regulator-always-on;
112 };
113 };
114 };
Nicolas Ferreb7c2b612014-02-04 15:05:55 +0100115 };
116
117 macb0: ethernet@f0028000 {
118 phy-mode = "rgmii";
Nicolas Ferre9e65adb2015-03-31 11:01:12 +0200119 #address-cells = <1>;
120 #size-cells = <0>;
Nicolas Ferreb7c2b612014-02-04 15:05:55 +0100121 status = "okay";
Nicolas Ferre9e65adb2015-03-31 11:01:12 +0200122
123 ethernet-phy@7 {
124 reg = <0x7>;
125 };
Nicolas Ferreb7c2b612014-02-04 15:05:55 +0100126 };
127
Nicolas Ferre0da40f32014-04-24 17:34:14 +0200128 pwm0: pwm@f002c000 {
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinctrl_pwm0_pwmh0_0 &pinctrl_pwm0_pwmh1_0>;
131 status = "okay";
132 };
133
Nicolas Ferreb7c2b612014-02-04 15:05:55 +0100134 usart0: serial@f001c000 {
135 status = "okay";
136 };
137
138 usart1: serial@f0020000 {
139 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
140 status = "okay";
141 };
142
143 uart0: serial@f0024000 {
144 status = "okay";
145 };
146
147 mmc1: mmc@f8000000 {
148 pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
149 status = "okay";
150 slot@0 {
151 reg = <0>;
152 bus-width = <4>;
153 cd-gpios = <&pioE 1 GPIO_ACTIVE_HIGH>;
154 };
155 };
156
157 spi1: spi@f8008000 {
Bo Shend44db492014-04-01 15:12:43 +0800158 cs-gpios = <&pioC 25 0>;
Nicolas Ferreb7c2b612014-02-04 15:05:55 +0100159 status = "okay";
160 };
161
162 adc0: adc@f8018000 {
163 pinctrl-0 = <
164 &pinctrl_adc0_adtrg
165 &pinctrl_adc0_ad0
166 &pinctrl_adc0_ad1
167 &pinctrl_adc0_ad2
168 &pinctrl_adc0_ad3
169 &pinctrl_adc0_ad4
170 &pinctrl_adc0_ad5
171 &pinctrl_adc0_ad6
172 &pinctrl_adc0_ad7
173 &pinctrl_adc0_ad8
174 &pinctrl_adc0_ad9
175 >;
176 status = "okay";
177 };
178
179 i2c2: i2c@f801c000 {
180 dmas = <0>, <0>; /* Do not use DMA for i2c2 */
Nicolas Ferrea3b8a7c2014-03-27 11:44:11 +0100181 pinctrl-0 = <&pinctrl_i2c2_pu>;
Nicolas Ferreb7c2b612014-02-04 15:05:55 +0100182 status = "okay";
183 };
184
185 macb1: ethernet@f802c000 {
186 phy-mode = "rmii";
Nicolas Ferre98b80982015-03-31 10:56:10 +0200187 #address-cells = <1>;
188 #size-cells = <0>;
Nicolas Ferreb7c2b612014-02-04 15:05:55 +0100189 status = "okay";
Nicolas Ferre98b80982015-03-31 10:56:10 +0200190
191 ethernet-phy@1 {
192 reg = <0x1>;
193 };
Nicolas Ferreb7c2b612014-02-04 15:05:55 +0100194 };
195
196 dbgu: serial@ffffee00 {
197 status = "okay";
198 };
199
200 pinctrl@fffff200 {
201 board {
Nicolas Ferrea3b8a7c2014-03-27 11:44:11 +0100202 pinctrl_i2c0_pu: i2c0_pu {
203 atmel,pins =
204 <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
205 <AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
206 };
207
208 pinctrl_i2c2_pu: i2c2_pu {
209 atmel,pins =
210 <AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
211 <AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
212 };
213
Wenyou Yang6d39bb02014-08-13 12:58:21 +0800214 pinctrl_key_gpio: key_gpio_0 {
215 atmel,pins =
216 <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
217 };
218
Nicolas Ferreb7c2b612014-02-04 15:05:55 +0100219 pinctrl_mmc0_cd: mmc0_cd {
220 atmel,pins =
221 <AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
222 };
223
224 pinctrl_mmc1_cd: mmc1_cd {
225 atmel,pins =
226 <AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
227 };
228
229 pinctrl_usba_vbus: usba_vbus {
230 atmel,pins =
231 <AT91_PIOE 9 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PE9, conflicts with A9 */
232 };
233 };
234 };
Nicolas Ferreb7c2b612014-02-04 15:05:55 +0100235 };
236
237 nand0: nand@60000000 {
238 nand-bus-width = <8>;
239 nand-ecc-mode = "hw";
240 atmel,has-pmecc;
241 atmel,pmecc-cap = <4>;
242 atmel,pmecc-sector-size = <512>;
243 nand-on-flash-bbt;
244 status = "okay";
245
246 at91bootstrap@0 {
247 label = "at91bootstrap";
248 reg = <0x0 0x40000>;
249 };
250
251 bootloader@40000 {
252 label = "bootloader";
253 reg = <0x40000 0x80000>;
254 };
255
256 bootloaderenv@c0000 {
257 label = "bootloader env";
258 reg = <0xc0000 0xc0000>;
259 };
260
261 dtb@180000 {
262 label = "device tree";
263 reg = <0x180000 0x80000>;
264 };
265
266 kernel@200000 {
267 label = "kernel";
268 reg = <0x200000 0x600000>;
269 };
270
271 rootfs@800000 {
272 label = "rootfs";
273 reg = <0x800000 0x0f800000>;
274 };
275 };
276
277 usb0: gadget@00500000 {
278 atmel,vbus-gpio = <&pioE 9 GPIO_ACTIVE_HIGH>; /* PE9, conflicts with A9 */
279 pinctrl-names = "default";
280 pinctrl-0 = <&pinctrl_usba_vbus>;
281 status = "okay";
282 };
283
284 usb1: ohci@00600000 {
285 num-ports = <3>;
286 atmel,vbus-gpio = <0
287 &pioE 3 GPIO_ACTIVE_LOW
288 &pioE 4 GPIO_ACTIVE_LOW
289 >;
290 status = "okay";
291 };
292
293 usb2: ehci@00700000 {
294 status = "okay";
295 };
296 };
297
298 gpio_keys {
299 compatible = "gpio-keys";
300
Wenyou Yang6d39bb02014-08-13 12:58:21 +0800301 pinctrl-names = "default";
302 pinctrl-0 = <&pinctrl_key_gpio>;
303
Nicolas Ferreb7c2b612014-02-04 15:05:55 +0100304 bp3 {
305 label = "PB_USER";
306 gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
307 linux,code = <0x104>;
308 gpio-key,wakeup;
309 };
310 };
311
312 leds {
313 compatible = "gpio-leds";
314
315 d2 {
316 label = "d2";
317 gpios = <&pioE 23 GPIO_ACTIVE_LOW>; /* PE23, conflicts with A23, CTS2 */
318 linux,default-trigger = "heartbeat";
319 };
320
321 d3 {
322 label = "d3";
323 gpios = <&pioE 24 GPIO_ACTIVE_HIGH>;
324 };
325 };
326};