xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/at91-sama5d2_xplained.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * at91-sama5d2_xplained.dts - Device Tree file for SAMA5D2 Xplained board
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot *  Copyright (C) 2015 Atmel,
6*f126890aSEmmanuel Vadot *                2015 Nicolas Ferre <nicolas.ferre@atmel.com>
7*f126890aSEmmanuel Vadot */
8*f126890aSEmmanuel Vadot/dts-v1/;
9*f126890aSEmmanuel Vadot#include "sama5d2.dtsi"
10*f126890aSEmmanuel Vadot#include "sama5d2-pinfunc.h"
11*f126890aSEmmanuel Vadot#include <dt-bindings/mfd/atmel-flexcom.h>
12*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
13*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
14*f126890aSEmmanuel Vadot#include <dt-bindings/regulator/active-semi,8945a-regulator.h>
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot/ {
17*f126890aSEmmanuel Vadot	model = "Atmel SAMA5D2 Xplained";
18*f126890aSEmmanuel Vadot	compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5";
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	aliases {
21*f126890aSEmmanuel Vadot		serial0 = &uart1;	/* DBGU */
22*f126890aSEmmanuel Vadot		i2c0 = &i2c0;
23*f126890aSEmmanuel Vadot		i2c1 = &i2c1;
24*f126890aSEmmanuel Vadot		i2c2 = &i2c2;		/* XPRO EXT2 */
25*f126890aSEmmanuel Vadot	};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot	chosen {
28*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
29*f126890aSEmmanuel Vadot	};
30*f126890aSEmmanuel Vadot
31*f126890aSEmmanuel Vadot	clocks {
32*f126890aSEmmanuel Vadot		slow_xtal {
33*f126890aSEmmanuel Vadot			clock-frequency = <32768>;
34*f126890aSEmmanuel Vadot		};
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot		main_xtal {
37*f126890aSEmmanuel Vadot			clock-frequency = <12000000>;
38*f126890aSEmmanuel Vadot		};
39*f126890aSEmmanuel Vadot	};
40*f126890aSEmmanuel Vadot
41*f126890aSEmmanuel Vadot	ahb {
42*f126890aSEmmanuel Vadot		usb0: gadget@300000 {
43*f126890aSEmmanuel Vadot			atmel,vbus-gpio = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
44*f126890aSEmmanuel Vadot			pinctrl-names = "default";
45*f126890aSEmmanuel Vadot			pinctrl-0 = <&pinctrl_usba_vbus>;
46*f126890aSEmmanuel Vadot			status = "okay";
47*f126890aSEmmanuel Vadot		};
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot		usb1: ohci@400000 {
50*f126890aSEmmanuel Vadot			num-ports = <3>;
51*f126890aSEmmanuel Vadot			atmel,vbus-gpio = <0 /* &pioA PIN_PB9 GPIO_ACTIVE_HIGH */
52*f126890aSEmmanuel Vadot					   &pioA PIN_PB10 GPIO_ACTIVE_HIGH
53*f126890aSEmmanuel Vadot					   0
54*f126890aSEmmanuel Vadot					  >;
55*f126890aSEmmanuel Vadot			pinctrl-names = "default";
56*f126890aSEmmanuel Vadot			pinctrl-0 = <&pinctrl_usb_default>;
57*f126890aSEmmanuel Vadot			status = "okay";
58*f126890aSEmmanuel Vadot		};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot		usb2: ehci@500000 {
61*f126890aSEmmanuel Vadot			status = "okay";
62*f126890aSEmmanuel Vadot		};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot		sdmmc0: sdio-host@a0000000 {
65*f126890aSEmmanuel Vadot			bus-width = <8>;
66*f126890aSEmmanuel Vadot			pinctrl-names = "default";
67*f126890aSEmmanuel Vadot			pinctrl-0 = <&pinctrl_sdmmc0_default>;
68*f126890aSEmmanuel Vadot			non-removable;
69*f126890aSEmmanuel Vadot			mmc-ddr-3_3v;
70*f126890aSEmmanuel Vadot			status = "okay";
71*f126890aSEmmanuel Vadot		};
72*f126890aSEmmanuel Vadot
73*f126890aSEmmanuel Vadot		sdmmc1: sdio-host@b0000000 {
74*f126890aSEmmanuel Vadot			bus-width = <4>;
75*f126890aSEmmanuel Vadot			pinctrl-names = "default";
76*f126890aSEmmanuel Vadot			pinctrl-0 = <&pinctrl_sdmmc1_default>;
77*f126890aSEmmanuel Vadot			status = "okay"; /* conflict with qspi0 */
78*f126890aSEmmanuel Vadot			vqmmc-supply = <&vdd_3v3_reg>;
79*f126890aSEmmanuel Vadot			vmmc-supply = <&vdd_3v3_reg>;
80*f126890aSEmmanuel Vadot		};
81*f126890aSEmmanuel Vadot
82*f126890aSEmmanuel Vadot		apb {
83*f126890aSEmmanuel Vadot			qspi0: spi@f0020000 {
84*f126890aSEmmanuel Vadot				pinctrl-names = "default";
85*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_qspi0_default>;
86*f126890aSEmmanuel Vadot				status = "disabled"; /* conflict with sdmmc1 */
87*f126890aSEmmanuel Vadot
88*f126890aSEmmanuel Vadot				flash@0 {
89*f126890aSEmmanuel Vadot					#address-cells = <1>;
90*f126890aSEmmanuel Vadot					#size-cells = <1>;
91*f126890aSEmmanuel Vadot					compatible = "jedec,spi-nor";
92*f126890aSEmmanuel Vadot					reg = <0>;
93*f126890aSEmmanuel Vadot					spi-max-frequency = <80000000>;
94*f126890aSEmmanuel Vadot					spi-tx-bus-width = <4>;
95*f126890aSEmmanuel Vadot					spi-rx-bus-width = <4>;
96*f126890aSEmmanuel Vadot					m25p,fast-read;
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot					at91bootstrap@0 {
99*f126890aSEmmanuel Vadot						label = "at91bootstrap";
100*f126890aSEmmanuel Vadot						reg = <0x00000000 0x00040000>;
101*f126890aSEmmanuel Vadot					};
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot					bootloader@40000 {
104*f126890aSEmmanuel Vadot						label = "bootloader";
105*f126890aSEmmanuel Vadot						reg = <0x00040000 0x000c0000>;
106*f126890aSEmmanuel Vadot					};
107*f126890aSEmmanuel Vadot
108*f126890aSEmmanuel Vadot					bootloaderenvred@100000 {
109*f126890aSEmmanuel Vadot						label = "bootloader env redundant";
110*f126890aSEmmanuel Vadot						reg = <0x00100000 0x00040000>;
111*f126890aSEmmanuel Vadot					};
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot					bootloaderenv@140000 {
114*f126890aSEmmanuel Vadot						label = "bootloader env";
115*f126890aSEmmanuel Vadot						reg = <0x00140000 0x00040000>;
116*f126890aSEmmanuel Vadot					};
117*f126890aSEmmanuel Vadot
118*f126890aSEmmanuel Vadot					dtb@180000 {
119*f126890aSEmmanuel Vadot						label = "device tree";
120*f126890aSEmmanuel Vadot						reg = <0x00180000 0x00080000>;
121*f126890aSEmmanuel Vadot					};
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot					kernel@200000 {
124*f126890aSEmmanuel Vadot						label = "kernel";
125*f126890aSEmmanuel Vadot						reg = <0x00200000 0x00600000>;
126*f126890aSEmmanuel Vadot					};
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot					misc@800000 {
129*f126890aSEmmanuel Vadot						label = "misc";
130*f126890aSEmmanuel Vadot						reg = <0x00800000 0x00000000>;
131*f126890aSEmmanuel Vadot					};
132*f126890aSEmmanuel Vadot				};
133*f126890aSEmmanuel Vadot			};
134*f126890aSEmmanuel Vadot
135*f126890aSEmmanuel Vadot			spi0: spi@f8000000 {
136*f126890aSEmmanuel Vadot				pinctrl-names = "default";
137*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_spi0_default>;
138*f126890aSEmmanuel Vadot				status = "okay";
139*f126890aSEmmanuel Vadot
140*f126890aSEmmanuel Vadot				flash@0 {
141*f126890aSEmmanuel Vadot					compatible = "atmel,at25df321a";
142*f126890aSEmmanuel Vadot					reg = <0>;
143*f126890aSEmmanuel Vadot					spi-max-frequency = <50000000>;
144*f126890aSEmmanuel Vadot				};
145*f126890aSEmmanuel Vadot			};
146*f126890aSEmmanuel Vadot
147*f126890aSEmmanuel Vadot			macb0: ethernet@f8008000 {
148*f126890aSEmmanuel Vadot				pinctrl-names = "default";
149*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_macb0_default &pinctrl_macb0_phy_irq>;
150*f126890aSEmmanuel Vadot				#address-cells = <1>;
151*f126890aSEmmanuel Vadot				#size-cells = <0>;
152*f126890aSEmmanuel Vadot				phy-mode = "rmii";
153*f126890aSEmmanuel Vadot				status = "okay";
154*f126890aSEmmanuel Vadot
155*f126890aSEmmanuel Vadot				ethernet-phy@1 {
156*f126890aSEmmanuel Vadot					reg = <0x1>;
157*f126890aSEmmanuel Vadot					interrupt-parent = <&pioA>;
158*f126890aSEmmanuel Vadot					interrupts = <PIN_PC9 IRQ_TYPE_LEVEL_LOW>;
159*f126890aSEmmanuel Vadot				};
160*f126890aSEmmanuel Vadot			};
161*f126890aSEmmanuel Vadot
162*f126890aSEmmanuel Vadot			tcb0: timer@f800c000 {
163*f126890aSEmmanuel Vadot				timer0: timer@0 {
164*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
165*f126890aSEmmanuel Vadot					reg = <0>;
166*f126890aSEmmanuel Vadot				};
167*f126890aSEmmanuel Vadot
168*f126890aSEmmanuel Vadot				timer1: timer@1 {
169*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
170*f126890aSEmmanuel Vadot					reg = <1>;
171*f126890aSEmmanuel Vadot				};
172*f126890aSEmmanuel Vadot			};
173*f126890aSEmmanuel Vadot
174*f126890aSEmmanuel Vadot			uart1: serial@f8020000 {
175*f126890aSEmmanuel Vadot				pinctrl-names = "default";
176*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_uart1_default>;
177*f126890aSEmmanuel Vadot				atmel,use-dma-rx;
178*f126890aSEmmanuel Vadot				atmel,use-dma-tx;
179*f126890aSEmmanuel Vadot				status = "okay";
180*f126890aSEmmanuel Vadot			};
181*f126890aSEmmanuel Vadot
182*f126890aSEmmanuel Vadot			i2c0: i2c@f8028000 {
183*f126890aSEmmanuel Vadot				dmas = <0>, <0>;
184*f126890aSEmmanuel Vadot				pinctrl-names = "default", "gpio";
185*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_i2c0_default>;
186*f126890aSEmmanuel Vadot				pinctrl-1 = <&pinctrl_i2c0_gpio>;
187*f126890aSEmmanuel Vadot				sda-gpios = <&pioA PIN_PD21 GPIO_ACTIVE_HIGH>;
188*f126890aSEmmanuel Vadot				scl-gpios = <&pioA PIN_PD22 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
189*f126890aSEmmanuel Vadot				i2c-sda-hold-time-ns = <350>;
190*f126890aSEmmanuel Vadot				status = "okay";
191*f126890aSEmmanuel Vadot
192*f126890aSEmmanuel Vadot				pmic@5b {
193*f126890aSEmmanuel Vadot					compatible = "active-semi,act8945a";
194*f126890aSEmmanuel Vadot					reg = <0x5b>;
195*f126890aSEmmanuel Vadot					active-semi,vsel-high;
196*f126890aSEmmanuel Vadot					status = "okay";
197*f126890aSEmmanuel Vadot
198*f126890aSEmmanuel Vadot					regulators {
199*f126890aSEmmanuel Vadot						vdd_1v35_reg: REG_DCDC1 {
200*f126890aSEmmanuel Vadot							regulator-name = "VDD_1V35";
201*f126890aSEmmanuel Vadot							regulator-min-microvolt = <1350000>;
202*f126890aSEmmanuel Vadot							regulator-max-microvolt = <1350000>;
203*f126890aSEmmanuel Vadot							regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
204*f126890aSEmmanuel Vadot										  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
205*f126890aSEmmanuel Vadot							regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
206*f126890aSEmmanuel Vadot							regulator-always-on;
207*f126890aSEmmanuel Vadot
208*f126890aSEmmanuel Vadot							regulator-state-mem {
209*f126890aSEmmanuel Vadot								regulator-on-in-suspend;
210*f126890aSEmmanuel Vadot								regulator-suspend-min-microvolt = <1400000>;
211*f126890aSEmmanuel Vadot								regulator-suspend-max-microvolt = <1400000>;
212*f126890aSEmmanuel Vadot								regulator-changeable-in-suspend;
213*f126890aSEmmanuel Vadot								regulator-mode = <ACT8945A_REGULATOR_MODE_LOWPOWER>;
214*f126890aSEmmanuel Vadot							};
215*f126890aSEmmanuel Vadot						};
216*f126890aSEmmanuel Vadot
217*f126890aSEmmanuel Vadot						vdd_1v2_reg: REG_DCDC2 {
218*f126890aSEmmanuel Vadot							regulator-name = "VDD_1V2";
219*f126890aSEmmanuel Vadot							regulator-min-microvolt = <1100000>;
220*f126890aSEmmanuel Vadot							regulator-max-microvolt = <1300000>;
221*f126890aSEmmanuel Vadot							regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
222*f126890aSEmmanuel Vadot										  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
223*f126890aSEmmanuel Vadot							regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
224*f126890aSEmmanuel Vadot							regulator-always-on;
225*f126890aSEmmanuel Vadot
226*f126890aSEmmanuel Vadot							regulator-state-mem {
227*f126890aSEmmanuel Vadot								regulator-off-in-suspend;
228*f126890aSEmmanuel Vadot							};
229*f126890aSEmmanuel Vadot						};
230*f126890aSEmmanuel Vadot
231*f126890aSEmmanuel Vadot						vdd_3v3_reg: REG_DCDC3 {
232*f126890aSEmmanuel Vadot							regulator-name = "VDD_3V3";
233*f126890aSEmmanuel Vadot							regulator-min-microvolt = <3300000>;
234*f126890aSEmmanuel Vadot							regulator-max-microvolt = <3300000>;
235*f126890aSEmmanuel Vadot							regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
236*f126890aSEmmanuel Vadot										  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
237*f126890aSEmmanuel Vadot							regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
238*f126890aSEmmanuel Vadot							regulator-always-on;
239*f126890aSEmmanuel Vadot
240*f126890aSEmmanuel Vadot							regulator-state-mem {
241*f126890aSEmmanuel Vadot								regulator-off-in-suspend;
242*f126890aSEmmanuel Vadot							};
243*f126890aSEmmanuel Vadot						};
244*f126890aSEmmanuel Vadot
245*f126890aSEmmanuel Vadot						vdd_fuse_reg: REG_LDO1 {
246*f126890aSEmmanuel Vadot							regulator-name = "VDD_FUSE";
247*f126890aSEmmanuel Vadot							regulator-min-microvolt = <2500000>;
248*f126890aSEmmanuel Vadot							regulator-max-microvolt = <2500000>;
249*f126890aSEmmanuel Vadot							regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
250*f126890aSEmmanuel Vadot										  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
251*f126890aSEmmanuel Vadot							regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
252*f126890aSEmmanuel Vadot							regulator-always-on;
253*f126890aSEmmanuel Vadot
254*f126890aSEmmanuel Vadot							regulator-state-mem {
255*f126890aSEmmanuel Vadot								regulator-off-in-suspend;
256*f126890aSEmmanuel Vadot							};
257*f126890aSEmmanuel Vadot						};
258*f126890aSEmmanuel Vadot
259*f126890aSEmmanuel Vadot						vdd_3v3_lp_reg: REG_LDO2 {
260*f126890aSEmmanuel Vadot							regulator-name = "VDD_3V3_LP";
261*f126890aSEmmanuel Vadot							regulator-min-microvolt = <3300000>;
262*f126890aSEmmanuel Vadot							regulator-max-microvolt = <3300000>;
263*f126890aSEmmanuel Vadot							regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
264*f126890aSEmmanuel Vadot										  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
265*f126890aSEmmanuel Vadot							regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
266*f126890aSEmmanuel Vadot							regulator-always-on;
267*f126890aSEmmanuel Vadot
268*f126890aSEmmanuel Vadot							regulator-state-mem {
269*f126890aSEmmanuel Vadot								regulator-off-in-suspend;
270*f126890aSEmmanuel Vadot							};
271*f126890aSEmmanuel Vadot						};
272*f126890aSEmmanuel Vadot
273*f126890aSEmmanuel Vadot						vdd_led_reg: REG_LDO3 {
274*f126890aSEmmanuel Vadot							regulator-name = "VDD_LED";
275*f126890aSEmmanuel Vadot							regulator-min-microvolt = <3300000>;
276*f126890aSEmmanuel Vadot							regulator-max-microvolt = <3300000>;
277*f126890aSEmmanuel Vadot							regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
278*f126890aSEmmanuel Vadot										  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
279*f126890aSEmmanuel Vadot							regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
280*f126890aSEmmanuel Vadot							regulator-always-on;
281*f126890aSEmmanuel Vadot
282*f126890aSEmmanuel Vadot							regulator-state-mem {
283*f126890aSEmmanuel Vadot								regulator-off-in-suspend;
284*f126890aSEmmanuel Vadot							};
285*f126890aSEmmanuel Vadot						};
286*f126890aSEmmanuel Vadot
287*f126890aSEmmanuel Vadot						vdd_sdhc_1v8_reg: REG_LDO4 {
288*f126890aSEmmanuel Vadot							regulator-name = "VDD_SDHC_1V8";
289*f126890aSEmmanuel Vadot							regulator-min-microvolt = <1800000>;
290*f126890aSEmmanuel Vadot							regulator-max-microvolt = <1800000>;
291*f126890aSEmmanuel Vadot							regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
292*f126890aSEmmanuel Vadot										  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
293*f126890aSEmmanuel Vadot							regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
294*f126890aSEmmanuel Vadot							regulator-always-on;
295*f126890aSEmmanuel Vadot
296*f126890aSEmmanuel Vadot							regulator-state-mem {
297*f126890aSEmmanuel Vadot								regulator-off-in-suspend;
298*f126890aSEmmanuel Vadot							};
299*f126890aSEmmanuel Vadot						};
300*f126890aSEmmanuel Vadot					};
301*f126890aSEmmanuel Vadot
302*f126890aSEmmanuel Vadot					charger {
303*f126890aSEmmanuel Vadot						compatible = "active-semi,act8945a-charger";
304*f126890aSEmmanuel Vadot						pinctrl-names = "default";
305*f126890aSEmmanuel Vadot						pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
306*f126890aSEmmanuel Vadot						interrupt-parent = <&pioA>;
307*f126890aSEmmanuel Vadot						interrupts = <PIN_PB13 IRQ_TYPE_EDGE_RISING>;
308*f126890aSEmmanuel Vadot
309*f126890aSEmmanuel Vadot						active-semi,chglev-gpios = <&pioA PIN_PA12 GPIO_ACTIVE_HIGH>;
310*f126890aSEmmanuel Vadot						active-semi,lbo-gpios = <&pioA PIN_PC8 GPIO_ACTIVE_LOW>;
311*f126890aSEmmanuel Vadot						active-semi,input-voltage-threshold-microvolt = <6600>;
312*f126890aSEmmanuel Vadot						active-semi,precondition-timeout = <40>;
313*f126890aSEmmanuel Vadot						active-semi,total-timeout = <3>;
314*f126890aSEmmanuel Vadot						status = "okay";
315*f126890aSEmmanuel Vadot					};
316*f126890aSEmmanuel Vadot				};
317*f126890aSEmmanuel Vadot			};
318*f126890aSEmmanuel Vadot
319*f126890aSEmmanuel Vadot			pwm0: pwm@f802c000 {
320*f126890aSEmmanuel Vadot				pinctrl-names = "default";
321*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_pwm0_pwm2_default>;
322*f126890aSEmmanuel Vadot				status = "disabled"; /* conflict with leds */
323*f126890aSEmmanuel Vadot			};
324*f126890aSEmmanuel Vadot
325*f126890aSEmmanuel Vadot			flx0: flexcom@f8034000 {
326*f126890aSEmmanuel Vadot				atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
327*f126890aSEmmanuel Vadot				status = "disabled"; /* conflict with ISC_D2 & ISC_D3 data pins */
328*f126890aSEmmanuel Vadot
329*f126890aSEmmanuel Vadot				uart5: serial@200 {
330*f126890aSEmmanuel Vadot					dmas = <0>, <0>;
331*f126890aSEmmanuel Vadot					pinctrl-names = "default";
332*f126890aSEmmanuel Vadot					pinctrl-0 = <&pinctrl_flx0_default>;
333*f126890aSEmmanuel Vadot					status = "okay";
334*f126890aSEmmanuel Vadot				};
335*f126890aSEmmanuel Vadot
336*f126890aSEmmanuel Vadot				i2c2: i2c@600 {
337*f126890aSEmmanuel Vadot					dmas = <0>, <0>;
338*f126890aSEmmanuel Vadot					pinctrl-names = "default", "gpio";
339*f126890aSEmmanuel Vadot					pinctrl-0 = <&pinctrl_flx0_default>;
340*f126890aSEmmanuel Vadot					pinctrl-1 = <&pinctrl_i2c2_gpio>;
341*f126890aSEmmanuel Vadot					sda-gpios = <&pioA PIN_PB28 GPIO_ACTIVE_HIGH>;
342*f126890aSEmmanuel Vadot					scl-gpios = <&pioA PIN_PB29 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
343*f126890aSEmmanuel Vadot					i2c-sda-hold-time-ns = <350>;
344*f126890aSEmmanuel Vadot					i2c-analog-filter;
345*f126890aSEmmanuel Vadot					i2c-digital-filter;
346*f126890aSEmmanuel Vadot					i2c-digital-filter-width-ns = <35>;
347*f126890aSEmmanuel Vadot					status = "disabled"; /* conflict with ISC_D2 & ISC_D3 data pins */
348*f126890aSEmmanuel Vadot				};
349*f126890aSEmmanuel Vadot			};
350*f126890aSEmmanuel Vadot
351*f126890aSEmmanuel Vadot			poweroff@f8048010 {
352*f126890aSEmmanuel Vadot				debounce-delay-us = <976>;
353*f126890aSEmmanuel Vadot				atmel,wakeup-rtc-timer;
354*f126890aSEmmanuel Vadot
355*f126890aSEmmanuel Vadot				input@0 {
356*f126890aSEmmanuel Vadot					reg = <0>;
357*f126890aSEmmanuel Vadot				};
358*f126890aSEmmanuel Vadot			};
359*f126890aSEmmanuel Vadot
360*f126890aSEmmanuel Vadot			watchdog@f8048040 {
361*f126890aSEmmanuel Vadot				status = "okay";
362*f126890aSEmmanuel Vadot			};
363*f126890aSEmmanuel Vadot
364*f126890aSEmmanuel Vadot			i2s0: i2s@f8050000 {
365*f126890aSEmmanuel Vadot				pinctrl-names = "default";
366*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_i2s0_default>;
367*f126890aSEmmanuel Vadot				status = "disabled"; /* conflict with can0 */
368*f126890aSEmmanuel Vadot			};
369*f126890aSEmmanuel Vadot
370*f126890aSEmmanuel Vadot			can0: can@f8054000 {
371*f126890aSEmmanuel Vadot				pinctrl-names = "default";
372*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_can0_default>;
373*f126890aSEmmanuel Vadot				status = "okay";
374*f126890aSEmmanuel Vadot			};
375*f126890aSEmmanuel Vadot
376*f126890aSEmmanuel Vadot			uart3: serial@fc008000 {
377*f126890aSEmmanuel Vadot				atmel,use-dma-rx;
378*f126890aSEmmanuel Vadot				atmel,use-dma-tx;
379*f126890aSEmmanuel Vadot				pinctrl-names = "default";
380*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_uart3_default>;
381*f126890aSEmmanuel Vadot				status = "okay";
382*f126890aSEmmanuel Vadot			};
383*f126890aSEmmanuel Vadot
384*f126890aSEmmanuel Vadot			flx4: flexcom@fc018000 {
385*f126890aSEmmanuel Vadot				atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
386*f126890aSEmmanuel Vadot				status = "okay";
387*f126890aSEmmanuel Vadot
388*f126890aSEmmanuel Vadot				i2c6: i2c@600 {
389*f126890aSEmmanuel Vadot					dmas = <0>, <0>;
390*f126890aSEmmanuel Vadot					pinctrl-names = "default", "gpio";
391*f126890aSEmmanuel Vadot					pinctrl-0 = <&pinctrl_flx4_default>;
392*f126890aSEmmanuel Vadot					pinctrl-1 = <&pinctrl_flx4_gpio>;
393*f126890aSEmmanuel Vadot					sda-gpios = <&pioA PIN_PD12 GPIO_ACTIVE_HIGH>;
394*f126890aSEmmanuel Vadot					scl-gpios = <&pioA PIN_PD13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
395*f126890aSEmmanuel Vadot					i2c-analog-filter;
396*f126890aSEmmanuel Vadot					i2c-digital-filter;
397*f126890aSEmmanuel Vadot					i2c-digital-filter-width-ns = <35>;
398*f126890aSEmmanuel Vadot					status = "okay";
399*f126890aSEmmanuel Vadot				};
400*f126890aSEmmanuel Vadot			};
401*f126890aSEmmanuel Vadot
402*f126890aSEmmanuel Vadot			i2c1: i2c@fc028000 {
403*f126890aSEmmanuel Vadot				dmas = <0>, <0>;
404*f126890aSEmmanuel Vadot				pinctrl-names = "default", "gpio";
405*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_i2c1_default>;
406*f126890aSEmmanuel Vadot				i2c-analog-filter;
407*f126890aSEmmanuel Vadot				i2c-digital-filter;
408*f126890aSEmmanuel Vadot				i2c-digital-filter-width-ns = <35>;
409*f126890aSEmmanuel Vadot				pinctrl-1 = <&pinctrl_i2c1_gpio>;
410*f126890aSEmmanuel Vadot				sda-gpios = <&pioA PIN_PD4 GPIO_ACTIVE_HIGH>;
411*f126890aSEmmanuel Vadot				scl-gpios = <&pioA PIN_PD5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
412*f126890aSEmmanuel Vadot				status = "okay";
413*f126890aSEmmanuel Vadot
414*f126890aSEmmanuel Vadot				at24@54 {
415*f126890aSEmmanuel Vadot					compatible = "atmel,24c02";
416*f126890aSEmmanuel Vadot					reg = <0x54>;
417*f126890aSEmmanuel Vadot					pagesize = <16>;
418*f126890aSEmmanuel Vadot				};
419*f126890aSEmmanuel Vadot			};
420*f126890aSEmmanuel Vadot
421*f126890aSEmmanuel Vadot			adc: adc@fc030000 {
422*f126890aSEmmanuel Vadot				vddana-supply = <&vdd_3v3_lp_reg>;
423*f126890aSEmmanuel Vadot				vref-supply = <&vdd_3v3_lp_reg>;
424*f126890aSEmmanuel Vadot				pinctrl-names = "default";
425*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_adc_default &pinctrl_adtrg_default>;
426*f126890aSEmmanuel Vadot				status = "okay";
427*f126890aSEmmanuel Vadot			};
428*f126890aSEmmanuel Vadot
429*f126890aSEmmanuel Vadot			pinctrl@fc038000 {
430*f126890aSEmmanuel Vadot				/*
431*f126890aSEmmanuel Vadot				 * There is no real pinmux for ADC, if the pin
432*f126890aSEmmanuel Vadot				 * is not requested by another peripheral then
433*f126890aSEmmanuel Vadot				 * the muxing is done when channel is enabled.
434*f126890aSEmmanuel Vadot				 * Requesting pins for ADC is GPIO is
435*f126890aSEmmanuel Vadot				 * encouraged to prevent conflicts and to
436*f126890aSEmmanuel Vadot				 * disable bias in order to be in the same
437*f126890aSEmmanuel Vadot				 * state when the pin is not muxed to the adc.
438*f126890aSEmmanuel Vadot				 */
439*f126890aSEmmanuel Vadot				pinctrl_adc_default: adc_default {
440*f126890aSEmmanuel Vadot					pinmux = <PIN_PD23__GPIO>;
441*f126890aSEmmanuel Vadot					bias-disable;
442*f126890aSEmmanuel Vadot				};
443*f126890aSEmmanuel Vadot
444*f126890aSEmmanuel Vadot				pinctrl_can0_default: can0_default {
445*f126890aSEmmanuel Vadot					pinmux = <PIN_PC10__CANTX0>,
446*f126890aSEmmanuel Vadot						 <PIN_PC11__CANRX0>;
447*f126890aSEmmanuel Vadot					bias-disable;
448*f126890aSEmmanuel Vadot				};
449*f126890aSEmmanuel Vadot
450*f126890aSEmmanuel Vadot				pinctrl_can1_default: can1_default {
451*f126890aSEmmanuel Vadot					pinmux = <PIN_PC26__CANTX1>,
452*f126890aSEmmanuel Vadot						 <PIN_PC27__CANRX1>;
453*f126890aSEmmanuel Vadot					bias-disable;
454*f126890aSEmmanuel Vadot				};
455*f126890aSEmmanuel Vadot
456*f126890aSEmmanuel Vadot				/*
457*f126890aSEmmanuel Vadot				 * The ADTRG pin can work on any edge type.
458*f126890aSEmmanuel Vadot				 * In here it's being pulled up, so need to
459*f126890aSEmmanuel Vadot				 * connect it to ground to get an edge e.g.
460*f126890aSEmmanuel Vadot				 * Trigger can be configured on falling, rise
461*f126890aSEmmanuel Vadot				 * or any edge, and the pull-up can be changed
462*f126890aSEmmanuel Vadot				 * to pull-down or left floating according to
463*f126890aSEmmanuel Vadot				 * needs.
464*f126890aSEmmanuel Vadot				 */
465*f126890aSEmmanuel Vadot				pinctrl_adtrg_default: adtrg_default {
466*f126890aSEmmanuel Vadot					pinmux = <PIN_PD31__ADTRG>;
467*f126890aSEmmanuel Vadot					bias-pull-up;
468*f126890aSEmmanuel Vadot				};
469*f126890aSEmmanuel Vadot
470*f126890aSEmmanuel Vadot				pinctrl_charger_chglev: charger_chglev {
471*f126890aSEmmanuel Vadot					pinmux = <PIN_PA12__GPIO>;
472*f126890aSEmmanuel Vadot					bias-disable;
473*f126890aSEmmanuel Vadot				};
474*f126890aSEmmanuel Vadot
475*f126890aSEmmanuel Vadot				pinctrl_charger_irq: charger_irq {
476*f126890aSEmmanuel Vadot					pinmux = <PIN_PB13__GPIO>;
477*f126890aSEmmanuel Vadot					bias-disable;
478*f126890aSEmmanuel Vadot				};
479*f126890aSEmmanuel Vadot
480*f126890aSEmmanuel Vadot				pinctrl_charger_lbo: charger_lbo {
481*f126890aSEmmanuel Vadot					pinmux = <PIN_PC8__GPIO>;
482*f126890aSEmmanuel Vadot					bias-pull-up;
483*f126890aSEmmanuel Vadot				};
484*f126890aSEmmanuel Vadot
485*f126890aSEmmanuel Vadot				pinctrl_classd_default_pfets: classd_default_pfets {
486*f126890aSEmmanuel Vadot					pinmux = <PIN_PB1__CLASSD_R0>,
487*f126890aSEmmanuel Vadot						 <PIN_PB3__CLASSD_R2>;
488*f126890aSEmmanuel Vadot					bias-pull-up;
489*f126890aSEmmanuel Vadot				};
490*f126890aSEmmanuel Vadot
491*f126890aSEmmanuel Vadot				pinctrl_classd_default_nfets: classd_default_nfets {
492*f126890aSEmmanuel Vadot					pinmux = <PIN_PB2__CLASSD_R1>,
493*f126890aSEmmanuel Vadot						 <PIN_PB4__CLASSD_R3>;
494*f126890aSEmmanuel Vadot					bias-pull-down;
495*f126890aSEmmanuel Vadot				};
496*f126890aSEmmanuel Vadot
497*f126890aSEmmanuel Vadot				pinctrl_flx0_default: flx0_default {
498*f126890aSEmmanuel Vadot					pinmux = <PIN_PB28__FLEXCOM0_IO0>,
499*f126890aSEmmanuel Vadot						 <PIN_PB29__FLEXCOM0_IO1>;
500*f126890aSEmmanuel Vadot					bias-disable;
501*f126890aSEmmanuel Vadot				};
502*f126890aSEmmanuel Vadot
503*f126890aSEmmanuel Vadot				pinctrl_flx4_default: flx4_default {
504*f126890aSEmmanuel Vadot					pinmux = <PIN_PD12__FLEXCOM4_IO0>,
505*f126890aSEmmanuel Vadot						 <PIN_PD13__FLEXCOM4_IO1>;
506*f126890aSEmmanuel Vadot					bias-disable;
507*f126890aSEmmanuel Vadot				};
508*f126890aSEmmanuel Vadot
509*f126890aSEmmanuel Vadot				pinctrl_flx4_gpio: flx4_gpio {
510*f126890aSEmmanuel Vadot					pinmux = <PIN_PD12__GPIO>,
511*f126890aSEmmanuel Vadot						 <PIN_PD13__GPIO>;
512*f126890aSEmmanuel Vadot					bias-disable;
513*f126890aSEmmanuel Vadot				};
514*f126890aSEmmanuel Vadot
515*f126890aSEmmanuel Vadot				pinctrl_i2c0_default: i2c0_default {
516*f126890aSEmmanuel Vadot					pinmux = <PIN_PD21__TWD0>,
517*f126890aSEmmanuel Vadot						 <PIN_PD22__TWCK0>;
518*f126890aSEmmanuel Vadot					bias-disable;
519*f126890aSEmmanuel Vadot				};
520*f126890aSEmmanuel Vadot
521*f126890aSEmmanuel Vadot				pinctrl_i2c0_gpio: i2c0_gpio {
522*f126890aSEmmanuel Vadot					pinmux = <PIN_PD21__GPIO>,
523*f126890aSEmmanuel Vadot						 <PIN_PD22__GPIO>;
524*f126890aSEmmanuel Vadot					bias-disable;
525*f126890aSEmmanuel Vadot				};
526*f126890aSEmmanuel Vadot
527*f126890aSEmmanuel Vadot				pinctrl_i2c1_default: i2c1_default {
528*f126890aSEmmanuel Vadot					pinmux = <PIN_PD4__TWD1>,
529*f126890aSEmmanuel Vadot						 <PIN_PD5__TWCK1>;
530*f126890aSEmmanuel Vadot					bias-disable;
531*f126890aSEmmanuel Vadot				};
532*f126890aSEmmanuel Vadot
533*f126890aSEmmanuel Vadot				pinctrl_i2c1_gpio: i2c1_gpio {
534*f126890aSEmmanuel Vadot					pinmux = <PIN_PD4__GPIO>,
535*f126890aSEmmanuel Vadot						 <PIN_PD5__GPIO>;
536*f126890aSEmmanuel Vadot					bias-disable;
537*f126890aSEmmanuel Vadot				};
538*f126890aSEmmanuel Vadot
539*f126890aSEmmanuel Vadot				pinctrl_i2c2_gpio: i2c2_gpio {
540*f126890aSEmmanuel Vadot					pinmux = <PIN_PB28__GPIO>,
541*f126890aSEmmanuel Vadot						 <PIN_PB29__GPIO>;
542*f126890aSEmmanuel Vadot					bias-disable;
543*f126890aSEmmanuel Vadot				};
544*f126890aSEmmanuel Vadot
545*f126890aSEmmanuel Vadot				pinctrl_i2s0_default: i2s0_default {
546*f126890aSEmmanuel Vadot					pinmux = <PIN_PC1__I2SC0_CK>,
547*f126890aSEmmanuel Vadot						 <PIN_PC2__I2SC0_MCK>,
548*f126890aSEmmanuel Vadot						 <PIN_PC3__I2SC0_WS>,
549*f126890aSEmmanuel Vadot						 <PIN_PC4__I2SC0_DI0>,
550*f126890aSEmmanuel Vadot						 <PIN_PC5__I2SC0_DO0>;
551*f126890aSEmmanuel Vadot					bias-disable;
552*f126890aSEmmanuel Vadot				};
553*f126890aSEmmanuel Vadot
554*f126890aSEmmanuel Vadot				pinctrl_i2s1_default: i2s1_default {
555*f126890aSEmmanuel Vadot					pinmux = <PIN_PA15__I2SC1_CK>,
556*f126890aSEmmanuel Vadot						 <PIN_PA14__I2SC1_MCK>,
557*f126890aSEmmanuel Vadot						 <PIN_PA16__I2SC1_WS>,
558*f126890aSEmmanuel Vadot						 <PIN_PA17__I2SC1_DI0>,
559*f126890aSEmmanuel Vadot						 <PIN_PA18__I2SC1_DO0>;
560*f126890aSEmmanuel Vadot					bias-disable;
561*f126890aSEmmanuel Vadot				};
562*f126890aSEmmanuel Vadot
563*f126890aSEmmanuel Vadot				pinctrl_key_gpio_default: key_gpio_default {
564*f126890aSEmmanuel Vadot					pinmux = <PIN_PB9__GPIO>;
565*f126890aSEmmanuel Vadot					bias-pull-up;
566*f126890aSEmmanuel Vadot				};
567*f126890aSEmmanuel Vadot
568*f126890aSEmmanuel Vadot				pinctrl_led_gpio_default: led_gpio_default {
569*f126890aSEmmanuel Vadot					pinmux = <PIN_PB0__GPIO>,
570*f126890aSEmmanuel Vadot						 <PIN_PB5__GPIO>,
571*f126890aSEmmanuel Vadot						 <PIN_PB6__GPIO>;
572*f126890aSEmmanuel Vadot					bias-pull-up;
573*f126890aSEmmanuel Vadot				};
574*f126890aSEmmanuel Vadot
575*f126890aSEmmanuel Vadot				pinctrl_macb0_default: macb0_default {
576*f126890aSEmmanuel Vadot					pinmux = <PIN_PB14__GTXCK>,
577*f126890aSEmmanuel Vadot						 <PIN_PB15__GTXEN>,
578*f126890aSEmmanuel Vadot						 <PIN_PB16__GRXDV>,
579*f126890aSEmmanuel Vadot						 <PIN_PB17__GRXER>,
580*f126890aSEmmanuel Vadot						 <PIN_PB18__GRX0>,
581*f126890aSEmmanuel Vadot						 <PIN_PB19__GRX1>,
582*f126890aSEmmanuel Vadot						 <PIN_PB20__GTX0>,
583*f126890aSEmmanuel Vadot						 <PIN_PB21__GTX1>,
584*f126890aSEmmanuel Vadot						 <PIN_PB22__GMDC>,
585*f126890aSEmmanuel Vadot						 <PIN_PB23__GMDIO>;
586*f126890aSEmmanuel Vadot					bias-disable;
587*f126890aSEmmanuel Vadot				};
588*f126890aSEmmanuel Vadot
589*f126890aSEmmanuel Vadot				pinctrl_macb0_phy_irq: macb0_phy_irq {
590*f126890aSEmmanuel Vadot					pinmux = <PIN_PC9__GPIO>;
591*f126890aSEmmanuel Vadot					bias-disable;
592*f126890aSEmmanuel Vadot				};
593*f126890aSEmmanuel Vadot
594*f126890aSEmmanuel Vadot				pinctrl_qspi0_default: qspi0_default {
595*f126890aSEmmanuel Vadot					sck_cs {
596*f126890aSEmmanuel Vadot						pinmux = <PIN_PA22__QSPI0_SCK>,
597*f126890aSEmmanuel Vadot							 <PIN_PA23__QSPI0_CS>;
598*f126890aSEmmanuel Vadot						bias-disable;
599*f126890aSEmmanuel Vadot					};
600*f126890aSEmmanuel Vadot
601*f126890aSEmmanuel Vadot					data {
602*f126890aSEmmanuel Vadot						pinmux = <PIN_PA24__QSPI0_IO0>,
603*f126890aSEmmanuel Vadot							 <PIN_PA25__QSPI0_IO1>,
604*f126890aSEmmanuel Vadot							 <PIN_PA26__QSPI0_IO2>,
605*f126890aSEmmanuel Vadot							 <PIN_PA27__QSPI0_IO3>;
606*f126890aSEmmanuel Vadot						bias-pull-up;
607*f126890aSEmmanuel Vadot					};
608*f126890aSEmmanuel Vadot				};
609*f126890aSEmmanuel Vadot
610*f126890aSEmmanuel Vadot				pinctrl_sdmmc0_default: sdmmc0_default {
611*f126890aSEmmanuel Vadot					cmd_data {
612*f126890aSEmmanuel Vadot						pinmux = <PIN_PA1__SDMMC0_CMD>,
613*f126890aSEmmanuel Vadot							 <PIN_PA2__SDMMC0_DAT0>,
614*f126890aSEmmanuel Vadot							 <PIN_PA3__SDMMC0_DAT1>,
615*f126890aSEmmanuel Vadot							 <PIN_PA4__SDMMC0_DAT2>,
616*f126890aSEmmanuel Vadot							 <PIN_PA5__SDMMC0_DAT3>,
617*f126890aSEmmanuel Vadot							 <PIN_PA6__SDMMC0_DAT4>,
618*f126890aSEmmanuel Vadot							 <PIN_PA7__SDMMC0_DAT5>,
619*f126890aSEmmanuel Vadot							 <PIN_PA8__SDMMC0_DAT6>,
620*f126890aSEmmanuel Vadot							 <PIN_PA9__SDMMC0_DAT7>;
621*f126890aSEmmanuel Vadot						bias-disable;
622*f126890aSEmmanuel Vadot					};
623*f126890aSEmmanuel Vadot
624*f126890aSEmmanuel Vadot					ck_cd_rstn {
625*f126890aSEmmanuel Vadot						pinmux = <PIN_PA0__SDMMC0_CK>,
626*f126890aSEmmanuel Vadot							 <PIN_PA10__SDMMC0_RSTN>,
627*f126890aSEmmanuel Vadot							 <PIN_PA13__SDMMC0_CD>;
628*f126890aSEmmanuel Vadot						bias-disable;
629*f126890aSEmmanuel Vadot					};
630*f126890aSEmmanuel Vadot				};
631*f126890aSEmmanuel Vadot
632*f126890aSEmmanuel Vadot				pinctrl_sdmmc1_default: sdmmc1_default {
633*f126890aSEmmanuel Vadot					cmd_data {
634*f126890aSEmmanuel Vadot						pinmux = <PIN_PA28__SDMMC1_CMD>,
635*f126890aSEmmanuel Vadot							 <PIN_PA18__SDMMC1_DAT0>,
636*f126890aSEmmanuel Vadot							 <PIN_PA19__SDMMC1_DAT1>,
637*f126890aSEmmanuel Vadot							 <PIN_PA20__SDMMC1_DAT2>,
638*f126890aSEmmanuel Vadot							 <PIN_PA21__SDMMC1_DAT3>;
639*f126890aSEmmanuel Vadot						bias-disable;
640*f126890aSEmmanuel Vadot					};
641*f126890aSEmmanuel Vadot
642*f126890aSEmmanuel Vadot					conf-ck_cd {
643*f126890aSEmmanuel Vadot						pinmux = <PIN_PA22__SDMMC1_CK>,
644*f126890aSEmmanuel Vadot							 <PIN_PA30__SDMMC1_CD>;
645*f126890aSEmmanuel Vadot						bias-disable;
646*f126890aSEmmanuel Vadot					};
647*f126890aSEmmanuel Vadot				};
648*f126890aSEmmanuel Vadot
649*f126890aSEmmanuel Vadot				pinctrl_spi0_default: spi0_default {
650*f126890aSEmmanuel Vadot					pinmux = <PIN_PA14__SPI0_SPCK>,
651*f126890aSEmmanuel Vadot						 <PIN_PA15__SPI0_MOSI>,
652*f126890aSEmmanuel Vadot						 <PIN_PA16__SPI0_MISO>,
653*f126890aSEmmanuel Vadot						 <PIN_PA17__SPI0_NPCS0>;
654*f126890aSEmmanuel Vadot					bias-disable;
655*f126890aSEmmanuel Vadot				};
656*f126890aSEmmanuel Vadot
657*f126890aSEmmanuel Vadot				pinctrl_uart1_default: uart1_default {
658*f126890aSEmmanuel Vadot					pinmux = <PIN_PD2__URXD1>,
659*f126890aSEmmanuel Vadot						 <PIN_PD3__UTXD1>;
660*f126890aSEmmanuel Vadot					bias-disable;
661*f126890aSEmmanuel Vadot				};
662*f126890aSEmmanuel Vadot
663*f126890aSEmmanuel Vadot				pinctrl_uart3_default: uart3_default {
664*f126890aSEmmanuel Vadot					pinmux = <PIN_PB11__URXD3>,
665*f126890aSEmmanuel Vadot						 <PIN_PB12__UTXD3>;
666*f126890aSEmmanuel Vadot					bias-disable;
667*f126890aSEmmanuel Vadot				};
668*f126890aSEmmanuel Vadot
669*f126890aSEmmanuel Vadot				pinctrl_usb_default: usb_default {
670*f126890aSEmmanuel Vadot					pinmux = <PIN_PB10__GPIO>;
671*f126890aSEmmanuel Vadot					bias-disable;
672*f126890aSEmmanuel Vadot				};
673*f126890aSEmmanuel Vadot
674*f126890aSEmmanuel Vadot				pinctrl_usba_vbus: usba_vbus {
675*f126890aSEmmanuel Vadot					pinmux = <PIN_PA31__GPIO>;
676*f126890aSEmmanuel Vadot					bias-disable;
677*f126890aSEmmanuel Vadot				};
678*f126890aSEmmanuel Vadot
679*f126890aSEmmanuel Vadot				pinctrl_pwm0_pwm2_default: pwm0_pwm2_default {
680*f126890aSEmmanuel Vadot					pinmux = <PIN_PB5__PWMH2>,
681*f126890aSEmmanuel Vadot						 <PIN_PB6__PWML2>;
682*f126890aSEmmanuel Vadot					bias-pull-up;
683*f126890aSEmmanuel Vadot				};
684*f126890aSEmmanuel Vadot			};
685*f126890aSEmmanuel Vadot
686*f126890aSEmmanuel Vadot			classd: classd@fc048000 {
687*f126890aSEmmanuel Vadot				pinctrl-names = "default";
688*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_classd_default_pfets &pinctrl_classd_default_nfets>;
689*f126890aSEmmanuel Vadot				atmel,pwm-type = "diff";
690*f126890aSEmmanuel Vadot				atmel,non-overlap-time = <10>;
691*f126890aSEmmanuel Vadot				status = "okay";
692*f126890aSEmmanuel Vadot			};
693*f126890aSEmmanuel Vadot
694*f126890aSEmmanuel Vadot			i2s1: i2s@fc04c000 {
695*f126890aSEmmanuel Vadot				pinctrl-names = "default";
696*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_i2s1_default>;
697*f126890aSEmmanuel Vadot				status = "disabled"; /* conflict with spi0, sdmmc1 */
698*f126890aSEmmanuel Vadot			};
699*f126890aSEmmanuel Vadot
700*f126890aSEmmanuel Vadot			can1: can@fc050000 {
701*f126890aSEmmanuel Vadot				pinctrl-names = "default";
702*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_can1_default>;
703*f126890aSEmmanuel Vadot				status = "okay";
704*f126890aSEmmanuel Vadot			};
705*f126890aSEmmanuel Vadot		};
706*f126890aSEmmanuel Vadot	};
707*f126890aSEmmanuel Vadot
708*f126890aSEmmanuel Vadot	gpio-keys {
709*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
710*f126890aSEmmanuel Vadot
711*f126890aSEmmanuel Vadot		pinctrl-names = "default";
712*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_key_gpio_default>;
713*f126890aSEmmanuel Vadot
714*f126890aSEmmanuel Vadot		button {
715*f126890aSEmmanuel Vadot			label = "PB_USER";
716*f126890aSEmmanuel Vadot			gpios = <&pioA PIN_PB9 GPIO_ACTIVE_LOW>;
717*f126890aSEmmanuel Vadot			linux,code = <KEY_PROG1>;
718*f126890aSEmmanuel Vadot			wakeup-source;
719*f126890aSEmmanuel Vadot		};
720*f126890aSEmmanuel Vadot	};
721*f126890aSEmmanuel Vadot
722*f126890aSEmmanuel Vadot	leds {
723*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
724*f126890aSEmmanuel Vadot		pinctrl-names = "default";
725*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_led_gpio_default>;
726*f126890aSEmmanuel Vadot		status = "okay"; /* conflict with pwm0 */
727*f126890aSEmmanuel Vadot
728*f126890aSEmmanuel Vadot		led-red {
729*f126890aSEmmanuel Vadot			label = "red";
730*f126890aSEmmanuel Vadot			gpios = <&pioA PIN_PB6 GPIO_ACTIVE_LOW>;
731*f126890aSEmmanuel Vadot		};
732*f126890aSEmmanuel Vadot
733*f126890aSEmmanuel Vadot
734*f126890aSEmmanuel Vadot		led-green {
735*f126890aSEmmanuel Vadot			label = "green";
736*f126890aSEmmanuel Vadot			gpios = <&pioA PIN_PB5 GPIO_ACTIVE_LOW>;
737*f126890aSEmmanuel Vadot		};
738*f126890aSEmmanuel Vadot
739*f126890aSEmmanuel Vadot		led-blue {
740*f126890aSEmmanuel Vadot			label = "blue";
741*f126890aSEmmanuel Vadot			gpios = <&pioA PIN_PB0 GPIO_ACTIVE_LOW>;
742*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
743*f126890aSEmmanuel Vadot		};
744*f126890aSEmmanuel Vadot	};
745*f126890aSEmmanuel Vadot};
746