blob: ee46112b08b0424f4dee14c30419c58cf1c59411 [file] [log] [blame]
Eugen Hristevdb55fd62022-03-07 16:29:42 +02001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Eugen Hristev0de35aa2020-03-10 11:56:38 +02002/*
Eugen Hristevdb55fd62022-03-07 16:29:42 +02003 * at91-sama7g5ek.dts - Device Tree file for SAMA7G5-EK board
Eugen Hristev0de35aa2020-03-10 11:56:38 +02004 *
Eugen Hristevdb55fd62022-03-07 16:29:42 +02005 * 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 *
Eugen Hristev0de35aa2020-03-10 11:56:38 +020010 */
11/dts-v1/;
Eugen Hristev0de35aa2020-03-10 11:56:38 +020012#include "sama7g5-pinfunc.h"
Eugen Hristevdb55fd62022-03-07 16:29:42 +020013#include "sama7g5.dtsi"
14#include <dt-bindings/mfd/atmel-flexcom.h>
15#include <dt-bindings/input/input.h>
Tudor Ambarusd9a21d02021-11-03 19:07:41 +020016#include <dt-bindings/pinctrl/at91.h>
Eugen Hristev0de35aa2020-03-10 11:56:38 +020017
18/ {
Eugen Hristevdb55fd62022-03-07 16:29:42 +020019 model = "Microchip SAMA7G5-EK";
20 compatible = "microchip,sama7g5ek", "microchip,sama7g5", "microchip,sama7";
21
22 chosen {
23 bootargs = "rw root=/dev/mmcblk1p2 rootfstype=ext4 rootwait";
24 stdout-path = "serial0:115200n8";
25 };
Eugen Hristev0de35aa2020-03-10 11:56:38 +020026
27 aliases {
Eugen Hristevdb55fd62022-03-07 16:29:42 +020028 serial0 = &uart3;
29 serial1 = &uart4;
30 serial2 = &uart7;
31 serial3 = &uart0;
Eugen Hristevcb026542020-07-31 15:20:01 +030032 i2c0 = &i2c1;
Eugen Hristev5e158ae2022-01-04 18:23:36 +020033 i2c1 = &i2c8;
Eugen Hristevdb55fd62022-03-07 16:29:42 +020034 i2c2 = &i2c9;
Eugen Hristev0de35aa2020-03-10 11:56:38 +020035 };
36
Claudiu Bezneaedbf9302020-06-02 15:19:19 +030037 clocks {
Eugen Hristevdb55fd62022-03-07 16:29:42 +020038 slow_xtal {
Claudiu Bezneaedbf9302020-06-02 15:19:19 +030039 clock-frequency = <32768>;
40 };
41
Eugen Hristevdb55fd62022-03-07 16:29:42 +020042 main_xtal {
Claudiu Bezneaedbf9302020-06-02 15:19:19 +030043 clock-frequency = <24000000>;
44 };
45 };
46
Eugen Hristevdb55fd62022-03-07 16:29:42 +020047 gpio_keys {
48 compatible = "gpio-keys";
Eugen Hristev0de35aa2020-03-10 11:56:38 +020049
Eugen Hristevdb55fd62022-03-07 16:29:42 +020050 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_key_gpio_default>;
Eugen Hristevfea6b4e2020-07-30 15:52:51 +030052
Eugen Hristevdb55fd62022-03-07 16:29:42 +020053 bp1 {
54 label = "PB_USER";
55 gpios = <&pioA PIN_PA12 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_PROG1>;
57 wakeup-source;
58 };
59 };
60
61 leds {
62 compatible = "gpio-leds";
63 pinctrl-names = "default";
64 pinctrl-0 = <&pinctrl_led_gpio_default>;
65 status = "okay"; /* Conflict with pwm. */
Eugen Hristev0de35aa2020-03-10 11:56:38 +020066
Eugen Hristevdb55fd62022-03-07 16:29:42 +020067 red_led {
68 label = "red";
69 gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
70 };
71
72 green_led {
73 label = "green";
74 gpios = <&pioA PIN_PA13 GPIO_ACTIVE_HIGH>;
75 };
76
77 blue_led {
78 label = "blue";
79 gpios = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>;
80 linux,default-trigger = "heartbeat";
81 };
82 };
83
84 /* 512 M */
85 memory@60000000 {
86 device_type = "memory";
87 reg = <0x60000000 0x20000000>;
88 };
89
90 sound: sound {
91 compatible = "simple-audio-card";
92 simple-audio-card,name = "sama7g5ek audio";
93 #address-cells = <1>;
94 #size-cells = <0>;
95 simple-audio-card,dai-link@0 {
96 reg = <0>;
97 cpu {
98 sound-dai = <&spdiftx>;
99 };
100 codec {
101 sound-dai = <&spdif_out>;
Eugen Hristev0de35aa2020-03-10 11:56:38 +0200102 };
103 };
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200104 simple-audio-card,dai-link@1 {
105 reg = <1>;
106 cpu {
107 sound-dai = <&spdifrx>;
108 };
109 codec {
110 sound-dai = <&spdif_in>;
111 };
112 };
113 };
114
115 spdif_in: spdif-in {
116 #sound-dai-cells = <0>;
117 compatible = "linux,spdif-dir";
Eugen Hristev0de35aa2020-03-10 11:56:38 +0200118 };
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200119
120 spdif_out: spdif-out {
121 #sound-dai-cells = <0>;
122 compatible = "linux,spdif-dit";
123 };
124};
125
126&adc {
127 vddana-supply = <&vddout25>;
128 vref-supply = <&vddout25>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinctrl_mikrobus1_an_default &pinctrl_mikrobus2_an_default>;
131 status = "okay";
132};
133
134&can0 {
135 pinctrl-names = "default";
136 pinctrl-0 = <&pinctrl_can0_default>;
137 status = "okay";
138};
139
140&can1 {
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_can1_default>;
143 status = "okay";
144};
145
146&cpu0 {
147 cpu-supply = <&vddcpu>;
Eugen Hristev0de35aa2020-03-10 11:56:38 +0200148};
Eugen Hristev83953652020-06-04 10:38:49 +0300149
Tudor Ambarusd9a21d02021-11-03 19:07:41 +0200150&qspi0 {
151 pinctrl-names = "default";
152 pinctrl-0 = <&pinctrl_qspi>;
153 status = "okay";
154
155 flash@0 {
156 #address-cells = <1>;
157 #size-cells = <1>;
158 compatible = "jedec,spi-nor";
159 reg = <0>;
160 spi-max-frequency = <133000000>;
161 spi-tx-bus-width = <8>;
162 spi-rx-bus-width = <8>;
163 m25p,fast-read;
164
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200165 at91bootstrap@0 {
166 label = "ospi: at91bootstrap";
167 reg = <0x0 0x40000>;
168 };
169
170 bootloader@40000 {
171 label = "ospi: bootloader";
172 reg = <0x40000 0xc0000>;
173 };
174
175 bootloaderenvred@100000 {
176 label = "ospi: bootloader env redundant";
177 reg = <0x100000 0x40000>;
178 };
179
180 bootloaderenv@140000 {
181 label = "ospi: bootloader env";
182 reg = <0x140000 0x40000>;
183 };
184
185 dtb@180000 {
186 label = "ospi: device tree";
187 reg = <0x180000 0x80000>;
188 };
189
190 kernel@200000 {
191 label = "ospi: kernel";
192 reg = <0x200000 0x600000>;
193 };
194
195 rootfs@800000 {
196 label = "ospi: rootfs";
197 reg = <0x800000 0x7800000>;
198 };
199
Tudor Ambarusd9a21d02021-11-03 19:07:41 +0200200 };
201};
202
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200203&dma0 {
204 status = "okay";
205};
206
207&dma1 {
208 status = "okay";
209};
210
211&dma2 {
212 status = "okay";
213};
214
215&flx0 {
216 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
217 status = "disabled";
218
219 uart0: serial@200 {
220 pinctrl-names = "default";
221 pinctrl-0 = <&pinctrl_flx0_default>;
222 status = "disabled";
223 };
224};
225
Eugen Hristevcb026542020-07-31 15:20:01 +0300226&flx1 {
Eugen Hristeveecfff02021-08-27 13:44:12 +0300227 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
Eugen Hristevcb026542020-07-31 15:20:01 +0300228 status = "okay";
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200229
230 i2c1: i2c@600 {
231 pinctrl-names = "default";
232 pinctrl-0 = <&pinctrl_i2c1_default>;
233 i2c-analog-filter;
234 i2c-digital-filter;
235 i2c-digital-filter-width-ns = <35>;
236 status = "okay";
237
238 mcp16502@5b {
239 compatible = "microchip,mcp16502";
240 reg = <0x5b>;
241 status = "okay";
242
243 regulators {
244 vdd_3v3: VDD_IO {
245 regulator-name = "VDD_IO";
246 regulator-min-microvolt = <1200000>;
247 regulator-max-microvolt = <3700000>;
248 regulator-initial-mode = <2>;
249 regulator-allowed-modes = <2>, <4>;
250 regulator-always-on;
251
252 regulator-state-standby {
253 regulator-on-in-suspend;
254 regulator-suspend-microvolt = <3300000>;
255 regulator-mode = <4>;
256 };
257
258 regulator-state-mem {
259 regulator-off-in-suspend;
260 regulator-mode = <4>;
261 };
262 };
263
264 vddioddr: VDD_DDR {
265 regulator-name = "VDD_DDR";
266 regulator-min-microvolt = <1300000>;
267 regulator-max-microvolt = <1450000>;
268 regulator-initial-mode = <2>;
269 regulator-allowed-modes = <2>, <4>;
270 regulator-always-on;
271
272 regulator-state-standby {
273 regulator-on-in-suspend;
274 regulator-suspend-microvolt = <1350000>;
275 regulator-mode = <4>;
276 };
277
278 regulator-state-mem {
279 regulator-on-in-suspend;
280 regulator-suspend-microvolt = <1350000>;
281 regulator-mode = <4>;
282 };
283 };
284
285 vddcore: VDD_CORE {
286 regulator-name = "VDD_CORE";
287 regulator-min-microvolt = <1100000>;
288 regulator-max-microvolt = <1850000>;
289 regulator-initial-mode = <2>;
290 regulator-allowed-modes = <2>, <4>;
291 regulator-always-on;
292
293 regulator-state-standby {
294 regulator-on-in-suspend;
295 regulator-suspend-voltage = <1150000>;
296 regulator-mode = <4>;
297 };
298
299 regulator-state-mem {
300 regulator-off-in-suspend;
301 regulator-mode = <4>;
302 };
303 };
304
305 vddcpu: VDD_OTHER {
306 regulator-name = "VDD_OTHER";
307 regulator-min-microvolt = <1050000>;
308 regulator-max-microvolt = <1850000>;
309 regulator-initial-mode = <2>;
310 regulator-allowed-modes = <2>, <4>;
311 regulator-ramp-delay = <3125>;
312 regulator-always-on;
313
314 regulator-state-standby {
315 regulator-on-in-suspend;
316 regulator-suspend-voltage = <1050000>;
317 regulator-mode = <4>;
318 };
319
320 regulator-state-mem {
321 regulator-off-in-suspend;
322 regulator-mode = <4>;
323 };
324 };
325
326 vldo1: LDO1 {
327 regulator-name = "LDO1";
328 regulator-min-microvolt = <1200000>;
329 regulator-max-microvolt = <3700000>;
330 regulator-always-on;
331
332 regulator-state-standby {
333 regulator-suspend-voltage = <1800000>;
334 regulator-on-in-suspend;
335 };
336
337 regulator-state-mem {
338 regulator-off-in-suspend;
339 };
340 };
341
342 vldo2: LDO2 {
343 regulator-name = "LDO2";
344 regulator-min-microvolt = <1200000>;
345 regulator-max-microvolt = <3700000>;
346
347 regulator-state-standby {
348 regulator-suspend-voltage = <1800000>;
349 regulator-on-in-suspend;
350 };
351
352 regulator-state-mem {
353 regulator-off-in-suspend;
354 };
355 };
356 };
357 };
358 };
Eugen Hristevcb026542020-07-31 15:20:01 +0300359};
360
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200361&flx3 {
362 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
Eugen Hristevcb026542020-07-31 15:20:01 +0300363 status = "okay";
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200364
365 uart3: serial@200 {
366 pinctrl-names = "default";
367 pinctrl-0 = <&pinctrl_flx3_default>;
368 status = "okay";
369 };
Eugen Hristev5e158ae2022-01-04 18:23:36 +0200370};
Eugen Hristevcb026542020-07-31 15:20:01 +0300371
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200372&flx4 {
373 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
374 status = "okay";
375
376 uart4: serial@200 {
377 pinctrl-names = "default";
378 pinctrl-0 = <&pinctrl_flx4_default>;
379 status = "okay";
380 };
381};
382
383&flx7 {
384 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
385 status = "okay";
386
387 uart7: serial@200 {
388 pinctrl-names = "default";
389 pinctrl-0 = <&pinctrl_flx7_default>;
390 status = "okay";
391 };
392};
393
Eugen Hristev5e158ae2022-01-04 18:23:36 +0200394&flx8 {
395 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
396 status = "okay";
397
398 i2c8: i2c@600 {
399 pinctrl-names = "default";
400 pinctrl-0 = <&pinctrl_i2c8_default>;
401 i2c-analog-filter;
402 i2c-digital-filter;
403 i2c-digital-filter-width-ns = <35>;
404 status = "okay";
Eugen Hristevcb026542020-07-31 15:20:01 +0300405
Eugen Hristev5e158ae2022-01-04 18:23:36 +0200406 eeprom@52 {
407 compatible = "microchip,24aa02e48";
408 reg = <0x52>;
409 pagesize = <16>;
410 };
411
412 eeprom@53 {
413 compatible = "microchip,24aa02e48";
414 reg = <0x53>;
415 pagesize = <16>;
416 };
Eugen Hristevcb026542020-07-31 15:20:01 +0300417 };
418};
419
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200420&flx9 {
421 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
422 status = "okay";
423
424 i2c9: i2c@600 {
425 pinctrl-names = "default";
426 pinctrl-0 = <&pinctrl_i2c9_default>;
427 i2c-analog-filter;
428 i2c-digital-filter;
429 i2c-digital-filter-width-ns = <35>;
430 status = "okay";
431 };
432};
433
434&flx11 {
435 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
436 status = "okay";
437
438 spi11: spi@400 {
439 pinctrl-names = "default";
440 pinctrl-0 = <&pinctrl_mikrobus1_spi &pinctrl_mikrobus1_spi_cs>;
441 status = "okay";
442 };
443};
444
Claudiu Beznea45cca2b2020-06-09 13:53:00 +0300445&gmac0 {
446 #address-cells = <1>;
447 #size-cells = <0>;
448 pinctrl-names = "default";
Codrin Ciubotariude104042022-01-28 13:10:10 +0200449 pinctrl-0 = <&pinctrl_gmac0_default
450 &pinctrl_gmac0_mdio_default
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200451 &pinctrl_gmac0_txck_default
452 &pinctrl_gmac0_phy_irq>;
Claudiu Beznea45cca2b2020-06-09 13:53:00 +0300453 phy-mode = "rgmii-id";
454 status = "okay";
455
456 ethernet-phy@7 {
457 reg = <0x7>;
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200458 interrupt-parent = <&pioA>;
459 interrupts = <PIN_PA31 IRQ_TYPE_LEVEL_LOW>;
Claudiu Beznea45cca2b2020-06-09 13:53:00 +0300460 };
461};
462
Claudiu Beznea44550122020-06-09 13:53:45 +0300463&gmac1 {
464 #address-cells = <1>;
465 #size-cells = <0>;
466 pinctrl-names = "default";
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200467 pinctrl-0 = <&pinctrl_gmac1_default
468 &pinctrl_gmac1_mdio_default
469 &pinctrl_gmac1_phy_irq>;
Claudiu Beznea44550122020-06-09 13:53:45 +0300470 phy-mode = "rmii";
471 status = "okay";
472
473 ethernet-phy@0 {
474 reg = <0x0>;
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200475 interrupt-parent = <&pioA>;
476 interrupts = <PIN_PA21 IRQ_TYPE_LEVEL_LOW>;
Claudiu Beznea44550122020-06-09 13:53:45 +0300477 };
478};
479
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200480&i2s0 {
481 pinctrl-names = "default";
482 pinctrl-0 = <&pinctrl_i2s0_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>;
Eugen Hristevcb026542020-07-31 15:20:01 +0300504 bias-disable;
505 };
506
Eugen Hristev83953652020-06-04 10:38:49 +0300507 pinctrl_flx3_default: flx3_default {
508 pinmux = <PIN_PD16__FLEXCOM3_IO0>,
509 <PIN_PD17__FLEXCOM3_IO1>;
Eugen Hristev996812f2021-01-28 10:14:11 +0200510 bias-pull-up;
Eugen Hristev83953652020-06-04 10:38:49 +0300511 };
512
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200513 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
Eugen Hristev5e158ae2022-01-04 18:23:36 +0200589 pinctrl_i2c8_default: i2c8_default {
590 pinmux = <PIN_PC14__FLEXCOM8_IO0>,
591 <PIN_PC13__FLEXCOM8_IO1>;
592 bias-disable;
593 };
594
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200595 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
Tudor Ambarusd9a21d02021-11-03 19:07:41 +0200654 pinctrl_qspi: qspi {
655 pinmux = <PIN_PB12__QSPI0_IO0>,
656 <PIN_PB11__QSPI0_IO1>,
657 <PIN_PB10__QSPI0_IO2>,
658 <PIN_PB9__QSPI0_IO3>,
659 <PIN_PB16__QSPI0_IO4>,
660 <PIN_PB17__QSPI0_IO5>,
661 <PIN_PB18__QSPI0_IO6>,
662 <PIN_PB19__QSPI0_IO7>,
663 <PIN_PB13__QSPI0_CS>,
664 <PIN_PB14__QSPI0_SCK>,
665 <PIN_PB15__QSPI0_SCKN>,
666 <PIN_PB20__QSPI0_DQS>,
667 <PIN_PB21__QSPI0_INT>;
668 bias-disable;
669 slew-rate = <0>;
Tudor Ambaruse95e3f62022-04-08 12:10:36 +0300670 atmel,drive-strength = <ATMEL_PIO_DRVSTR_ME>;
Tudor Ambarusd9a21d02021-11-03 19:07:41 +0200671 };
672
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200673 pinctrl_sdmmc0_default: sdmmc0_default {
Eugen Hristevfea6b4e2020-07-30 15:52:51 +0300674 pinmux = <PIN_PA1__SDMMC0_CMD>,
675 <PIN_PA3__SDMMC0_DAT0>,
676 <PIN_PA4__SDMMC0_DAT1>,
677 <PIN_PA5__SDMMC0_DAT2>,
678 <PIN_PA6__SDMMC0_DAT3>,
679 <PIN_PA7__SDMMC0_DAT4>,
680 <PIN_PA8__SDMMC0_DAT5>,
681 <PIN_PA9__SDMMC0_DAT6>,
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200682 <PIN_PA10__SDMMC0_DAT7>,
683 <PIN_PA0__SDMMC0_CK>,
Eugen Hristevfea6b4e2020-07-30 15:52:51 +0300684 <PIN_PA2__SDMMC0_RSTN>,
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200685 <PIN_PA14__SDMMC0_CD>,
686 <PIN_PA11__SDMMC0_DS>;
687 slew-rate = <0>;
688 bias-pull-up;
Eugen Hristevfea6b4e2020-07-30 15:52:51 +0300689 };
690
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200691 pinctrl_sdmmc1_default: sdmmc1_default {
Eugen Hristev83953652020-06-04 10:38:49 +0300692 pinmux = <PIN_PB29__SDMMC1_CMD>,
693 <PIN_PB31__SDMMC1_DAT0>,
694 <PIN_PC0__SDMMC1_DAT1>,
695 <PIN_PC1__SDMMC1_DAT2>,
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200696 <PIN_PC2__SDMMC1_DAT3>,
697 <PIN_PB30__SDMMC1_CK>,
Eugen Hristev83953652020-06-04 10:38:49 +0300698 <PIN_PB28__SDMMC1_RSTN>,
699 <PIN_PC5__SDMMC1_1V8SEL>,
700 <PIN_PC4__SDMMC1_CD>;
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200701 slew-rate = <0>;
Eugen Hristev83953652020-06-04 10:38:49 +0300702 bias-pull-up;
703 };
Claudiu Beznea45cca2b2020-06-09 13:53:00 +0300704
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200705 pinctrl_sdmmc2_default: sdmmc2_default {
706 pinmux = <PIN_PD3__SDMMC2_CMD>,
707 <PIN_PD5__SDMMC2_DAT0>,
708 <PIN_PD6__SDMMC2_DAT1>,
709 <PIN_PD7__SDMMC2_DAT2>,
710 <PIN_PD8__SDMMC2_DAT3>,
711 <PIN_PD4__SDMMC2_CK>;
Codrin Ciubotariude104042022-01-28 13:10:10 +0200712 slew-rate = <0>;
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200713 bias-pull-up;
714 };
715
716 pinctrl_spdifrx_default: spdifrx_default {
717 pinmux = <PIN_PB0__SPDIF_RX>;
Claudiu Beznea45cca2b2020-06-09 13:53:00 +0300718 bias-disable;
719 };
Claudiu Beznea44550122020-06-09 13:53:45 +0300720
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200721 pinctrl_spdiftx_default: spdiftx_default {
722 pinmux = <PIN_PB1__SPDIF_TX>;
Codrin Ciubotariude104042022-01-28 13:10:10 +0200723 bias-disable;
724 };
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200725};
Codrin Ciubotariude104042022-01-28 13:10:10 +0200726
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200727&pwm {
728 pinctrl-names = "default";
729 pinctrl-0 = <&pinctrl_mikrobus1_pwm2_default &pinctrl_mikrobus2_pwm3_default>;
730 status = "disabled"; /* Conflict with leds. */
731};
732
733&rtt {
734 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
735};
736
737&sdmmc0 {
738 bus-width = <8>;
739 non-removable;
740 no-1-8-v;
741 sdhci-caps-mask = <0x0 0x00200000>;
742 pinctrl-names = "default";
743 pinctrl-0 = <&pinctrl_sdmmc0_default>;
744 status = "okay";
745};
746
747&sdmmc1 {
748 bus-width = <4>;
749 no-1-8-v;
750 sdhci-caps-mask = <0x0 0x00200000>;
751 pinctrl-names = "default";
752 pinctrl-0 = <&pinctrl_sdmmc1_default>;
753 status = "okay";
754};
755
756&sdmmc2 {
757 bus-width = <4>;
758 no-1-8-v;
759 sdhci-caps-mask = <0x0 0x00200000>;
760 pinctrl-names = "default";
761 pinctrl-0 = <&pinctrl_sdmmc2_default>;
762};
763
764&shdwc {
765 atmel,shdwc-debouncer = <976>;
766 status = "okay";
767
768 input@0 {
769 reg = <0>;
Nicolas Ferre8c011dd2020-10-30 18:33:14 +0100770 };
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200771};
Nicolas Ferre8c011dd2020-10-30 18:33:14 +0100772
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200773&spdifrx {
774 pinctrl-names = "default";
775 pinctrl-0 = <&pinctrl_spdifrx_default>;
776 status = "okay";
777};
778
779&spdiftx {
780 pinctrl-names = "default";
781 pinctrl-0 = <&pinctrl_spdiftx_default>;
782 status = "okay";
783};
784
785&tcb0 {
786 timer0: timer@0 {
787 compatible = "atmel,tcb-timer";
788 reg = <0>;
Codrin Ciubotariude104042022-01-28 13:10:10 +0200789 };
790
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200791 timer1: timer@1 {
792 compatible = "atmel,tcb-timer";
793 reg = <1>;
Claudiu Beznea44550122020-06-09 13:53:45 +0300794 };
Eugen Hristev83953652020-06-04 10:38:49 +0300795};
Eugen Hristevdb55fd62022-03-07 16:29:42 +0200796
797&trng {
798 status = "okay";
799};
800
801&vddout25 {
802 vin-supply = <&vdd_3v3>;
803 status = "okay";
804};