xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/at91-sama5d27_som1_ek.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * at91-sama5d27_som1_ek.dts - Device Tree file for SAMA5D27-SOM1-EK board
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot *  Copyright (c) 2017, Microchip Technology Inc.
6*f126890aSEmmanuel Vadot *                2016 Nicolas Ferre <nicolas.ferre@atmel.com>
7*f126890aSEmmanuel Vadot *                2017 Cristian Birsan <cristian.birsan@microchip.com>
8*f126890aSEmmanuel Vadot *                2017 Claudiu Beznea <claudiu.beznea@microchip.com>
9*f126890aSEmmanuel Vadot */
10*f126890aSEmmanuel Vadot/dts-v1/;
11*f126890aSEmmanuel Vadot#include "at91-sama5d27_som1.dtsi"
12*f126890aSEmmanuel Vadot#include <dt-bindings/mfd/atmel-flexcom.h>
13*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
14*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot/ {
17*f126890aSEmmanuel Vadot	model = "Atmel SAMA5D27 SOM1 EK";
18*f126890aSEmmanuel Vadot	compatible = "atmel,sama5d27-som1-ek", "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	aliases {
21*f126890aSEmmanuel Vadot		serial0 = &uart1;	/* DBGU */
22*f126890aSEmmanuel Vadot		serial1 = &uart4;	/* mikro BUS 1 */
23*f126890aSEmmanuel Vadot		serial2 = &uart2;	/* mikro BUS 2 */
24*f126890aSEmmanuel Vadot		i2c1 = &i2c1;
25*f126890aSEmmanuel Vadot		i2c2 = &i2c3;
26*f126890aSEmmanuel Vadot	};
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot	chosen {
29*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
30*f126890aSEmmanuel Vadot	};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot	ahb {
33*f126890aSEmmanuel Vadot		usb0: gadget@300000 {
34*f126890aSEmmanuel Vadot			atmel,vbus-gpio = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>;
35*f126890aSEmmanuel Vadot			pinctrl-names = "default";
36*f126890aSEmmanuel Vadot			pinctrl-0 = <&pinctrl_usba_vbus>;
37*f126890aSEmmanuel Vadot			status = "okay";
38*f126890aSEmmanuel Vadot		};
39*f126890aSEmmanuel Vadot
40*f126890aSEmmanuel Vadot		usb1: ohci@400000 {
41*f126890aSEmmanuel Vadot			num-ports = <3>;
42*f126890aSEmmanuel Vadot			atmel,vbus-gpio = <0 /* &pioA PIN_PD20 GPIO_ACTIVE_HIGH */
43*f126890aSEmmanuel Vadot					   &pioA PIN_PA27 GPIO_ACTIVE_HIGH
44*f126890aSEmmanuel Vadot					   0
45*f126890aSEmmanuel Vadot					  >;
46*f126890aSEmmanuel Vadot			pinctrl-names = "default";
47*f126890aSEmmanuel Vadot			pinctrl-0 = <&pinctrl_usb_default>;
48*f126890aSEmmanuel Vadot			status = "okay";
49*f126890aSEmmanuel Vadot		};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot		usb2: ehci@500000 {
52*f126890aSEmmanuel Vadot			status = "okay";
53*f126890aSEmmanuel Vadot		};
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot		sdmmc0: sdio-host@a0000000 {
56*f126890aSEmmanuel Vadot			bus-width = <8>;
57*f126890aSEmmanuel Vadot			pinctrl-names = "default";
58*f126890aSEmmanuel Vadot			pinctrl-0 = <&pinctrl_sdmmc0_default>;
59*f126890aSEmmanuel Vadot			status = "okay";
60*f126890aSEmmanuel Vadot		};
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot		sdmmc1: sdio-host@b0000000 {
63*f126890aSEmmanuel Vadot			bus-width = <4>;
64*f126890aSEmmanuel Vadot			pinctrl-names = "default";
65*f126890aSEmmanuel Vadot			pinctrl-0 = <&pinctrl_sdmmc1_default>;
66*f126890aSEmmanuel Vadot			status = "okay";
67*f126890aSEmmanuel Vadot		};
68*f126890aSEmmanuel Vadot
69*f126890aSEmmanuel Vadot		apb {
70*f126890aSEmmanuel Vadot			isc: isc@f0008000 {
71*f126890aSEmmanuel Vadot				pinctrl-names = "default";
72*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_isc_base &pinctrl_isc_data_8bit &pinctrl_isc_data_9_10 &pinctrl_isc_data_11_12>;
73*f126890aSEmmanuel Vadot			};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot			qspi1: spi@f0024000 {
76*f126890aSEmmanuel Vadot				status = "okay";
77*f126890aSEmmanuel Vadot			};
78*f126890aSEmmanuel Vadot
79*f126890aSEmmanuel Vadot			spi0: spi@f8000000 {
80*f126890aSEmmanuel Vadot				pinctrl-names = "default";
81*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_spi0_default>;
82*f126890aSEmmanuel Vadot				status = "okay";
83*f126890aSEmmanuel Vadot			};
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot			macb0: ethernet@f8008000 {
86*f126890aSEmmanuel Vadot				status = "okay";
87*f126890aSEmmanuel Vadot			};
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot			tcb0: timer@f800c000 {
90*f126890aSEmmanuel Vadot				timer0: timer@0 {
91*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
92*f126890aSEmmanuel Vadot					reg = <0>;
93*f126890aSEmmanuel Vadot				};
94*f126890aSEmmanuel Vadot
95*f126890aSEmmanuel Vadot				timer1: timer@1 {
96*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
97*f126890aSEmmanuel Vadot					reg = <1>;
98*f126890aSEmmanuel Vadot				};
99*f126890aSEmmanuel Vadot			};
100*f126890aSEmmanuel Vadot
101*f126890aSEmmanuel Vadot			uart1: serial@f8020000 {
102*f126890aSEmmanuel Vadot				pinctrl-names = "default";
103*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_uart1_default>;
104*f126890aSEmmanuel Vadot				atmel,use-dma-rx;
105*f126890aSEmmanuel Vadot				atmel,use-dma-tx;
106*f126890aSEmmanuel Vadot				status = "okay";
107*f126890aSEmmanuel Vadot			};
108*f126890aSEmmanuel Vadot
109*f126890aSEmmanuel Vadot			uart2: serial@f8024000 {
110*f126890aSEmmanuel Vadot				pinctrl-names = "default";
111*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_mikrobus2_uart>;
112*f126890aSEmmanuel Vadot				atmel,use-dma-rx;
113*f126890aSEmmanuel Vadot				atmel,use-dma-tx;
114*f126890aSEmmanuel Vadot				status = "okay";
115*f126890aSEmmanuel Vadot			};
116*f126890aSEmmanuel Vadot
117*f126890aSEmmanuel Vadot			pwm0: pwm@f802c000 {
118*f126890aSEmmanuel Vadot				pinctrl-names = "default";
119*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_mikrobus1_pwm &pinctrl_mikrobus2_pwm>;
120*f126890aSEmmanuel Vadot				status = "disabled"; /* Conflict with leds. */
121*f126890aSEmmanuel Vadot			};
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot			flx1: flexcom@f8038000 {
124*f126890aSEmmanuel Vadot				atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
125*f126890aSEmmanuel Vadot				status = "okay";
126*f126890aSEmmanuel Vadot
127*f126890aSEmmanuel Vadot				i2c3: i2c@600 {
128*f126890aSEmmanuel Vadot					dmas = <0>, <0>;
129*f126890aSEmmanuel Vadot					i2c-analog-filter;
130*f126890aSEmmanuel Vadot					i2c-digital-filter;
131*f126890aSEmmanuel Vadot					i2c-digital-filter-width-ns = <35>;
132*f126890aSEmmanuel Vadot					pinctrl-names = "default", "gpio";
133*f126890aSEmmanuel Vadot					pinctrl-0 = <&pinctrl_mikrobus_i2c>;
134*f126890aSEmmanuel Vadot					pinctrl-1 = <&pinctrl_i2c3_gpio>;
135*f126890aSEmmanuel Vadot					sda-gpios = <&pioA PIN_PA24 GPIO_ACTIVE_HIGH>;
136*f126890aSEmmanuel Vadot					scl-gpios = <&pioA PIN_PA23 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
137*f126890aSEmmanuel Vadot					status = "okay";
138*f126890aSEmmanuel Vadot				};
139*f126890aSEmmanuel Vadot			};
140*f126890aSEmmanuel Vadot
141*f126890aSEmmanuel Vadot			poweroff@f8048010 {
142*f126890aSEmmanuel Vadot				debounce-delay-us = <976>;
143*f126890aSEmmanuel Vadot				atmel,wakeup-rtc-timer;
144*f126890aSEmmanuel Vadot
145*f126890aSEmmanuel Vadot				input@0 {
146*f126890aSEmmanuel Vadot					reg = <0>;
147*f126890aSEmmanuel Vadot				};
148*f126890aSEmmanuel Vadot			};
149*f126890aSEmmanuel Vadot
150*f126890aSEmmanuel Vadot			watchdog@f8048040 {
151*f126890aSEmmanuel Vadot				status = "okay";
152*f126890aSEmmanuel Vadot			};
153*f126890aSEmmanuel Vadot
154*f126890aSEmmanuel Vadot			uart3: serial@fc008000 {
155*f126890aSEmmanuel Vadot				atmel,use-dma-rx;
156*f126890aSEmmanuel Vadot				atmel,use-dma-tx;
157*f126890aSEmmanuel Vadot				pinctrl-names = "default";
158*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_uart3_default>;
159*f126890aSEmmanuel Vadot				status = "disabled"; /* Conflict with isc. */
160*f126890aSEmmanuel Vadot			};
161*f126890aSEmmanuel Vadot
162*f126890aSEmmanuel Vadot			uart4: serial@fc00c000 {
163*f126890aSEmmanuel Vadot				atmel,use-dma-rx;
164*f126890aSEmmanuel Vadot				atmel,use-dma-tx;
165*f126890aSEmmanuel Vadot				pinctrl-names = "default";
166*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_mikrobus1_uart>;
167*f126890aSEmmanuel Vadot				status = "okay";
168*f126890aSEmmanuel Vadot			};
169*f126890aSEmmanuel Vadot
170*f126890aSEmmanuel Vadot			flx3: flexcom@fc014000 {
171*f126890aSEmmanuel Vadot				atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
172*f126890aSEmmanuel Vadot				status = "disabled";
173*f126890aSEmmanuel Vadot
174*f126890aSEmmanuel Vadot				uart8: serial@200 {
175*f126890aSEmmanuel Vadot					dmas = <0>, <0>;
176*f126890aSEmmanuel Vadot					pinctrl-names = "default";
177*f126890aSEmmanuel Vadot					pinctrl-0 = <&pinctrl_flx3_default>;
178*f126890aSEmmanuel Vadot					status = "disabled"; /* Conflict with isc. */
179*f126890aSEmmanuel Vadot				};
180*f126890aSEmmanuel Vadot
181*f126890aSEmmanuel Vadot				spi5: spi@400 {
182*f126890aSEmmanuel Vadot					dmas = <0>, <0>;
183*f126890aSEmmanuel Vadot					pinctrl-names = "default";
184*f126890aSEmmanuel Vadot					pinctrl-0 = <&pinctrl_flx3_default>;
185*f126890aSEmmanuel Vadot					status = "disabled"; /* Conflict with isc. */
186*f126890aSEmmanuel Vadot				};
187*f126890aSEmmanuel Vadot			};
188*f126890aSEmmanuel Vadot
189*f126890aSEmmanuel Vadot			flx4: flexcom@fc018000 {
190*f126890aSEmmanuel Vadot				atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
191*f126890aSEmmanuel Vadot				status = "okay";
192*f126890aSEmmanuel Vadot
193*f126890aSEmmanuel Vadot				uart9: serial@200 {
194*f126890aSEmmanuel Vadot					dmas = <0>, <0>;
195*f126890aSEmmanuel Vadot					pinctrl-names = "default";
196*f126890aSEmmanuel Vadot					pinctrl-0 = <&pinctrl_flx4_default>;
197*f126890aSEmmanuel Vadot					status = "disabled"; /* Conflict with spi6 and i2c6. */
198*f126890aSEmmanuel Vadot				};
199*f126890aSEmmanuel Vadot
200*f126890aSEmmanuel Vadot				spi6: spi@400 {
201*f126890aSEmmanuel Vadot					dmas = <0>, <0>;
202*f126890aSEmmanuel Vadot					pinctrl-names = "default";
203*f126890aSEmmanuel Vadot					pinctrl-0 = <&pinctrl_mikrobus_spi &pinctrl_mikrobus1_spi_cs &pinctrl_mikrobus2_spi_cs>;
204*f126890aSEmmanuel Vadot					status = "okay"; /* Conflict with uart5 and i2c6. */
205*f126890aSEmmanuel Vadot				};
206*f126890aSEmmanuel Vadot
207*f126890aSEmmanuel Vadot				i2c6: i2c@600 {
208*f126890aSEmmanuel Vadot					dmas = <0>, <0>;
209*f126890aSEmmanuel Vadot					pinctrl-names = "default";
210*f126890aSEmmanuel Vadot					pinctrl-0 = <&pinctrl_flx4_default>;
211*f126890aSEmmanuel Vadot					status = "disabled"; /* Conflict with uart5 and spi6. */
212*f126890aSEmmanuel Vadot				};
213*f126890aSEmmanuel Vadot			};
214*f126890aSEmmanuel Vadot
215*f126890aSEmmanuel Vadot			i2c1: i2c@fc028000 {
216*f126890aSEmmanuel Vadot				dmas = <0>, <0>;
217*f126890aSEmmanuel Vadot				i2c-analog-filter;
218*f126890aSEmmanuel Vadot				i2c-digital-filter;
219*f126890aSEmmanuel Vadot				i2c-digital-filter-width-ns = <35>;
220*f126890aSEmmanuel Vadot				pinctrl-names = "default", "gpio";
221*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_i2c1_default>;
222*f126890aSEmmanuel Vadot				pinctrl-1 = <&pinctrl_i2c1_gpio>;
223*f126890aSEmmanuel Vadot				sda-gpios = <&pioA PIN_PD4 GPIO_ACTIVE_HIGH>;
224*f126890aSEmmanuel Vadot				scl-gpios = <&pioA PIN_PD5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
225*f126890aSEmmanuel Vadot				status = "okay";
226*f126890aSEmmanuel Vadot			};
227*f126890aSEmmanuel Vadot
228*f126890aSEmmanuel Vadot			adc: adc@fc030000 {
229*f126890aSEmmanuel Vadot				vddana-supply = <&vddana>;
230*f126890aSEmmanuel Vadot				vref-supply = <&advref>;
231*f126890aSEmmanuel Vadot				pinctrl-names = "default";
232*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_mikrobus1_an &pinctrl_mikrobus2_an>;
233*f126890aSEmmanuel Vadot
234*f126890aSEmmanuel Vadot				status = "okay";
235*f126890aSEmmanuel Vadot			};
236*f126890aSEmmanuel Vadot
237*f126890aSEmmanuel Vadot			pinctrl@fc038000 {
238*f126890aSEmmanuel Vadot
239*f126890aSEmmanuel Vadot				pinctrl_can1_default: can1_default {
240*f126890aSEmmanuel Vadot					pinmux = <PIN_PC26__CANTX1>,
241*f126890aSEmmanuel Vadot						 <PIN_PC27__CANRX1>;
242*f126890aSEmmanuel Vadot					bias-disable;
243*f126890aSEmmanuel Vadot				};
244*f126890aSEmmanuel Vadot
245*f126890aSEmmanuel Vadot				pinctrl_flx3_default: flx3_default {
246*f126890aSEmmanuel Vadot					pinmux = <PIN_PC20__FLEXCOM3_IO0>,
247*f126890aSEmmanuel Vadot						 <PIN_PC19__FLEXCOM3_IO1>,
248*f126890aSEmmanuel Vadot						 <PIN_PC18__FLEXCOM3_IO2>,
249*f126890aSEmmanuel Vadot						 <PIN_PC21__FLEXCOM3_IO3>,
250*f126890aSEmmanuel Vadot						 <PIN_PC22__FLEXCOM3_IO4>;
251*f126890aSEmmanuel Vadot					bias-disable;
252*f126890aSEmmanuel Vadot				};
253*f126890aSEmmanuel Vadot
254*f126890aSEmmanuel Vadot				pinctrl_i2c1_default: i2c1_default {
255*f126890aSEmmanuel Vadot					pinmux = <PIN_PD4__TWD1>,
256*f126890aSEmmanuel Vadot						 <PIN_PD5__TWCK1>;
257*f126890aSEmmanuel Vadot					bias-disable;
258*f126890aSEmmanuel Vadot				};
259*f126890aSEmmanuel Vadot
260*f126890aSEmmanuel Vadot				pinctrl_i2c1_gpio: i2c1_gpio {
261*f126890aSEmmanuel Vadot                                        pinmux = <PIN_PD4__GPIO>,
262*f126890aSEmmanuel Vadot                                                 <PIN_PD5__GPIO>;
263*f126890aSEmmanuel Vadot                                        bias-disable;
264*f126890aSEmmanuel Vadot                                };
265*f126890aSEmmanuel Vadot
266*f126890aSEmmanuel Vadot
267*f126890aSEmmanuel Vadot				pinctrl_isc_base: isc_base {
268*f126890aSEmmanuel Vadot					pinmux = <PIN_PC21__ISC_PCK>,
269*f126890aSEmmanuel Vadot						 <PIN_PC22__ISC_VSYNC>,
270*f126890aSEmmanuel Vadot						 <PIN_PC23__ISC_HSYNC>,
271*f126890aSEmmanuel Vadot						 <PIN_PC24__ISC_MCK>;
272*f126890aSEmmanuel Vadot					bias-disable;
273*f126890aSEmmanuel Vadot				};
274*f126890aSEmmanuel Vadot
275*f126890aSEmmanuel Vadot				pinctrl_isc_data_8bit: isc_data_8bit {
276*f126890aSEmmanuel Vadot					pinmux = <PIN_PC20__ISC_D11>,
277*f126890aSEmmanuel Vadot						 <PIN_PC19__ISC_D10>,
278*f126890aSEmmanuel Vadot						 <PIN_PC18__ISC_D9>,
279*f126890aSEmmanuel Vadot						 <PIN_PC17__ISC_D8>,
280*f126890aSEmmanuel Vadot						 <PIN_PC16__ISC_D7>,
281*f126890aSEmmanuel Vadot						 <PIN_PC15__ISC_D6>,
282*f126890aSEmmanuel Vadot						 <PIN_PC14__ISC_D5>,
283*f126890aSEmmanuel Vadot						 <PIN_PC13__ISC_D4>;
284*f126890aSEmmanuel Vadot					bias-disable;
285*f126890aSEmmanuel Vadot				};
286*f126890aSEmmanuel Vadot
287*f126890aSEmmanuel Vadot				pinctrl_isc_data_9_10: isc_data_9_10 {
288*f126890aSEmmanuel Vadot					pinmux = <PIN_PC12__ISC_D3>,
289*f126890aSEmmanuel Vadot						 <PIN_PC11__ISC_D2>;
290*f126890aSEmmanuel Vadot					bias-disable;
291*f126890aSEmmanuel Vadot				};
292*f126890aSEmmanuel Vadot
293*f126890aSEmmanuel Vadot				pinctrl_isc_data_11_12: isc_data_11_12 {
294*f126890aSEmmanuel Vadot					pinmux = <PIN_PC10__ISC_D1>,
295*f126890aSEmmanuel Vadot						 <PIN_PC9__ISC_D0>;
296*f126890aSEmmanuel Vadot					bias-disable;
297*f126890aSEmmanuel Vadot				};
298*f126890aSEmmanuel Vadot
299*f126890aSEmmanuel Vadot				pinctrl_key_gpio_default: key_gpio_default {
300*f126890aSEmmanuel Vadot					pinmux = <PIN_PA29__GPIO>;
301*f126890aSEmmanuel Vadot					bias-pull-up;
302*f126890aSEmmanuel Vadot				};
303*f126890aSEmmanuel Vadot
304*f126890aSEmmanuel Vadot				pinctrl_led_gpio_default: led_gpio_default {
305*f126890aSEmmanuel Vadot					pinmux = <PIN_PA10__GPIO>,
306*f126890aSEmmanuel Vadot						 <PIN_PB1__GPIO>,
307*f126890aSEmmanuel Vadot						 <PIN_PA31__GPIO>;
308*f126890aSEmmanuel Vadot					bias-pull-up;
309*f126890aSEmmanuel Vadot				};
310*f126890aSEmmanuel Vadot
311*f126890aSEmmanuel Vadot				pinctrl_sdmmc0_default: sdmmc0_default {
312*f126890aSEmmanuel Vadot					cmd_data {
313*f126890aSEmmanuel Vadot						pinmux = <PIN_PA1__SDMMC0_CMD>,
314*f126890aSEmmanuel Vadot							 <PIN_PA2__SDMMC0_DAT0>,
315*f126890aSEmmanuel Vadot							 <PIN_PA3__SDMMC0_DAT1>,
316*f126890aSEmmanuel Vadot							 <PIN_PA4__SDMMC0_DAT2>,
317*f126890aSEmmanuel Vadot							 <PIN_PA5__SDMMC0_DAT3>,
318*f126890aSEmmanuel Vadot							 <PIN_PA6__SDMMC0_DAT4>,
319*f126890aSEmmanuel Vadot							 <PIN_PA7__SDMMC0_DAT5>,
320*f126890aSEmmanuel Vadot							 <PIN_PA8__SDMMC0_DAT6>,
321*f126890aSEmmanuel Vadot							 <PIN_PA9__SDMMC0_DAT7>;
322*f126890aSEmmanuel Vadot						bias-disable;
323*f126890aSEmmanuel Vadot					};
324*f126890aSEmmanuel Vadot
325*f126890aSEmmanuel Vadot					ck_cd_vddsel {
326*f126890aSEmmanuel Vadot						pinmux = <PIN_PA0__SDMMC0_CK>,
327*f126890aSEmmanuel Vadot							 <PIN_PA11__SDMMC0_VDDSEL>,
328*f126890aSEmmanuel Vadot							 <PIN_PA13__SDMMC0_CD>;
329*f126890aSEmmanuel Vadot						bias-disable;
330*f126890aSEmmanuel Vadot					};
331*f126890aSEmmanuel Vadot				};
332*f126890aSEmmanuel Vadot
333*f126890aSEmmanuel Vadot				pinctrl_sdmmc1_default: sdmmc1_default {
334*f126890aSEmmanuel Vadot					cmd_data {
335*f126890aSEmmanuel Vadot						pinmux = <PIN_PA28__SDMMC1_CMD>,
336*f126890aSEmmanuel Vadot							 <PIN_PA18__SDMMC1_DAT0>,
337*f126890aSEmmanuel Vadot							 <PIN_PA19__SDMMC1_DAT1>,
338*f126890aSEmmanuel Vadot							 <PIN_PA20__SDMMC1_DAT2>,
339*f126890aSEmmanuel Vadot							 <PIN_PA21__SDMMC1_DAT3>;
340*f126890aSEmmanuel Vadot						bias-disable;
341*f126890aSEmmanuel Vadot					};
342*f126890aSEmmanuel Vadot
343*f126890aSEmmanuel Vadot					conf-ck_cd {
344*f126890aSEmmanuel Vadot						pinmux = <PIN_PA22__SDMMC1_CK>,
345*f126890aSEmmanuel Vadot							 <PIN_PA30__SDMMC1_CD>;
346*f126890aSEmmanuel Vadot						bias-disable;
347*f126890aSEmmanuel Vadot					};
348*f126890aSEmmanuel Vadot				};
349*f126890aSEmmanuel Vadot
350*f126890aSEmmanuel Vadot				pinctrl_spi0_default: spi0_default {
351*f126890aSEmmanuel Vadot					pinmux = <PIN_PA14__SPI0_SPCK>,
352*f126890aSEmmanuel Vadot						 <PIN_PA15__SPI0_MOSI>,
353*f126890aSEmmanuel Vadot						 <PIN_PA16__SPI0_MISO>,
354*f126890aSEmmanuel Vadot						 <PIN_PA17__SPI0_NPCS0>;
355*f126890aSEmmanuel Vadot					bias-disable;
356*f126890aSEmmanuel Vadot				};
357*f126890aSEmmanuel Vadot
358*f126890aSEmmanuel Vadot				pinctrl_uart1_default: uart1_default {
359*f126890aSEmmanuel Vadot					pinmux = <PIN_PD2__URXD1>,
360*f126890aSEmmanuel Vadot						 <PIN_PD3__UTXD1>;
361*f126890aSEmmanuel Vadot					bias-disable;
362*f126890aSEmmanuel Vadot				};
363*f126890aSEmmanuel Vadot
364*f126890aSEmmanuel Vadot				pinctrl_uart3_default: uart3_default {
365*f126890aSEmmanuel Vadot					pinmux = <PIN_PC12__URXD3>,
366*f126890aSEmmanuel Vadot						 <PIN_PC13__UTXD3>;
367*f126890aSEmmanuel Vadot					bias-disable;
368*f126890aSEmmanuel Vadot				};
369*f126890aSEmmanuel Vadot
370*f126890aSEmmanuel Vadot				pinctrl_usb_default: usb_default {
371*f126890aSEmmanuel Vadot					pinmux = <PIN_PA27__GPIO>,
372*f126890aSEmmanuel Vadot						 <PIN_PD19__GPIO>;
373*f126890aSEmmanuel Vadot					bias-disable;
374*f126890aSEmmanuel Vadot				};
375*f126890aSEmmanuel Vadot
376*f126890aSEmmanuel Vadot				pinctrl_usba_vbus: usba_vbus {
377*f126890aSEmmanuel Vadot					pinmux = <PIN_PD20__GPIO>;
378*f126890aSEmmanuel Vadot					bias-disable;
379*f126890aSEmmanuel Vadot				};
380*f126890aSEmmanuel Vadot
381*f126890aSEmmanuel Vadot				pinctrl_mikrobus1_an: mikrobus1_an {
382*f126890aSEmmanuel Vadot					pinmux = <PIN_PD25__GPIO>;
383*f126890aSEmmanuel Vadot					bias-disable;
384*f126890aSEmmanuel Vadot				};
385*f126890aSEmmanuel Vadot
386*f126890aSEmmanuel Vadot				pinctrl_mikrobus2_an: mikrobus2_an {
387*f126890aSEmmanuel Vadot					pinmux = <PIN_PD26__GPIO>;
388*f126890aSEmmanuel Vadot					bias-disable;
389*f126890aSEmmanuel Vadot				};
390*f126890aSEmmanuel Vadot
391*f126890aSEmmanuel Vadot				pinctrl_mikrobus1_rst: mikrobus1_rst {
392*f126890aSEmmanuel Vadot					pinmux = <PIN_PB2__GPIO>;
393*f126890aSEmmanuel Vadot					bias-disable;
394*f126890aSEmmanuel Vadot				};
395*f126890aSEmmanuel Vadot
396*f126890aSEmmanuel Vadot				pinctrl_mikrobus2_rst: mikrobus2_rst {
397*f126890aSEmmanuel Vadot					pinmux = <PIN_PA26__GPIO>;
398*f126890aSEmmanuel Vadot					bias-disable;
399*f126890aSEmmanuel Vadot				};
400*f126890aSEmmanuel Vadot
401*f126890aSEmmanuel Vadot				pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
402*f126890aSEmmanuel Vadot					pinmux = <PIN_PD0__FLEXCOM4_IO4>;
403*f126890aSEmmanuel Vadot					bias-disable;
404*f126890aSEmmanuel Vadot				};
405*f126890aSEmmanuel Vadot
406*f126890aSEmmanuel Vadot				pinctrl_mikrobus2_spi_cs: mikrobus2_spi_cs {
407*f126890aSEmmanuel Vadot					pinmux = <PIN_PC31__FLEXCOM4_IO3>;
408*f126890aSEmmanuel Vadot					bias-disable;
409*f126890aSEmmanuel Vadot				};
410*f126890aSEmmanuel Vadot
411*f126890aSEmmanuel Vadot				pinctrl_mikrobus_spi: mikrobus_spi {
412*f126890aSEmmanuel Vadot					pinmux = <PIN_PC28__FLEXCOM4_IO0>,
413*f126890aSEmmanuel Vadot						 <PIN_PC29__FLEXCOM4_IO1>,
414*f126890aSEmmanuel Vadot						 <PIN_PC30__FLEXCOM4_IO2>;
415*f126890aSEmmanuel Vadot					bias-disable;
416*f126890aSEmmanuel Vadot				};
417*f126890aSEmmanuel Vadot
418*f126890aSEmmanuel Vadot				pinctrl_mikrobus1_pwm: mikrobus1_pwm {
419*f126890aSEmmanuel Vadot					pinmux = <PIN_PB1__PWML1>;
420*f126890aSEmmanuel Vadot					bias-disable;
421*f126890aSEmmanuel Vadot				};
422*f126890aSEmmanuel Vadot
423*f126890aSEmmanuel Vadot				pinctrl_mikrobus2_pwm: mikrobus2_pwm {
424*f126890aSEmmanuel Vadot					pinmux = <PIN_PA31__PWML0>;
425*f126890aSEmmanuel Vadot					bias-disable;
426*f126890aSEmmanuel Vadot				};
427*f126890aSEmmanuel Vadot
428*f126890aSEmmanuel Vadot				pinctrl_mikrobus1_int: mikrobus1_int {
429*f126890aSEmmanuel Vadot					pinmux = <PIN_PB0__GPIO>;
430*f126890aSEmmanuel Vadot					bias-disable;
431*f126890aSEmmanuel Vadot				};
432*f126890aSEmmanuel Vadot
433*f126890aSEmmanuel Vadot				pinctrl_mikrobus2_int: mikrobus2_int {
434*f126890aSEmmanuel Vadot					pinmux = <PIN_PA25__GPIO>;
435*f126890aSEmmanuel Vadot					bias-disable;
436*f126890aSEmmanuel Vadot				};
437*f126890aSEmmanuel Vadot
438*f126890aSEmmanuel Vadot				pinctrl_mikrobus1_uart: mikrobus1_uart {
439*f126890aSEmmanuel Vadot					pinmux = <PIN_PB3__URXD4>,
440*f126890aSEmmanuel Vadot						 <PIN_PB4__UTXD4>;
441*f126890aSEmmanuel Vadot					bias-disable;
442*f126890aSEmmanuel Vadot				};
443*f126890aSEmmanuel Vadot
444*f126890aSEmmanuel Vadot				pinctrl_mikrobus2_uart: mikrobus2_uart {
445*f126890aSEmmanuel Vadot					pinmux = <PIN_PD23__URXD2>,
446*f126890aSEmmanuel Vadot						 <PIN_PD24__UTXD2>;
447*f126890aSEmmanuel Vadot					bias-disable;
448*f126890aSEmmanuel Vadot				};
449*f126890aSEmmanuel Vadot
450*f126890aSEmmanuel Vadot				pinctrl_mikrobus_i2c: mikrobus1_i2c {
451*f126890aSEmmanuel Vadot					pinmux = <PIN_PA24__FLEXCOM1_IO0>,
452*f126890aSEmmanuel Vadot						 <PIN_PA23__FLEXCOM1_IO1>;
453*f126890aSEmmanuel Vadot					bias-disable;
454*f126890aSEmmanuel Vadot				};
455*f126890aSEmmanuel Vadot
456*f126890aSEmmanuel Vadot				pinctrl_i2c3_gpio: i2c3_gpio {
457*f126890aSEmmanuel Vadot					pinmux = <PIN_PA24__GPIO>,
458*f126890aSEmmanuel Vadot						 <PIN_PA23__GPIO>;
459*f126890aSEmmanuel Vadot					bias-disable;
460*f126890aSEmmanuel Vadot				};
461*f126890aSEmmanuel Vadot
462*f126890aSEmmanuel Vadot				pinctrl_flx4_default: flx4_uart_default {
463*f126890aSEmmanuel Vadot					pinmux = <PIN_PC28__FLEXCOM4_IO0>,
464*f126890aSEmmanuel Vadot						 <PIN_PC29__FLEXCOM4_IO1>,
465*f126890aSEmmanuel Vadot						 <PIN_PC30__FLEXCOM4_IO2>,
466*f126890aSEmmanuel Vadot						 <PIN_PC31__FLEXCOM4_IO3>,
467*f126890aSEmmanuel Vadot						 <PIN_PD0__FLEXCOM4_IO4>;
468*f126890aSEmmanuel Vadot					bias-disable;
469*f126890aSEmmanuel Vadot				};
470*f126890aSEmmanuel Vadot			};
471*f126890aSEmmanuel Vadot
472*f126890aSEmmanuel Vadot			can1: can@fc050000 {
473*f126890aSEmmanuel Vadot				pinctrl-names = "default";
474*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_can1_default>;
475*f126890aSEmmanuel Vadot				status = "okay";
476*f126890aSEmmanuel Vadot			};
477*f126890aSEmmanuel Vadot		};
478*f126890aSEmmanuel Vadot	};
479*f126890aSEmmanuel Vadot
480*f126890aSEmmanuel Vadot	gpio-keys {
481*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
482*f126890aSEmmanuel Vadot
483*f126890aSEmmanuel Vadot		pinctrl-names = "default";
484*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_key_gpio_default>;
485*f126890aSEmmanuel Vadot
486*f126890aSEmmanuel Vadot		button {
487*f126890aSEmmanuel Vadot			label = "USER";
488*f126890aSEmmanuel Vadot			gpios = <&pioA PIN_PA29 GPIO_ACTIVE_LOW>;
489*f126890aSEmmanuel Vadot			linux,code = <KEY_PROG1>;
490*f126890aSEmmanuel Vadot			wakeup-source;
491*f126890aSEmmanuel Vadot		};
492*f126890aSEmmanuel Vadot	};
493*f126890aSEmmanuel Vadot
494*f126890aSEmmanuel Vadot	leds {
495*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
496*f126890aSEmmanuel Vadot		pinctrl-names = "default";
497*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_led_gpio_default>;
498*f126890aSEmmanuel Vadot		status = "okay"; /* Conflict with pwm0. */
499*f126890aSEmmanuel Vadot
500*f126890aSEmmanuel Vadot		led-red {
501*f126890aSEmmanuel Vadot			label = "red";
502*f126890aSEmmanuel Vadot			gpios = <&pioA PIN_PA10 GPIO_ACTIVE_HIGH>;
503*f126890aSEmmanuel Vadot		};
504*f126890aSEmmanuel Vadot
505*f126890aSEmmanuel Vadot		led-green {
506*f126890aSEmmanuel Vadot			label = "green";
507*f126890aSEmmanuel Vadot			gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
508*f126890aSEmmanuel Vadot		};
509*f126890aSEmmanuel Vadot
510*f126890aSEmmanuel Vadot		led-blue {
511*f126890aSEmmanuel Vadot			label = "blue";
512*f126890aSEmmanuel Vadot			gpios = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
513*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
514*f126890aSEmmanuel Vadot		};
515*f126890aSEmmanuel Vadot	};
516*f126890aSEmmanuel Vadot
517*f126890aSEmmanuel Vadot	vddin_3v3: fixed-regulator-vddin_3v3 {
518*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
519*f126890aSEmmanuel Vadot
520*f126890aSEmmanuel Vadot		regulator-name = "VDDIN_3V3";
521*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
522*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
523*f126890aSEmmanuel Vadot		regulator-always-on;
524*f126890aSEmmanuel Vadot		regulator-boot-on;
525*f126890aSEmmanuel Vadot		status = "okay";
526*f126890aSEmmanuel Vadot	};
527*f126890aSEmmanuel Vadot
528*f126890aSEmmanuel Vadot	vddana: fixed-regulator-vddana {
529*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
530*f126890aSEmmanuel Vadot
531*f126890aSEmmanuel Vadot		regulator-name = "VDDANA";
532*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
533*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
534*f126890aSEmmanuel Vadot		regulator-always-on;
535*f126890aSEmmanuel Vadot		regulator-boot-on;
536*f126890aSEmmanuel Vadot		vin-supply = <&vddin_3v3>;
537*f126890aSEmmanuel Vadot		status = "okay";
538*f126890aSEmmanuel Vadot	};
539*f126890aSEmmanuel Vadot
540*f126890aSEmmanuel Vadot	advref: fixed-regulator-advref {
541*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
542*f126890aSEmmanuel Vadot
543*f126890aSEmmanuel Vadot		regulator-name = "advref";
544*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
545*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
546*f126890aSEmmanuel Vadot		regulator-always-on;
547*f126890aSEmmanuel Vadot		regulator-boot-on;
548*f126890aSEmmanuel Vadot		vin-supply = <&vddana>;
549*f126890aSEmmanuel Vadot		status = "okay";
550*f126890aSEmmanuel Vadot	};
551*f126890aSEmmanuel Vadot};
552