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>
18 model = "Microchip SAMA7G5-EK";
19 compatible = "microchip,sama7g5ek", "microchip,sama7g5", "microchip,sama7";
22 bootargs = "rw root=/dev/mmcblk1p2 rootfstype=ext4 rootwait";
23 stdout-path = "serial0:115200n8";
38 clock-frequency = <32768>;
42 clock-frequency = <24000000>;
47 compatible = "gpio-keys";
49 pinctrl-names = "default";
50 pinctrl-0 = <&pinctrl_key_gpio_default>;
54 gpios = <&pioA PIN_PA12 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_PROG1>;
61 compatible = "gpio-leds";
62 pinctrl-names = "default";
63 pinctrl-0 = <&pinctrl_led_gpio_default>;
64 status = "okay"; /* Conflict with pwm. */
68 gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
73 gpios = <&pioA PIN_PA13 GPIO_ACTIVE_HIGH>;
78 gpios = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>;
79 linux,default-trigger = "heartbeat";
85 device_type = "memory";
86 reg = <0x60000000 0x20000000>;
90 compatible = "simple-audio-card";
91 simple-audio-card,name = "sama7g5ek audio";
94 simple-audio-card,dai-link@0 {
97 sound-dai = <&spdiftx>;
100 sound-dai = <&spdif_out>;
103 simple-audio-card,dai-link@1 {
106 sound-dai = <&spdifrx>;
109 sound-dai = <&spdif_in>;
115 #sound-dai-cells = <0>;
116 compatible = "linux,spdif-dir";
119 spdif_out: spdif-out {
120 #sound-dai-cells = <0>;
121 compatible = "linux,spdif-dit";
126 cpu-supply = <&vddcpu>;
142 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
146 pinctrl-names = "default";
147 pinctrl-0 = <&pinctrl_flx0_default>;
153 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
157 pinctrl-names = "default";
158 pinctrl-0 = <&pinctrl_i2c1_default>;
161 i2c-digital-filter-width-ns = <35>;
165 compatible = "microchip,mcp16502";
171 regulator-name = "VDD_IO";
172 regulator-min-microvolt = <1200000>;
173 regulator-max-microvolt = <3700000>;
174 regulator-initial-mode = <2>;
175 regulator-allowed-modes = <2>, <4>;
178 regulator-state-standby {
179 regulator-on-in-suspend;
180 regulator-mode = <4>;
183 regulator-state-mem {
184 regulator-off-in-suspend;
185 regulator-mode = <4>;
190 regulator-name = "VDD_DDR";
191 regulator-min-microvolt = <1300000>;
192 regulator-max-microvolt = <1450000>;
193 regulator-initial-mode = <2>;
194 regulator-allowed-modes = <2>, <4>;
197 regulator-state-standby {
198 regulator-on-in-suspend;
199 regulator-suspend-microvolt = <1350000>;
200 regulator-mode = <4>;
203 regulator-state-mem {
204 regulator-on-in-suspend;
205 regulator-suspend-microvolt = <1350000>;
206 regulator-mode = <4>;
211 regulator-name = "VDD_CORE";
212 regulator-min-microvolt = <1100000>;
213 regulator-max-microvolt = <1850000>;
214 regulator-initial-mode = <2>;
215 regulator-allowed-modes = <2>, <4>;
218 regulator-state-standby {
219 regulator-on-in-suspend;
220 regulator-mode = <4>;
223 regulator-state-mem {
224 regulator-off-in-suspend;
225 regulator-mode = <4>;
230 regulator-name = "VDD_OTHER";
231 regulator-min-microvolt = <1125000>;
232 regulator-max-microvolt = <1850000>;
233 regulator-initial-mode = <2>;
234 regulator-allowed-modes = <2>, <4>;
235 regulator-ramp-delay = <3125>;
238 regulator-state-standby {
239 regulator-on-in-suspend;
240 regulator-mode = <4>;
243 regulator-state-mem {
244 regulator-off-in-suspend;
245 regulator-mode = <4>;
250 regulator-name = "LDO1";
251 regulator-min-microvolt = <1200000>;
252 regulator-max-microvolt = <3700000>;
255 regulator-state-standby {
256 regulator-on-in-suspend;
259 regulator-state-mem {
260 regulator-off-in-suspend;
265 regulator-name = "LDO2";
266 regulator-min-microvolt = <1200000>;
267 regulator-max-microvolt = <3700000>;
269 regulator-state-standby {
270 regulator-on-in-suspend;
273 regulator-state-mem {
274 regulator-off-in-suspend;
283 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
287 pinctrl-names = "default";
288 pinctrl-0 = <&pinctrl_flx3_default>;
294 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
298 pinctrl-names = "default";
299 pinctrl-0 = <&pinctrl_flx4_default>;
305 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
309 pinctrl-names = "default";
310 pinctrl-0 = <&pinctrl_flx7_default>;
316 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
320 pinctrl-names = "default";
321 pinctrl-0 = <&pinctrl_i2c8_default>;
324 i2c-digital-filter-width-ns = <35>;
330 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
334 pinctrl-names = "default";
335 pinctrl-0 = <&pinctrl_i2c9_default>;
338 i2c-digital-filter-width-ns = <35>;
344 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
348 pinctrl-names = "default";
349 pinctrl-0 = <&pinctrl_mikrobus1_spi &pinctrl_mikrobus1_spi_cs>;
355 #address-cells = <1>;
357 pinctrl-names = "default";
358 pinctrl-0 = <&pinctrl_gmac0_default
359 &pinctrl_gmac0_mdio_default
360 &pinctrl_gmac0_txck_default
361 &pinctrl_gmac0_phy_irq>;
362 phy-mode = "rgmii-id";
367 interrupt-parent = <&pioA>;
368 interrupts = <PIN_PA31 IRQ_TYPE_LEVEL_LOW>;
373 #address-cells = <1>;
375 pinctrl-names = "default";
376 pinctrl-0 = <&pinctrl_gmac1_default
377 &pinctrl_gmac1_mdio_default
378 &pinctrl_gmac1_phy_irq>;
384 interrupt-parent = <&pioA>;
385 interrupts = <PIN_PA21 IRQ_TYPE_LEVEL_LOW>;
390 pinctrl-names = "default";
391 pinctrl-0 = <&pinctrl_i2s0_default>;
395 pinctrl_flx0_default: flx0_default {
396 pinmux = <PIN_PE3__FLEXCOM0_IO0>,
397 <PIN_PE4__FLEXCOM0_IO1>,
398 <PIN_PE6__FLEXCOM0_IO3>,
399 <PIN_PE7__FLEXCOM0_IO4>;
403 pinctrl_flx3_default: flx3_default {
404 pinmux = <PIN_PD16__FLEXCOM3_IO0>,
405 <PIN_PD17__FLEXCOM3_IO1>;
409 pinctrl_flx4_default: flx4_default {
410 pinmux = <PIN_PD18__FLEXCOM4_IO0>,
411 <PIN_PD19__FLEXCOM4_IO1>;
415 pinctrl_flx7_default: flx7_default {
416 pinmux = <PIN_PC23__FLEXCOM7_IO0>,
417 <PIN_PC24__FLEXCOM7_IO1>;
421 pinctrl_gmac0_default: gmac0_default {
422 pinmux = <PIN_PA16__G0_TX0>,
433 <PIN_PA25__G0_125CK>;
438 pinctrl_gmac0_mdio_default: gmac0_mdio_default {
439 pinmux = <PIN_PA22__G0_MDC>,
444 pinctrl_gmac0_txck_default: gmac0_txck_default {
445 pinmux = <PIN_PA24__G0_TXCK>;
450 pinctrl_gmac0_phy_irq: gmac0_phy_irq {
451 pinmux = <PIN_PA31__GPIO>;
455 pinctrl_gmac1_default: gmac1_default {
456 pinmux = <PIN_PD30__G1_TXCK>,
468 pinctrl_gmac1_mdio_default: gmac1_mdio_default {
469 pinmux = <PIN_PD28__G1_MDC>,
474 pinctrl_gmac1_phy_irq: gmac1_phy_irq {
475 pinmux = <PIN_PA21__GPIO>;
479 pinctrl_i2c1_default: i2c1_default {
480 pinmux = <PIN_PC9__FLEXCOM1_IO0>,
481 <PIN_PC10__FLEXCOM1_IO1>;
485 pinctrl_i2c8_default: i2c8_default {
486 pinmux = <PIN_PC14__FLEXCOM8_IO0>,
487 <PIN_PC13__FLEXCOM8_IO1>;
491 pinctrl_i2c9_default: i2c9_default {
492 pinmux = <PIN_PC18__FLEXCOM9_IO0>,
493 <PIN_PC19__FLEXCOM9_IO1>;
497 pinctrl_i2s0_default: i2s0_default {
498 pinmux = <PIN_PB23__I2SMCC0_CK>,
499 <PIN_PB24__I2SMCC0_WS>,
500 <PIN_PB25__I2SMCC0_DOUT1>,
501 <PIN_PB26__I2SMCC0_DOUT0>,
502 <PIN_PB27__I2SMCC0_MCK>;
506 pinctrl_key_gpio_default: key_gpio_default {
507 pinmux = <PIN_PA12__GPIO>;
511 pinctrl_led_gpio_default: led_gpio_default {
512 pinmux = <PIN_PA13__GPIO>,
518 pinctrl_mikrobus1_an_default: mikrobus1_an_default {
519 pinmux = <PIN_PD0__GPIO>;
523 pinctrl_mikrobus2_an_default: mikrobus2_an_default {
524 pinmux = <PIN_PD1__GPIO>;
528 pinctrl_mikrobus1_pwm2_default: mikrobus1_pwm2_default {
529 pinmux = <PIN_PA13__PWMH2>;
533 pinctrl_mikrobus2_pwm3_default: mikrobus2_pwm3_default {
534 pinmux = <PIN_PD20__PWMH3>;
538 pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
539 pinmux = <PIN_PB6__FLEXCOM11_IO3>;
543 pinctrl_mikrobus1_spi: mikrobus1_spi {
544 pinmux = <PIN_PB3__FLEXCOM11_IO0>,
545 <PIN_PB4__FLEXCOM11_IO1>,
546 <PIN_PB5__FLEXCOM11_IO2>;
550 pinctrl_sdmmc0_default: sdmmc0_default {
552 pinmux = <PIN_PA1__SDMMC0_CMD>,
553 <PIN_PA3__SDMMC0_DAT0>,
554 <PIN_PA4__SDMMC0_DAT1>,
555 <PIN_PA5__SDMMC0_DAT2>,
556 <PIN_PA6__SDMMC0_DAT3>,
557 <PIN_PA7__SDMMC0_DAT4>,
558 <PIN_PA8__SDMMC0_DAT5>,
559 <PIN_PA9__SDMMC0_DAT6>,
560 <PIN_PA10__SDMMC0_DAT7>;
566 pinmux = <PIN_PA0__SDMMC0_CK>,
567 <PIN_PA2__SDMMC0_RSTN>,
568 <PIN_PA11__SDMMC0_DS>;
574 pinctrl_sdmmc1_default: sdmmc1_default {
576 pinmux = <PIN_PB29__SDMMC1_CMD>,
577 <PIN_PB31__SDMMC1_DAT0>,
578 <PIN_PC0__SDMMC1_DAT1>,
579 <PIN_PC1__SDMMC1_DAT2>,
580 <PIN_PC2__SDMMC1_DAT3>;
586 pinmux = <PIN_PB30__SDMMC1_CK>,
587 <PIN_PB28__SDMMC1_RSTN>,
588 <PIN_PC5__SDMMC1_1V8SEL>,
589 <PIN_PC4__SDMMC1_CD>;
595 pinctrl_sdmmc2_default: sdmmc2_default {
597 pinmux = <PIN_PD3__SDMMC2_CMD>,
598 <PIN_PD5__SDMMC2_DAT0>,
599 <PIN_PD6__SDMMC2_DAT1>,
600 <PIN_PD7__SDMMC2_DAT2>,
601 <PIN_PD8__SDMMC2_DAT3>;
607 pinmux = <PIN_PD4__SDMMC2_CK>;
613 pinctrl_spdifrx_default: spdifrx_default {
614 pinmux = <PIN_PB0__SPDIF_RX>;
618 pinctrl_spdiftx_default: spdiftx_default {
619 pinmux = <PIN_PB1__SPDIF_TX>;
625 pinctrl-names = "default";
626 pinctrl-0 = <&pinctrl_mikrobus1_pwm2_default &pinctrl_mikrobus2_pwm3_default>;
627 status = "disabled"; /* Conflict with leds. */
631 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
638 sdhci-caps-mask = <0x0 0x00200000>;
639 pinctrl-names = "default";
640 pinctrl-0 = <&pinctrl_sdmmc0_default>;
647 sdhci-caps-mask = <0x0 0x00200000>;
648 pinctrl-names = "default";
649 pinctrl-0 = <&pinctrl_sdmmc1_default>;
656 sdhci-caps-mask = <0x0 0x00200000>;
657 pinctrl-names = "default";
658 pinctrl-0 = <&pinctrl_sdmmc2_default>;
662 atmel,shdwc-debouncer = <976>;
671 pinctrl-names = "default";
672 pinctrl-0 = <&pinctrl_spdifrx_default>;
677 pinctrl-names = "default";
678 pinctrl-0 = <&pinctrl_spdiftx_default>;
687 vin-supply = <&vdd_3v3>;