blob: b733c4d4ceeb60c264a61392a169f6331e57d377 [file] [log] [blame]
Wenyou Yang86ba2212016-07-25 17:46:17 +08001/dts-v1/;
Eugen Hristev87a31d72021-06-23 16:13:35 +03002#include <dt-bindings/gpio/gpio.h>
Wenyou Yang86ba2212016-07-25 17:46:17 +08003#include "sama5d2.dtsi"
4#include "sama5d2-pinfunc.h"
5
6/ {
7 model = "Atmel SAMA5D2 Xplained";
8 compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5";
9
10 chosen {
Wenyou Yang035acb22017-03-23 14:26:23 +080011 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +080012 stdout-path = &uart1;
13 };
14
Eugen Hristev8ab0bd72018-09-18 10:35:53 +030015 onewire_tm: onewire {
Eugen Hristev87a31d72021-06-23 16:13:35 +030016 gpios = <&pioA PIN_PB0 GPIO_ACTIVE_HIGH>;
Eugen Hristev8ab0bd72018-09-18 10:35:53 +030017 pinctrl-names = "default";
18 pinctrl-0 = <&pinctrl_onewire_tm_default>;
19 status = "okay";
20
21 w1_eeprom: w1_eeprom@0 {
22 compatible = "maxim,ds24b33";
23 status = "okay";
24 };
25 };
26
Wenyou Yang86ba2212016-07-25 17:46:17 +080027 ahb {
28 usb1: ohci@00400000 {
29 num-ports = <3>;
30 atmel,vbus-gpio = <&pioA 42 0>;
31 pinctrl-names = "default";
32 pinctrl-0 = <&pinctrl_usb_default>;
33 status = "okay";
34 };
35
36 usb2: ehci@00500000 {
37 status = "okay";
38 };
39
40 sdmmc0: sdio-host@a0000000 {
41 bus-width = <8>;
42 pinctrl-names = "default";
43 pinctrl-0 = <&pinctrl_sdmmc0_cmd_dat_default &pinctrl_sdmmc0_ck_cd_default>;
44 status = "okay";
Wenyou Yang035acb22017-03-23 14:26:23 +080045 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +080046 };
47
48 sdmmc1: sdio-host@b0000000 {
49 bus-width = <4>;
50 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_sdmmc1_cmd_dat_default &pinctrl_sdmmc1_ck_cd_default>;
52 status = "okay"; /* conflict with qspi0 */
Wenyou Yang035acb22017-03-23 14:26:23 +080053 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +080054 };
55
56 apb {
Wenyou Yang3ec18a62017-09-18 15:25:57 +080057 hlcdc: hlcdc@f0000000 {
58 atmel,vl-bpix = <4>;
59 atmel,guard-time = <1>;
60 pinctrl-names = "default";
61 pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_pwm &pinctrl_lcd_rgb666>;
62 status = "okay";
63 u-boot,dm-pre-reloc;
64
65 display-timings {
66 u-boot,dm-pre-reloc;
67 480x272 {
68 clock-frequency = <9000000>;
69 hactive = <480>;
70 vactive = <272>;
71 hsync-len = <41>;
72 hfront-porch = <2>;
73 hback-porch = <2>;
74 vfront-porch = <2>;
75 vback-porch = <2>;
76 vsync-len = <11>;
77 u-boot,dm-pre-reloc;
78 };
79 };
80 };
81
Wenyou Yang86ba2212016-07-25 17:46:17 +080082 qspi0: spi@f0020000 {
Cyrille Pitchen4122f6b2019-06-18 08:51:58 +000083 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_qspi0_sck_cs_default &pinctrl_qspi0_dat_default>;
Wenyou Yang86ba2212016-07-25 17:46:17 +080085 status = "okay";
Cyrille Pitchen4122f6b2019-06-18 08:51:58 +000086 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +080087
88 flash@0 {
Cyrille Pitchen4122f6b2019-06-18 08:51:58 +000089 compatible = "jedec,spi-nor";
Wenyou Yang86ba2212016-07-25 17:46:17 +080090 reg = <0>;
Wenyou Yang86ba2212016-07-25 17:46:17 +080091 spi-max-frequency = <83000000>;
Cyrille Pitchen4122f6b2019-06-18 08:51:58 +000092 spi-rx-bus-width = <4>;
93 spi-tx-bus-width = <4>;
94 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +080095 };
96 };
97
98 spi0: spi@f8000000 {
99 cs-gpios = <&pioA 17 0>, <0>, <0>, <0>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&pinctrl_spi0_default>;
102 status = "okay";
Wenyou Yang035acb22017-03-23 14:26:23 +0800103 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800104
105 spi_flash@0 {
Neil Armstronga009fa72019-02-10 10:16:20 +0000106 compatible = "jedec,spi-nor";
Wenyou Yang86ba2212016-07-25 17:46:17 +0800107 reg = <0>;
108 spi-max-frequency = <50000000>;
Wenyou Yang035acb22017-03-23 14:26:23 +0800109 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800110 };
111 };
112
113 macb0: ethernet@f8008000 {
114 pinctrl-names = "default";
115 pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>;
116 phy-mode = "rmii";
117 status = "okay";
118
119 ethernet-phy@1 {
120 reg = <0x1>;
121 };
122 };
123
124 uart1: serial@f8020000 {
125 pinctrl-names = "default";
126 pinctrl-0 = <&pinctrl_uart1_default>;
127 status = "okay";
Wenyou Yang035acb22017-03-23 14:26:23 +0800128 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800129 };
130
131 i2c1: i2c@fc028000 {
132 pinctrl-names = "default";
133 pinctrl-0 = <&pinctrl_i2c1_default>;
134 status = "okay";
Wenyou Yanga1e24ec2017-09-01 16:26:17 +0800135
136 i2c_eeprom: i2c_eeprom@5c {
137 compatible = "atmel,24mac402";
138 reg = <0x5c>;
139 };
Wenyou Yang86ba2212016-07-25 17:46:17 +0800140 };
141
142 pioA: gpio@fc038000 {
143 pinctrl {
144 pinctrl_i2c1_default: i2c1_default {
145 pinmux = <PIN_PD4__TWD1>,
146 <PIN_PD5__TWCK1>;
147 bias-disable;
148 };
149
Wenyou Yang3ec18a62017-09-18 15:25:57 +0800150 pinctrl_lcd_base: pinctrl_lcd_base {
151 pinmux = <PIN_PC30__LCDVSYNC>,
152 <PIN_PC31__LCDHSYNC>,
153 <PIN_PD1__LCDDEN>,
154 <PIN_PD0__LCDPCK>;
155 bias-disable;
156 };
157
158 pinctrl_lcd_pwm: pinctrl_lcd_pwm {
159 pinmux = <PIN_PC28__LCDPWM>;
160 bias-disable;
161 };
162
163 pinctrl_lcd_rgb666: pinctrl_lcd_rgb666 {
164 pinmux = <PIN_PC10__LCDDAT2>,
165 <PIN_PC11__LCDDAT3>,
166 <PIN_PC12__LCDDAT4>,
167 <PIN_PC13__LCDDAT5>,
168 <PIN_PC14__LCDDAT6>,
169 <PIN_PC15__LCDDAT7>,
170 <PIN_PC16__LCDDAT10>,
171 <PIN_PC17__LCDDAT11>,
172 <PIN_PC18__LCDDAT12>,
173 <PIN_PC19__LCDDAT13>,
174 <PIN_PC20__LCDDAT14>,
175 <PIN_PC21__LCDDAT15>,
176 <PIN_PC22__LCDDAT18>,
177 <PIN_PC23__LCDDAT19>,
178 <PIN_PC24__LCDDAT20>,
179 <PIN_PC25__LCDDAT21>,
180 <PIN_PC26__LCDDAT22>,
181 <PIN_PC27__LCDDAT23>;
182 bias-disable;
183 };
184
Wenyou Yang86ba2212016-07-25 17:46:17 +0800185 pinctrl_macb0_phy_irq: macb0_phy_irq {
186 pinmux = <PIN_PC9__GPIO>;
187 bias-disable;
188 };
189
190 pinctrl_macb0_rmii: macb0_rmii {
191 pinmux = <PIN_PB14__GTXCK>,
192 <PIN_PB15__GTXEN>,
193 <PIN_PB16__GRXDV>,
194 <PIN_PB17__GRXER>,
195 <PIN_PB18__GRX0>,
196 <PIN_PB19__GRX1>,
197 <PIN_PB20__GTX0>,
198 <PIN_PB21__GTX1>,
199 <PIN_PB22__GMDC>,
200 <PIN_PB23__GMDIO>;
201 bias-disable;
202 };
203
Cyrille Pitchen4122f6b2019-06-18 08:51:58 +0000204 pinctrl_qspi0_sck_cs_default: qspi0_sck_cs_default {
Wenyou Yang86ba2212016-07-25 17:46:17 +0800205 pinmux = <PIN_PA22__QSPI0_SCK>,
Cyrille Pitchen4122f6b2019-06-18 08:51:58 +0000206 <PIN_PA23__QSPI0_CS>;
207 bias-disable;
208 u-boot,dm-pre-reloc;
209 };
210
211 pinctrl_qspi0_dat_default: qspi0_dat_default {
212 pinmux = <PIN_PA24__QSPI0_IO0>,
Wenyou Yang86ba2212016-07-25 17:46:17 +0800213 <PIN_PA25__QSPI0_IO1>,
214 <PIN_PA26__QSPI0_IO2>,
215 <PIN_PA27__QSPI0_IO3>;
Cyrille Pitchen4122f6b2019-06-18 08:51:58 +0000216 bias-pull-up;
217 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800218 };
219
220 pinctrl_sdmmc0_cmd_dat_default: sdmmc0_cmd_dat_default {
221 pinmux = <PIN_PA1__SDMMC0_CMD>,
222 <PIN_PA2__SDMMC0_DAT0>,
223 <PIN_PA3__SDMMC0_DAT1>,
224 <PIN_PA4__SDMMC0_DAT2>,
225 <PIN_PA5__SDMMC0_DAT3>,
226 <PIN_PA6__SDMMC0_DAT4>,
227 <PIN_PA7__SDMMC0_DAT5>,
228 <PIN_PA8__SDMMC0_DAT6>,
229 <PIN_PA9__SDMMC0_DAT7>;
230 bias-pull-up;
Wenyou Yang035acb22017-03-23 14:26:23 +0800231 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800232 };
233
234 pinctrl_sdmmc0_ck_cd_default: sdmmc0_ck_cd_default {
235 pinmux = <PIN_PA0__SDMMC0_CK>,
236 <PIN_PA10__SDMMC0_RSTN>,
237 <PIN_PA11__SDMMC0_VDDSEL>,
238 <PIN_PA13__SDMMC0_CD>;
239 bias-disable;
Wenyou Yang035acb22017-03-23 14:26:23 +0800240 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800241 };
242
243 pinctrl_sdmmc1_cmd_dat_default: sdmmc1_cmd_dat_default {
244 pinmux = <PIN_PA28__SDMMC1_CMD>,
245 <PIN_PA18__SDMMC1_DAT0>,
246 <PIN_PA19__SDMMC1_DAT1>,
247 <PIN_PA20__SDMMC1_DAT2>,
248 <PIN_PA21__SDMMC1_DAT3>;
249 bias-pull-up;
Wenyou Yang035acb22017-03-23 14:26:23 +0800250 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800251 };
252
253 pinctrl_sdmmc1_ck_cd_default: sdmmc1_ck_cd_default {
254 pinmux = <PIN_PA22__SDMMC1_CK>,
255 <PIN_PA30__SDMMC1_CD>;
256 bias-disable;
Wenyou Yang035acb22017-03-23 14:26:23 +0800257 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800258 };
259
260 pinctrl_spi0_default: spi0_default {
261 pinmux = <PIN_PA14__SPI0_SPCK>,
262 <PIN_PA15__SPI0_MOSI>,
263 <PIN_PA16__SPI0_MISO>;
264 bias-disable;
Wenyou Yang035acb22017-03-23 14:26:23 +0800265 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800266 };
267
268 pinctrl_uart1_default: uart1_default {
269 pinmux = <PIN_PD2__URXD1>,
270 <PIN_PD3__UTXD1>;
271 bias-disable;
Wenyou Yang035acb22017-03-23 14:26:23 +0800272 u-boot,dm-pre-reloc;
Wenyou Yang86ba2212016-07-25 17:46:17 +0800273 };
274
275 pinctrl_usb_default: usb_default {
276 pinmux = <PIN_PB10__GPIO>;
277 bias-disable;
278 };
279
280 pinctrl_usba_vbus: usba_vbus {
281 pinmux = <PIN_PA31__GPIO>;
282 bias-disable;
283 };
Eugen Hristev8ab0bd72018-09-18 10:35:53 +0300284
285 pinctrl_onewire_tm_default: onewire_tm_default {
286 pinmux = <PIN_PB0__GPIO>;
287 bias-pull-up;
288 };
Wenyou Yang86ba2212016-07-25 17:46:17 +0800289 };
290 };
291 };
292 };
293};