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