1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * at91-sama7g5ek.dts - Device Tree file for SAMA7G5-EK board
5 * Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries
7 * Author: Eugen Hristev <eugen.hristev@microchip.com>
8 * Author: Claudiu Beznea <claudiu.beznea@microchip.com>
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>
19 model = "Microchip SAMA7G5-EK";
20 compatible = "microchip,sama7g5ek", "microchip,sama7g5", "microchip,sama7";
23 bootargs = "rw root=/dev/mmcblk1p2 rootfstype=ext4 rootwait";
24 stdout-path = "serial0:115200n8";
39 clock-frequency = <32768>;
43 clock-frequency = <24000000>;
48 compatible = "gpio-keys";
50 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_key_gpio_default>;
55 gpios = <&pioA PIN_PA12 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_PROG1>;
62 compatible = "gpio-leds";
63 pinctrl-names = "default";
64 pinctrl-0 = <&pinctrl_led_gpio_default>;
65 status = "okay"; /* Conflict with pwm. */
69 gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
74 gpios = <&pioA PIN_PA13 GPIO_ACTIVE_HIGH>;
79 gpios = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>;
80 linux,default-trigger = "heartbeat";
86 device_type = "memory";
87 reg = <0x60000000 0x20000000>;
91 compatible = "simple-audio-card";
92 simple-audio-card,name = "sama7g5ek audio";
95 simple-audio-card,dai-link@0 {
98 sound-dai = <&spdiftx>;
101 sound-dai = <&spdif_out>;
104 simple-audio-card,dai-link@1 {
107 sound-dai = <&spdifrx>;
110 sound-dai = <&spdif_in>;
116 #sound-dai-cells = <0>;
117 compatible = "linux,spdif-dir";
120 spdif_out: spdif-out {
121 #sound-dai-cells = <0>;
122 compatible = "linux,spdif-dit";
127 vddana-supply = <&vddout25>;
128 vref-supply = <&vddout25>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinctrl_mikrobus1_an_default &pinctrl_mikrobus2_an_default>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&pinctrl_can0_default>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_can1_default>;
147 cpu-supply = <&vddcpu>;
151 pinctrl-names = "default";
152 pinctrl-0 = <&pinctrl_qspi>;
156 #address-cells = <1>;
158 compatible = "jedec,spi-nor";
160 spi-max-frequency = <133000000>;
161 spi-tx-bus-width = <8>;
162 spi-rx-bus-width = <8>;
166 label = "ospi: at91bootstrap";
171 label = "ospi: bootloader";
172 reg = <0x40000 0xc0000>;
175 bootloaderenvred@100000 {
176 label = "ospi: bootloader env redundant";
177 reg = <0x100000 0x40000>;
180 bootloaderenv@140000 {
181 label = "ospi: bootloader env";
182 reg = <0x140000 0x40000>;
186 label = "ospi: device tree";
187 reg = <0x180000 0x80000>;
191 label = "ospi: kernel";
192 reg = <0x200000 0x600000>;
196 label = "ospi: rootfs";
197 reg = <0x800000 0x7800000>;
216 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
220 pinctrl-names = "default";
221 pinctrl-0 = <&pinctrl_flx0_default>;
227 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
231 pinctrl-names = "default";
232 pinctrl-0 = <&pinctrl_i2c1_default>;
235 i2c-digital-filter-width-ns = <35>;
239 compatible = "microchip,mcp16502";
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>;
252 regulator-state-standby {
253 regulator-on-in-suspend;
254 regulator-suspend-microvolt = <3300000>;
255 regulator-mode = <4>;
258 regulator-state-mem {
259 regulator-off-in-suspend;
260 regulator-mode = <4>;
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>;
272 regulator-state-standby {
273 regulator-on-in-suspend;
274 regulator-suspend-microvolt = <1350000>;
275 regulator-mode = <4>;
278 regulator-state-mem {
279 regulator-on-in-suspend;
280 regulator-suspend-microvolt = <1350000>;
281 regulator-mode = <4>;
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>;
293 regulator-state-standby {
294 regulator-on-in-suspend;
295 regulator-suspend-voltage = <1150000>;
296 regulator-mode = <4>;
299 regulator-state-mem {
300 regulator-off-in-suspend;
301 regulator-mode = <4>;
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>;
314 regulator-state-standby {
315 regulator-on-in-suspend;
316 regulator-suspend-voltage = <1050000>;
317 regulator-mode = <4>;
320 regulator-state-mem {
321 regulator-off-in-suspend;
322 regulator-mode = <4>;
327 regulator-name = "LDO1";
328 regulator-min-microvolt = <1200000>;
329 regulator-max-microvolt = <3700000>;
332 regulator-state-standby {
333 regulator-suspend-voltage = <1800000>;
334 regulator-on-in-suspend;
337 regulator-state-mem {
338 regulator-off-in-suspend;
343 regulator-name = "LDO2";
344 regulator-min-microvolt = <1200000>;
345 regulator-max-microvolt = <3700000>;
347 regulator-state-standby {
348 regulator-suspend-voltage = <1800000>;
349 regulator-on-in-suspend;
352 regulator-state-mem {
353 regulator-off-in-suspend;
362 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
366 pinctrl-names = "default";
367 pinctrl-0 = <&pinctrl_flx3_default>;
373 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
377 pinctrl-names = "default";
378 pinctrl-0 = <&pinctrl_flx4_default>;
384 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
388 pinctrl-names = "default";
389 pinctrl-0 = <&pinctrl_flx7_default>;
395 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
399 pinctrl-names = "default";
400 pinctrl-0 = <&pinctrl_i2c8_default>;
403 i2c-digital-filter-width-ns = <35>;
409 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
413 pinctrl-names = "default";
414 pinctrl-0 = <&pinctrl_i2c9_default>;
417 i2c-digital-filter-width-ns = <35>;
423 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
427 pinctrl-names = "default";
428 pinctrl-0 = <&pinctrl_mikrobus1_spi &pinctrl_mikrobus1_spi_cs>;
434 #address-cells = <1>;
436 pinctrl-names = "default";
437 pinctrl-0 = <&pinctrl_gmac0_default
438 &pinctrl_gmac0_mdio_default
439 &pinctrl_gmac0_txck_default
440 &pinctrl_gmac0_phy_irq>;
441 phy-mode = "rgmii-id";
446 interrupt-parent = <&pioA>;
447 interrupts = <PIN_PA31 IRQ_TYPE_LEVEL_LOW>;
452 #address-cells = <1>;
454 pinctrl-names = "default";
455 pinctrl-0 = <&pinctrl_gmac1_default
456 &pinctrl_gmac1_mdio_default
457 &pinctrl_gmac1_phy_irq>;
463 interrupt-parent = <&pioA>;
464 interrupts = <PIN_PA21 IRQ_TYPE_LEVEL_LOW>;
469 pinctrl-names = "default";
470 pinctrl-0 = <&pinctrl_i2s0_default>;
475 pinctrl_can0_default: can0_default {
476 pinmux = <PIN_PD12__CANTX0>,
481 pinctrl_can1_default: can1_default {
482 pinmux = <PIN_PD14__CANTX1>,
487 pinctrl_flx0_default: flx0_default {
488 pinmux = <PIN_PE3__FLEXCOM0_IO0>,
489 <PIN_PE4__FLEXCOM0_IO1>,
490 <PIN_PE6__FLEXCOM0_IO3>,
491 <PIN_PE7__FLEXCOM0_IO4>;
495 pinctrl_flx3_default: flx3_default {
496 pinmux = <PIN_PD16__FLEXCOM3_IO0>,
497 <PIN_PD17__FLEXCOM3_IO1>;
501 pinctrl_flx4_default: flx4_default {
502 pinmux = <PIN_PD18__FLEXCOM4_IO0>,
503 <PIN_PD19__FLEXCOM4_IO1>;
507 pinctrl_flx7_default: flx7_default {
508 pinmux = <PIN_PC23__FLEXCOM7_IO0>,
509 <PIN_PC24__FLEXCOM7_IO1>;
513 pinctrl_gmac0_default: gmac0_default {
514 pinmux = <PIN_PA16__G0_TX0>,
525 <PIN_PA25__G0_125CK>;
530 pinctrl_gmac0_mdio_default: gmac0_mdio_default {
531 pinmux = <PIN_PA22__G0_MDC>,
536 pinctrl_gmac0_txck_default: gmac0_txck_default {
537 pinmux = <PIN_PA24__G0_TXCK>;
542 pinctrl_gmac0_phy_irq: gmac0_phy_irq {
543 pinmux = <PIN_PA31__GPIO>;
547 pinctrl_gmac1_default: gmac1_default {
548 pinmux = <PIN_PD30__G1_TXCK>,
560 pinctrl_gmac1_mdio_default: gmac1_mdio_default {
561 pinmux = <PIN_PD28__G1_MDC>,
566 pinctrl_gmac1_phy_irq: gmac1_phy_irq {
567 pinmux = <PIN_PA21__GPIO>;
571 pinctrl_i2c1_default: i2c1_default {
572 pinmux = <PIN_PC9__FLEXCOM1_IO0>,
573 <PIN_PC10__FLEXCOM1_IO1>;
577 pinctrl_i2c8_default: i2c8_default {
578 pinmux = <PIN_PC14__FLEXCOM8_IO0>,
579 <PIN_PC13__FLEXCOM8_IO1>;
583 pinctrl_i2c9_default: i2c9_default {
584 pinmux = <PIN_PC18__FLEXCOM9_IO0>,
585 <PIN_PC19__FLEXCOM9_IO1>;
589 pinctrl_i2s0_default: i2s0_default {
590 pinmux = <PIN_PB23__I2SMCC0_CK>,
591 <PIN_PB24__I2SMCC0_WS>,
592 <PIN_PB25__I2SMCC0_DOUT1>,
593 <PIN_PB26__I2SMCC0_DOUT0>,
594 <PIN_PB27__I2SMCC0_MCK>;
598 pinctrl_key_gpio_default: key_gpio_default {
599 pinmux = <PIN_PA12__GPIO>;
603 pinctrl_led_gpio_default: led_gpio_default {
604 pinmux = <PIN_PA13__GPIO>,
610 pinctrl_mikrobus1_an_default: mikrobus1_an_default {
611 pinmux = <PIN_PD0__GPIO>;
615 pinctrl_mikrobus2_an_default: mikrobus2_an_default {
616 pinmux = <PIN_PD1__GPIO>;
620 pinctrl_mikrobus1_pwm2_default: mikrobus1_pwm2_default {
621 pinmux = <PIN_PA13__PWMH2>;
625 pinctrl_mikrobus2_pwm3_default: mikrobus2_pwm3_default {
626 pinmux = <PIN_PD20__PWMH3>;
630 pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
631 pinmux = <PIN_PB6__FLEXCOM11_IO3>;
635 pinctrl_mikrobus1_spi: mikrobus1_spi {
636 pinmux = <PIN_PB3__FLEXCOM11_IO0>,
637 <PIN_PB4__FLEXCOM11_IO1>,
638 <PIN_PB5__FLEXCOM11_IO2>;
643 pinmux = <PIN_PB12__QSPI0_IO0>,
644 <PIN_PB11__QSPI0_IO1>,
645 <PIN_PB10__QSPI0_IO2>,
646 <PIN_PB9__QSPI0_IO3>,
647 <PIN_PB16__QSPI0_IO4>,
648 <PIN_PB17__QSPI0_IO5>,
649 <PIN_PB18__QSPI0_IO6>,
650 <PIN_PB19__QSPI0_IO7>,
651 <PIN_PB13__QSPI0_CS>,
652 <PIN_PB14__QSPI0_SCK>,
653 <PIN_PB15__QSPI0_SCKN>,
654 <PIN_PB20__QSPI0_DQS>,
655 <PIN_PB21__QSPI0_INT>;
658 atmel,drive-strength = <ATMEL_PIO_DRVSTR_ME>;
661 pinctrl_sdmmc0_default: sdmmc0_default {
663 pinmux = <PIN_PA1__SDMMC0_CMD>,
664 <PIN_PA3__SDMMC0_DAT0>,
665 <PIN_PA4__SDMMC0_DAT1>,
666 <PIN_PA5__SDMMC0_DAT2>,
667 <PIN_PA6__SDMMC0_DAT3>,
668 <PIN_PA7__SDMMC0_DAT4>,
669 <PIN_PA8__SDMMC0_DAT5>,
670 <PIN_PA9__SDMMC0_DAT6>,
671 <PIN_PA10__SDMMC0_DAT7>;
677 pinmux = <PIN_PA0__SDMMC0_CK>,
678 <PIN_PA2__SDMMC0_RSTN>,
679 <PIN_PA11__SDMMC0_DS>;
685 pinctrl_sdmmc1_default: sdmmc1_default {
687 pinmux = <PIN_PB29__SDMMC1_CMD>,
688 <PIN_PB31__SDMMC1_DAT0>,
689 <PIN_PC0__SDMMC1_DAT1>,
690 <PIN_PC1__SDMMC1_DAT2>,
691 <PIN_PC2__SDMMC1_DAT3>;
697 pinmux = <PIN_PB30__SDMMC1_CK>,
698 <PIN_PB28__SDMMC1_RSTN>,
699 <PIN_PC5__SDMMC1_1V8SEL>,
700 <PIN_PC4__SDMMC1_CD>;
706 pinctrl_sdmmc2_default: sdmmc2_default {
708 pinmux = <PIN_PD3__SDMMC2_CMD>,
709 <PIN_PD5__SDMMC2_DAT0>,
710 <PIN_PD6__SDMMC2_DAT1>,
711 <PIN_PD7__SDMMC2_DAT2>,
712 <PIN_PD8__SDMMC2_DAT3>;
718 pinmux = <PIN_PD4__SDMMC2_CK>;
724 pinctrl_spdifrx_default: spdifrx_default {
725 pinmux = <PIN_PB0__SPDIF_RX>;
729 pinctrl_spdiftx_default: spdiftx_default {
730 pinmux = <PIN_PB1__SPDIF_TX>;
736 pinctrl-names = "default";
737 pinctrl-0 = <&pinctrl_mikrobus1_pwm2_default &pinctrl_mikrobus2_pwm3_default>;
738 status = "disabled"; /* Conflict with leds. */
742 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
749 sdhci-caps-mask = <0x0 0x00200000>;
750 pinctrl-names = "default";
751 pinctrl-0 = <&pinctrl_sdmmc0_default>;
758 sdhci-caps-mask = <0x0 0x00200000>;
759 pinctrl-names = "default";
760 pinctrl-0 = <&pinctrl_sdmmc1_default>;
767 sdhci-caps-mask = <0x0 0x00200000>;
768 pinctrl-names = "default";
769 pinctrl-0 = <&pinctrl_sdmmc2_default>;
773 atmel,shdwc-debouncer = <976>;
782 pinctrl-names = "default";
783 pinctrl-0 = <&pinctrl_spdifrx_default>;
788 pinctrl-names = "default";
789 pinctrl-0 = <&pinctrl_spdiftx_default>;
795 compatible = "atmel,tcb-timer";
800 compatible = "atmel,tcb-timer";
810 vin-supply = <&vdd_3v3>;