blob: 9fa6f1395aa6e2876a40389327a91ad05759762d [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * at91-sama5d2_icp.dts - Device Tree file for SAMA5D2-ICP board
4 *
5 * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries
6 *
7 * Author: Radu Pirea & Razvan Stefanescu,
8 * Codrin Ciubotariu <codrin.ciubotariu@microchip.com>,
9 * Cristian Birsan <cristian.birsan@microchip.com>
10 */
11/dts-v1/;
12#include "sama5d2.dtsi"
13#include "sama5d2-pinfunc.h"
14#include <dt-bindings/gpio/gpio.h>
15#include <dt-bindings/input/input.h>
16#include <dt-bindings/mfd/atmel-flexcom.h>
17
18/ {
19 model = "Microchip SAMA5D2-ICP";
20 compatible = "microchip,sama5d2-icp", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
21
22 aliases {
23 serial0 = &uart0; /* debug uart0 + mikro BUS 1 */
24 serial1 = &uart1; /* mikro BUS 3 */
25 serial3 = &uart3; /* mikro BUS 2 */
26 serial5 = &uart7; /* flx2 */
27 i2c0 = &i2c0;
28 i2c1 = &i2c1;
29 };
30
31 chosen {
32 stdout-path = "serial0:115200n8";
33 };
34
35 clocks {
36 slow_xtal {
37 clock-frequency = <32768>;
38 };
39
40 main_xtal {
41 clock-frequency = <12000000>;
42 };
43 };
44
45 gpio-keys {
46 compatible = "gpio-keys";
47
48 pinctrl-names = "default";
49 pinctrl-0 = <&pinctrl_key_gpio_default>;
50
51 button-1 {
52 label = "USER_PB1";
53 gpios = <&pioA PIN_PD0 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_PROG1>;
55 wakeup-source;
56 };
57 };
58
59 leds {
60 compatible = "gpio-leds";
61 pinctrl-names = "default";
62 pinctrl-0 = <&pinctrl_led_gpio_default>;
63 status = "okay"; /* conflict with pwm0 */
64
65 led-red {
66 label = "red";
67 gpios = <&pioA PIN_PB0 GPIO_ACTIVE_HIGH>;
68 };
69
70 led-green {
71 label = "green";
72 gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
73 };
74
75 led-blue {
76 label = "blue";
77 gpios = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
78 linux,default-trigger = "heartbeat";
79 };
80 };
Tom Rini9c8af152024-12-24 12:03:04 -060081
82 reg_5v: regulator-5v {
83 compatible = "regulator-fixed";
84 regulator-name = "VDD_MAIN_5V";
85 regulator-min-microvolt = <5000000>;
86 regulator-max-microvolt = <5000000>;
87 regulator-always-on;
88 };
Tom Rini53633a82024-02-29 12:33:36 -050089};
90
91&adc {
92 vddana-supply = <&vdd_io_reg>;
93 vref-supply = <&vdd_io_reg>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&pinctrl_adc_default &pinctrl_adtrg_default>;
96 status = "okay";
97};
98
99&can0 {
100 pinctrl-names = "default";
101 pinctrl-0 = <&pinctrl_can0_default>;
102 status = "okay";
103};
104
105&can1 {
106 pinctrl-names = "default";
107 pinctrl-0 = <&pinctrl_can1_default>;
108 status = "okay";
109};
110
111&flx0 { /* mikrobus2 spi */
112 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
113 status = "okay";
114
115 spi2: spi@400 {
116 dmas = <0>, <0>;
117 cs-gpios = <&pioA PIN_PC0 GPIO_ACTIVE_LOW>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&pinctrl_mikrobus2_spi &pinctrl_ksz_spi_cs>;
120 status = "okay";
121 #address-cells = <1>;
122 #size-cells = <0>;
123
124 switch0: ksz8563@0 {
125 compatible = "microchip,ksz8563";
126 reg = <0>;
127 reset-gpios = <&pioA PIN_PD4 GPIO_ACTIVE_LOW>;
128
129 spi-max-frequency = <500000>;
130 spi-cpha;
131 spi-cpol;
132
133 ports {
134 #address-cells = <1>;
135 #size-cells = <0>;
136 port@0 {
137 reg = <0>;
138 label = "lan1";
139 };
140
141 port@1 {
142 reg = <1>;
143 label = "lan2";
144 };
145
146 port@2 {
147 reg = <2>;
148 label = "cpu";
149 ethernet = <&macb0>;
150 phy-mode = "mii";
151 fixed-link {
152 speed = <100>;
153 full-duplex;
154 };
155 };
156 };
157 };
158 };
159};
160
161&flx2 {
162 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
163 status = "okay";
164
165 uart7: serial@200 {
166 pinctrl-0 = <&pinctrl_flx2_default>;
167 pinctrl-names = "default";
168 atmel,use-dma-rx;
169 atmel,use-dma-tx;
170 status = "okay"; /* Conflict w/ qspi1. */
171 };
172};
173
174&flx3 { /* mikrobus1 spi */
175 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
176 status = "okay";
177
178 spi5: spi@400 {
179 dmas = <0>, <0>;
180 pinctrl-names = "default";
181 pinctrl-0 = <&pinctrl_mikrobus1_spi &pinctrl_mikrobus1_spi_cs>;
182 status = "okay";
183 };
184};
185
186&flx4 {
187 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
188 status = "okay";
189
190 i2c6: i2c@600 {
191 dmas = <0>, <0>;
192 pinctrl-names = "default";
193 pinctrl-0 = <&pinctrl_flx4_default>;
194 i2c-digital-filter;
195 i2c-digital-filter-width-ns = <35>;
196 status = "okay";
197
Tom Rini844493d2025-01-26 16:17:47 -0600198 power-monitor@10 {
199 compatible = "microchip,pac1934";
200 reg = <0x10>;
201 #address-cells = <1>;
202 #size-cells = <0>;
203
204 channel@1 {
205 reg = <0x1>;
206 shunt-resistor-micro-ohms = <10000>;
207 label = "VDD3V3_1";
208 };
209
210 channel@2 {
211 reg = <0x2>;
212 shunt-resistor-micro-ohms = <10000>;
213 label = "VDD3V3_2";
214 };
215
216 channel@3 {
217 reg = <0x3>;
218 shunt-resistor-micro-ohms = <10000>;
219 label = "VDDCORE";
220 };
221
222 channel@4 {
223 reg = <0x4>;
224 shunt-resistor-micro-ohms = <10000>;
225 label = "VDDIODDR";
226 };
227 };
228
229 pmic@5b {
Tom Rini53633a82024-02-29 12:33:36 -0500230 compatible = "microchip,mcp16502";
231 reg = <0x5b>;
Tom Rini9c8af152024-12-24 12:03:04 -0600232 lvin-supply = <&reg_5v>;
233 pvin1-supply = <&reg_5v>;
234 pvin2-supply = <&reg_5v>;
235 pvin3-supply = <&reg_5v>;
236 pvin4-supply = <&reg_5v>;
Tom Rini53633a82024-02-29 12:33:36 -0500237 status = "okay";
238 lpm-gpios = <&pioBU 7 GPIO_ACTIVE_LOW>;
239
240 regulators {
241 vdd_io_reg: VDD_IO {
242 regulator-name = "VDD_IO";
243 regulator-min-microvolt = <3300000>;
244 regulator-max-microvolt = <3300000>;
245 regulator-initial-mode = <2>;
246 regulator-allowed-modes = <2>, <4>;
247 regulator-always-on;
248
249 regulator-state-standby {
250 regulator-on-in-suspend;
251 regulator-mode = <4>;
252 };
253
254 regulator-state-mem {
255 regulator-off-in-suspend;
256 regulator-mode = <4>;
257 };
258 };
259
260 VDD_DDR {
261 regulator-name = "VDD_DDR";
262 regulator-min-microvolt = <1350000>;
263 regulator-max-microvolt = <1350000>;
264 regulator-initial-mode = <2>;
265 regulator-allowed-modes = <2>, <4>;
266 regulator-always-on;
267
268 regulator-state-standby {
269 regulator-on-in-suspend;
270 regulator-mode = <4>;
271 };
272
273 regulator-state-mem {
274 regulator-on-in-suspend;
275 regulator-mode = <4>;
276 };
277 };
278
279 VDD_CORE {
280 regulator-name = "VDD_CORE";
281 regulator-min-microvolt = <1250000>;
282 regulator-max-microvolt = <1250000>;
283 regulator-initial-mode = <2>;
284 regulator-allowed-modes = <2>, <4>;
285 regulator-always-on;
286
287 regulator-state-standby {
288 regulator-on-in-suspend;
289 regulator-mode = <4>;
290 };
291
292 regulator-state-mem {
293 regulator-off-in-suspend;
294 regulator-mode = <4>;
295 };
296 };
297
298 VDD_OTHER {
299 regulator-name = "VDD_OTHER";
300 regulator-min-microvolt = <600000>;
301 regulator-max-microvolt = <1850000>;
302 regulator-initial-mode = <2>;
303 regulator-allowed-modes = <2>, <4>;
304
305 regulator-state-standby {
306 regulator-on-in-suspend;
307 regulator-mode = <4>;
308 };
309
310 regulator-state-mem {
311 regulator-off-in-suspend;
312 regulator-mode = <4>;
313 };
314 };
315
316 LDO1 {
317 regulator-name = "LDO1";
318 regulator-min-microvolt = <2500000>;
319 regulator-max-microvolt = <2500000>;
320 regulator-always-on;
321
322 regulator-state-standby {
323 regulator-on-in-suspend;
324 };
325
326 regulator-state-mem {
327 regulator-off-in-suspend;
328 };
329 };
330
331 LDO2 {
332 regulator-name = "LDO2";
333 regulator-min-microvolt = <3300000>;
334 regulator-max-microvolt = <3300000>;
335 regulator-always-on;
336
337 regulator-state-standby {
338 regulator-on-in-suspend;
339 };
340
341 regulator-state-mem {
342 regulator-off-in-suspend;
343 };
344 };
345
346 };
347 };
348 };
349};
350
351&i2c0 { /* mikrobus i2c */
352 pinctrl-names = "default", "gpio";
353 pinctrl-0 = <&pinctrl_mikrobus_i2c>;
354 pinctrl-1 = <&pinctrl_i2c0_gpio>;
355 sda-gpios = <&pioA PIN_PD21 GPIO_ACTIVE_HIGH>;
356 scl-gpios = <&pioA PIN_PD22 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
357 i2c-digital-filter;
358 i2c-digital-filter-width-ns = <35>;
359 status = "okay";
360};
361
362&i2c1 {
363 dmas = <0>, <0>;
364 pinctrl-names = "default", "gpio";
365 pinctrl-0 = <&pinctrl_i2c1_default>;
366 pinctrl-1 = <&pinctrl_i2c1_gpio>;
367 sda-gpios = <&pioA PIN_PD19 GPIO_ACTIVE_HIGH>;
368 scl-gpios = <&pioA PIN_PD20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
369 i2c-digital-filter;
370 i2c-digital-filter-width-ns = <35>;
371 status = "okay";
372
373 eeprom@50 {
374 compatible = "atmel,24c02";
375 reg = <0x50>;
376 pagesize = <16>;
377 status = "okay";
378 };
379
380 eeprom@52 {
381 compatible = "atmel,24c02";
382 reg = <0x52>;
383 pagesize = <16>;
384 status = "disabled";
385 };
386
387 eeprom@53 {
388 compatible = "atmel,24c02";
389 reg = <0x53>;
390 pagesize = <16>;
391 status = "disabled";
392 };
393};
394
395&macb0 {
396 pinctrl-names = "default";
397 pinctrl-0 = <&pinctrl_macb0_default &pinctrl_macb0_phy_irq &pinctrl_macb0_rst>;
398 phy-mode = "mii";
399 status = "okay";
400
401 fixed-link {
402 speed = <100>;
403 full-duplex;
404 };
405};
406
407&pioA {
408 pinctrl_adc_default: adc_default {
409 pinmux = <PIN_PD24__GPIO>,
410 <PIN_PD25__GPIO>,
411 <PIN_PD26__GPIO>;
412 bias-disable;
413 };
414
415 /*
416 * The ADTRG pin can work on any edge type.
417 * In here it's being pulled up, so need to
418 * connect it to ground to get an edge e.g.
419 * Trigger can be configured on falling, rise
420 * or any edge, and the pull-up can be changed
421 * to pull-down or left floating according to
422 * needs.
423 */
424 pinctrl_adtrg_default: adtrg_default {
425 pinmux = <PIN_PD31__ADTRG>;
426 bias-pull-up;
427 };
428
429 pinctrl_flx4_default: flx4_default {
430 pinmux = <PIN_PC28__FLEXCOM4_IO0>,
431 <PIN_PC29__FLEXCOM4_IO1>;
432 bias-disable;
433 };
434
435 pinctrl_can0_default: can0_default {
436 pinmux = <PIN_PC10__CANTX0>,
437 <PIN_PC11__CANRX0>;
438 bias-disable;
439 };
440
441 pinctrl_can1_default: can1_default {
442 pinmux = <PIN_PC26__CANTX1>,
443 <PIN_PC27__CANRX1>;
444 bias-disable;
445 };
446
447 pinctrl_i2c1_default: i2c1_default {
448 pinmux = <PIN_PD19__TWD1>,
449 <PIN_PD20__TWCK1>;
450 bias-disable;
451 };
452
453 pinctrl_i2c1_gpio: i2c1_gpio {
454 pinmux = <PIN_PD19__GPIO>,
455 <PIN_PD20__GPIO>;
456 bias-disable;
457 };
458
459 pinctrl_key_gpio_default: key_gpio_default {
460 pinmux = <PIN_PD0__GPIO>;
461 bias-pull-up;
462 };
463
464 pinctrl_led_gpio_default: led_gpio_default {
465 pinmux = <PIN_PB0__GPIO>,
466 <PIN_PB1__GPIO>,
467 <PIN_PA31__GPIO>;
468 bias-pull-up;
469 };
470
471 pinctrl_qspi1_default: qspi1_default {
472 pinmux = <PIN_PA6__QSPI1_SCK>,
473 <PIN_PA7__QSPI1_IO0>,
474 <PIN_PA8__QSPI1_IO1>,
475 <PIN_PA9__QSPI1_IO2>,
476 <PIN_PA10__QSPI1_IO3>,
477 <PIN_PA11__QSPI1_CS>;
478 bias-disable;
479 };
480
481 pinctrl_sdmmc0_default: sdmmc0_default {
482 cmd_data {
483 pinmux = <PIN_PA1__SDMMC0_CMD>,
484 <PIN_PA2__SDMMC0_DAT0>,
485 <PIN_PA3__SDMMC0_DAT1>,
486 <PIN_PA4__SDMMC0_DAT2>,
487 <PIN_PA5__SDMMC0_DAT3>;
488 bias-disable;
489 };
490
491 ck_cd {
492 pinmux = <PIN_PA0__SDMMC0_CK>,
493 <PIN_PA13__SDMMC0_CD>;
494 bias-disable;
495 };
496 };
497
498 pinctrl_sdmmc1_default: sdmmc1_default {
499 cmd_data {
500 pinmux = <PIN_PA18__SDMMC1_DAT0>,
501 <PIN_PA19__SDMMC1_DAT1>,
502 <PIN_PA20__SDMMC1_DAT2>,
503 <PIN_PA21__SDMMC1_DAT3>;
504 bias-disable;
505 };
506
507 ck_cd {
508 pinmux = <PIN_PA22__SDMMC1_CK>,
509 <PIN_PA28__SDMMC1_CMD>;
510 bias-disable;
511 };
512 };
513
514 pinctrl_mikrobus_i2c: mikrobus_i2c {
515 pinmux = <PIN_PD22__TWCK0>,
516 <PIN_PD21__TWD0>;
517 bias-disable;
518 };
519
520 pinctrl_i2c0_gpio: i2c0_gpio {
521 pinmux = <PIN_PD21__GPIO>,
522 <PIN_PD22__GPIO>;
523 bias-disable;
524 };
525
526 pinctrl_mikrobus1_an: mikrobus1_an {
527 pinmux = <PIN_PD26__GPIO>;
528 bias-disable;
529 };
530
531 pinctrl_mikrobus1_rst: mikrobus1_rst {
532 pinmux = <PIN_PC5__GPIO>;
533 bias-disable;
534 };
535
536 pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
537 pinmux = <PIN_PC21__FLEXCOM3_IO3>;
538 bias-disable;
539 };
540
541 pinctrl_mikrobus1_spi: mikrobus1_spi {
542 pinmux = <PIN_PC20__FLEXCOM3_IO0>,
543 <PIN_PC19__FLEXCOM3_IO1>,
544 <PIN_PC18__FLEXCOM3_IO2>;
545 bias-disable;
546 };
547
548 pinctrl_mikrobus1_pwm: mikrobus1_pwm {
549 pinmux = <PIN_PC4__TIOB1>;
550 bias-disable;
551 };
552
553 pinctrl_mikrobus1_int: mikrobus1_int {
554 pinmux = <PIN_PC3__GPIO>;
555 bias-disable;
556 };
557
558 pinctrl_mikrobus1_uart: mikrobus1_uart {
559 pinmux = <PIN_PB26__URXD0>,
560 <PIN_PB27__UTXD0>;
561 bias-disable;
562 };
563
564 pinctrl_mikrobus2_an: mikrobus2_an {
565 pinmux = <PIN_PD25__GPIO>;
566 bias-disable;
567 };
568
569 pinctrl_mikrobus2_rst: mikrobus2_rst {
570 pinmux = <PIN_PB24__GPIO>;
571 bias-disable;
572 };
573
574 pinctrl_mikrobus2_spi_cs: mikrobus2_spi_cs {
575 pinmux = <PIN_PB31__FLEXCOM0_IO3>;
576 bias-disable;
577 };
578
579 pinctrl_mikrobus2_spi: mikrobus2_spi {
580 pinmux = <PIN_PB28__FLEXCOM0_IO0>,
581 <PIN_PB29__FLEXCOM0_IO1>,
582 <PIN_PB30__FLEXCOM0_IO2>;
583 bias-disable;
584 };
585
586 pinctrl_ksz_spi_cs: ksz_spi_cs {
587 pinmux = <PIN_PC0__GPIO>;
588 bias-disable;
589 };
590
591 pinctrl_mikrobus2_pwm: mikrobus2_pwm {
592 pinmux = <PIN_PB23__TIOB2>;
593 bias-disable;
594 };
595
596 pinctrl_mikrobus2_int: mikrobus2_int {
597 pinmux = <PIN_PB22__GPIO>;
598 bias-disable;
599 };
600
601 pinctrl_mikrobus2_uart: mikrobus2_uart {
602 pinmux = <PIN_PC12__URXD3>,
603 <PIN_PC13__UTXD3>;
604 bias-disable;
605 };
606
607 pinctrl_mikrobus3_an: mikrobus3_an {
608 pinmux = <PIN_PD24__GPIO>;
609 bias-disable;
610 };
611
612 pinctrl_mikrobus3_rst: mikrobus3_rst {
613 pinmux = <PIN_PB21__GPIO>;
614 bias-disable;
615 };
616
617 pinctrl_mikrobus3_spi_cs: mikrobus3_spi_cs {
618 pinmux = <PIN_PA17__SPI0_NPCS0>;
619 bias-disable;
620 };
621
622 pinctrl_mikrobus3_spi: mikrobus3_spi {
623 pinmux = <PIN_PA14__SPI0_SPCK>,
624 <PIN_PA16__SPI0_MISO>,
625 <PIN_PA15__SPI0_MOSI>;
626 bias-disable;
627 };
628
629 pinctrl_mikrobus3_pwm: mikrobus3_pwm {
630 pinmux = <PIN_PB20__TIOB3>;
631 bias-disable;
632 };
633
634 pinctrl_mikrobus3_int: mikrobus3_int {
635 pinmux = <PIN_PB18__GPIO>;
636 bias-disable;
637 };
638
639 pinctrl_mikrobus3_uart: mikrobus3_uart {
640 pinmux = <PIN_PC7__URXD1>,
641 <PIN_PC8__UTXD1>;
642 bias-disable;
643 };
644
645 pinctrl_usb_default: usb_default {
646 pinmux = <PIN_PC17__GPIO>;
647 bias-disable;
648 };
649
650 pinctrl_usba_vbus: usba_vbus {
651 pinmux = <PIN_PD23__GPIO>;
652 bias-disable;
653 };
654
655 pinctrl_pwm0_pwm2_default: pwm0_pwm2_default {
656 pinmux = <PIN_PB5__PWMH2>,
657 <PIN_PB6__PWML2>;
658 bias-pull-up;
659 };
660
661 pinctrl_macb0_default: macb0_default {
662 pinmux = <PIN_PD1__GRXCK>,
663 <PIN_PD2__GTXER>,
664 <PIN_PD5__GRX2>,
665 <PIN_PD6__GRX3>,
666 <PIN_PD7__GTX2>,
667 <PIN_PD8__GTX3>,
668 <PIN_PD9__GTXCK>,
669 <PIN_PD10__GTXEN>,
670 <PIN_PD11__GRXDV>,
671 <PIN_PD12__GRXER>,
672 <PIN_PD13__GRX0>,
673 <PIN_PD14__GRX1>,
674 <PIN_PD15__GTX0>,
675 <PIN_PD16__GTX1>,
676 <PIN_PD17__GMDC>,
677 <PIN_PD18__GMDIO>;
678 bias-disable;
679 };
680
681 pinctrl_macb0_phy_irq: macb0_phy_irq {
682 pinmux = <PIN_PD3__GPIO>;
683 bias-disable;
684 };
685
686 pinctrl_macb0_rst: macb0_sw_rst {
687 pinmux = <PIN_PD4__GPIO>;
688 bias-disable;
689 };
690
691 pinctrl_flx2_default: flx2_default {
692 pinmux = <PIN_PA6__FLEXCOM2_IO0>,
693 <PIN_PA7__FLEXCOM2_IO1>,
694 <PIN_PA9__FLEXCOM2_IO3>,
695 <PIN_PA10__FLEXCOM2_IO4>;
696 bias-disable;
697 };
698};
699
700&pwm0 {
701 pinctrl-names = "default";
702 pinctrl-0 = <&pinctrl_pwm0_pwm2_default>;
703 status = "disabled"; /* conflict with leds, HSIC */
704};
705
706&qspi1 {
707 pinctrl-names = "default";
708 pinctrl-0 = <&pinctrl_qspi1_default>;
709 status = "disabled"; /* Conflict with wilc_pwrseq, flx2 */
710
711 flash@0 {
712 #address-cells = <1>;
713 #size-cells = <1>;
714 compatible = "jedec,spi-nor";
715 reg = <0>;
716 spi-max-frequency = <104000000>;
717 spi-cs-setup-ns = <7>;
718 spi-tx-bus-width = <4>;
719 spi-rx-bus-width = <4>;
720 m25p,fast-read;
721
722 at91bootstrap@0 {
723 label = "qspi: at91bootstrap";
724 reg = <0x00000000 0x00040000>;
725 };
726
727 bootloader@40000 {
728 label = "qspi: bootloader";
729 reg = <0x00040000 0x000c0000>;
730 };
731
732 bootloaderenvred@100000 {
733 label = "qspi: bootloader env redundant";
734 reg = <0x00100000 0x00040000>;
735 };
736
737 bootloaderenv@140000 {
738 label = "qspi: bootloader env";
739 reg = <0x00140000 0x00040000>;
740 };
741
742 dtb@180000 {
743 label = "qspi: device tree";
744 reg = <0x00180000 0x00080000>;
745 };
746
747 kernel@200000 {
748 label = "qspi: kernel";
749 reg = <0x00200000 0x00600000>;
750 };
751 };
752};
753
754&sdmmc0 {
755 no-1-8-v;
756 bus-width = <4>;
757 pinctrl-names = "default";
758 pinctrl-0 = <&pinctrl_sdmmc0_default>;
759 status = "okay";
760};
761
762&shutdown_controller {
763 debounce-delay-us = <976>;
764 atmel,wakeup-rtc-timer;
765
766 input@0 {
767 reg = <0>;
768 };
769};
770
771&spi0 { /* mikrobus3 spi */
772 pinctrl-names = "default";
773 pinctrl-0 = <&pinctrl_mikrobus3_spi &pinctrl_mikrobus3_spi_cs>;
774 status = "okay";
775};
776
777&tcb0 {
778 timer0: timer@0 {
779 compatible = "atmel,tcb-timer";
780 reg = <0>;
781 };
782
783 timer1: timer@1 {
784 compatible = "atmel,tcb-timer";
785 reg = <1>;
786 };
787};
788
789&uart0 {
790 pinctrl-names = "default";
791 pinctrl-0 = <&pinctrl_mikrobus1_uart>;
792 atmel,use-dma-rx;
793 atmel,use-dma-tx;
794 status = "okay";
795};
796
797&uart1 {
798 pinctrl-names = "default";
799 pinctrl-0 = <&pinctrl_mikrobus3_uart>;
800 atmel,use-dma-rx;
801 atmel,use-dma-tx;
802 status = "okay";
803};
804
805&uart3 {
806 pinctrl-names = "default";
807 pinctrl-0 = <&pinctrl_mikrobus2_uart>;
808 atmel,use-dma-rx;
809 atmel,use-dma-tx;
810 status = "okay";
811};
812
813&usb0 {
814 atmel,vbus-gpio = <&pioA PIN_PD23 GPIO_ACTIVE_HIGH>;
815 pinctrl-names = "default";
816 pinctrl-0 = <&pinctrl_usba_vbus>;
817 status = "okay";
818};
819
820&usb1 {
821 num-ports = <3>;
822 pinctrl-names = "default";
823 pinctrl-0 = <&pinctrl_usb_default>;
824 status = "okay";
825};
826
827&usb2 {
828 phy_type = "hsic";
829 status = "okay";
830};
831
832&watchdog {
833 status = "okay";
834};