1f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * at91-sam9x60_curiosity.dts - Device Tree file for Microchip SAM9X60 Curiosity board
4f126890aSEmmanuel Vadot *
5f126890aSEmmanuel Vadot * Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries
6f126890aSEmmanuel Vadot *
7f126890aSEmmanuel Vadot * Author: Durai Manickam KR <durai.manickamkr@microchip.com>
8f126890aSEmmanuel Vadot */
9f126890aSEmmanuel Vadot/dts-v1/;
10f126890aSEmmanuel Vadot#include "sam9x60.dtsi"
11f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadot/ {
14f126890aSEmmanuel Vadot	model = "Microchip SAM9X60 Curiosity";
15f126890aSEmmanuel Vadot	compatible = "microchip,sam9x60-curiosity", "microchip,sam9x60", "atmel,at91sam9";
16f126890aSEmmanuel Vadot
17f126890aSEmmanuel Vadot	aliases {
18f126890aSEmmanuel Vadot		i2c0 = &i2c0;
19f126890aSEmmanuel Vadot		i2c1 = &i2c6;
20f126890aSEmmanuel Vadot		serial2 = &uart7;
21f126890aSEmmanuel Vadot	};
22f126890aSEmmanuel Vadot
23f126890aSEmmanuel Vadot	chosen {
24f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
25f126890aSEmmanuel Vadot	};
26f126890aSEmmanuel Vadot
27f126890aSEmmanuel Vadot	memory@20000000 {
28f126890aSEmmanuel Vadot		reg = <0x20000000 0x8000000>;
29f126890aSEmmanuel Vadot	};
30f126890aSEmmanuel Vadot
31f126890aSEmmanuel Vadot	clocks {
32f126890aSEmmanuel Vadot		slow_xtal {
33f126890aSEmmanuel Vadot			clock-frequency = <32768>;
34f126890aSEmmanuel Vadot		};
35f126890aSEmmanuel Vadot
36f126890aSEmmanuel Vadot		main_xtal {
37f126890aSEmmanuel Vadot			clock-frequency = <24000000>;
38f126890aSEmmanuel Vadot		};
39f126890aSEmmanuel Vadot	};
40f126890aSEmmanuel Vadot
41f126890aSEmmanuel Vadot	gpio-keys {
42f126890aSEmmanuel Vadot		compatible = "gpio-keys";
43f126890aSEmmanuel Vadot		pinctrl-names = "default";
44f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_key_gpio_default>;
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel Vadot		button-user {
47f126890aSEmmanuel Vadot			label = "PB_USER";
48f126890aSEmmanuel Vadot			gpios = <&pioA 29 GPIO_ACTIVE_LOW>;
49f126890aSEmmanuel Vadot			linux,code = <KEY_PROG1>;
50f126890aSEmmanuel Vadot			wakeup-source;
51f126890aSEmmanuel Vadot		};
52f126890aSEmmanuel Vadot	};
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel Vadot	leds {
55f126890aSEmmanuel Vadot		compatible = "gpio-leds";
56f126890aSEmmanuel Vadot		pinctrl-names = "default";
57f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_gpio_leds>;
58f126890aSEmmanuel Vadot
59f126890aSEmmanuel Vadot		led-red {
60f126890aSEmmanuel Vadot			label = "red";
61f126890aSEmmanuel Vadot			gpios = <&pioD 17 GPIO_ACTIVE_HIGH>;
62f126890aSEmmanuel Vadot		};
63f126890aSEmmanuel Vadot
64f126890aSEmmanuel Vadot		led-green {
65f126890aSEmmanuel Vadot			label = "green";
66f126890aSEmmanuel Vadot			gpios = <&pioD 19 GPIO_ACTIVE_HIGH>;
67f126890aSEmmanuel Vadot		};
68f126890aSEmmanuel Vadot
69f126890aSEmmanuel Vadot		led-blue {
70f126890aSEmmanuel Vadot			label = "blue";
71f126890aSEmmanuel Vadot			gpios = <&pioD 21 GPIO_ACTIVE_HIGH>;
72f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
73f126890aSEmmanuel Vadot		};
74f126890aSEmmanuel Vadot	};
75f126890aSEmmanuel Vadot
76f126890aSEmmanuel Vadot
77f126890aSEmmanuel Vadot	vdd_1v8: regulator-0 {
78f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
79f126890aSEmmanuel Vadot		regulator-always-on;
80f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
81f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
82f126890aSEmmanuel Vadot		regulator-name = "VDD_1V8";
83f126890aSEmmanuel Vadot	};
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot	vdd_1v15: regulator-1 {
86f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
87f126890aSEmmanuel Vadot		regulator-always-on;
88f126890aSEmmanuel Vadot		regulator-max-microvolt = <1150000>;
89f126890aSEmmanuel Vadot		regulator-min-microvolt = <1150000>;
90f126890aSEmmanuel Vadot		regulator-name = "VDD_1V15";
91f126890aSEmmanuel Vadot	};
92f126890aSEmmanuel Vadot
93f126890aSEmmanuel Vadot	vdd1_3v3: regulator-2 {
94f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
95f126890aSEmmanuel Vadot		regulator-always-on;
96f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
97f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
98f126890aSEmmanuel Vadot		regulator-name = "VDD1_3V3";
99f126890aSEmmanuel Vadot	};
100f126890aSEmmanuel Vadot};
101f126890aSEmmanuel Vadot
102f126890aSEmmanuel Vadot&adc {
103f126890aSEmmanuel Vadot	vddana-supply = <&vdd1_3v3>;
104f126890aSEmmanuel Vadot	vref-supply = <&vdd1_3v3>;
105f126890aSEmmanuel Vadot	pinctrl-names = "default";
106f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_adc_default &pinctrl_adtrg_default>;
107f126890aSEmmanuel Vadot	status = "okay";
108f126890aSEmmanuel Vadot};
109f126890aSEmmanuel Vadot
110f126890aSEmmanuel Vadot&can0 {
111f126890aSEmmanuel Vadot	pinctrl-names = "default";
112f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_can0_rx_tx>;
113f126890aSEmmanuel Vadot	status = "disabled"; /* Conflict with dbgu. */
114f126890aSEmmanuel Vadot};
115f126890aSEmmanuel Vadot
116f126890aSEmmanuel Vadot&can1 {
117f126890aSEmmanuel Vadot	pinctrl-names = "default";
118f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_can1_rx_tx>;
119f126890aSEmmanuel Vadot	status = "okay";
120f126890aSEmmanuel Vadot};
121f126890aSEmmanuel Vadot
122f126890aSEmmanuel Vadot&dbgu {
123f126890aSEmmanuel Vadot	pinctrl-names = "default";
124f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_dbgu>;
125f126890aSEmmanuel Vadot	status = "okay"; /* Conflict with can0. */
126f126890aSEmmanuel Vadot};
127f126890aSEmmanuel Vadot
128f126890aSEmmanuel Vadot&ebi {
129f126890aSEmmanuel Vadot	pinctrl-names = "default";
130f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_ebi_addr_nand &pinctrl_ebi_data_lsb>;
131f126890aSEmmanuel Vadot	status = "okay";
132f126890aSEmmanuel Vadot
133f126890aSEmmanuel Vadot	nand_controller: nand-controller {
134f126890aSEmmanuel Vadot		pinctrl-names = "default";
135f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_nand_oe_we &pinctrl_nand_cs &pinctrl_nand_rb>;
136f126890aSEmmanuel Vadot		status = "okay";
137f126890aSEmmanuel Vadot
138f126890aSEmmanuel Vadot		nand@3 {
139f126890aSEmmanuel Vadot			reg = <0x3 0x0 0x800000>;
140f126890aSEmmanuel Vadot			rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
141f126890aSEmmanuel Vadot			cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
142f126890aSEmmanuel Vadot			nand-bus-width = <8>;
143f126890aSEmmanuel Vadot			nand-ecc-mode = "hw";
144f126890aSEmmanuel Vadot			nand-ecc-strength = <8>;
145f126890aSEmmanuel Vadot			nand-ecc-step-size = <512>;
146f126890aSEmmanuel Vadot			nand-on-flash-bbt;
147f126890aSEmmanuel Vadot			label = "atmel_nand";
148f126890aSEmmanuel Vadot
149f126890aSEmmanuel Vadot			partitions {
150f126890aSEmmanuel Vadot				compatible = "fixed-partitions";
151f126890aSEmmanuel Vadot				#address-cells = <1>;
152f126890aSEmmanuel Vadot				#size-cells = <1>;
153f126890aSEmmanuel Vadot
154f126890aSEmmanuel Vadot				at91bootstrap@0 {
155f126890aSEmmanuel Vadot					label = "at91bootstrap";
156f126890aSEmmanuel Vadot					reg = <0x0 0x40000>;
157f126890aSEmmanuel Vadot				};
158f126890aSEmmanuel Vadot
159f126890aSEmmanuel Vadot				uboot@40000 {
160f126890aSEmmanuel Vadot					label = "u-boot";
161f126890aSEmmanuel Vadot					reg = <0x40000 0xc0000>;
162f126890aSEmmanuel Vadot				};
163f126890aSEmmanuel Vadot
164f126890aSEmmanuel Vadot				ubootenvred@100000 {
165f126890aSEmmanuel Vadot					label = "U-Boot Env Redundant";
166f126890aSEmmanuel Vadot					reg = <0x100000 0x40000>;
167f126890aSEmmanuel Vadot				};
168f126890aSEmmanuel Vadot
169f126890aSEmmanuel Vadot				ubootenv@140000 {
170f126890aSEmmanuel Vadot					label = "U-Boot Env";
171f126890aSEmmanuel Vadot					reg = <0x140000 0x40000>;
172f126890aSEmmanuel Vadot				};
173f126890aSEmmanuel Vadot
174f126890aSEmmanuel Vadot				dtb@180000 {
175f126890aSEmmanuel Vadot					label = "device tree";
176f126890aSEmmanuel Vadot					reg = <0x180000 0x80000>;
177f126890aSEmmanuel Vadot				};
178f126890aSEmmanuel Vadot
179f126890aSEmmanuel Vadot				kernel@200000 {
180f126890aSEmmanuel Vadot					label = "kernel";
181f126890aSEmmanuel Vadot					reg = <0x200000 0x600000>;
182f126890aSEmmanuel Vadot				};
183f126890aSEmmanuel Vadot
184f126890aSEmmanuel Vadot				rootfs@800000 {
185f126890aSEmmanuel Vadot					label = "rootfs";
186f126890aSEmmanuel Vadot					reg = <0x800000 0x1f800000>;
187f126890aSEmmanuel Vadot				};
188f126890aSEmmanuel Vadot			};
189f126890aSEmmanuel Vadot		};
190f126890aSEmmanuel Vadot	};
191f126890aSEmmanuel Vadot};
192f126890aSEmmanuel Vadot
193f126890aSEmmanuel Vadot&flx0 {
194f126890aSEmmanuel Vadot	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
195f126890aSEmmanuel Vadot	status = "okay";
196f126890aSEmmanuel Vadot
197f126890aSEmmanuel Vadot	i2c0: i2c@600 {
198f126890aSEmmanuel Vadot		dmas = <0>, <0>;
199f126890aSEmmanuel Vadot		pinctrl-names = "default";
200f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_flx0_default>;
201f126890aSEmmanuel Vadot		#address-cells = <1>;
202f126890aSEmmanuel Vadot		#size-cells = <0>;
203f126890aSEmmanuel Vadot		i2c-analog-filter;
204f126890aSEmmanuel Vadot		i2c-digital-filter;
205f126890aSEmmanuel Vadot		i2c-digital-filter-width-ns = <35>;
206f126890aSEmmanuel Vadot		status = "okay";
207f126890aSEmmanuel Vadot
208f126890aSEmmanuel Vadot		eeprom@53 {
209f126890aSEmmanuel Vadot			compatible = "atmel,24c02";
210f126890aSEmmanuel Vadot			reg = <0x53>;
211f126890aSEmmanuel Vadot			pagesize = <16>;
212f126890aSEmmanuel Vadot		};
213f126890aSEmmanuel Vadot	};
214f126890aSEmmanuel Vadot};
215f126890aSEmmanuel Vadot
216f126890aSEmmanuel Vadot&flx6 {
217f126890aSEmmanuel Vadot	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
218f126890aSEmmanuel Vadot	status = "okay";
219f126890aSEmmanuel Vadot
220f126890aSEmmanuel Vadot	i2c6: i2c@600 {
221f126890aSEmmanuel Vadot		dmas = <0>, <0>;
222f126890aSEmmanuel Vadot		pinctrl-names = "default";
223f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_flx6_default>;
224f126890aSEmmanuel Vadot		i2c-analog-filter;
225f126890aSEmmanuel Vadot		i2c-digital-filter;
226f126890aSEmmanuel Vadot		i2c-digital-filter-width-ns = <35>;
227f126890aSEmmanuel Vadot		status = "disabled";
228f126890aSEmmanuel Vadot	};
229f126890aSEmmanuel Vadot};
230f126890aSEmmanuel Vadot
231f126890aSEmmanuel Vadot&flx7 {
232f126890aSEmmanuel Vadot	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
233f126890aSEmmanuel Vadot	status = "okay";
234f126890aSEmmanuel Vadot
235f126890aSEmmanuel Vadot	uart7: serial@200 {
236f126890aSEmmanuel Vadot		pinctrl-names = "default";
237f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_flx7_default>;
238f126890aSEmmanuel Vadot		status = "okay";
239f126890aSEmmanuel Vadot	};
240f126890aSEmmanuel Vadot};
241f126890aSEmmanuel Vadot
242f126890aSEmmanuel Vadot&macb0 {
243f126890aSEmmanuel Vadot	phy-mode = "rmii";
244f126890aSEmmanuel Vadot	#address-cells = <1>;
245f126890aSEmmanuel Vadot	#size-cells = <0>;
246f126890aSEmmanuel Vadot	pinctrl-names = "default";
247f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_macb0_rmii>;
248f126890aSEmmanuel Vadot	status = "okay";
249f126890aSEmmanuel Vadot
250f126890aSEmmanuel Vadot	ethernet-phy@0 {
251f126890aSEmmanuel Vadot		reg = <0x0>;
252*8d13bc63SEmmanuel Vadot		interrupt-parent = <&pioB>;
253*8d13bc63SEmmanuel Vadot		interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
254f126890aSEmmanuel Vadot	};
255f126890aSEmmanuel Vadot};
256f126890aSEmmanuel Vadot
257f126890aSEmmanuel Vadot&pinctrl {
258f126890aSEmmanuel Vadot	adc {
259f126890aSEmmanuel Vadot		pinctrl_adc_default: adc-default {
260f126890aSEmmanuel Vadot			atmel,pins = <AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_NONE>;
261f126890aSEmmanuel Vadot		};
262f126890aSEmmanuel Vadot
263f126890aSEmmanuel Vadot		pinctrl_adtrg_default: adtrg-default {
264f126890aSEmmanuel Vadot			atmel,pins = <AT91_PIOB 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
265f126890aSEmmanuel Vadot		};
266f126890aSEmmanuel Vadot	};
267f126890aSEmmanuel Vadot
268f126890aSEmmanuel Vadot	can0 {
269f126890aSEmmanuel Vadot		pinctrl_can0_rx_tx: can0-rx-tx {
270f126890aSEmmanuel Vadot			atmel,pins =
271f126890aSEmmanuel Vadot				<AT91_PIOA 9 AT91_PERIPH_B AT91_PINCTRL_NONE	/* CANRX0 */
272f126890aSEmmanuel Vadot				 AT91_PIOA 10 AT91_PERIPH_B AT91_PINCTRL_NONE	/* CANTX0 */
273f126890aSEmmanuel Vadot				 AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_DOWN>;	/* Enable CAN Transceivers */
274f126890aSEmmanuel Vadot		};
275f126890aSEmmanuel Vadot	};
276f126890aSEmmanuel Vadot
277f126890aSEmmanuel Vadot	can1 {
278f126890aSEmmanuel Vadot		pinctrl_can1_rx_tx: can1-rx-tx {
279f126890aSEmmanuel Vadot			atmel,pins =
280f126890aSEmmanuel Vadot				<AT91_PIOA 6 AT91_PERIPH_B AT91_PINCTRL_NONE	/* CANRX1 */
281f126890aSEmmanuel Vadot				 AT91_PIOA 5 AT91_PERIPH_B AT91_PINCTRL_NONE	/* CANTX1 */
282f126890aSEmmanuel Vadot				 AT91_PIOB 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_DOWN>;	/* Enable CAN Transceivers */
283f126890aSEmmanuel Vadot		};
284f126890aSEmmanuel Vadot	};
285f126890aSEmmanuel Vadot
286f126890aSEmmanuel Vadot	dbgu {
287f126890aSEmmanuel Vadot		pinctrl_dbgu: dbgu-0 {
288f126890aSEmmanuel Vadot			atmel,pins = <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
289f126890aSEmmanuel Vadot				      AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;
290f126890aSEmmanuel Vadot		};
291f126890aSEmmanuel Vadot	};
292f126890aSEmmanuel Vadot
293f126890aSEmmanuel Vadot	ebi {
294f126890aSEmmanuel Vadot		pinctrl_ebi_data_lsb: ebi-data-lsb {
295f126890aSEmmanuel Vadot			atmel,pins =
296f126890aSEmmanuel Vadot				<AT91_PIOD 6 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
297f126890aSEmmanuel Vadot				 AT91_PIOD 7 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
298f126890aSEmmanuel Vadot				 AT91_PIOD 8 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
299f126890aSEmmanuel Vadot				 AT91_PIOD 9 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
300f126890aSEmmanuel Vadot				 AT91_PIOD 10 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
301f126890aSEmmanuel Vadot				 AT91_PIOD 11 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
302f126890aSEmmanuel Vadot				 AT91_PIOD 12 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
303f126890aSEmmanuel Vadot				 AT91_PIOD 13 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
304f126890aSEmmanuel Vadot		};
305f126890aSEmmanuel Vadot
306f126890aSEmmanuel Vadot		pinctrl_ebi_addr_nand: ebi-addr-nand {
307f126890aSEmmanuel Vadot			atmel,pins =
308f126890aSEmmanuel Vadot				<AT91_PIOD 2 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
309f126890aSEmmanuel Vadot				 AT91_PIOD 3 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
310f126890aSEmmanuel Vadot		};
311f126890aSEmmanuel Vadot	};
312f126890aSEmmanuel Vadot
313f126890aSEmmanuel Vadot	flexcom {
314f126890aSEmmanuel Vadot		pinctrl_flx0_default: flx0-twi {
315f126890aSEmmanuel Vadot			atmel,pins =
316f126890aSEmmanuel Vadot				<AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
317f126890aSEmmanuel Vadot				 AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
318f126890aSEmmanuel Vadot		};
319f126890aSEmmanuel Vadot
320f126890aSEmmanuel Vadot		pinctrl_flx6_default: flx6-twi {
321f126890aSEmmanuel Vadot			atmel,pins =
322f126890aSEmmanuel Vadot				<AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
323f126890aSEmmanuel Vadot				 AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
324f126890aSEmmanuel Vadot		};
325f126890aSEmmanuel Vadot
326f126890aSEmmanuel Vadot		pinctrl_flx7_default: flx7-usart {
327f126890aSEmmanuel Vadot			atmel,pins =
328f126890aSEmmanuel Vadot				<AT91_PIOC 0 AT91_PERIPH_C AT91_PINCTRL_NONE
329f126890aSEmmanuel Vadot				 AT91_PIOC 1 AT91_PERIPH_C AT91_PINCTRL_NONE>;
330f126890aSEmmanuel Vadot		};
331f126890aSEmmanuel Vadot	};
332f126890aSEmmanuel Vadot
333f126890aSEmmanuel Vadot	gpio-keys {
334f126890aSEmmanuel Vadot		pinctrl_key_gpio_default: pinctrl-key-gpio {
335f126890aSEmmanuel Vadot			atmel,pins = <AT91_PIOA 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
336f126890aSEmmanuel Vadot		};
337f126890aSEmmanuel Vadot	};
338f126890aSEmmanuel Vadot
339f126890aSEmmanuel Vadot	leds {
340f126890aSEmmanuel Vadot		pinctrl_gpio_leds: gpio-leds {
341f126890aSEmmanuel Vadot			atmel,pins = <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
342f126890aSEmmanuel Vadot				      AT91_PIOD 19 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
343f126890aSEmmanuel Vadot				      AT91_PIOD 21 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
344f126890aSEmmanuel Vadot		};
345f126890aSEmmanuel Vadot	};
346f126890aSEmmanuel Vadot
347f126890aSEmmanuel Vadot	macb0 {
348f126890aSEmmanuel Vadot		pinctrl_macb0_rmii: macb0-rmii-0 {
349f126890aSEmmanuel Vadot			atmel,pins =
350f126890aSEmmanuel Vadot				<AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB0 periph A */
351f126890aSEmmanuel Vadot				 AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB1 periph A */
352f126890aSEmmanuel Vadot				 AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB2 periph A */
353f126890aSEmmanuel Vadot				 AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB3 periph A */
354f126890aSEmmanuel Vadot				 AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB4 periph A */
355f126890aSEmmanuel Vadot				 AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB5 periph A */
356f126890aSEmmanuel Vadot				 AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB6 periph A */
357f126890aSEmmanuel Vadot				 AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB7 periph A */
358*8d13bc63SEmmanuel Vadot				 AT91_PIOB 8 AT91_PERIPH_GPIO AT91_PINCTRL_NONE	/* PB8 IRQ GPIO */
359f126890aSEmmanuel Vadot				 AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB9 periph A */
360f126890aSEmmanuel Vadot				 AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB10 periph A */
361f126890aSEmmanuel Vadot		};
362f126890aSEmmanuel Vadot	};
363f126890aSEmmanuel Vadot
364f126890aSEmmanuel Vadot	nand {
365f126890aSEmmanuel Vadot		pinctrl_nand_oe_we: nand-oe-we-0 {
366f126890aSEmmanuel Vadot			atmel,pins =
367f126890aSEmmanuel Vadot				<AT91_PIOD 0 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
368f126890aSEmmanuel Vadot				 AT91_PIOD 1 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
369f126890aSEmmanuel Vadot		};
370f126890aSEmmanuel Vadot
371f126890aSEmmanuel Vadot		pinctrl_nand_rb: nand-rb-0 {
372f126890aSEmmanuel Vadot			atmel,pins =
373f126890aSEmmanuel Vadot				<AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
374f126890aSEmmanuel Vadot		};
375f126890aSEmmanuel Vadot
376f126890aSEmmanuel Vadot		pinctrl_nand_cs: nand-cs-0 {
377f126890aSEmmanuel Vadot			atmel,pins =
378f126890aSEmmanuel Vadot				<AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
379f126890aSEmmanuel Vadot		};
380f126890aSEmmanuel Vadot	};
381f126890aSEmmanuel Vadot
382f126890aSEmmanuel Vadot	pwm0 {
383f126890aSEmmanuel Vadot		pinctrl_pwm0_0: pwm0-0 {
384f126890aSEmmanuel Vadot			atmel,pins = <AT91_PIOB 12 AT91_PERIPH_B AT91_PINCTRL_NONE>;
385f126890aSEmmanuel Vadot		};
386f126890aSEmmanuel Vadot
387f126890aSEmmanuel Vadot		pinctrl_pwm0_1: pwm0-1 {
388f126890aSEmmanuel Vadot			atmel,pins = <AT91_PIOB 13 AT91_PERIPH_B AT91_PINCTRL_NONE>;
389f126890aSEmmanuel Vadot		};
390f126890aSEmmanuel Vadot
391f126890aSEmmanuel Vadot		pinctrl_pwm0_2: pwm0-2 {
392f126890aSEmmanuel Vadot			atmel,pins = <AT91_PIOD 16 AT91_PERIPH_B AT91_PINCTRL_NONE>;
393f126890aSEmmanuel Vadot		};
394f126890aSEmmanuel Vadot	};
395f126890aSEmmanuel Vadot
396f126890aSEmmanuel Vadot	sdmmc0 {
397f126890aSEmmanuel Vadot		pinctrl_sdmmc0_default: sdmmc0 {
398f126890aSEmmanuel Vadot			atmel,pins =
399f126890aSEmmanuel Vadot				<AT91_PIOA 17 AT91_PERIPH_A (AT91_PINCTRL_DRIVE_STRENGTH_HI)				/* PA17 CK  periph A with pullup */
400f126890aSEmmanuel Vadot				 AT91_PIOA 16 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)	/* PA16 CMD periph A with pullup */
401f126890aSEmmanuel Vadot				 AT91_PIOA 15 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)	/* PA15 DAT0 periph A */
402f126890aSEmmanuel Vadot				 AT91_PIOA 18 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)	/* PA18 DAT1 periph A with pullup */
403f126890aSEmmanuel Vadot				 AT91_PIOA 19 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)	/* PA19 DAT2 periph A with pullup */
404f126890aSEmmanuel Vadot				 AT91_PIOA 20 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)>;	/* PA20 DAT3 periph A with pullup */
405f126890aSEmmanuel Vadot		};
406f126890aSEmmanuel Vadot
407f126890aSEmmanuel Vadot		pinctrl_sdmmc0_cd: sdmmc0-cd {
408f126890aSEmmanuel Vadot			atmel,pins =
409f126890aSEmmanuel Vadot				<AT91_PIOA 25 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
410f126890aSEmmanuel Vadot		};
411f126890aSEmmanuel Vadot	};
412f126890aSEmmanuel Vadot
413f126890aSEmmanuel Vadot	sdmmc1 {
414f126890aSEmmanuel Vadot		pinctrl_sdmmc1_default: sdmmc1 {
415f126890aSEmmanuel Vadot			atmel,pins =
416f126890aSEmmanuel Vadot				<AT91_PIOA 13 AT91_PERIPH_B (AT91_PINCTRL_DRIVE_STRENGTH_HI)				/* PA13 CK periph B */
417f126890aSEmmanuel Vadot				 AT91_PIOA 12 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)	/* PA12 CMD periph B with pullup */
418f126890aSEmmanuel Vadot				 AT91_PIOA 11 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)	/* PA11 DAT0 periph B with pullup */
419f126890aSEmmanuel Vadot				 AT91_PIOA 2 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)	/* PA2 DAT1 periph B with pullup */
420f126890aSEmmanuel Vadot				 AT91_PIOA 3 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)	/* PA3 DAT2 periph B with pullup */
421f126890aSEmmanuel Vadot				 AT91_PIOA 4 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)>;	/* PA4 DAT3 periph B with pullup */
422f126890aSEmmanuel Vadot		};
423f126890aSEmmanuel Vadot	};
424f126890aSEmmanuel Vadot
425f126890aSEmmanuel Vadot	usb0 {
426f126890aSEmmanuel Vadot		pinctrl_usba_vbus: usba-vbus {
427f126890aSEmmanuel Vadot			atmel,pins = <AT91_PIOA 27 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
428f126890aSEmmanuel Vadot		};
429f126890aSEmmanuel Vadot	};
430f126890aSEmmanuel Vadot
431f126890aSEmmanuel Vadot	usb1 {
432f126890aSEmmanuel Vadot		pinctrl_usb_default: usb-default {
433f126890aSEmmanuel Vadot			atmel,pins = <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
434f126890aSEmmanuel Vadot				      AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
435f126890aSEmmanuel Vadot		};
436f126890aSEmmanuel Vadot	};
437f126890aSEmmanuel Vadot}; /* pinctrl */
438f126890aSEmmanuel Vadot
439f126890aSEmmanuel Vadot&pwm0 {
440f126890aSEmmanuel Vadot	pinctrl-names = "default";
441f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_pwm0_0 &pinctrl_pwm0_1 &pinctrl_pwm0_2>;
442f126890aSEmmanuel Vadot	status = "okay";
443f126890aSEmmanuel Vadot};
444f126890aSEmmanuel Vadot
44584943d6fSEmmanuel Vadot&rtt {
44684943d6fSEmmanuel Vadot	atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
44784943d6fSEmmanuel Vadot};
44884943d6fSEmmanuel Vadot
449f126890aSEmmanuel Vadot&sdmmc0 {
450f126890aSEmmanuel Vadot	bus-width = <4>;
451f126890aSEmmanuel Vadot	pinctrl-names = "default";
452f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_sdmmc0_default &pinctrl_sdmmc0_cd>;
453f126890aSEmmanuel Vadot	cd-gpios = <&pioA 25 GPIO_ACTIVE_LOW>;
454f126890aSEmmanuel Vadot	disable-wp;
455f126890aSEmmanuel Vadot	status = "okay";
456f126890aSEmmanuel Vadot};
457f126890aSEmmanuel Vadot
458f126890aSEmmanuel Vadot&sdmmc1 {
459f126890aSEmmanuel Vadot	bus-width = <4>;
460f126890aSEmmanuel Vadot	pinctrl-names = "default";
461f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_sdmmc1_default>;
462f126890aSEmmanuel Vadot	disable-wp;
463f126890aSEmmanuel Vadot	status = "okay";
464f126890aSEmmanuel Vadot};
465f126890aSEmmanuel Vadot
466f126890aSEmmanuel Vadot&shutdown_controller {
467f126890aSEmmanuel Vadot	debounce-delay-us = <976>;
468f126890aSEmmanuel Vadot	status = "okay";
469f126890aSEmmanuel Vadot
470f126890aSEmmanuel Vadot	input@0 {
471f126890aSEmmanuel Vadot		reg = <0>;
472f126890aSEmmanuel Vadot	};
473f126890aSEmmanuel Vadot};
474f126890aSEmmanuel Vadot
475f126890aSEmmanuel Vadot&tcb0 {
476f126890aSEmmanuel Vadot	timer0: timer@0 {
477f126890aSEmmanuel Vadot		compatible = "atmel,tcb-timer";
478f126890aSEmmanuel Vadot		reg = <0>;
479f126890aSEmmanuel Vadot	};
480f126890aSEmmanuel Vadot
481f126890aSEmmanuel Vadot	timer1: timer@1 {
482f126890aSEmmanuel Vadot		compatible = "atmel,tcb-timer";
483f126890aSEmmanuel Vadot		reg = <1>;
484f126890aSEmmanuel Vadot	};
485f126890aSEmmanuel Vadot};
486f126890aSEmmanuel Vadot
487f126890aSEmmanuel Vadot&usb0 {
488f126890aSEmmanuel Vadot	atmel,vbus-gpio = <&pioA 27 GPIO_ACTIVE_HIGH>;
489f126890aSEmmanuel Vadot	pinctrl-names = "default";
490f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_usba_vbus>;
491f126890aSEmmanuel Vadot	status = "okay";
492f126890aSEmmanuel Vadot};
493f126890aSEmmanuel Vadot
494f126890aSEmmanuel Vadot&usb1 {
495f126890aSEmmanuel Vadot	num-ports = <3>;
496f126890aSEmmanuel Vadot	atmel,vbus-gpio = <0
497f126890aSEmmanuel Vadot			   &pioD 18 GPIO_ACTIVE_HIGH
498f126890aSEmmanuel Vadot			   &pioD 15 GPIO_ACTIVE_HIGH>;
499f126890aSEmmanuel Vadot	pinctrl-names = "default";
500f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_usb_default>;
501f126890aSEmmanuel Vadot	status = "okay";
502f126890aSEmmanuel Vadot};
503f126890aSEmmanuel Vadot
504f126890aSEmmanuel Vadot&usb2 {
505f126890aSEmmanuel Vadot	status = "okay";
506f126890aSEmmanuel Vadot};
507f126890aSEmmanuel Vadot
508f126890aSEmmanuel Vadot&watchdog {
509f126890aSEmmanuel Vadot	status = "okay";
510f126890aSEmmanuel Vadot};
511