blob: f1a11193fba2d49a1a0c34486222a73bb2c27946 [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
Boris BREZILLON58a5c3d2014-04-22 15:12:36 +020024 slow_xtal {
25 clock-frequency = <32768>;
26 };
27
28 main_xtal {
29 clock-frequency = <12000000>;
30 };
31
Nicolas Ferreb7c2b612014-02-04 15:05:55 +010032 ahb {
33 apb {
34 mmc0: mmc@f0000000 {
35 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>;
36 status = "okay";
37 slot@0 {
38 reg = <0>;
39 bus-width = <8>;
40 cd-gpios = <&pioE 0 GPIO_ACTIVE_LOW>;
41 };
42 };
43
44 spi0: spi@f0004000 {
45 cs-gpios = <&pioD 13 0>;
46 status = "okay";
47 };
48
49 can0: can@f000c000 {
50 status = "okay";
51 };
52
53 i2c0: i2c@f0014000 {
54 status = "okay";
55 };
56
57 i2c1: i2c@f0018000 {
58 status = "okay";
59 };
60
61 macb0: ethernet@f0028000 {
62 phy-mode = "rgmii";
63 status = "okay";
64 };
65
66 usart0: serial@f001c000 {
67 status = "okay";
68 };
69
70 usart1: serial@f0020000 {
71 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
72 status = "okay";
73 };
74
75 uart0: serial@f0024000 {
76 status = "okay";
77 };
78
79 mmc1: mmc@f8000000 {
80 pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
81 status = "okay";
82 slot@0 {
83 reg = <0>;
84 bus-width = <4>;
85 cd-gpios = <&pioE 1 GPIO_ACTIVE_HIGH>;
86 };
87 };
88
89 spi1: spi@f8008000 {
90 cs-gpios = <&pioC 25 0>, <0>, <0>, <&pioD 16 0>;
91 status = "okay";
92 };
93
94 adc0: adc@f8018000 {
95 pinctrl-0 = <
96 &pinctrl_adc0_adtrg
97 &pinctrl_adc0_ad0
98 &pinctrl_adc0_ad1
99 &pinctrl_adc0_ad2
100 &pinctrl_adc0_ad3
101 &pinctrl_adc0_ad4
102 &pinctrl_adc0_ad5
103 &pinctrl_adc0_ad6
104 &pinctrl_adc0_ad7
105 &pinctrl_adc0_ad8
106 &pinctrl_adc0_ad9
107 >;
108 status = "okay";
109 };
110
111 i2c2: i2c@f801c000 {
112 dmas = <0>, <0>; /* Do not use DMA for i2c2 */
113 status = "okay";
114 };
115
116 macb1: ethernet@f802c000 {
117 phy-mode = "rmii";
118 status = "okay";
119 };
120
121 dbgu: serial@ffffee00 {
122 status = "okay";
123 };
124
125 pinctrl@fffff200 {
126 board {
127 pinctrl_mmc0_cd: mmc0_cd {
128 atmel,pins =
129 <AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
130 };
131
132 pinctrl_mmc1_cd: mmc1_cd {
133 atmel,pins =
134 <AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
135 };
136
137 pinctrl_usba_vbus: usba_vbus {
138 atmel,pins =
139 <AT91_PIOE 9 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PE9, conflicts with A9 */
140 };
141 };
142 };
143
144 pmc: pmc@fffffc00 {
145 main: mainck {
146 clock-frequency = <12000000>;
147 };
148 };
149 };
150
151 nand0: nand@60000000 {
152 nand-bus-width = <8>;
153 nand-ecc-mode = "hw";
154 atmel,has-pmecc;
155 atmel,pmecc-cap = <4>;
156 atmel,pmecc-sector-size = <512>;
157 nand-on-flash-bbt;
158 status = "okay";
159
160 at91bootstrap@0 {
161 label = "at91bootstrap";
162 reg = <0x0 0x40000>;
163 };
164
165 bootloader@40000 {
166 label = "bootloader";
167 reg = <0x40000 0x80000>;
168 };
169
170 bootloaderenv@c0000 {
171 label = "bootloader env";
172 reg = <0xc0000 0xc0000>;
173 };
174
175 dtb@180000 {
176 label = "device tree";
177 reg = <0x180000 0x80000>;
178 };
179
180 kernel@200000 {
181 label = "kernel";
182 reg = <0x200000 0x600000>;
183 };
184
185 rootfs@800000 {
186 label = "rootfs";
187 reg = <0x800000 0x0f800000>;
188 };
189 };
190
191 usb0: gadget@00500000 {
192 atmel,vbus-gpio = <&pioE 9 GPIO_ACTIVE_HIGH>; /* PE9, conflicts with A9 */
193 pinctrl-names = "default";
194 pinctrl-0 = <&pinctrl_usba_vbus>;
195 status = "okay";
196 };
197
198 usb1: ohci@00600000 {
199 num-ports = <3>;
200 atmel,vbus-gpio = <0
201 &pioE 3 GPIO_ACTIVE_LOW
202 &pioE 4 GPIO_ACTIVE_LOW
203 >;
204 status = "okay";
205 };
206
207 usb2: ehci@00700000 {
208 status = "okay";
209 };
210 };
211
212 gpio_keys {
213 compatible = "gpio-keys";
214
215 bp3 {
216 label = "PB_USER";
217 gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
218 linux,code = <0x104>;
219 gpio-key,wakeup;
220 };
221 };
222
223 leds {
224 compatible = "gpio-leds";
225
226 d2 {
227 label = "d2";
228 gpios = <&pioE 23 GPIO_ACTIVE_LOW>; /* PE23, conflicts with A23, CTS2 */
229 linux,default-trigger = "heartbeat";
230 };
231
232 d3 {
233 label = "d3";
234 gpios = <&pioE 24 GPIO_ACTIVE_HIGH>;
235 };
236 };
237};