1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * at91-sam9x60ek.dts - Device Tree file for Microchip SAM9X60-EK board
5 * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries
7 * Author: Sandeep Sheriker M <sandeepsheriker.mallikarjun@microchip.com>
10 #include "sam9x60.dtsi"
13 model = "Microchip SAM9X60-EK";
14 compatible = "microchip,sam9x60ek", "microchip,sam9x60", "atmel,at91sam9";
23 stdout-path = "serial0:115200n8";
28 clock-frequency = <32768>;
32 clock-frequency = <24000000>;
36 regulators: regulators {
37 compatible = "simple-bus";
41 vdd_1v8: fixed-regulator-vdd_1v8@0 {
42 compatible = "regulator-fixed";
43 regulator-name = "VDD_1V8";
44 regulator-min-microvolt = <1800000>;
45 regulator-max-microvolt = <1800000>;
50 vdd_1v5: fixed-regulator-vdd_1v5@1 {
51 compatible = "regulator-fixed";
52 regulator-name = "VDD_1V5";
53 regulator-min-microvolt = <1500000>;
54 regulator-max-microvolt = <1500000>;
59 vdd1_3v3: fixed-regulator-vdd1_3v3@2 {
60 compatible = "regulator-fixed";
61 regulator-name = "VDD1_3V3";
62 regulator-min-microvolt = <3300000>;
63 regulator-max-microvolt = <3300000>;
68 vdd2_3v3: regulator-fixed-vdd2_3v3@3 {
69 compatible = "regulator-fixed";
70 regulator-name = "VDD2_3V3";
71 regulator-min-microvolt = <3300000>;
72 regulator-max-microvolt = <3300000>;
79 compatible = "gpio-keys";
80 pinctrl-names = "default";
81 pinctrl-0 = <&pinctrl_key_gpio_default>;
86 gpios = <&pioD 18 GPIO_ACTIVE_LOW>;
93 compatible = "gpio-leds";
94 status = "okay"; /* Conflict with pwm0. */
98 gpios = <&pioB 11 GPIO_ACTIVE_HIGH>;
103 gpios = <&pioB 12 GPIO_ACTIVE_HIGH>;
108 gpios = <&pioB 13 GPIO_ACTIVE_HIGH>;
109 linux,default-trigger = "heartbeat";
115 vddana-supply = <&vdd1_3v3>;
116 vref-supply = <&vdd1_3v3>;
117 pinctrl-names = "default";
118 pinctrl-0 = <&pinctrl_adc_default &pinctrl_adtrg_default>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&pinctrl_can0_rx_tx>;
125 status = "disabled"; /* Conflict with dbgu. */
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinctrl_can1_rx_tx>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&pinctrl_classd_default>;
137 atmel,pwm-type = "diff";
138 atmel,non-overlap-time = <10>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&pinctrl_dbgu>;
145 status = "okay"; /* Conflict with can0. */
149 pinctrl-names = "default";
150 pinctrl-0 = <&pinctrl_ebi_addr_nand &pinctrl_ebi_data_0_7>;
153 nand_controller: nand-controller {
154 pinctrl-names = "default";
155 pinctrl-0 = <&pinctrl_nand_oe_we &pinctrl_nand_cs &pinctrl_nand_rb>;
159 reg = <0x3 0x0 0x800000>;
160 rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
161 cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
162 nand-bus-width = <8>;
163 nand-ecc-mode = "hw";
164 nand-ecc-strength = <8>;
165 nand-ecc-step-size = <512>;
167 label = "atmel_nand";
170 compatible = "fixed-partitions";
171 #address-cells = <1>;
175 label = "at91bootstrap";
181 reg = <0x40000 0xc0000>;
185 label = "U-Boot Env Redundant";
186 reg = <0x100000 0x40000>;
190 label = "U-Boot Env";
191 reg = <0x140000 0x40000>;
195 label = "device tree";
196 reg = <0x180000 0x80000>;
201 reg = <0x200000 0x600000>;
206 reg = <0x800000 0x1f800000>;
214 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
218 compatible = "microchip,sam9x60-i2c";
220 interrupts = <5 IRQ_TYPE_LEVEL_HIGH 7>;
221 #address-cells = <1>;
223 clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
224 pinctrl-names = "default";
225 pinctrl-0 = <&pinctrl_flx0_default>;
226 atmel,fifo-size = <16>;
229 i2c-digital-filter-width-ns = <35>;
233 compatible = "atmel,24c32";
243 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
247 compatible = "microchip,sam9x60-spi", "atmel,at91rm9200-spi";
249 interrupts = <13 IRQ_TYPE_LEVEL_HIGH 7>;
250 clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
251 clock-names = "spi_clk";
252 pinctrl-names = "default";
253 pinctrl-0 = <&pinctrl_flx4_default>;
254 atmel,fifo-size = <16>;
255 #address-cells = <1>;
262 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
266 compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
268 interrupts = <14 IRQ_TYPE_LEVEL_HIGH 7>;
270 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
271 AT91_XDMAC_DT_PERID(10))>,
273 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
274 AT91_XDMAC_DT_PERID(11))>;
275 dma-names = "tx", "rx";
276 clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
277 clock-names = "usart";
278 pinctrl-0 = <&pinctrl_flx5_default>;
279 pinctrl-names = "default";
287 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
291 compatible = "microchip,sam9x60-i2c";
293 interrupts = <9 IRQ_TYPE_LEVEL_HIGH 7>;
294 #address-cells = <1>;
296 clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
297 pinctrl-names = "default";
298 pinctrl-0 = <&pinctrl_flx6_default>;
299 atmel,fifo-size = <16>;
302 i2c-digital-filter-width-ns = <35>;
305 gpio_exp: mcp23008@20 {
306 compatible = "microchip,mcp23008";
317 pinctrl-names = "default";
318 pinctrl-0 = <&pinctrl_i2s_default>;
319 #sound-dai-cells = <0>;
320 status = "disabled"; /* Conflict with QSPI. */
325 #address-cells = <1>;
327 pinctrl-names = "default";
328 pinctrl-0 = <&pinctrl_macb0_rmii>;
339 0xFFFFFE7F 0xC0E0397F 0xEF00019D /* pioA */
340 0x03FFFFFF 0x02FC7E68 0x00780000 /* pioB */
341 0xffffffff 0xF83FFFFF 0xB800F3FC /* pioC */
342 0x003FFFFF 0x003F8000 0x00000000 /* pioD */
346 pinctrl_adc_default: adc_default {
347 atmel,pins = <AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE>;
350 pinctrl_adtrg_default: adtrg_default {
351 atmel,pins = <AT91_PIOB 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
356 pinctrl_dbgu: dbgu-0 {
357 atmel,pins = <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
358 AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;
363 pinctrl_i2s_default: i2s {
365 <AT91_PIOB 19 AT91_PERIPH_B AT91_PINCTRL_NONE /* I2SCK */
366 AT91_PIOB 20 AT91_PERIPH_B AT91_PINCTRL_NONE /* I2SWS */
367 AT91_PIOB 21 AT91_PERIPH_B AT91_PINCTRL_NONE /* I2SDIN */
368 AT91_PIOB 22 AT91_PERIPH_B AT91_PINCTRL_NONE /* I2SDOUT */
369 AT91_PIOB 23 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* I2SMCK */
376 <AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_SLEWRATE_DIS
377 AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_SLEWRATE_DIS
378 AT91_PIOB 21 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_SLEWRATE_DIS)
379 AT91_PIOB 22 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_SLEWRATE_DIS)
380 AT91_PIOB 23 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_SLEWRATE_DIS)
381 AT91_PIOB 24 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_SLEWRATE_DIS)>;
386 pinctrl_nand_oe_we: nand-oe-we-0 {
388 <AT91_PIOD 0 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
389 AT91_PIOD 1 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
392 pinctrl_nand_rb: nand-rb-0 {
394 <AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
397 pinctrl_nand_cs: nand-cs-0 {
399 <AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
404 pinctrl_ebi_data_0_7: ebi-data-lsb-0 {
406 <AT91_PIOD 6 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
407 AT91_PIOD 7 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
408 AT91_PIOD 8 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
409 AT91_PIOD 9 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
410 AT91_PIOD 10 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
411 AT91_PIOD 11 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
412 AT91_PIOD 12 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
413 AT91_PIOD 13 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
416 pinctrl_ebi_data_0_15: ebi-data-msb-0 {
418 <AT91_PIOD 6 AT91_PERIPH_A AT91_PINCTRL_NONE
419 AT91_PIOD 7 AT91_PERIPH_A AT91_PINCTRL_NONE
420 AT91_PIOD 8 AT91_PERIPH_A AT91_PINCTRL_NONE
421 AT91_PIOD 9 AT91_PERIPH_A AT91_PINCTRL_NONE
422 AT91_PIOD 10 AT91_PERIPH_A AT91_PINCTRL_NONE
423 AT91_PIOD 11 AT91_PERIPH_A AT91_PINCTRL_NONE
424 AT91_PIOD 12 AT91_PERIPH_A AT91_PINCTRL_NONE
425 AT91_PIOD 13 AT91_PERIPH_A AT91_PINCTRL_NONE
426 AT91_PIOD 14 AT91_PERIPH_A AT91_PINCTRL_NONE
427 AT91_PIOD 15 AT91_PERIPH_A AT91_PINCTRL_NONE
428 AT91_PIOD 16 AT91_PERIPH_A AT91_PINCTRL_NONE
429 AT91_PIOD 17 AT91_PERIPH_A AT91_PINCTRL_NONE
430 AT91_PIOD 18 AT91_PERIPH_A AT91_PINCTRL_NONE
431 AT91_PIOD 19 AT91_PERIPH_A AT91_PINCTRL_NONE
432 AT91_PIOD 20 AT91_PERIPH_A AT91_PINCTRL_NONE
433 AT91_PIOD 21 AT91_PERIPH_A AT91_PINCTRL_NONE>;
436 pinctrl_ebi_addr_nand: ebi-addr-0 {
438 <AT91_PIOD 2 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)
439 AT91_PIOD 3 AT91_PERIPH_A (AT91_PINCTRL_NONE | AT91_PINCTRL_SLEWRATE_DIS)>;
444 pinctrl_flx0_default: flx0_twi {
446 <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
447 AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
450 pinctrl_flx4_default: flx4_spi {
452 <AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_NONE
453 AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE
454 AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE
455 AT91_PIOA 14 AT91_PERIPH_A AT91_PINCTRL_NONE>;
458 pinctrl_flx5_default: flx_uart {
460 <AT91_PIOA 7 AT91_PERIPH_C AT91_PINCTRL_NONE
461 AT91_PIOA 8 AT91_PERIPH_B AT91_PINCTRL_NONE
462 AT91_PIOA 21 AT91_PERIPH_B AT91_PINCTRL_NONE
463 AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE>;
466 pinctrl_flx6_default: flx6_twi {
468 <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
469 AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
474 pinctrl_classd_default: classd {
476 <AT91_PIOA 24 AT91_PERIPH_C AT91_PINCTRL_PULL_UP
477 AT91_PIOA 25 AT91_PERIPH_C AT91_PINCTRL_PULL_DOWN
478 AT91_PIOA 26 AT91_PERIPH_C AT91_PINCTRL_PULL_UP
479 AT91_PIOA 27 AT91_PERIPH_C AT91_PINCTRL_PULL_DOWN>;
484 pinctrl_can0_rx_tx: can0_rx_tx {
486 <AT91_PIOA 9 AT91_PERIPH_B AT91_PINCTRL_NONE /* CANRX0 */
487 AT91_PIOA 10 AT91_PERIPH_B AT91_PINCTRL_NONE /* CANTX0 */
488 AT91_PIOD 20 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_DOWN /* Enable CAN0 mux */
489 AT91_PIOD 21 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_DOWN>; /* Enable CAN Transceivers */
494 pinctrl_can1_rx_tx: can1_rx_tx {
496 <AT91_PIOA 6 AT91_PERIPH_B AT91_PINCTRL_NONE /* CANRX1 RXD1 */
497 AT91_PIOA 5 AT91_PERIPH_B AT91_PINCTRL_NONE /* CANTX1 TXD1 */
498 AT91_PIOD 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_DOWN /* Enable CAN1 mux */
499 AT91_PIOD 21 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_DOWN>; /* Enable CAN Transceivers */
504 pinctrl_macb0_rmii: macb0_rmii-0 {
506 <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB0 periph A */
507 AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB1 periph A */
508 AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB2 periph A */
509 AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB3 periph A */
510 AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB4 periph A */
511 AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB5 periph A */
512 AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB6 periph A */
513 AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB7 periph A */
514 AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A */
515 AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB10 periph A */
520 pinctrl_pwm0_0: pwm0_0 {
521 atmel,pins = <AT91_PIOB 11 AT91_PERIPH_B AT91_PINCTRL_NONE>;
524 pinctrl_pwm0_1: pwm0_1 {
525 atmel,pins = <AT91_PIOB 12 AT91_PERIPH_B AT91_PINCTRL_NONE>;
528 pinctrl_pwm0_2: pwm0_2 {
529 atmel,pins = <AT91_PIOB 13 AT91_PERIPH_B AT91_PINCTRL_NONE>;
532 pinctrl_pwm0_3: pwm0_3 {
533 atmel,pins = <AT91_PIOB 14 AT91_PERIPH_B AT91_PINCTRL_NONE>;
538 pinctrl_sdmmc0_default: sdmmc0 {
540 <AT91_PIOA 17 AT91_PERIPH_A (AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA17 CK periph A with pullup */
541 AT91_PIOA 16 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA16 CMD periph A with pullup */
542 AT91_PIOA 15 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA15 DAT0 periph A */
543 AT91_PIOA 18 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA18 DAT1 periph A with pullup */
544 AT91_PIOA 19 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA19 DAT2 periph A with pullup */
545 AT91_PIOA 20 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)>; /* PA20 DAT3 periph A with pullup */
550 pinctrl_sdmmc1_default: sdmmc1 {
552 <AT91_PIOA 13 AT91_PERIPH_B (AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA13 CK periph B */
553 AT91_PIOA 12 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA12 CMD periph B with pullup */
554 AT91_PIOA 11 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA11 DAT0 periph B with pullup */
555 AT91_PIOA 2 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA2 DAT1 periph B with pullup */
556 AT91_PIOA 3 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA3 DAT2 periph B with pullup */
557 AT91_PIOA 4 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)>; /* PA4 DAT3 periph B with pullup */
562 pinctrl_key_gpio_default: pinctrl_key_gpio {
563 atmel,pins = <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
568 pinctrl_usba_vbus: usba_vbus {
569 atmel,pins = <AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
574 pinctrl_usb_default: usb_default {
575 atmel,pins = <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
576 AT91_PIOD 16 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
582 pinctrl-names = "default";
583 pinctrl-0 = <&pinctrl_pwm0_0 &pinctrl_pwm0_1 &pinctrl_pwm0_2 &pinctrl_pwm0_3>;
584 status = "disabled"; /* Conflict with leds. */
589 pinctrl-names = "default";
590 pinctrl-0 = <&pinctrl_sdmmc0_default>;
592 cd-gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
598 pinctrl-names = "default";
599 pinctrl-0 = <&pinctrl_sdmmc1_default>;
602 status = "disabled"; /* Conflict with flx4. */
606 pinctrl-names = "default";
607 pinctrl-0 = <&pinctrl_qspi>;
608 status = "okay"; /* Conflict with i2s. */
611 #address-cells = <1>;
613 compatible = "jedec,spi-nor";
615 spi-max-frequency = <80000000>;
616 spi-tx-bus-width = <4>;
617 spi-rx-bus-width = <4>;
621 label = "qspi: at91bootstrap";
626 label = "qspi: bootloader";
627 reg = <0x40000 0xc0000>;
630 bootloaderenvred@100000 {
631 label = "qspi: bootloader env redundant";
632 reg = <0x100000 0x40000>;
635 bootloaderenv@140000 {
636 label = "qspi: bootloader env";
637 reg = <0x140000 0x40000>;
641 label = "qspi: device tree";
642 reg = <0x180000 0x80000>;
646 label = "qspi: kernel";
647 reg = <0x200000 0x600000>;
653 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
657 &shutdown_controller {
658 atmel,shdwc-debouncer = <976>;
668 compatible = "atmel,tcb-timer";
673 compatible = "atmel,tcb-timer";
679 atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
680 pinctrl-names = "default";
681 pinctrl-0 = <&pinctrl_usba_vbus>;
688 &pioD 15 GPIO_ACTIVE_HIGH
689 &pioD 16 GPIO_ACTIVE_HIGH>;
690 pinctrl-names = "default";
691 pinctrl-0 = <&pinctrl_usb_default>;