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-mode = <4>;
202 regulator-state-mem {
203 regulator-on-in-suspend;
204 regulator-mode = <4>;
209 regulator-name = "VDD_CORE";
210 regulator-min-microvolt = <1100000>;
211 regulator-max-microvolt = <1850000>;
212 regulator-initial-mode = <2>;
213 regulator-allowed-modes = <2>, <4>;
216 regulator-state-standby {
217 regulator-on-in-suspend;
218 regulator-mode = <4>;
221 regulator-state-mem {
222 regulator-off-in-suspend;
223 regulator-mode = <4>;
228 regulator-name = "VDD_OTHER";
229 regulator-min-microvolt = <1125000>;
230 regulator-max-microvolt = <1850000>;
231 regulator-initial-mode = <2>;
232 regulator-allowed-modes = <2>, <4>;
233 regulator-ramp-delay = <3125>;
236 regulator-state-standby {
237 regulator-on-in-suspend;
238 regulator-mode = <4>;
241 regulator-state-mem {
242 regulator-off-in-suspend;
243 regulator-mode = <4>;
248 regulator-name = "LDO1";
249 regulator-min-microvolt = <1200000>;
250 regulator-max-microvolt = <3700000>;
253 regulator-state-standby {
254 regulator-on-in-suspend;
257 regulator-state-mem {
258 regulator-off-in-suspend;
263 regulator-name = "LDO2";
264 regulator-min-microvolt = <1200000>;
265 regulator-max-microvolt = <3700000>;
267 regulator-state-standby {
268 regulator-on-in-suspend;
271 regulator-state-mem {
272 regulator-off-in-suspend;
281 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
285 pinctrl-names = "default";
286 pinctrl-0 = <&pinctrl_flx3_default>;
292 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
296 pinctrl-names = "default";
297 pinctrl-0 = <&pinctrl_flx4_default>;
303 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
307 pinctrl-names = "default";
308 pinctrl-0 = <&pinctrl_flx7_default>;
314 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
318 pinctrl-names = "default";
319 pinctrl-0 = <&pinctrl_i2c8_default>;
322 i2c-digital-filter-width-ns = <35>;
328 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
332 pinctrl-names = "default";
333 pinctrl-0 = <&pinctrl_i2c9_default>;
336 i2c-digital-filter-width-ns = <35>;
342 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
346 pinctrl-names = "default";
347 pinctrl-0 = <&pinctrl_mikrobus1_spi &pinctrl_mikrobus1_spi_cs>;
353 #address-cells = <1>;
355 pinctrl-names = "default";
356 pinctrl-0 = <&pinctrl_gmac0_default &pinctrl_gmac0_txck_default &pinctrl_gmac0_phy_irq>;
357 phy-mode = "rgmii-id";
362 interrupt-parent = <&pioA>;
363 interrupts = <PIN_PA31 IRQ_TYPE_LEVEL_LOW>;
368 #address-cells = <1>;
370 pinctrl-names = "default";
371 pinctrl-0 = <&pinctrl_gmac1_default &pinctrl_gmac1_phy_irq>;
377 interrupt-parent = <&pioA>;
378 interrupts = <PIN_PA21 IRQ_TYPE_LEVEL_LOW>;
383 pinctrl-names = "default";
384 pinctrl-0 = <&pinctrl_i2s0_default>;
388 pinctrl_flx0_default: flx0_default {
389 pinmux = <PIN_PE3__FLEXCOM0_IO0>,
390 <PIN_PE4__FLEXCOM0_IO1>,
391 <PIN_PE6__FLEXCOM0_IO3>,
392 <PIN_PE7__FLEXCOM0_IO4>;
396 pinctrl_flx3_default: flx3_default {
397 pinmux = <PIN_PD16__FLEXCOM3_IO0>,
398 <PIN_PD17__FLEXCOM3_IO1>;
402 pinctrl_flx4_default: flx4_default {
403 pinmux = <PIN_PD18__FLEXCOM4_IO0>,
404 <PIN_PD19__FLEXCOM4_IO1>;
408 pinctrl_flx7_default: flx7_default {
409 pinmux = <PIN_PC23__FLEXCOM7_IO0>,
410 <PIN_PC24__FLEXCOM7_IO1>;
414 pinctrl_gmac0_default: gmac0_default {
415 pinmux = <PIN_PA16__G0_TX0>,
428 <PIN_PA25__G0_125CK>;
432 pinctrl_gmac0_txck_default: gmac0_txck_default {
433 pinmux = <PIN_PA24__G0_TXCK>;
437 pinctrl_gmac0_phy_irq: gmac0_phy_irq {
438 pinmux = <PIN_PA31__GPIO>;
442 pinctrl_gmac1_default: gmac1_default {
443 pinmux = <PIN_PD30__G1_TXCK>,
456 pinctrl_gmac1_phy_irq: gmac1_phy_irq {
457 pinmux = <PIN_PA21__GPIO>;
461 pinctrl_i2c1_default: i2c1_default {
462 pinmux = <PIN_PC9__FLEXCOM1_IO0>,
463 <PIN_PC10__FLEXCOM1_IO1>;
467 pinctrl_i2c8_default: i2c8_default {
468 pinmux = <PIN_PC14__FLEXCOM8_IO0>,
469 <PIN_PC13__FLEXCOM8_IO1>;
473 pinctrl_i2c9_default: i2c9_default {
474 pinmux = <PIN_PC18__FLEXCOM9_IO0>,
475 <PIN_PC19__FLEXCOM9_IO1>;
479 pinctrl_i2s0_default: i2s0_default {
480 pinmux = <PIN_PB23__I2SMCC0_CK>,
481 <PIN_PB24__I2SMCC0_WS>,
482 <PIN_PB25__I2SMCC0_DOUT1>,
483 <PIN_PB26__I2SMCC0_DOUT0>,
484 <PIN_PB27__I2SMCC0_MCK>;
488 pinctrl_key_gpio_default: key_gpio_default {
489 pinmux = <PIN_PA12__GPIO>;
493 pinctrl_led_gpio_default: led_gpio_default {
494 pinmux = <PIN_PA13__GPIO>,
500 pinctrl_mikrobus1_an_default: mikrobus1_an_default {
501 pinmux = <PIN_PD0__GPIO>;
505 pinctrl_mikrobus2_an_default: mikrobus2_an_default {
506 pinmux = <PIN_PD1__GPIO>;
510 pinctrl_mikrobus1_pwm2_default: mikrobus1_pwm2_default {
511 pinmux = <PIN_PA13__PWMH2>;
515 pinctrl_mikrobus2_pwm3_default: mikrobus2_pwm3_default {
516 pinmux = <PIN_PD20__PWMH3>;
520 pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
521 pinmux = <PIN_PB6__FLEXCOM11_IO3>;
525 pinctrl_mikrobus1_spi: mikrobus1_spi {
526 pinmux = <PIN_PB3__FLEXCOM11_IO0>,
527 <PIN_PB4__FLEXCOM11_IO1>,
528 <PIN_PB5__FLEXCOM11_IO2>;
532 pinctrl_sdmmc0_default: sdmmc0_default {
534 pinmux = <PIN_PA1__SDMMC0_CMD>,
535 <PIN_PA3__SDMMC0_DAT0>,
536 <PIN_PA4__SDMMC0_DAT1>,
537 <PIN_PA5__SDMMC0_DAT2>,
538 <PIN_PA6__SDMMC0_DAT3>,
539 <PIN_PA7__SDMMC0_DAT4>,
540 <PIN_PA8__SDMMC0_DAT5>,
541 <PIN_PA9__SDMMC0_DAT6>,
542 <PIN_PA10__SDMMC0_DAT7>;
547 pinmux = <PIN_PA0__SDMMC0_CK>,
548 <PIN_PA2__SDMMC0_RSTN>,
549 <PIN_PA11__SDMMC0_DS>;
554 pinctrl_sdmmc1_default: sdmmc1_default {
556 pinmux = <PIN_PB29__SDMMC1_CMD>,
557 <PIN_PB31__SDMMC1_DAT0>,
558 <PIN_PC0__SDMMC1_DAT1>,
559 <PIN_PC1__SDMMC1_DAT2>,
560 <PIN_PC2__SDMMC1_DAT3>;
565 pinmux = <PIN_PB30__SDMMC1_CK>,
566 <PIN_PB28__SDMMC1_RSTN>,
567 <PIN_PC5__SDMMC1_1V8SEL>,
568 <PIN_PC4__SDMMC1_CD>;
573 pinctrl_sdmmc2_default: sdmmc2_default {
575 pinmux = <PIN_PD3__SDMMC2_CMD>,
576 <PIN_PD5__SDMMC2_DAT0>,
577 <PIN_PD6__SDMMC2_DAT1>,
578 <PIN_PD7__SDMMC2_DAT2>,
579 <PIN_PD8__SDMMC2_DAT3>;
584 pinmux = <PIN_PD4__SDMMC2_CK>;
589 pinctrl_spdifrx_default: spdifrx_default {
590 pinmux = <PIN_PB0__SPDIF_RX>;
594 pinctrl_spdiftx_default: spdiftx_default {
595 pinmux = <PIN_PB1__SPDIF_TX>;
601 pinctrl-names = "default";
602 pinctrl-0 = <&pinctrl_mikrobus1_pwm2_default &pinctrl_mikrobus2_pwm3_default>;
603 status = "disabled"; /* Conflict with leds. */
607 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
614 sdhci-caps-mask = <0x0 0x00200000>;
615 pinctrl-names = "default";
616 pinctrl-0 = <&pinctrl_sdmmc0_default>;
623 sdhci-caps-mask = <0x0 0x00200000>;
624 pinctrl-names = "default";
625 pinctrl-0 = <&pinctrl_sdmmc1_default>;
632 sdhci-caps-mask = <0x0 0x00200000>;
633 pinctrl-names = "default";
634 pinctrl-0 = <&pinctrl_sdmmc2_default>;
638 pinctrl-names = "default";
639 pinctrl-0 = <&pinctrl_spdifrx_default>;
644 pinctrl-names = "default";
645 pinctrl-0 = <&pinctrl_spdiftx_default>;
654 vin-supply = <&vdd_3v3>;