1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 *  at91-sama7g5ek.dts - Device Tree file for SAMA7G5-EK board
4 *
5 *  Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries
6 *
7 *  Author: Eugen Hristev <eugen.hristev@microchip.com>
8 *  Author: Claudiu Beznea <claudiu.beznea@microchip.com>
9 *
10 */
11/dts-v1/;
12#include "sama7g5-pinfunc.h"
13#include "sama7g5.dtsi"
14#include <dt-bindings/mfd/atmel-flexcom.h>
15#include <dt-bindings/input/input.h>
16#include <dt-bindings/pinctrl/at91.h>
17#include <dt-bindings/sound/microchip,pdmc.h>
18
19/ {
20	model = "Microchip SAMA7G5-EK";
21	compatible = "microchip,sama7g5ek", "microchip,sama7g5", "microchip,sama7";
22
23	chosen {
24		bootargs = "rw root=/dev/mmcblk1p2 rootfstype=ext4 rootwait";
25		stdout-path = "serial0:115200n8";
26	};
27
28	aliases {
29		serial0 = &uart3;
30		serial1 = &uart4;
31		serial2 = &uart7;
32		serial3 = &uart0;
33		i2c0 = &i2c1;
34		i2c1 = &i2c8;
35		i2c2 = &i2c9;
36	};
37
38	clocks {
39		slow_xtal {
40			clock-frequency = <32768>;
41		};
42
43		main_xtal {
44			clock-frequency = <24000000>;
45		};
46	};
47
48	gpio-keys {
49		compatible = "gpio-keys";
50
51		pinctrl-names = "default";
52		pinctrl-0 = <&pinctrl_key_gpio_default>;
53
54		button {
55			label = "PB_USER";
56			gpios = <&pioA PIN_PA12 GPIO_ACTIVE_LOW>;
57			linux,code = <KEY_PROG1>;
58			wakeup-source;
59		};
60	};
61
62	leds {
63		compatible = "gpio-leds";
64		pinctrl-names = "default";
65		pinctrl-0 = <&pinctrl_led_gpio_default>;
66		status = "okay"; /* Conflict with pwm. */
67
68		red_led {
69			label = "red";
70			gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
71		};
72
73		green_led {
74			label = "green";
75			gpios = <&pioA PIN_PA13 GPIO_ACTIVE_HIGH>;
76		};
77
78		blue_led {
79			label = "blue";
80			gpios = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>;
81			linux,default-trigger = "heartbeat";
82		};
83	};
84
85	/* 512 M */
86	memory@60000000 {
87		device_type = "memory";
88		reg = <0x60000000 0x20000000>;
89	};
90
91	sound: sound {
92		compatible = "simple-audio-card";
93		simple-audio-card,name = "sama7g5ek audio";
94		#address-cells = <1>;
95		#size-cells = <0>;
96		simple-audio-card,dai-link@0 {
97			reg = <0>;
98			cpu {
99				sound-dai = <&spdiftx>;
100			};
101			codec {
102				sound-dai = <&spdif_out>;
103			};
104		};
105		simple-audio-card,dai-link@1 {
106			reg = <1>;
107			cpu {
108				sound-dai = <&spdifrx>;
109			};
110			codec {
111				sound-dai = <&spdif_in>;
112			};
113		};
114	};
115
116	spdif_in: spdif-in {
117		#sound-dai-cells = <0>;
118		compatible = "linux,spdif-dir";
119	};
120
121	spdif_out: spdif-out {
122		#sound-dai-cells = <0>;
123		compatible = "linux,spdif-dit";
124	};
125};
126
127&adc {
128	vddana-supply = <&vddout25>;
129	vref-supply = <&vddout25>;
130	pinctrl-names = "default";
131	pinctrl-0 = <&pinctrl_mikrobus1_an_default &pinctrl_mikrobus2_an_default>;
132	status = "okay";
133};
134
135&can0 {
136	pinctrl-names = "default";
137	pinctrl-0 = <&pinctrl_can0_default>;
138	status = "okay";
139};
140
141&can1 {
142	pinctrl-names = "default";
143	pinctrl-0 = <&pinctrl_can1_default>;
144	status = "okay";
145};
146
147&cpu0 {
148	cpu-supply = <&vddcpu>;
149};
150
151&qspi0 {
152	pinctrl-names = "default";
153	pinctrl-0 = <&pinctrl_qspi>;
154	status = "okay";
155
156	flash@0 {
157		#address-cells = <1>;
158		#size-cells = <1>;
159		compatible = "jedec,spi-nor";
160		reg = <0>;
161		spi-max-frequency = <133000000>;
162		spi-tx-bus-width = <8>;
163		spi-rx-bus-width = <8>;
164		m25p,fast-read;
165
166		at91bootstrap@0 {
167			label = "ospi: at91bootstrap";
168			reg = <0x0 0x40000>;
169		};
170
171		bootloader@40000 {
172			label = "ospi: bootloader";
173			reg = <0x40000 0xc0000>;
174		};
175
176		bootloaderenvred@100000 {
177			label = "ospi: bootloader env redundant";
178			reg = <0x100000 0x40000>;
179		};
180
181		bootloaderenv@140000 {
182			label = "ospi: bootloader env";
183			reg = <0x140000 0x40000>;
184		};
185
186		dtb@180000 {
187			label = "ospi: device tree";
188			reg = <0x180000 0x80000>;
189		};
190
191		kernel@200000 {
192			label = "ospi: kernel";
193			reg = <0x200000 0x600000>;
194		};
195
196		rootfs@800000 {
197			label = "ospi: rootfs";
198			reg = <0x800000 0x7800000>;
199		};
200
201	};
202};
203
204&dma0 {
205	status = "okay";
206};
207
208&dma1 {
209	status = "okay";
210};
211
212&dma2 {
213	status = "okay";
214};
215
216&flx0 {
217	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
218	status = "disabled";
219
220	uart0: serial@200 {
221		pinctrl-names = "default";
222		pinctrl-0 = <&pinctrl_flx0_default>;
223		status = "disabled";
224	};
225};
226
227&flx1 {
228	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
229	status = "okay";
230
231	i2c1: i2c@600 {
232		pinctrl-names = "default";
233		pinctrl-0 = <&pinctrl_i2c1_default>;
234		i2c-analog-filter;
235		i2c-digital-filter;
236		i2c-digital-filter-width-ns = <35>;
237		status = "okay";
238
239		mcp16502@5b {
240			compatible = "microchip,mcp16502";
241			reg = <0x5b>;
242			status = "okay";
243
244			regulators {
245				vdd_3v3: VDD_IO {
246					regulator-name = "VDD_IO";
247					regulator-min-microvolt = <3300000>;
248					regulator-max-microvolt = <3300000>;
249					regulator-initial-mode = <2>;
250					regulator-allowed-modes = <2>, <4>;
251					regulator-always-on;
252
253					regulator-state-standby {
254						regulator-on-in-suspend;
255						regulator-suspend-microvolt = <3300000>;
256						regulator-mode = <4>;
257					};
258
259					regulator-state-mem {
260						regulator-off-in-suspend;
261						regulator-mode = <4>;
262					};
263				};
264
265				vddioddr: VDD_DDR {
266					regulator-name = "VDD_DDR";
267					regulator-min-microvolt = <1350000>;
268					regulator-max-microvolt = <1350000>;
269					regulator-initial-mode = <2>;
270					regulator-allowed-modes = <2>, <4>;
271					regulator-always-on;
272
273					regulator-state-standby {
274						regulator-on-in-suspend;
275						regulator-suspend-microvolt = <1350000>;
276						regulator-mode = <4>;
277					};
278
279					regulator-state-mem {
280						regulator-on-in-suspend;
281						regulator-suspend-microvolt = <1350000>;
282						regulator-mode = <4>;
283					};
284				};
285
286				vddcore: VDD_CORE {
287					regulator-name = "VDD_CORE";
288					regulator-min-microvolt = <1150000>;
289					regulator-max-microvolt = <1150000>;
290					regulator-initial-mode = <2>;
291					regulator-allowed-modes = <2>, <4>;
292					regulator-always-on;
293
294					regulator-state-standby {
295						regulator-on-in-suspend;
296						regulator-suspend-microvolt = <1150000>;
297						regulator-mode = <4>;
298					};
299
300					regulator-state-mem {
301						regulator-off-in-suspend;
302						regulator-mode = <4>;
303					};
304				};
305
306				vddcpu: VDD_OTHER {
307					regulator-name = "VDD_OTHER";
308					regulator-min-microvolt = <1050000>;
309					regulator-max-microvolt = <1250000>;
310					regulator-initial-mode = <2>;
311					regulator-allowed-modes = <2>, <4>;
312					regulator-ramp-delay = <3125>;
313					regulator-always-on;
314
315					regulator-state-standby {
316						regulator-on-in-suspend;
317						regulator-suspend-microvolt = <1050000>;
318						regulator-mode = <4>;
319					};
320
321					regulator-state-mem {
322						regulator-off-in-suspend;
323						regulator-mode = <4>;
324					};
325				};
326
327				vldo1: LDO1 {
328					regulator-name = "LDO1";
329					regulator-min-microvolt = <1800000>;
330					regulator-max-microvolt = <1800000>;
331					regulator-always-on;
332
333					regulator-state-standby {
334						regulator-suspend-microvolt = <1800000>;
335						regulator-on-in-suspend;
336					};
337
338					regulator-state-mem {
339						regulator-off-in-suspend;
340					};
341				};
342
343				vldo2: LDO2 {
344					regulator-name = "LDO2";
345					regulator-min-microvolt = <1200000>;
346					regulator-max-microvolt = <3700000>;
347
348					regulator-state-standby {
349						regulator-suspend-microvolt = <1800000>;
350						regulator-on-in-suspend;
351					};
352
353					regulator-state-mem {
354						regulator-off-in-suspend;
355					};
356				};
357			};
358		};
359	};
360};
361
362&flx3 {
363	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
364	status = "okay";
365
366	uart3: serial@200 {
367		pinctrl-names = "default";
368		pinctrl-0 = <&pinctrl_flx3_default>;
369		status = "okay";
370	};
371};
372
373&flx4 {
374	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
375	status = "okay";
376
377	uart4: serial@200 {
378		pinctrl-names = "default";
379		pinctrl-0 = <&pinctrl_flx4_default>;
380		status = "okay";
381	};
382};
383
384&flx7 {
385	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
386	status = "okay";
387
388	uart7: serial@200 {
389		pinctrl-names = "default";
390		pinctrl-0 = <&pinctrl_flx7_default>;
391		status = "okay";
392	};
393};
394
395&flx8 {
396	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
397	status = "okay";
398
399	i2c8: i2c@600 {
400		pinctrl-names = "default";
401		pinctrl-0 = <&pinctrl_i2c8_default>;
402		i2c-analog-filter;
403		i2c-digital-filter;
404		i2c-digital-filter-width-ns = <35>;
405		status = "okay";
406	};
407};
408
409&flx9 {
410	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
411	status = "okay";
412
413	i2c9: i2c@600 {
414		pinctrl-names = "default";
415		pinctrl-0 = <&pinctrl_i2c9_default>;
416		i2c-analog-filter;
417		i2c-digital-filter;
418		i2c-digital-filter-width-ns = <35>;
419		status = "okay";
420	};
421};
422
423&flx11 {
424	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
425	status = "okay";
426
427	spi11: spi@400 {
428		pinctrl-names = "default";
429		pinctrl-0 = <&pinctrl_mikrobus1_spi &pinctrl_mikrobus1_spi_cs>;
430		status = "okay";
431	};
432};
433
434&gmac0 {
435	#address-cells = <1>;
436	#size-cells = <0>;
437	pinctrl-names = "default";
438	pinctrl-0 = <&pinctrl_gmac0_default
439		     &pinctrl_gmac0_mdio_default
440		     &pinctrl_gmac0_txck_default
441		     &pinctrl_gmac0_phy_irq>;
442	phy-mode = "rgmii-id";
443	status = "okay";
444
445	ethernet-phy@7 {
446		reg = <0x7>;
447		interrupt-parent = <&pioA>;
448		interrupts = <PIN_PA31 IRQ_TYPE_LEVEL_LOW>;
449	};
450};
451
452&gmac1 {
453	#address-cells = <1>;
454	#size-cells = <0>;
455	pinctrl-names = "default";
456	pinctrl-0 = <&pinctrl_gmac1_default
457		     &pinctrl_gmac1_mdio_default
458		     &pinctrl_gmac1_phy_irq>;
459	phy-mode = "rmii";
460	status = "okay"; /* Conflict with pdmc0. */
461
462	ethernet-phy@0 {
463		reg = <0x0>;
464		interrupt-parent = <&pioA>;
465		interrupts = <PIN_PA21 IRQ_TYPE_LEVEL_LOW>;
466	};
467};
468
469&i2s0 {
470	pinctrl-names = "default";
471	pinctrl-0 = <&pinctrl_i2s0_default>;
472};
473
474&pdmc0 {
475	#sound-dai-cells = <0>;
476	microchip,mic-pos = <MCHP_PDMC_DS0 MCHP_PDMC_CLK_NEGATIVE>, /* MIC 1 */
477			    <MCHP_PDMC_DS1 MCHP_PDMC_CLK_NEGATIVE>, /* MIC 2 */
478			    <MCHP_PDMC_DS0 MCHP_PDMC_CLK_POSITIVE>, /* MIC 3 */
479			    <MCHP_PDMC_DS1 MCHP_PDMC_CLK_POSITIVE>; /* MIC 4 */
480	status = "disabled"; /* Conflict with gmac1. */
481	pinctrl-names = "default";
482	pinctrl-0 = <&pinctrl_pdmc0_default>;
483};
484
485&pioA {
486
487	pinctrl_can0_default: can0_default {
488		pinmux = <PIN_PD12__CANTX0>,
489			 <PIN_PD13__CANRX0 >;
490		bias-disable;
491	};
492
493	pinctrl_can1_default: can1_default {
494		pinmux = <PIN_PD14__CANTX1>,
495			 <PIN_PD15__CANRX1 >;
496		bias-disable;
497	};
498
499	pinctrl_flx0_default: flx0_default {
500		pinmux = <PIN_PE3__FLEXCOM0_IO0>,
501			 <PIN_PE4__FLEXCOM0_IO1>,
502			 <PIN_PE6__FLEXCOM0_IO3>,
503			 <PIN_PE7__FLEXCOM0_IO4>;
504		bias-disable;
505	};
506
507	pinctrl_flx3_default: flx3_default {
508		pinmux = <PIN_PD16__FLEXCOM3_IO0>,
509			 <PIN_PD17__FLEXCOM3_IO1>;
510		bias-pull-up;
511	};
512
513	pinctrl_flx4_default: flx4_default {
514		pinmux = <PIN_PD18__FLEXCOM4_IO0>,
515			 <PIN_PD19__FLEXCOM4_IO1>;
516		bias-disable;
517	};
518
519	pinctrl_flx7_default: flx7_default {
520		pinmux = <PIN_PC23__FLEXCOM7_IO0>,
521			 <PIN_PC24__FLEXCOM7_IO1>;
522		bias-disable;
523	};
524
525	pinctrl_gmac0_default: gmac0_default {
526		pinmux = <PIN_PA16__G0_TX0>,
527			 <PIN_PA17__G0_TX1>,
528			 <PIN_PA26__G0_TX2>,
529			 <PIN_PA27__G0_TX3>,
530			 <PIN_PA19__G0_RX0>,
531			 <PIN_PA20__G0_RX1>,
532			 <PIN_PA28__G0_RX2>,
533			 <PIN_PA29__G0_RX3>,
534			 <PIN_PA15__G0_TXEN>,
535			 <PIN_PA30__G0_RXCK>,
536			 <PIN_PA18__G0_RXDV>,
537			 <PIN_PA25__G0_125CK>;
538		slew-rate = <0>;
539		bias-disable;
540	};
541
542	pinctrl_gmac0_mdio_default: gmac0_mdio_default {
543		pinmux = <PIN_PA22__G0_MDC>,
544			 <PIN_PA23__G0_MDIO>;
545		bias-disable;
546	};
547
548	pinctrl_gmac0_txck_default: gmac0_txck_default {
549		pinmux = <PIN_PA24__G0_TXCK>;
550		slew-rate = <0>;
551		bias-pull-up;
552	};
553
554	pinctrl_gmac0_phy_irq: gmac0_phy_irq {
555		pinmux = <PIN_PA31__GPIO>;
556		bias-disable;
557	};
558
559	pinctrl_gmac1_default: gmac1_default {
560		pinmux = <PIN_PD30__G1_TXCK>,
561			 <PIN_PD22__G1_TX0>,
562			 <PIN_PD23__G1_TX1>,
563			 <PIN_PD21__G1_TXEN>,
564			 <PIN_PD25__G1_RX0>,
565			 <PIN_PD26__G1_RX1>,
566			 <PIN_PD27__G1_RXER>,
567			 <PIN_PD24__G1_RXDV>;
568		slew-rate = <0>;
569		bias-disable;
570	};
571
572	pinctrl_gmac1_mdio_default: gmac1_mdio_default {
573		pinmux = <PIN_PD28__G1_MDC>,
574			 <PIN_PD29__G1_MDIO>;
575		bias-disable;
576	};
577
578	pinctrl_gmac1_phy_irq: gmac1_phy_irq {
579		pinmux = <PIN_PA21__GPIO>;
580		bias-disable;
581	};
582
583	pinctrl_i2c1_default: i2c1_default {
584		pinmux = <PIN_PC9__FLEXCOM1_IO0>,
585			 <PIN_PC10__FLEXCOM1_IO1>;
586		bias-disable;
587	};
588
589	pinctrl_i2c8_default: i2c8_default {
590		pinmux = <PIN_PC14__FLEXCOM8_IO0>,
591			 <PIN_PC13__FLEXCOM8_IO1>;
592		bias-disable;
593	};
594
595	pinctrl_i2c9_default: i2c9_default {
596		pinmux = <PIN_PC18__FLEXCOM9_IO0>,
597			 <PIN_PC19__FLEXCOM9_IO1>;
598		bias-disable;
599	};
600
601	pinctrl_i2s0_default: i2s0_default {
602		pinmux = <PIN_PB23__I2SMCC0_CK>,
603			 <PIN_PB24__I2SMCC0_WS>,
604			 <PIN_PB25__I2SMCC0_DOUT1>,
605			 <PIN_PB26__I2SMCC0_DOUT0>,
606			 <PIN_PB27__I2SMCC0_MCK>;
607		bias-disable;
608	};
609
610	pinctrl_key_gpio_default: key_gpio_default {
611		pinmux = <PIN_PA12__GPIO>;
612		bias-pull-up;
613	};
614
615	pinctrl_led_gpio_default: led_gpio_default {
616		pinmux = <PIN_PA13__GPIO>,
617			 <PIN_PB8__GPIO>,
618			 <PIN_PD20__GPIO>;
619		bias-pull-up;
620	};
621
622	pinctrl_mikrobus1_an_default: mikrobus1_an_default {
623		pinmux = <PIN_PD0__GPIO>;
624		bias-disable;
625	};
626
627	pinctrl_mikrobus2_an_default: mikrobus2_an_default {
628		pinmux = <PIN_PD1__GPIO>;
629		bias-disable;
630	};
631
632	pinctrl_mikrobus1_pwm2_default: mikrobus1_pwm2_default {
633		pinmux = <PIN_PA13__PWMH2>;
634		bias-disable;
635	};
636
637	pinctrl_mikrobus2_pwm3_default: mikrobus2_pwm3_default {
638		pinmux = <PIN_PD20__PWMH3>;
639		bias-disable;
640	};
641
642	pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
643		pinmux = <PIN_PB6__FLEXCOM11_IO3>;
644		bias-disable;
645	};
646
647	pinctrl_mikrobus1_spi: mikrobus1_spi {
648		pinmux = <PIN_PB3__FLEXCOM11_IO0>,
649			 <PIN_PB4__FLEXCOM11_IO1>,
650			 <PIN_PB5__FLEXCOM11_IO2>;
651		bias-disable;
652	};
653
654	pinctrl_pdmc0_default: pdmc0_default {
655		pinmux = <PIN_PD23__PDMC0_DS0>,
656			 <PIN_PD24__PDMC0_DS1>,
657			 <PIN_PD22__PDMC0_CLK>;
658		bias_disable;
659	};
660
661	pinctrl_qspi: qspi {
662		pinmux = <PIN_PB12__QSPI0_IO0>,
663			 <PIN_PB11__QSPI0_IO1>,
664			 <PIN_PB10__QSPI0_IO2>,
665			 <PIN_PB9__QSPI0_IO3>,
666			 <PIN_PB16__QSPI0_IO4>,
667			 <PIN_PB17__QSPI0_IO5>,
668			 <PIN_PB18__QSPI0_IO6>,
669			 <PIN_PB19__QSPI0_IO7>,
670			 <PIN_PB13__QSPI0_CS>,
671			 <PIN_PB14__QSPI0_SCK>,
672			 <PIN_PB15__QSPI0_SCKN>,
673			 <PIN_PB20__QSPI0_DQS>,
674			 <PIN_PB21__QSPI0_INT>;
675		bias-disable;
676		slew-rate = <0>;
677		atmel,drive-strength = <ATMEL_PIO_DRVSTR_ME>;
678	};
679
680	pinctrl_sdmmc0_default: sdmmc0_default {
681		cmd_data {
682			pinmux = <PIN_PA1__SDMMC0_CMD>,
683				 <PIN_PA3__SDMMC0_DAT0>,
684				 <PIN_PA4__SDMMC0_DAT1>,
685				 <PIN_PA5__SDMMC0_DAT2>,
686				 <PIN_PA6__SDMMC0_DAT3>,
687				 <PIN_PA7__SDMMC0_DAT4>,
688				 <PIN_PA8__SDMMC0_DAT5>,
689				 <PIN_PA9__SDMMC0_DAT6>,
690				 <PIN_PA10__SDMMC0_DAT7>;
691			slew-rate = <0>;
692			bias-pull-up;
693		};
694
695		ck_cd_rstn_vddsel {
696			pinmux = <PIN_PA0__SDMMC0_CK>,
697				 <PIN_PA2__SDMMC0_RSTN>,
698				 <PIN_PA11__SDMMC0_DS>;
699			slew-rate = <0>;
700			bias-pull-up;
701		};
702	};
703
704	pinctrl_sdmmc1_default: sdmmc1_default {
705		cmd_data {
706			pinmux = <PIN_PB29__SDMMC1_CMD>,
707				 <PIN_PB31__SDMMC1_DAT0>,
708				 <PIN_PC0__SDMMC1_DAT1>,
709				 <PIN_PC1__SDMMC1_DAT2>,
710				 <PIN_PC2__SDMMC1_DAT3>;
711			slew-rate = <0>;
712			bias-pull-up;
713		};
714
715		ck_cd_rstn_vddsel {
716			pinmux = <PIN_PB30__SDMMC1_CK>,
717				 <PIN_PB28__SDMMC1_RSTN>,
718				 <PIN_PC5__SDMMC1_1V8SEL>,
719				 <PIN_PC4__SDMMC1_CD>;
720			slew-rate = <0>;
721			bias-pull-up;
722		};
723	};
724
725	pinctrl_sdmmc2_default: sdmmc2_default {
726		cmd_data {
727			pinmux = <PIN_PD3__SDMMC2_CMD>,
728				 <PIN_PD5__SDMMC2_DAT0>,
729				 <PIN_PD6__SDMMC2_DAT1>,
730				 <PIN_PD7__SDMMC2_DAT2>,
731				 <PIN_PD8__SDMMC2_DAT3>;
732			slew-rate = <0>;
733			bias-pull-up;
734		};
735
736		ck {
737			pinmux = <PIN_PD4__SDMMC2_CK>;
738			slew-rate = <0>;
739			bias-pull-up;
740		};
741	};
742
743	pinctrl_spdifrx_default: spdifrx_default {
744		pinmux = <PIN_PB0__SPDIF_RX>;
745		bias-disable;
746	};
747
748	pinctrl_spdiftx_default: spdiftx_default {
749		pinmux = <PIN_PB1__SPDIF_TX>;
750		bias-disable;
751	};
752};
753
754&pwm {
755	pinctrl-names = "default";
756	pinctrl-0 = <&pinctrl_mikrobus1_pwm2_default &pinctrl_mikrobus2_pwm3_default>;
757	status = "disabled"; /* Conflict with leds. */
758};
759
760&rtt {
761	atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
762};
763
764&sdmmc0 {
765	bus-width = <8>;
766	non-removable;
767	sdhci-caps-mask = <0x0 0x00200000>;
768	vmmc-supply = <&vdd_3v3>;
769	vqmmc-supply = <&vldo1>;
770	pinctrl-names = "default";
771	pinctrl-0 = <&pinctrl_sdmmc0_default>;
772	status = "okay";
773};
774
775&sdmmc1 {
776	bus-width = <4>;
777	no-1-8-v;
778	sdhci-caps-mask = <0x0 0x00200000>;
779	vmmc-supply = <&vdd_3v3>;
780	vqmmc-supply = <&vdd_3v3>;
781	pinctrl-names = "default";
782	pinctrl-0 = <&pinctrl_sdmmc1_default>;
783	status = "okay";
784};
785
786&sdmmc2 {
787	bus-width = <4>;
788	no-1-8-v;
789	sdhci-caps-mask = <0x0 0x00200000>;
790	pinctrl-names = "default";
791	pinctrl-0 = <&pinctrl_sdmmc2_default>;
792};
793
794&shdwc {
795	debounce-delay-us = <976>;
796	status = "okay";
797
798	input@0 {
799		reg = <0>;
800	};
801};
802
803&spdifrx {
804	pinctrl-names = "default";
805	pinctrl-0 = <&pinctrl_spdifrx_default>;
806	status = "okay";
807};
808
809&spdiftx {
810	pinctrl-names = "default";
811	pinctrl-0 = <&pinctrl_spdiftx_default>;
812	status = "okay";
813};
814
815&tcb0 {
816	timer0: timer@0 {
817		compatible = "atmel,tcb-timer";
818		reg = <0>;
819	};
820
821	timer1: timer@1 {
822		compatible = "atmel,tcb-timer";
823		reg = <1>;
824	};
825};
826
827&trng {
828	status = "okay";
829};
830
831&vddout25 {
832	vin-supply = <&vdd_3v3>;
833	status = "okay";
834};
835