2 * at91-sama5d27_som1_ek.dts - Device Tree file for SAMA5D27-SOM1-EK board
4 * Copyright (c) 2017, Microchip Technology Inc.
5 * 2016 Nicolas Ferre <nicolas.ferre@atmel.com>
6 * 2017 Cristian Birsan <cristian.birsan@microchip.com>
7 * 2017 Claudiu Beznea <claudiu.beznea@microchip.com>
9 * This file is dual-licensed: you can use it either under the terms
10 * of the GPL or the X11 license, at your option. Note that this dual
11 * licensing only applies to this file, and not this project as a
14 * a) This file is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License as
16 * published by the Free Software Foundation; either version 2 of the
17 * License, or (at your option) any later version.
19 * This file is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
29 * restriction, including without limitation the rights to use,
30 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
48 #include "at91-sama5d27_som1.dtsi"
49 #include <dt-bindings/mfd/atmel-flexcom.h>
50 #include <dt-bindings/gpio/gpio.h>
53 model = "Atmel SAMA5D27 SOM1 EK";
54 compatible = "atmel,sama5d27-som1-ek", "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
57 stdout-path = "serial0:115200n8";
61 usb0: gadget@00300000 {
62 atmel,vbus-gpio = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>;
63 pinctrl-names = "default";
64 pinctrl-0 = <&pinctrl_usba_vbus>;
70 atmel,vbus-gpio = <0 /* &pioA PIN_PD20 GPIO_ACTIVE_HIGH */
71 &pioA PIN_PA27 GPIO_ACTIVE_HIGH
74 pinctrl-names = "default";
75 pinctrl-0 = <&pinctrl_usb_default>;
83 sdmmc0: sdio-host@a0000000 {
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_sdmmc0_default>;
90 sdmmc1: sdio-host@b0000000 {
92 pinctrl-names = "default";
93 pinctrl-0 = <&pinctrl_sdmmc1_default>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&pinctrl_isc_base &pinctrl_isc_data_8bit &pinctrl_isc_data_9_10 &pinctrl_isc_data_11_12>;
104 pinctrl-names = "default";
105 pinctrl-0 = <&pinctrl_spi0_default>;
109 macb0: ethernet@f8008000 {
113 uart1: serial@f8020000 {
114 pinctrl-names = "default";
115 pinctrl-0 = <&pinctrl_uart1_default>;
121 uart2: serial@f8024000 {
122 pinctrl-names = "default";
123 pinctrl-0 = <&pinctrl_mikrobus2_uart>;
133 flx1: flexcom@f8038000 {
134 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
138 compatible = "atmel,sama5d2-i2c";
140 interrupts = <20 IRQ_TYPE_LEVEL_HIGH 7>;
142 dma-names = "tx", "rx";
143 #address-cells = <1>;
145 clocks = <&flx1_clk>;
146 pinctrl-names = "default";
147 pinctrl-0 = <&pinctrl_mikrobus_i2c>;
148 atmel,fifo-size = <16>;
154 atmel,shdwc-debouncer = <976>;
155 atmel,wakeup-rtc-timer;
159 atmel,wakeup-type = "low";
168 pinctrl-names = "default";
169 pinctrl-0 = <&pinctrl_can0_default>;
172 uart3: serial@fc008000 {
175 pinctrl-names = "default";
176 pinctrl-0 = <&pinctrl_uart3_default>;
180 uart4: serial@fc00c000 {
183 pinctrl-names = "default";
184 pinctrl-0 = <&pinctrl_mikrobus1_uart>;
188 flx3: flexcom@fc014000 {
189 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
193 compatible = "atmel,at91sam9260-usart";
195 interrupts = <22 IRQ_TYPE_LEVEL_HIGH 7>;
196 clocks = <&flx3_clk>;
197 clock-names = "usart";
198 pinctrl-names = "default";
199 pinctrl-0 = <&pinctrl_flx3_default>;
200 atmel,fifo-size = <32>;
205 compatible = "atmel,at91rm9200-spi";
207 interrupts = <22 IRQ_TYPE_LEVEL_HIGH 7>;
208 clocks = <&flx3_clk>;
209 clock-names = "spi_clk";
210 pinctrl-names = "default";
211 pinctrl-0 = <&pinctrl_flx3_default>;
212 atmel,fifo-size = <16>;
217 flx4: flexcom@fc018000 {
218 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
222 compatible = "atmel,at91sam9260-usart";
224 interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
225 clocks = <&flx4_clk>;
226 clock-names = "usart";
227 pinctrl-names = "default";
228 pinctrl-0 = <&pinctrl_flx4_default>;
229 atmel,fifo-size = <32>;
234 compatible = "atmel,at91rm9200-spi";
236 interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
237 clocks = <&flx4_clk>;
238 clock-names = "spi_clk";
239 pinctrl-names = "default";
240 pinctrl-0 = <&pinctrl_mikrobus_spi &pinctrl_mikrobus1_spi_cs &pinctrl_mikrobus2_spi_cs>;
241 atmel,fifo-size = <16>;
246 compatible = "atmel,sama5d2-i2c";
248 interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
250 dma-names = "tx", "rx";
251 #address-cells = <1>;
253 clocks = <&flx4_clk>;
254 pinctrl-names = "default";
255 pinctrl-0 = <&pinctrl_flx4_default>;
256 atmel,fifo-size = <16>;
263 pinctrl-names = "default";
264 pinctrl-0 = <&pinctrl_i2c1_default>;
270 pinctrl_can0_default: can0_default {
271 pinmux = <PIN_PC10__CANTX0>,
276 pinctrl_can1_default: can1_default {
277 pinmux = <PIN_PC26__CANTX1>,
282 pinctrl_flx3_default: flx3_default {
283 pinmux = <PIN_PC20__FLEXCOM3_IO0>,
284 <PIN_PC19__FLEXCOM3_IO1>,
285 <PIN_PC18__FLEXCOM3_IO2>,
286 <PIN_PC21__FLEXCOM3_IO3>,
287 <PIN_PC22__FLEXCOM3_IO4>;
291 pinctrl_i2c1_default: i2c1_default {
292 pinmux = <PIN_PD4__TWD1>,
297 pinctrl_isc_base: isc_base {
298 pinmux = <PIN_PC21__ISC_PCK>,
299 <PIN_PC22__ISC_VSYNC>,
300 <PIN_PC23__ISC_HSYNC>,
305 pinctrl_isc_data_8bit: isc_data_8bit {
306 pinmux = <PIN_PC20__ISC_D11>,
317 pinctrl_isc_data_9_10: isc_data_9_10 {
318 pinmux = <PIN_PC12__ISC_D3>,
323 pinctrl_isc_data_11_12: isc_data_11_12 {
324 pinmux = <PIN_PC10__ISC_D1>,
329 pinctrl_key_gpio_default: key_gpio_default {
330 pinmux = <PIN_PA29__GPIO>;
334 pinctrl_led_gpio_default: led_gpio_default {
335 pinmux = <PIN_PA10__GPIO>,
341 pinctrl_sdmmc0_default: sdmmc0_default {
343 pinmux = <PIN_PA1__SDMMC0_CMD>,
344 <PIN_PA2__SDMMC0_DAT0>,
345 <PIN_PA3__SDMMC0_DAT1>,
346 <PIN_PA4__SDMMC0_DAT2>,
347 <PIN_PA5__SDMMC0_DAT3>,
348 <PIN_PA6__SDMMC0_DAT4>,
349 <PIN_PA7__SDMMC0_DAT5>,
350 <PIN_PA8__SDMMC0_DAT6>,
351 <PIN_PA9__SDMMC0_DAT7>;
356 pinmux = <PIN_PA0__SDMMC0_CK>,
357 <PIN_PA11__SDMMC0_VDDSEL>,
358 <PIN_PA13__SDMMC0_CD>;
363 pinctrl_sdmmc1_default: sdmmc1_default {
365 pinmux = <PIN_PA28__SDMMC1_CMD>,
366 <PIN_PA18__SDMMC1_DAT0>,
367 <PIN_PA19__SDMMC1_DAT1>,
368 <PIN_PA20__SDMMC1_DAT2>,
369 <PIN_PA21__SDMMC1_DAT3>;
374 pinmux = <PIN_PA22__SDMMC1_CK>,
375 <PIN_PA30__SDMMC1_CD>;
380 pinctrl_spi0_default: spi0_default {
381 pinmux = <PIN_PA14__SPI0_SPCK>,
382 <PIN_PA15__SPI0_MOSI>,
383 <PIN_PA16__SPI0_MISO>,
384 <PIN_PA17__SPI0_NPCS0>;
388 pinctrl_uart1_default: uart1_default {
389 pinmux = <PIN_PD2__URXD1>,
394 pinctrl_uart3_default: uart3_default {
395 pinmux = <PIN_PC12__URXD3>,
400 pinctrl_usb_default: usb_default {
401 pinmux = <PIN_PA27__GPIO>,
406 pinctrl_usba_vbus: usba_vbus {
407 pinmux = <PIN_PD20__GPIO>;
411 pinctrl_mikrobus1_an: mikrobus1_an {
412 pinmux = <PIN_PD25__GPIO>;
416 pinctrl_mikrobus2_an: mikrobus2_an {
417 pinmux = <PIN_PD26__GPIO>;
421 pinctrl_mikrobus1_rst: mikrobus1_rst {
422 pinmux = <PIN_PB2__GPIO>;
426 pinctrl_mikrobus2_rst: mikrobus2_rst {
427 pinmux = <PIN_PA26__GPIO>;
431 pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
432 pinmux = <PIN_PD0__FLEXCOM4_IO4>;
436 pinctrl_mikrobus2_spi_cs: mikrobus2_spi_cs {
437 pinmux = <PIN_PC31__FLEXCOM4_IO3>;
441 pinctrl_mikrobus_spi: mikrobus_spi {
442 pinmux = <PIN_PC28__FLEXCOM4_IO0>,
443 <PIN_PC29__FLEXCOM4_IO1>,
444 <PIN_PC30__FLEXCOM4_IO2>;
448 pinctrl_mikrobus1_pwm: mikrobus1_pwm {
449 pinmux = <PIN_PB1__PWML1>;
453 pinctrl_mikrobus2_pwm: mikrobus2_pwm {
454 pinmux = <PIN_PA31__PWML0>;
458 pinctrl_mikrobus1_int: mikrobus1_int {
459 pinmux = <PIN_PB0__GPIO>;
463 pinctrl_mikrobus2_int: mikrobus2_int {
464 pinmux = <PIN_PA25__GPIO>;
468 pinctrl_mikrobus1_uart: mikrobus1_uart {
469 pinmux = <PIN_PB3__URXD4>,
474 pinctrl_mikrobus2_uart: mikrobus2_uart {
475 pinmux = <PIN_PD23__URXD2>,
480 pinctrl_mikrobus_i2c: mikrobus1_i2c {
481 pinmux = <PIN_PA24__FLEXCOM1_IO0>,
482 <PIN_PA23__FLEXCOM1_IO1>;
486 pinctrl_flx4_default: flx4_uart_default {
487 pinmux = <PIN_PC28__FLEXCOM4_IO0>,
488 <PIN_PC29__FLEXCOM4_IO1>,
489 <PIN_PC30__FLEXCOM4_IO2>,
490 <PIN_PC31__FLEXCOM4_IO3>,
491 <PIN_PD0__FLEXCOM4_IO4>;
497 pinctrl-names = "default";
498 pinctrl-0 = <&pinctrl_can1_default>;
505 compatible = "gpio-keys";
507 pinctrl-names = "default";
508 pinctrl-0 = <&pinctrl_key_gpio_default>;
512 gpios = <&pioA PIN_PA29 GPIO_ACTIVE_LOW>;
513 linux,code = <0x104>;
518 compatible = "gpio-leds";
519 pinctrl-names = "default";
520 pinctrl-0 = <&pinctrl_led_gpio_default>;
525 gpios = <&pioA PIN_PA10 GPIO_ACTIVE_HIGH>;
530 gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
535 gpios = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
536 linux,default-trigger = "heartbeat";