1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * at91-sama5d27_som1_ek.dts - Device Tree file for SAMA5D27-SOM1-EK board
5 * Copyright (c) 2017, Microchip Technology Inc.
6 * 2016 Nicolas Ferre <nicolas.ferre@atmel.com>
7 * 2017 Cristian Birsan <cristian.birsan@microchip.com>
8 * 2017 Claudiu Beznea <claudiu.beznea@microchip.com>
11 #include "at91-sama5d27_som1.dtsi"
12 #include <dt-bindings/mfd/atmel-flexcom.h>
13 #include <dt-bindings/gpio/gpio.h>
16 model = "Atmel SAMA5D27 SOM1 EK";
17 compatible = "atmel,sama5d27-som1-ek", "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
20 serial0 = &uart1; /* DBGU */
21 serial1 = &uart4; /* mikro BUS 1 */
22 serial2 = &uart2; /* mikro BUS 2 */
28 stdout-path = "serial0:115200n8";
33 atmel,vbus-gpio = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>;
34 pinctrl-names = "default";
35 pinctrl-0 = <&pinctrl_usba_vbus>;
41 atmel,vbus-gpio = <0 /* &pioA PIN_PD20 GPIO_ACTIVE_HIGH */
42 &pioA PIN_PA27 GPIO_ACTIVE_HIGH
45 pinctrl-names = "default";
46 pinctrl-0 = <&pinctrl_usb_default>;
54 sdmmc0: sdio-host@a0000000 {
57 pinctrl-names = "default";
58 pinctrl-0 = <&pinctrl_sdmmc0_default>;
62 sdmmc1: sdio-host@b0000000 {
64 pinctrl-names = "default";
65 pinctrl-0 = <&pinctrl_sdmmc1_default>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_isc_base &pinctrl_isc_data_8bit &pinctrl_isc_data_9_10 &pinctrl_isc_data_11_12>;
81 pinctrl-names = "default";
82 pinctrl-0 = <&pinctrl_spi0_default>;
86 macb0: ethernet@f8008000 {
90 tcb0: timer@f800c000 {
92 compatible = "atmel,tcb-timer";
97 compatible = "atmel,tcb-timer";
102 uart1: serial@f8020000 {
103 pinctrl-names = "default";
104 pinctrl-0 = <&pinctrl_uart1_default>;
110 uart2: serial@f8024000 {
111 pinctrl-names = "default";
112 pinctrl-0 = <&pinctrl_mikrobus2_uart>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&pinctrl_mikrobus1_pwm &pinctrl_mikrobus2_pwm>;
121 status = "disabled"; /* Conflict with leds. */
124 flx1: flexcom@f8038000 {
125 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
129 compatible = "atmel,sama5d2-i2c";
131 interrupts = <20 IRQ_TYPE_LEVEL_HIGH 7>;
133 dma-names = "tx", "rx";
134 #address-cells = <1>;
136 clocks = <&pmc PMC_TYPE_PERIPHERAL 20>;
137 pinctrl-names = "default";
138 pinctrl-0 = <&pinctrl_mikrobus_i2c>;
139 atmel,fifo-size = <16>;
145 atmel,shdwc-debouncer = <976>;
146 atmel,wakeup-rtc-timer;
150 atmel,wakeup-type = "low";
158 uart3: serial@fc008000 {
161 pinctrl-names = "default";
162 pinctrl-0 = <&pinctrl_uart3_default>;
163 status = "disabled"; /* Conflict with isc. */
166 uart4: serial@fc00c000 {
169 pinctrl-names = "default";
170 pinctrl-0 = <&pinctrl_mikrobus1_uart>;
174 flx3: flexcom@fc014000 {
175 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
179 compatible = "atmel,at91sam9260-usart";
181 interrupts = <22 IRQ_TYPE_LEVEL_HIGH 7>;
182 clocks = <&pmc PMC_TYPE_PERIPHERAL 22>;
183 clock-names = "usart";
184 pinctrl-names = "default";
185 pinctrl-0 = <&pinctrl_flx3_default>;
186 atmel,fifo-size = <32>;
187 status = "disabled"; /* Conflict with isc. */
191 compatible = "atmel,at91rm9200-spi";
193 interrupts = <22 IRQ_TYPE_LEVEL_HIGH 7>;
194 clocks = <&pmc PMC_TYPE_PERIPHERAL 22>;
195 clock-names = "spi_clk";
196 pinctrl-names = "default";
197 pinctrl-0 = <&pinctrl_flx3_default>;
198 atmel,fifo-size = <16>;
199 status = "disabled"; /* Conflict with isc. */
203 flx4: flexcom@fc018000 {
204 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
208 compatible = "atmel,at91sam9260-usart";
210 interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
211 clocks = <&pmc PMC_TYPE_PERIPHERAL 23>;
212 clock-names = "usart";
213 pinctrl-names = "default";
214 pinctrl-0 = <&pinctrl_flx4_default>;
215 atmel,fifo-size = <32>;
216 status = "disabled"; /* Conflict with spi3 and i2c3. */
220 compatible = "atmel,at91rm9200-spi";
222 interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
223 clocks = <&pmc PMC_TYPE_PERIPHERAL 23>;
224 clock-names = "spi_clk";
225 pinctrl-names = "default";
226 pinctrl-0 = <&pinctrl_mikrobus_spi &pinctrl_mikrobus1_spi_cs &pinctrl_mikrobus2_spi_cs>;
227 atmel,fifo-size = <16>;
228 status = "okay"; /* Conflict with uart6 and i2c3. */
232 compatible = "atmel,sama5d2-i2c";
234 interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
236 dma-names = "tx", "rx";
237 #address-cells = <1>;
239 clocks = <&pmc PMC_TYPE_PERIPHERAL 23>;
240 pinctrl-names = "default";
241 pinctrl-0 = <&pinctrl_flx4_default>;
242 atmel,fifo-size = <16>;
243 status = "disabled"; /* Conflict with uart6 and spi3. */
249 pinctrl-names = "default";
250 pinctrl-0 = <&pinctrl_i2c1_default>;
255 vddana-supply = <&vddana>;
256 vref-supply = <&advref>;
263 pinctrl_can1_default: can1_default {
264 pinmux = <PIN_PC26__CANTX1>,
269 pinctrl_flx3_default: flx3_default {
270 pinmux = <PIN_PC20__FLEXCOM3_IO0>,
271 <PIN_PC19__FLEXCOM3_IO1>,
272 <PIN_PC18__FLEXCOM3_IO2>,
273 <PIN_PC21__FLEXCOM3_IO3>,
274 <PIN_PC22__FLEXCOM3_IO4>;
278 pinctrl_i2c1_default: i2c1_default {
279 pinmux = <PIN_PD4__TWD1>,
284 pinctrl_isc_base: isc_base {
285 pinmux = <PIN_PC21__ISC_PCK>,
286 <PIN_PC22__ISC_VSYNC>,
287 <PIN_PC23__ISC_HSYNC>,
292 pinctrl_isc_data_8bit: isc_data_8bit {
293 pinmux = <PIN_PC20__ISC_D11>,
304 pinctrl_isc_data_9_10: isc_data_9_10 {
305 pinmux = <PIN_PC12__ISC_D3>,
310 pinctrl_isc_data_11_12: isc_data_11_12 {
311 pinmux = <PIN_PC10__ISC_D1>,
316 pinctrl_key_gpio_default: key_gpio_default {
317 pinmux = <PIN_PA29__GPIO>;
321 pinctrl_led_gpio_default: led_gpio_default {
322 pinmux = <PIN_PA10__GPIO>,
328 pinctrl_sdmmc0_default: sdmmc0_default {
330 pinmux = <PIN_PA1__SDMMC0_CMD>,
331 <PIN_PA2__SDMMC0_DAT0>,
332 <PIN_PA3__SDMMC0_DAT1>,
333 <PIN_PA4__SDMMC0_DAT2>,
334 <PIN_PA5__SDMMC0_DAT3>,
335 <PIN_PA6__SDMMC0_DAT4>,
336 <PIN_PA7__SDMMC0_DAT5>,
337 <PIN_PA8__SDMMC0_DAT6>,
338 <PIN_PA9__SDMMC0_DAT7>;
343 pinmux = <PIN_PA0__SDMMC0_CK>,
344 <PIN_PA11__SDMMC0_VDDSEL>,
345 <PIN_PA13__SDMMC0_CD>;
350 pinctrl_sdmmc1_default: sdmmc1_default {
352 pinmux = <PIN_PA28__SDMMC1_CMD>,
353 <PIN_PA18__SDMMC1_DAT0>,
354 <PIN_PA19__SDMMC1_DAT1>,
355 <PIN_PA20__SDMMC1_DAT2>,
356 <PIN_PA21__SDMMC1_DAT3>;
361 pinmux = <PIN_PA22__SDMMC1_CK>,
362 <PIN_PA30__SDMMC1_CD>;
367 pinctrl_spi0_default: spi0_default {
368 pinmux = <PIN_PA14__SPI0_SPCK>,
369 <PIN_PA15__SPI0_MOSI>,
370 <PIN_PA16__SPI0_MISO>,
371 <PIN_PA17__SPI0_NPCS0>;
375 pinctrl_uart1_default: uart1_default {
376 pinmux = <PIN_PD2__URXD1>,
381 pinctrl_uart3_default: uart3_default {
382 pinmux = <PIN_PC12__URXD3>,
387 pinctrl_usb_default: usb_default {
388 pinmux = <PIN_PA27__GPIO>,
393 pinctrl_usba_vbus: usba_vbus {
394 pinmux = <PIN_PD20__GPIO>;
398 pinctrl_mikrobus1_an: mikrobus1_an {
399 pinmux = <PIN_PD25__GPIO>;
403 pinctrl_mikrobus2_an: mikrobus2_an {
404 pinmux = <PIN_PD26__GPIO>;
408 pinctrl_mikrobus1_rst: mikrobus1_rst {
409 pinmux = <PIN_PB2__GPIO>;
413 pinctrl_mikrobus2_rst: mikrobus2_rst {
414 pinmux = <PIN_PA26__GPIO>;
418 pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
419 pinmux = <PIN_PD0__FLEXCOM4_IO4>;
423 pinctrl_mikrobus2_spi_cs: mikrobus2_spi_cs {
424 pinmux = <PIN_PC31__FLEXCOM4_IO3>;
428 pinctrl_mikrobus_spi: mikrobus_spi {
429 pinmux = <PIN_PC28__FLEXCOM4_IO0>,
430 <PIN_PC29__FLEXCOM4_IO1>,
431 <PIN_PC30__FLEXCOM4_IO2>;
435 pinctrl_mikrobus1_pwm: mikrobus1_pwm {
436 pinmux = <PIN_PB1__PWML1>;
440 pinctrl_mikrobus2_pwm: mikrobus2_pwm {
441 pinmux = <PIN_PA31__PWML0>;
445 pinctrl_mikrobus1_int: mikrobus1_int {
446 pinmux = <PIN_PB0__GPIO>;
450 pinctrl_mikrobus2_int: mikrobus2_int {
451 pinmux = <PIN_PA25__GPIO>;
455 pinctrl_mikrobus1_uart: mikrobus1_uart {
456 pinmux = <PIN_PB3__URXD4>,
461 pinctrl_mikrobus2_uart: mikrobus2_uart {
462 pinmux = <PIN_PD23__URXD2>,
467 pinctrl_mikrobus_i2c: mikrobus1_i2c {
468 pinmux = <PIN_PA24__FLEXCOM1_IO0>,
469 <PIN_PA23__FLEXCOM1_IO1>;
473 pinctrl_flx4_default: flx4_uart_default {
474 pinmux = <PIN_PC28__FLEXCOM4_IO0>,
475 <PIN_PC29__FLEXCOM4_IO1>,
476 <PIN_PC30__FLEXCOM4_IO2>,
477 <PIN_PC31__FLEXCOM4_IO3>,
478 <PIN_PD0__FLEXCOM4_IO4>;
484 pinctrl-names = "default";
485 pinctrl-0 = <&pinctrl_can1_default>;
492 compatible = "gpio-keys";
494 pinctrl-names = "default";
495 pinctrl-0 = <&pinctrl_key_gpio_default>;
499 gpios = <&pioA PIN_PA29 GPIO_ACTIVE_LOW>;
500 linux,code = <0x104>;
506 compatible = "gpio-leds";
507 pinctrl-names = "default";
508 pinctrl-0 = <&pinctrl_led_gpio_default>;
509 status = "okay"; /* Conflict with pwm0. */
513 gpios = <&pioA PIN_PA10 GPIO_ACTIVE_HIGH>;
518 gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
523 gpios = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
524 linux,default-trigger = "heartbeat";
528 vddin_3v3: fixed-regulator-vddin_3v3 {
529 compatible = "regulator-fixed";
531 regulator-name = "VDDIN_3V3";
532 regulator-min-microvolt = <3300000>;
533 regulator-max-microvolt = <3300000>;
539 vddana: fixed-regulator-vddana {
540 compatible = "regulator-fixed";
542 regulator-name = "VDDANA";
543 regulator-min-microvolt = <3300000>;
544 regulator-max-microvolt = <3300000>;
547 vin-supply = <&vddin_3v3>;
551 advref: fixed-regulator-advref {
552 compatible = "regulator-fixed";
554 regulator-name = "advref";
555 regulator-min-microvolt = <3300000>;
556 regulator-max-microvolt = <3300000>;
559 vin-supply = <&vddana>;