1 // SPDX-License-Identifier: (GPL-2.0+ OR X11)
3 * at91-sama5d2_ptc_ek.dts - Device Tree file for SAMA5D2 PTC EK board
5 * Copyright (C) 2017 Microchip/Atmel,
6 * 2017 Wenyou Yang <wenyou.yang@microchip.com>
7 * 2017 Ludovic Desroches <ludovic.desroches@microchip.com>
10 #include "sama5d2.dtsi"
11 #include "sama5d2-pinfunc.h"
12 #include <dt-bindings/mfd/atmel-flexcom.h>
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/pinctrl/at91.h>
17 model = "Atmel SAMA5D2 PTC EK";
18 compatible = "atmel,sama5d2-ptc_ek", "atmel,sama5d2", "atmel,sama5";
28 stdout-path = "serial0:115200n8";
33 clock-frequency = <32768>;
37 clock-frequency = <24000000>;
43 atmel,vbus-gpio = <&pioA PIN_PA27 GPIO_ACTIVE_HIGH>;
44 pinctrl-names = "default";
45 pinctrl-0 = <&pinctrl_usba_vbus>;
52 &pioA PIN_PB12 GPIO_ACTIVE_HIGH
55 pinctrl-names = "default";
56 pinctrl-0 = <&pinctrl_usb_default>;
65 pinctrl-names = "default";
66 pinctrl-0 = <&pinctrl_nand_default>;
67 status = "okay"; /* conflicts with sdmmc1 and qspi0 */
69 nand_controller: nand-controller {
81 compatible = "fixed-partitions";
92 reg = <0x40000 0xc0000>;
95 bootloaderenvred@0x100000 {
96 label = "bootloader env redundant";
97 reg = <0x100000 0x40000>;
100 bootloaderenv@0x140000 {
101 label = "bootloader env";
102 reg = <0x140000 0x40000>;
106 label = "device tree";
107 reg = <0x180000 0x80000>;
112 reg = <0x200000 0x600000>;
117 reg = <0x800000 0x1f800000>;
124 sdmmc0: sdio-host@a0000000 {
126 pinctrl-names = "default";
127 pinctrl-0 = <&pinctrl_sdmmc0_default>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&pinctrl_spi0_default>;
140 macb0: ethernet@f8008000 {
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_macb0_default &pinctrl_macb0_phy_irq>;
148 interrupt-parent = <&pioA>;
149 interrupts = <56 IRQ_TYPE_LEVEL_LOW>;
153 tcb0: timer@f800c000 {
155 compatible = "atmel,tcb-timer";
160 compatible = "atmel,tcb-timer";
165 uart0: serial@f801c000 {
166 pinctrl-names = "default";
167 pinctrl-0 = <&pinctrl_uart0_default>;
173 uart2: serial@f8024000 {
174 pinctrl-names = "default";
175 pinctrl-0 = <&pinctrl_uart2_default>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&pinctrl_i2c0_default>;
188 flx0: flexcom@f8034000 {
189 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
193 compatible = "atmel,sama5d2-i2c";
195 interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;
197 dma-names = "tx", "rx";
198 #address-cells = <1>;
200 clocks = <&pmc PMC_TYPE_PERIPHERAL 19>;
201 pinctrl-names = "default";
202 pinctrl-0 = <&pinctrl_flx0_default>;
203 atmel,fifo-size = <16>;
209 atmel,shdwc-debouncer = <976>;
213 atmel,wakeup-type = "low";
222 pinctrl-names = "default";
223 pinctrl-0 = <&pinctrl_spi1_default>;
229 pinctrl-names = "default";
230 pinctrl-0 = <&pinctrl_i2c1_default>;
234 compatible = "atmel,24c02";
241 pinctrl_flx0_default: flx0_default {
242 pinmux = <PIN_PB28__FLEXCOM0_IO0>,
243 <PIN_PB29__FLEXCOM0_IO1>;
247 pinctrl_i2c0_default: i2c0_default {
248 pinmux = <PIN_PD21__TWD0>,
253 pinctrl_i2c1_default: i2c1_default {
254 pinmux = <PIN_PC6__TWD1>,
259 pinctrl_key_gpio_default: key_gpio_default {
260 pinmux = <PIN_PA10__GPIO>;
264 pinctrl_led_gpio_default: led_gpio_default {
265 pinmux = <PIN_PB6__GPIO>,
271 pinctrl_macb0_default: macb0_default {
272 pinmux = <PIN_PB14__GTXCK>,
285 pinctrl_macb0_phy_irq: macb0_phy_irq {
286 pinmux = <PIN_PB24__GPIO>;
290 pinctrl_nand_default: nand_default {
292 pinmux = <PIN_PA22__D0>,
300 <PIN_PA30__NWE_NANDWE>,
301 <PIN_PB2__NRD_NANDOE>;
303 atmel,drive-strength = <ATMEL_PIO_DRVSTR_ME>;
307 pinmux = <PIN_PB0__A21_NANDALE>,
308 <PIN_PB1__A22_NANDCLE>,
315 pinctrl_sdmmc0_default: sdmmc0_default {
317 pinmux = <PIN_PA1__SDMMC0_CMD>,
318 <PIN_PA2__SDMMC0_DAT0>,
319 <PIN_PA3__SDMMC0_DAT1>,
320 <PIN_PA4__SDMMC0_DAT2>,
321 <PIN_PA5__SDMMC0_DAT3>,
322 <PIN_PA6__SDMMC0_DAT4>,
323 <PIN_PA7__SDMMC0_DAT5>,
324 <PIN_PA8__SDMMC0_DAT6>,
325 <PIN_PA9__SDMMC0_DAT7>;
330 pinmux = <PIN_PA0__SDMMC0_CK>,
331 <PIN_PA11__SDMMC0_VDDSEL>,
332 <PIN_PA13__SDMMC0_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_spi1_default: spi1_default {
346 pinmux = <PIN_PC1__SPI1_SPCK>,
347 <PIN_PC2__SPI1_MOSI>,
348 <PIN_PC3__SPI1_MISO>,
349 <PIN_PC4__SPI1_NPCS0>;
353 pinctrl_uart0_default: uart0_default {
354 pinmux = <PIN_PB26__URXD0>,
359 pinctrl_uart2_default: uart2_default {
360 pinmux = <PIN_PD23__URXD2>,
365 pinctrl_usb_default: usb_default {
366 pinmux = <PIN_PB12__GPIO>;
370 pinctrl_usba_vbus: usba_vbus {
371 pinmux = <PIN_PB11__GPIO>;
381 compatible = "gpio-keys";
383 pinctrl-names = "default";
384 pinctrl-0 = <&pinctrl_key_gpio_default>;
388 gpios = <&pioA PIN_PA10 GPIO_ACTIVE_LOW>;
389 linux,code = <0x104>;
394 compatible = "gpio-leds";
395 pinctrl-names = "default";
396 pinctrl-0 = <&pinctrl_led_gpio_default>;
401 gpios = <&pioA PIN_PB10 GPIO_ACTIVE_HIGH>;
406 gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
411 gpios = <&pioA PIN_PB6 GPIO_ACTIVE_HIGH>;
412 linux,default-trigger = "heartbeat";