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