blob: 01326a1ee03472250d4e2367e974b9064b362f4c [file] [log] [blame]
Wenyou Yang86ba2212016-07-25 17:46:17 +08001/dts-v1/;
2#include "sama5d2.dtsi"
3#include "sama5d2-pinfunc.h"
4
5/ {
6 model = "Atmel SAMA5D2 Xplained";
7 compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5";
8
9 chosen {
Wenyou Yang035acb22017-03-23 14:26:23 +080010 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +080011 stdout-path = &uart1;
12 };
13
14 ahb {
15 usb1: ohci@00400000 {
16 num-ports = <3>;
17 atmel,vbus-gpio = <&pioA 42 0>;
18 pinctrl-names = "default";
19 pinctrl-0 = <&pinctrl_usb_default>;
20 status = "okay";
21 };
22
23 usb2: ehci@00500000 {
24 status = "okay";
25 };
26
27 sdmmc0: sdio-host@a0000000 {
28 bus-width = <8>;
29 pinctrl-names = "default";
30 pinctrl-0 = <&pinctrl_sdmmc0_cmd_dat_default &pinctrl_sdmmc0_ck_cd_default>;
31 status = "okay";
Wenyou Yang035acb22017-03-23 14:26:23 +080032 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +080033 };
34
35 sdmmc1: sdio-host@b0000000 {
36 bus-width = <4>;
37 pinctrl-names = "default";
38 pinctrl-0 = <&pinctrl_sdmmc1_cmd_dat_default &pinctrl_sdmmc1_ck_cd_default>;
39 status = "okay"; /* conflict with qspi0 */
Wenyou Yang035acb22017-03-23 14:26:23 +080040 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +080041 };
42
43 apb {
Wenyou Yang3ec18a62017-09-18 15:25:57 +080044 hlcdc: hlcdc@f0000000 {
45 atmel,vl-bpix = <4>;
46 atmel,guard-time = <1>;
47 pinctrl-names = "default";
48 pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_pwm &pinctrl_lcd_rgb666>;
49 status = "okay";
50 u-boot,dm-pre-reloc;
51
52 display-timings {
53 u-boot,dm-pre-reloc;
54 480x272 {
55 clock-frequency = <9000000>;
56 hactive = <480>;
57 vactive = <272>;
58 hsync-len = <41>;
59 hfront-porch = <2>;
60 hback-porch = <2>;
61 vfront-porch = <2>;
62 vback-porch = <2>;
63 vsync-len = <11>;
64 u-boot,dm-pre-reloc;
65 };
66 };
67 };
68
Wenyou Yang86ba2212016-07-25 17:46:17 +080069 qspi0: spi@f0020000 {
70 status = "okay";
71
72 flash@0 {
73 compatible = "atmel,sama5d2-qspi-flash";
74 reg = <0>;
75 #address-cells = <1>;
76 #size-cells = <1>;
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_qspi0_default>;
79 spi-max-frequency = <83000000>;
80
81 partition@00000000 {
82 label = "boot";
83 reg = <0x00000000 0x00c00000>;
84 };
85
86 partition@00c00000 {
87 label = "rootfs";
88 reg = <0x00c00000 0x00000000>;
89 };
90 };
91 };
92
93 spi0: spi@f8000000 {
94 cs-gpios = <&pioA 17 0>, <0>, <0>, <0>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&pinctrl_spi0_default>;
97 status = "okay";
Wenyou Yang035acb22017-03-23 14:26:23 +080098 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +080099
100 spi_flash@0 {
101 compatible = "spi-flash";
102 reg = <0>;
103 spi-max-frequency = <50000000>;
Wenyou Yang035acb22017-03-23 14:26:23 +0800104 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800105 };
106 };
107
108 macb0: ethernet@f8008000 {
109 pinctrl-names = "default";
110 pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>;
111 phy-mode = "rmii";
112 status = "okay";
113
114 ethernet-phy@1 {
115 reg = <0x1>;
116 };
117 };
118
119 uart1: serial@f8020000 {
120 pinctrl-names = "default";
121 pinctrl-0 = <&pinctrl_uart1_default>;
122 status = "okay";
Wenyou Yang035acb22017-03-23 14:26:23 +0800123 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800124 };
125
126 i2c1: i2c@fc028000 {
127 pinctrl-names = "default";
128 pinctrl-0 = <&pinctrl_i2c1_default>;
129 status = "okay";
Wenyou Yanga1e24ec2017-09-01 16:26:17 +0800130
131 i2c_eeprom: i2c_eeprom@5c {
132 compatible = "atmel,24mac402";
133 reg = <0x5c>;
134 };
Wenyou Yang86ba2212016-07-25 17:46:17 +0800135 };
136
137 pioA: gpio@fc038000 {
138 pinctrl {
139 pinctrl_i2c1_default: i2c1_default {
140 pinmux = <PIN_PD4__TWD1>,
141 <PIN_PD5__TWCK1>;
142 bias-disable;
143 };
144
Wenyou Yang3ec18a62017-09-18 15:25:57 +0800145 pinctrl_lcd_base: pinctrl_lcd_base {
146 pinmux = <PIN_PC30__LCDVSYNC>,
147 <PIN_PC31__LCDHSYNC>,
148 <PIN_PD1__LCDDEN>,
149 <PIN_PD0__LCDPCK>;
150 bias-disable;
151 };
152
153 pinctrl_lcd_pwm: pinctrl_lcd_pwm {
154 pinmux = <PIN_PC28__LCDPWM>;
155 bias-disable;
156 };
157
158 pinctrl_lcd_rgb666: pinctrl_lcd_rgb666 {
159 pinmux = <PIN_PC10__LCDDAT2>,
160 <PIN_PC11__LCDDAT3>,
161 <PIN_PC12__LCDDAT4>,
162 <PIN_PC13__LCDDAT5>,
163 <PIN_PC14__LCDDAT6>,
164 <PIN_PC15__LCDDAT7>,
165 <PIN_PC16__LCDDAT10>,
166 <PIN_PC17__LCDDAT11>,
167 <PIN_PC18__LCDDAT12>,
168 <PIN_PC19__LCDDAT13>,
169 <PIN_PC20__LCDDAT14>,
170 <PIN_PC21__LCDDAT15>,
171 <PIN_PC22__LCDDAT18>,
172 <PIN_PC23__LCDDAT19>,
173 <PIN_PC24__LCDDAT20>,
174 <PIN_PC25__LCDDAT21>,
175 <PIN_PC26__LCDDAT22>,
176 <PIN_PC27__LCDDAT23>;
177 bias-disable;
178 };
179
Wenyou Yang86ba2212016-07-25 17:46:17 +0800180 pinctrl_macb0_phy_irq: macb0_phy_irq {
181 pinmux = <PIN_PC9__GPIO>;
182 bias-disable;
183 };
184
185 pinctrl_macb0_rmii: macb0_rmii {
186 pinmux = <PIN_PB14__GTXCK>,
187 <PIN_PB15__GTXEN>,
188 <PIN_PB16__GRXDV>,
189 <PIN_PB17__GRXER>,
190 <PIN_PB18__GRX0>,
191 <PIN_PB19__GRX1>,
192 <PIN_PB20__GTX0>,
193 <PIN_PB21__GTX1>,
194 <PIN_PB22__GMDC>,
195 <PIN_PB23__GMDIO>;
196 bias-disable;
197 };
198
199 pinctrl_qspi0_default: qspi0_default {
200 pinmux = <PIN_PA22__QSPI0_SCK>,
201 <PIN_PA23__QSPI0_CS>,
202 <PIN_PA24__QSPI0_IO0>,
203 <PIN_PA25__QSPI0_IO1>,
204 <PIN_PA26__QSPI0_IO2>,
205 <PIN_PA27__QSPI0_IO3>;
206 bias-disable;
207 };
208
209 pinctrl_sdmmc0_cmd_dat_default: sdmmc0_cmd_dat_default {
210 pinmux = <PIN_PA1__SDMMC0_CMD>,
211 <PIN_PA2__SDMMC0_DAT0>,
212 <PIN_PA3__SDMMC0_DAT1>,
213 <PIN_PA4__SDMMC0_DAT2>,
214 <PIN_PA5__SDMMC0_DAT3>,
215 <PIN_PA6__SDMMC0_DAT4>,
216 <PIN_PA7__SDMMC0_DAT5>,
217 <PIN_PA8__SDMMC0_DAT6>,
218 <PIN_PA9__SDMMC0_DAT7>;
219 bias-pull-up;
Wenyou Yang035acb22017-03-23 14:26:23 +0800220 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800221 };
222
223 pinctrl_sdmmc0_ck_cd_default: sdmmc0_ck_cd_default {
224 pinmux = <PIN_PA0__SDMMC0_CK>,
225 <PIN_PA10__SDMMC0_RSTN>,
226 <PIN_PA11__SDMMC0_VDDSEL>,
227 <PIN_PA13__SDMMC0_CD>;
228 bias-disable;
Wenyou Yang035acb22017-03-23 14:26:23 +0800229 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800230 };
231
232 pinctrl_sdmmc1_cmd_dat_default: sdmmc1_cmd_dat_default {
233 pinmux = <PIN_PA28__SDMMC1_CMD>,
234 <PIN_PA18__SDMMC1_DAT0>,
235 <PIN_PA19__SDMMC1_DAT1>,
236 <PIN_PA20__SDMMC1_DAT2>,
237 <PIN_PA21__SDMMC1_DAT3>;
238 bias-pull-up;
Wenyou Yang035acb22017-03-23 14:26:23 +0800239 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800240 };
241
242 pinctrl_sdmmc1_ck_cd_default: sdmmc1_ck_cd_default {
243 pinmux = <PIN_PA22__SDMMC1_CK>,
244 <PIN_PA30__SDMMC1_CD>;
245 bias-disable;
Wenyou Yang035acb22017-03-23 14:26:23 +0800246 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800247 };
248
249 pinctrl_spi0_default: spi0_default {
250 pinmux = <PIN_PA14__SPI0_SPCK>,
251 <PIN_PA15__SPI0_MOSI>,
252 <PIN_PA16__SPI0_MISO>;
253 bias-disable;
Wenyou Yang035acb22017-03-23 14:26:23 +0800254 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800255 };
256
257 pinctrl_uart1_default: uart1_default {
258 pinmux = <PIN_PD2__URXD1>,
259 <PIN_PD3__UTXD1>;
260 bias-disable;
Wenyou Yang035acb22017-03-23 14:26:23 +0800261 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800262 };
263
264 pinctrl_usb_default: usb_default {
265 pinmux = <PIN_PB10__GPIO>;
266 bias-disable;
267 };
268
269 pinctrl_usba_vbus: usba_vbus {
270 pinmux = <PIN_PA31__GPIO>;
271 bias-disable;
272 };
273 };
274 };
275 };
276 };
277};