0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * at91-sama7g5ek.dts - Device Tree file for SAMA7G5-EK board
0004 *
0005 * Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries
0006 *
0007 * Author: Eugen Hristev <eugen.hristev@microchip.com>
0008 * Author: Claudiu Beznea <claudiu.beznea@microchip.com>
0009 *
0010 */
0011 /dts-v1/;
0012 #include "sama7g5-pinfunc.h"
0013 #include "sama7g5.dtsi"
0014 #include <dt-bindings/mfd/atmel-flexcom.h>
0015 #include <dt-bindings/input/input.h>
0016 #include <dt-bindings/pinctrl/at91.h>
0017 #include <dt-bindings/sound/microchip,pdmc.h>
0018
0019 / {
0020 model = "Microchip SAMA7G5-EK";
0021 compatible = "microchip,sama7g5ek", "microchip,sama7g5", "microchip,sama7";
0022
0023 chosen {
0024 bootargs = "rw root=/dev/mmcblk1p2 rootfstype=ext4 rootwait";
0025 stdout-path = "serial0:115200n8";
0026 };
0027
0028 aliases {
0029 serial0 = &uart3;
0030 serial1 = &uart4;
0031 serial2 = &uart7;
0032 serial3 = &uart0;
0033 i2c0 = &i2c1;
0034 i2c1 = &i2c8;
0035 i2c2 = &i2c9;
0036 };
0037
0038 clocks {
0039 slow_xtal {
0040 clock-frequency = <32768>;
0041 };
0042
0043 main_xtal {
0044 clock-frequency = <24000000>;
0045 };
0046 };
0047
0048 gpio-keys {
0049 compatible = "gpio-keys";
0050
0051 pinctrl-names = "default";
0052 pinctrl-0 = <&pinctrl_key_gpio_default>;
0053
0054 button {
0055 label = "PB_USER";
0056 gpios = <&pioA PIN_PA12 GPIO_ACTIVE_LOW>;
0057 linux,code = <KEY_PROG1>;
0058 wakeup-source;
0059 };
0060 };
0061
0062 leds {
0063 compatible = "gpio-leds";
0064 pinctrl-names = "default";
0065 pinctrl-0 = <&pinctrl_led_gpio_default>;
0066 status = "okay"; /* Conflict with pwm. */
0067
0068 red_led {
0069 label = "red";
0070 gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
0071 };
0072
0073 green_led {
0074 label = "green";
0075 gpios = <&pioA PIN_PA13 GPIO_ACTIVE_HIGH>;
0076 };
0077
0078 blue_led {
0079 label = "blue";
0080 gpios = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>;
0081 linux,default-trigger = "heartbeat";
0082 };
0083 };
0084
0085 /* 512 M */
0086 memory@60000000 {
0087 device_type = "memory";
0088 reg = <0x60000000 0x20000000>;
0089 };
0090
0091 sound: sound {
0092 compatible = "simple-audio-card";
0093 simple-audio-card,name = "sama7g5ek audio";
0094 #address-cells = <1>;
0095 #size-cells = <0>;
0096 simple-audio-card,dai-link@0 {
0097 reg = <0>;
0098 cpu {
0099 sound-dai = <&spdiftx>;
0100 };
0101 codec {
0102 sound-dai = <&spdif_out>;
0103 };
0104 };
0105 simple-audio-card,dai-link@1 {
0106 reg = <1>;
0107 cpu {
0108 sound-dai = <&spdifrx>;
0109 };
0110 codec {
0111 sound-dai = <&spdif_in>;
0112 };
0113 };
0114 };
0115
0116 spdif_in: spdif-in {
0117 #sound-dai-cells = <0>;
0118 compatible = "linux,spdif-dir";
0119 };
0120
0121 spdif_out: spdif-out {
0122 #sound-dai-cells = <0>;
0123 compatible = "linux,spdif-dit";
0124 };
0125 };
0126
0127 &adc {
0128 vddana-supply = <&vddout25>;
0129 vref-supply = <&vddout25>;
0130 pinctrl-names = "default";
0131 pinctrl-0 = <&pinctrl_mikrobus1_an_default &pinctrl_mikrobus2_an_default>;
0132 status = "okay";
0133 };
0134
0135 &can0 {
0136 pinctrl-names = "default";
0137 pinctrl-0 = <&pinctrl_can0_default>;
0138 status = "okay";
0139 };
0140
0141 &can1 {
0142 pinctrl-names = "default";
0143 pinctrl-0 = <&pinctrl_can1_default>;
0144 status = "okay";
0145 };
0146
0147 &cpu0 {
0148 cpu-supply = <&vddcpu>;
0149 };
0150
0151 &qspi0 {
0152 pinctrl-names = "default";
0153 pinctrl-0 = <&pinctrl_qspi>;
0154 status = "okay";
0155
0156 flash@0 {
0157 #address-cells = <1>;
0158 #size-cells = <1>;
0159 compatible = "jedec,spi-nor";
0160 reg = <0>;
0161 spi-max-frequency = <133000000>;
0162 spi-tx-bus-width = <8>;
0163 spi-rx-bus-width = <8>;
0164 m25p,fast-read;
0165
0166 at91bootstrap@0 {
0167 label = "ospi: at91bootstrap";
0168 reg = <0x0 0x40000>;
0169 };
0170
0171 bootloader@40000 {
0172 label = "ospi: bootloader";
0173 reg = <0x40000 0xc0000>;
0174 };
0175
0176 bootloaderenvred@100000 {
0177 label = "ospi: bootloader env redundant";
0178 reg = <0x100000 0x40000>;
0179 };
0180
0181 bootloaderenv@140000 {
0182 label = "ospi: bootloader env";
0183 reg = <0x140000 0x40000>;
0184 };
0185
0186 dtb@180000 {
0187 label = "ospi: device tree";
0188 reg = <0x180000 0x80000>;
0189 };
0190
0191 kernel@200000 {
0192 label = "ospi: kernel";
0193 reg = <0x200000 0x600000>;
0194 };
0195
0196 rootfs@800000 {
0197 label = "ospi: rootfs";
0198 reg = <0x800000 0x7800000>;
0199 };
0200
0201 };
0202 };
0203
0204 &dma0 {
0205 status = "okay";
0206 };
0207
0208 &dma1 {
0209 status = "okay";
0210 };
0211
0212 &dma2 {
0213 status = "okay";
0214 };
0215
0216 &flx0 {
0217 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
0218 status = "disabled";
0219
0220 uart0: serial@200 {
0221 pinctrl-names = "default";
0222 pinctrl-0 = <&pinctrl_flx0_default>;
0223 status = "disabled";
0224 };
0225 };
0226
0227 &flx1 {
0228 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
0229 status = "okay";
0230
0231 i2c1: i2c@600 {
0232 pinctrl-names = "default";
0233 pinctrl-0 = <&pinctrl_i2c1_default>;
0234 i2c-analog-filter;
0235 i2c-digital-filter;
0236 i2c-digital-filter-width-ns = <35>;
0237 status = "okay";
0238
0239 mcp16502@5b {
0240 compatible = "microchip,mcp16502";
0241 reg = <0x5b>;
0242 status = "okay";
0243
0244 regulators {
0245 vdd_3v3: VDD_IO {
0246 regulator-name = "VDD_IO";
0247 regulator-min-microvolt = <3300000>;
0248 regulator-max-microvolt = <3300000>;
0249 regulator-initial-mode = <2>;
0250 regulator-allowed-modes = <2>, <4>;
0251 regulator-always-on;
0252
0253 regulator-state-standby {
0254 regulator-on-in-suspend;
0255 regulator-suspend-microvolt = <3300000>;
0256 regulator-mode = <4>;
0257 };
0258
0259 regulator-state-mem {
0260 regulator-off-in-suspend;
0261 regulator-mode = <4>;
0262 };
0263 };
0264
0265 vddioddr: VDD_DDR {
0266 regulator-name = "VDD_DDR";
0267 regulator-min-microvolt = <1350000>;
0268 regulator-max-microvolt = <1350000>;
0269 regulator-initial-mode = <2>;
0270 regulator-allowed-modes = <2>, <4>;
0271 regulator-always-on;
0272
0273 regulator-state-standby {
0274 regulator-on-in-suspend;
0275 regulator-suspend-microvolt = <1350000>;
0276 regulator-mode = <4>;
0277 };
0278
0279 regulator-state-mem {
0280 regulator-on-in-suspend;
0281 regulator-suspend-microvolt = <1350000>;
0282 regulator-mode = <4>;
0283 };
0284 };
0285
0286 vddcore: VDD_CORE {
0287 regulator-name = "VDD_CORE";
0288 regulator-min-microvolt = <1150000>;
0289 regulator-max-microvolt = <1150000>;
0290 regulator-initial-mode = <2>;
0291 regulator-allowed-modes = <2>, <4>;
0292 regulator-always-on;
0293
0294 regulator-state-standby {
0295 regulator-on-in-suspend;
0296 regulator-suspend-voltage = <1150000>;
0297 regulator-mode = <4>;
0298 };
0299
0300 regulator-state-mem {
0301 regulator-off-in-suspend;
0302 regulator-mode = <4>;
0303 };
0304 };
0305
0306 vddcpu: VDD_OTHER {
0307 regulator-name = "VDD_OTHER";
0308 regulator-min-microvolt = <1050000>;
0309 regulator-max-microvolt = <1250000>;
0310 regulator-initial-mode = <2>;
0311 regulator-allowed-modes = <2>, <4>;
0312 regulator-ramp-delay = <3125>;
0313 regulator-always-on;
0314
0315 regulator-state-standby {
0316 regulator-on-in-suspend;
0317 regulator-suspend-voltage = <1050000>;
0318 regulator-mode = <4>;
0319 };
0320
0321 regulator-state-mem {
0322 regulator-off-in-suspend;
0323 regulator-mode = <4>;
0324 };
0325 };
0326
0327 vldo1: LDO1 {
0328 regulator-name = "LDO1";
0329 regulator-min-microvolt = <1800000>;
0330 regulator-max-microvolt = <1800000>;
0331 regulator-always-on;
0332
0333 regulator-state-standby {
0334 regulator-suspend-voltage = <1800000>;
0335 regulator-on-in-suspend;
0336 };
0337
0338 regulator-state-mem {
0339 regulator-off-in-suspend;
0340 };
0341 };
0342
0343 vldo2: LDO2 {
0344 regulator-name = "LDO2";
0345 regulator-min-microvolt = <1200000>;
0346 regulator-max-microvolt = <3700000>;
0347
0348 regulator-state-standby {
0349 regulator-suspend-voltage = <1800000>;
0350 regulator-on-in-suspend;
0351 };
0352
0353 regulator-state-mem {
0354 regulator-off-in-suspend;
0355 };
0356 };
0357 };
0358 };
0359 };
0360 };
0361
0362 &flx3 {
0363 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
0364 status = "okay";
0365
0366 uart3: serial@200 {
0367 pinctrl-names = "default";
0368 pinctrl-0 = <&pinctrl_flx3_default>;
0369 status = "okay";
0370 };
0371 };
0372
0373 &flx4 {
0374 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
0375 status = "okay";
0376
0377 uart4: serial@200 {
0378 pinctrl-names = "default";
0379 pinctrl-0 = <&pinctrl_flx4_default>;
0380 status = "okay";
0381 };
0382 };
0383
0384 &flx7 {
0385 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
0386 status = "okay";
0387
0388 uart7: serial@200 {
0389 pinctrl-names = "default";
0390 pinctrl-0 = <&pinctrl_flx7_default>;
0391 status = "okay";
0392 };
0393 };
0394
0395 &flx8 {
0396 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
0397 status = "okay";
0398
0399 i2c8: i2c@600 {
0400 pinctrl-names = "default";
0401 pinctrl-0 = <&pinctrl_i2c8_default>;
0402 i2c-analog-filter;
0403 i2c-digital-filter;
0404 i2c-digital-filter-width-ns = <35>;
0405 status = "okay";
0406 };
0407 };
0408
0409 &flx9 {
0410 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
0411 status = "okay";
0412
0413 i2c9: i2c@600 {
0414 pinctrl-names = "default";
0415 pinctrl-0 = <&pinctrl_i2c9_default>;
0416 i2c-analog-filter;
0417 i2c-digital-filter;
0418 i2c-digital-filter-width-ns = <35>;
0419 status = "okay";
0420 };
0421 };
0422
0423 &flx11 {
0424 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
0425 status = "okay";
0426
0427 spi11: spi@400 {
0428 pinctrl-names = "default";
0429 pinctrl-0 = <&pinctrl_mikrobus1_spi &pinctrl_mikrobus1_spi_cs>;
0430 status = "okay";
0431 };
0432 };
0433
0434 &gmac0 {
0435 #address-cells = <1>;
0436 #size-cells = <0>;
0437 pinctrl-names = "default";
0438 pinctrl-0 = <&pinctrl_gmac0_default
0439 &pinctrl_gmac0_mdio_default
0440 &pinctrl_gmac0_txck_default
0441 &pinctrl_gmac0_phy_irq>;
0442 phy-mode = "rgmii-id";
0443 status = "okay";
0444
0445 ethernet-phy@7 {
0446 reg = <0x7>;
0447 interrupt-parent = <&pioA>;
0448 interrupts = <PIN_PA31 IRQ_TYPE_LEVEL_LOW>;
0449 };
0450 };
0451
0452 &gmac1 {
0453 #address-cells = <1>;
0454 #size-cells = <0>;
0455 pinctrl-names = "default";
0456 pinctrl-0 = <&pinctrl_gmac1_default
0457 &pinctrl_gmac1_mdio_default
0458 &pinctrl_gmac1_phy_irq>;
0459 phy-mode = "rmii";
0460 status = "okay"; /* Conflict with pdmc0. */
0461
0462 ethernet-phy@0 {
0463 reg = <0x0>;
0464 interrupt-parent = <&pioA>;
0465 interrupts = <PIN_PA21 IRQ_TYPE_LEVEL_LOW>;
0466 };
0467 };
0468
0469 &i2s0 {
0470 pinctrl-names = "default";
0471 pinctrl-0 = <&pinctrl_i2s0_default>;
0472 };
0473
0474 &pdmc0 {
0475 #sound-dai-cells = <0>;
0476 microchip,mic-pos = <MCHP_PDMC_DS0 MCHP_PDMC_CLK_NEGATIVE>, /* MIC 1 */
0477 <MCHP_PDMC_DS1 MCHP_PDMC_CLK_NEGATIVE>, /* MIC 2 */
0478 <MCHP_PDMC_DS0 MCHP_PDMC_CLK_POSITIVE>, /* MIC 3 */
0479 <MCHP_PDMC_DS1 MCHP_PDMC_CLK_POSITIVE>; /* MIC 4 */
0480 status = "disabled"; /* Conflict with gmac1. */
0481 pinctrl-names = "default";
0482 pinctrl-0 = <&pinctrl_pdmc0_default>;
0483 };
0484
0485 &pioA {
0486
0487 pinctrl_can0_default: can0_default {
0488 pinmux = <PIN_PD12__CANTX0>,
0489 <PIN_PD13__CANRX0 >;
0490 bias-disable;
0491 };
0492
0493 pinctrl_can1_default: can1_default {
0494 pinmux = <PIN_PD14__CANTX1>,
0495 <PIN_PD15__CANRX1 >;
0496 bias-disable;
0497 };
0498
0499 pinctrl_flx0_default: flx0_default {
0500 pinmux = <PIN_PE3__FLEXCOM0_IO0>,
0501 <PIN_PE4__FLEXCOM0_IO1>,
0502 <PIN_PE6__FLEXCOM0_IO3>,
0503 <PIN_PE7__FLEXCOM0_IO4>;
0504 bias-disable;
0505 };
0506
0507 pinctrl_flx3_default: flx3_default {
0508 pinmux = <PIN_PD16__FLEXCOM3_IO0>,
0509 <PIN_PD17__FLEXCOM3_IO1>;
0510 bias-pull-up;
0511 };
0512
0513 pinctrl_flx4_default: flx4_default {
0514 pinmux = <PIN_PD18__FLEXCOM4_IO0>,
0515 <PIN_PD19__FLEXCOM4_IO1>;
0516 bias-disable;
0517 };
0518
0519 pinctrl_flx7_default: flx7_default {
0520 pinmux = <PIN_PC23__FLEXCOM7_IO0>,
0521 <PIN_PC24__FLEXCOM7_IO1>;
0522 bias-disable;
0523 };
0524
0525 pinctrl_gmac0_default: gmac0_default {
0526 pinmux = <PIN_PA16__G0_TX0>,
0527 <PIN_PA17__G0_TX1>,
0528 <PIN_PA26__G0_TX2>,
0529 <PIN_PA27__G0_TX3>,
0530 <PIN_PA19__G0_RX0>,
0531 <PIN_PA20__G0_RX1>,
0532 <PIN_PA28__G0_RX2>,
0533 <PIN_PA29__G0_RX3>,
0534 <PIN_PA15__G0_TXEN>,
0535 <PIN_PA30__G0_RXCK>,
0536 <PIN_PA18__G0_RXDV>,
0537 <PIN_PA25__G0_125CK>;
0538 slew-rate = <0>;
0539 bias-disable;
0540 };
0541
0542 pinctrl_gmac0_mdio_default: gmac0_mdio_default {
0543 pinmux = <PIN_PA22__G0_MDC>,
0544 <PIN_PA23__G0_MDIO>;
0545 bias-disable;
0546 };
0547
0548 pinctrl_gmac0_txck_default: gmac0_txck_default {
0549 pinmux = <PIN_PA24__G0_TXCK>;
0550 slew-rate = <0>;
0551 bias-pull-up;
0552 };
0553
0554 pinctrl_gmac0_phy_irq: gmac0_phy_irq {
0555 pinmux = <PIN_PA31__GPIO>;
0556 bias-disable;
0557 };
0558
0559 pinctrl_gmac1_default: gmac1_default {
0560 pinmux = <PIN_PD30__G1_TXCK>,
0561 <PIN_PD22__G1_TX0>,
0562 <PIN_PD23__G1_TX1>,
0563 <PIN_PD21__G1_TXEN>,
0564 <PIN_PD25__G1_RX0>,
0565 <PIN_PD26__G1_RX1>,
0566 <PIN_PD27__G1_RXER>,
0567 <PIN_PD24__G1_RXDV>;
0568 slew-rate = <0>;
0569 bias-disable;
0570 };
0571
0572 pinctrl_gmac1_mdio_default: gmac1_mdio_default {
0573 pinmux = <PIN_PD28__G1_MDC>,
0574 <PIN_PD29__G1_MDIO>;
0575 bias-disable;
0576 };
0577
0578 pinctrl_gmac1_phy_irq: gmac1_phy_irq {
0579 pinmux = <PIN_PA21__GPIO>;
0580 bias-disable;
0581 };
0582
0583 pinctrl_i2c1_default: i2c1_default {
0584 pinmux = <PIN_PC9__FLEXCOM1_IO0>,
0585 <PIN_PC10__FLEXCOM1_IO1>;
0586 bias-disable;
0587 };
0588
0589 pinctrl_i2c8_default: i2c8_default {
0590 pinmux = <PIN_PC14__FLEXCOM8_IO0>,
0591 <PIN_PC13__FLEXCOM8_IO1>;
0592 bias-disable;
0593 };
0594
0595 pinctrl_i2c9_default: i2c9_default {
0596 pinmux = <PIN_PC18__FLEXCOM9_IO0>,
0597 <PIN_PC19__FLEXCOM9_IO1>;
0598 bias-disable;
0599 };
0600
0601 pinctrl_i2s0_default: i2s0_default {
0602 pinmux = <PIN_PB23__I2SMCC0_CK>,
0603 <PIN_PB24__I2SMCC0_WS>,
0604 <PIN_PB25__I2SMCC0_DOUT1>,
0605 <PIN_PB26__I2SMCC0_DOUT0>,
0606 <PIN_PB27__I2SMCC0_MCK>;
0607 bias-disable;
0608 };
0609
0610 pinctrl_key_gpio_default: key_gpio_default {
0611 pinmux = <PIN_PA12__GPIO>;
0612 bias-pull-up;
0613 };
0614
0615 pinctrl_led_gpio_default: led_gpio_default {
0616 pinmux = <PIN_PA13__GPIO>,
0617 <PIN_PB8__GPIO>,
0618 <PIN_PD20__GPIO>;
0619 bias-pull-up;
0620 };
0621
0622 pinctrl_mikrobus1_an_default: mikrobus1_an_default {
0623 pinmux = <PIN_PD0__GPIO>;
0624 bias-disable;
0625 };
0626
0627 pinctrl_mikrobus2_an_default: mikrobus2_an_default {
0628 pinmux = <PIN_PD1__GPIO>;
0629 bias-disable;
0630 };
0631
0632 pinctrl_mikrobus1_pwm2_default: mikrobus1_pwm2_default {
0633 pinmux = <PIN_PA13__PWMH2>;
0634 bias-disable;
0635 };
0636
0637 pinctrl_mikrobus2_pwm3_default: mikrobus2_pwm3_default {
0638 pinmux = <PIN_PD20__PWMH3>;
0639 bias-disable;
0640 };
0641
0642 pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
0643 pinmux = <PIN_PB6__FLEXCOM11_IO3>;
0644 bias-disable;
0645 };
0646
0647 pinctrl_mikrobus1_spi: mikrobus1_spi {
0648 pinmux = <PIN_PB3__FLEXCOM11_IO0>,
0649 <PIN_PB4__FLEXCOM11_IO1>,
0650 <PIN_PB5__FLEXCOM11_IO2>;
0651 bias-disable;
0652 };
0653
0654 pinctrl_pdmc0_default: pdmc0_default {
0655 pinmux = <PIN_PD23__PDMC0_DS0>,
0656 <PIN_PD24__PDMC0_DS1>,
0657 <PIN_PD22__PDMC0_CLK>;
0658 bias_disable;
0659 };
0660
0661 pinctrl_qspi: qspi {
0662 pinmux = <PIN_PB12__QSPI0_IO0>,
0663 <PIN_PB11__QSPI0_IO1>,
0664 <PIN_PB10__QSPI0_IO2>,
0665 <PIN_PB9__QSPI0_IO3>,
0666 <PIN_PB16__QSPI0_IO4>,
0667 <PIN_PB17__QSPI0_IO5>,
0668 <PIN_PB18__QSPI0_IO6>,
0669 <PIN_PB19__QSPI0_IO7>,
0670 <PIN_PB13__QSPI0_CS>,
0671 <PIN_PB14__QSPI0_SCK>,
0672 <PIN_PB15__QSPI0_SCKN>,
0673 <PIN_PB20__QSPI0_DQS>,
0674 <PIN_PB21__QSPI0_INT>;
0675 bias-disable;
0676 slew-rate = <0>;
0677 atmel,drive-strength = <ATMEL_PIO_DRVSTR_ME>;
0678 };
0679
0680 pinctrl_sdmmc0_default: sdmmc0_default {
0681 cmd_data {
0682 pinmux = <PIN_PA1__SDMMC0_CMD>,
0683 <PIN_PA3__SDMMC0_DAT0>,
0684 <PIN_PA4__SDMMC0_DAT1>,
0685 <PIN_PA5__SDMMC0_DAT2>,
0686 <PIN_PA6__SDMMC0_DAT3>,
0687 <PIN_PA7__SDMMC0_DAT4>,
0688 <PIN_PA8__SDMMC0_DAT5>,
0689 <PIN_PA9__SDMMC0_DAT6>,
0690 <PIN_PA10__SDMMC0_DAT7>;
0691 slew-rate = <0>;
0692 bias-pull-up;
0693 };
0694
0695 ck_cd_rstn_vddsel {
0696 pinmux = <PIN_PA0__SDMMC0_CK>,
0697 <PIN_PA2__SDMMC0_RSTN>,
0698 <PIN_PA11__SDMMC0_DS>;
0699 slew-rate = <0>;
0700 bias-pull-up;
0701 };
0702 };
0703
0704 pinctrl_sdmmc1_default: sdmmc1_default {
0705 cmd_data {
0706 pinmux = <PIN_PB29__SDMMC1_CMD>,
0707 <PIN_PB31__SDMMC1_DAT0>,
0708 <PIN_PC0__SDMMC1_DAT1>,
0709 <PIN_PC1__SDMMC1_DAT2>,
0710 <PIN_PC2__SDMMC1_DAT3>;
0711 slew-rate = <0>;
0712 bias-pull-up;
0713 };
0714
0715 ck_cd_rstn_vddsel {
0716 pinmux = <PIN_PB30__SDMMC1_CK>,
0717 <PIN_PB28__SDMMC1_RSTN>,
0718 <PIN_PC5__SDMMC1_1V8SEL>,
0719 <PIN_PC4__SDMMC1_CD>;
0720 slew-rate = <0>;
0721 bias-pull-up;
0722 };
0723 };
0724
0725 pinctrl_sdmmc2_default: sdmmc2_default {
0726 cmd_data {
0727 pinmux = <PIN_PD3__SDMMC2_CMD>,
0728 <PIN_PD5__SDMMC2_DAT0>,
0729 <PIN_PD6__SDMMC2_DAT1>,
0730 <PIN_PD7__SDMMC2_DAT2>,
0731 <PIN_PD8__SDMMC2_DAT3>;
0732 slew-rate = <0>;
0733 bias-pull-up;
0734 };
0735
0736 ck {
0737 pinmux = <PIN_PD4__SDMMC2_CK>;
0738 slew-rate = <0>;
0739 bias-pull-up;
0740 };
0741 };
0742
0743 pinctrl_spdifrx_default: spdifrx_default {
0744 pinmux = <PIN_PB0__SPDIF_RX>;
0745 bias-disable;
0746 };
0747
0748 pinctrl_spdiftx_default: spdiftx_default {
0749 pinmux = <PIN_PB1__SPDIF_TX>;
0750 bias-disable;
0751 };
0752 };
0753
0754 &pwm {
0755 pinctrl-names = "default";
0756 pinctrl-0 = <&pinctrl_mikrobus1_pwm2_default &pinctrl_mikrobus2_pwm3_default>;
0757 status = "disabled"; /* Conflict with leds. */
0758 };
0759
0760 &rtt {
0761 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
0762 };
0763
0764 &sdmmc0 {
0765 bus-width = <8>;
0766 non-removable;
0767 no-1-8-v;
0768 sdhci-caps-mask = <0x0 0x00200000>;
0769 pinctrl-names = "default";
0770 pinctrl-0 = <&pinctrl_sdmmc0_default>;
0771 status = "okay";
0772 };
0773
0774 &sdmmc1 {
0775 bus-width = <4>;
0776 no-1-8-v;
0777 sdhci-caps-mask = <0x0 0x00200000>;
0778 pinctrl-names = "default";
0779 pinctrl-0 = <&pinctrl_sdmmc1_default>;
0780 status = "okay";
0781 };
0782
0783 &sdmmc2 {
0784 bus-width = <4>;
0785 no-1-8-v;
0786 sdhci-caps-mask = <0x0 0x00200000>;
0787 pinctrl-names = "default";
0788 pinctrl-0 = <&pinctrl_sdmmc2_default>;
0789 };
0790
0791 &shdwc {
0792 atmel,shdwc-debouncer = <976>;
0793 status = "okay";
0794
0795 input@0 {
0796 reg = <0>;
0797 };
0798 };
0799
0800 &spdifrx {
0801 pinctrl-names = "default";
0802 pinctrl-0 = <&pinctrl_spdifrx_default>;
0803 status = "okay";
0804 };
0805
0806 &spdiftx {
0807 pinctrl-names = "default";
0808 pinctrl-0 = <&pinctrl_spdiftx_default>;
0809 status = "okay";
0810 };
0811
0812 &tcb0 {
0813 timer0: timer@0 {
0814 compatible = "atmel,tcb-timer";
0815 reg = <0>;
0816 };
0817
0818 timer1: timer@1 {
0819 compatible = "atmel,tcb-timer";
0820 reg = <1>;
0821 };
0822 };
0823
0824 &trng {
0825 status = "okay";
0826 };
0827
0828 &vddout25 {
0829 vin-supply = <&vdd_3v3>;
0830 status = "okay";
0831 };