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>;
132 i2c-digital-filter-width-ns = <35>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&pinctrl_mikrobus_i2c>;
140 atmel,shdwc-debouncer = <976>;
141 atmel,wakeup-rtc-timer;
145 atmel,wakeup-type = "low";
153 uart3: serial@fc008000 {
156 pinctrl-names = "default";
157 pinctrl-0 = <&pinctrl_uart3_default>;
158 status = "disabled"; /* Conflict with isc. */
161 uart4: serial@fc00c000 {
164 pinctrl-names = "default";
165 pinctrl-0 = <&pinctrl_mikrobus1_uart>;
169 flx3: flexcom@fc014000 {
170 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&pinctrl_flx3_default>;
177 status = "disabled"; /* Conflict with isc. */
182 pinctrl-names = "default";
183 pinctrl-0 = <&pinctrl_flx3_default>;
184 status = "disabled"; /* Conflict with isc. */
188 flx4: flexcom@fc018000 {
189 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
194 pinctrl-names = "default";
195 pinctrl-0 = <&pinctrl_flx4_default>;
196 status = "disabled"; /* Conflict with spi6 and i2c6. */
201 pinctrl-names = "default";
202 pinctrl-0 = <&pinctrl_mikrobus_spi &pinctrl_mikrobus1_spi_cs &pinctrl_mikrobus2_spi_cs>;
203 status = "okay"; /* Conflict with uart5 and i2c6. */
208 pinctrl-names = "default";
209 pinctrl-0 = <&pinctrl_flx4_default>;
210 status = "disabled"; /* Conflict with uart5 and spi6. */
218 i2c-digital-filter-width-ns = <35>;
219 pinctrl-names = "default";
220 pinctrl-0 = <&pinctrl_i2c1_default>;
225 vddana-supply = <&vddana>;
226 vref-supply = <&advref>;
233 pinctrl_can1_default: can1_default {
234 pinmux = <PIN_PC26__CANTX1>,
239 pinctrl_flx3_default: flx3_default {
240 pinmux = <PIN_PC20__FLEXCOM3_IO0>,
241 <PIN_PC19__FLEXCOM3_IO1>,
242 <PIN_PC18__FLEXCOM3_IO2>,
243 <PIN_PC21__FLEXCOM3_IO3>,
244 <PIN_PC22__FLEXCOM3_IO4>;
248 pinctrl_i2c1_default: i2c1_default {
249 pinmux = <PIN_PD4__TWD1>,
254 pinctrl_isc_base: isc_base {
255 pinmux = <PIN_PC21__ISC_PCK>,
256 <PIN_PC22__ISC_VSYNC>,
257 <PIN_PC23__ISC_HSYNC>,
262 pinctrl_isc_data_8bit: isc_data_8bit {
263 pinmux = <PIN_PC20__ISC_D11>,
274 pinctrl_isc_data_9_10: isc_data_9_10 {
275 pinmux = <PIN_PC12__ISC_D3>,
280 pinctrl_isc_data_11_12: isc_data_11_12 {
281 pinmux = <PIN_PC10__ISC_D1>,
286 pinctrl_key_gpio_default: key_gpio_default {
287 pinmux = <PIN_PA29__GPIO>;
291 pinctrl_led_gpio_default: led_gpio_default {
292 pinmux = <PIN_PA10__GPIO>,
298 pinctrl_sdmmc0_default: sdmmc0_default {
300 pinmux = <PIN_PA1__SDMMC0_CMD>,
301 <PIN_PA2__SDMMC0_DAT0>,
302 <PIN_PA3__SDMMC0_DAT1>,
303 <PIN_PA4__SDMMC0_DAT2>,
304 <PIN_PA5__SDMMC0_DAT3>,
305 <PIN_PA6__SDMMC0_DAT4>,
306 <PIN_PA7__SDMMC0_DAT5>,
307 <PIN_PA8__SDMMC0_DAT6>,
308 <PIN_PA9__SDMMC0_DAT7>;
313 pinmux = <PIN_PA0__SDMMC0_CK>,
314 <PIN_PA11__SDMMC0_VDDSEL>,
315 <PIN_PA13__SDMMC0_CD>;
320 pinctrl_sdmmc1_default: sdmmc1_default {
322 pinmux = <PIN_PA28__SDMMC1_CMD>,
323 <PIN_PA18__SDMMC1_DAT0>,
324 <PIN_PA19__SDMMC1_DAT1>,
325 <PIN_PA20__SDMMC1_DAT2>,
326 <PIN_PA21__SDMMC1_DAT3>;
331 pinmux = <PIN_PA22__SDMMC1_CK>,
332 <PIN_PA30__SDMMC1_CD>;
337 pinctrl_spi0_default: spi0_default {
338 pinmux = <PIN_PA14__SPI0_SPCK>,
339 <PIN_PA15__SPI0_MOSI>,
340 <PIN_PA16__SPI0_MISO>,
341 <PIN_PA17__SPI0_NPCS0>;
345 pinctrl_uart1_default: uart1_default {
346 pinmux = <PIN_PD2__URXD1>,
351 pinctrl_uart3_default: uart3_default {
352 pinmux = <PIN_PC12__URXD3>,
357 pinctrl_usb_default: usb_default {
358 pinmux = <PIN_PA27__GPIO>,
363 pinctrl_usba_vbus: usba_vbus {
364 pinmux = <PIN_PD20__GPIO>;
368 pinctrl_mikrobus1_an: mikrobus1_an {
369 pinmux = <PIN_PD25__GPIO>;
373 pinctrl_mikrobus2_an: mikrobus2_an {
374 pinmux = <PIN_PD26__GPIO>;
378 pinctrl_mikrobus1_rst: mikrobus1_rst {
379 pinmux = <PIN_PB2__GPIO>;
383 pinctrl_mikrobus2_rst: mikrobus2_rst {
384 pinmux = <PIN_PA26__GPIO>;
388 pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
389 pinmux = <PIN_PD0__FLEXCOM4_IO4>;
393 pinctrl_mikrobus2_spi_cs: mikrobus2_spi_cs {
394 pinmux = <PIN_PC31__FLEXCOM4_IO3>;
398 pinctrl_mikrobus_spi: mikrobus_spi {
399 pinmux = <PIN_PC28__FLEXCOM4_IO0>,
400 <PIN_PC29__FLEXCOM4_IO1>,
401 <PIN_PC30__FLEXCOM4_IO2>;
405 pinctrl_mikrobus1_pwm: mikrobus1_pwm {
406 pinmux = <PIN_PB1__PWML1>;
410 pinctrl_mikrobus2_pwm: mikrobus2_pwm {
411 pinmux = <PIN_PA31__PWML0>;
415 pinctrl_mikrobus1_int: mikrobus1_int {
416 pinmux = <PIN_PB0__GPIO>;
420 pinctrl_mikrobus2_int: mikrobus2_int {
421 pinmux = <PIN_PA25__GPIO>;
425 pinctrl_mikrobus1_uart: mikrobus1_uart {
426 pinmux = <PIN_PB3__URXD4>,
431 pinctrl_mikrobus2_uart: mikrobus2_uart {
432 pinmux = <PIN_PD23__URXD2>,
437 pinctrl_mikrobus_i2c: mikrobus1_i2c {
438 pinmux = <PIN_PA24__FLEXCOM1_IO0>,
439 <PIN_PA23__FLEXCOM1_IO1>;
443 pinctrl_flx4_default: flx4_uart_default {
444 pinmux = <PIN_PC28__FLEXCOM4_IO0>,
445 <PIN_PC29__FLEXCOM4_IO1>,
446 <PIN_PC30__FLEXCOM4_IO2>,
447 <PIN_PC31__FLEXCOM4_IO3>,
448 <PIN_PD0__FLEXCOM4_IO4>;
454 pinctrl-names = "default";
455 pinctrl-0 = <&pinctrl_can1_default>;
462 compatible = "gpio-keys";
464 pinctrl-names = "default";
465 pinctrl-0 = <&pinctrl_key_gpio_default>;
469 gpios = <&pioA PIN_PA29 GPIO_ACTIVE_LOW>;
470 linux,code = <0x104>;
476 compatible = "gpio-leds";
477 pinctrl-names = "default";
478 pinctrl-0 = <&pinctrl_led_gpio_default>;
479 status = "okay"; /* Conflict with pwm0. */
483 gpios = <&pioA PIN_PA10 GPIO_ACTIVE_HIGH>;
488 gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
493 gpios = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
494 linux,default-trigger = "heartbeat";
498 vddin_3v3: fixed-regulator-vddin_3v3 {
499 compatible = "regulator-fixed";
501 regulator-name = "VDDIN_3V3";
502 regulator-min-microvolt = <3300000>;
503 regulator-max-microvolt = <3300000>;
509 vddana: fixed-regulator-vddana {
510 compatible = "regulator-fixed";
512 regulator-name = "VDDANA";
513 regulator-min-microvolt = <3300000>;
514 regulator-max-microvolt = <3300000>;
517 vin-supply = <&vddin_3v3>;
521 advref: fixed-regulator-advref {
522 compatible = "regulator-fixed";
524 regulator-name = "advref";
525 regulator-min-microvolt = <3300000>;
526 regulator-max-microvolt = <3300000>;
529 vin-supply = <&vddana>;