1 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
2 index c88e426..cb47e80 100644
3 --- a/arch/arm/boot/dts/Makefile
4 +++ b/arch/arm/boot/dts/Makefile
5 @@ -49,6 +49,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \
7 dtb-$(CONFIG_SOC_SAM_V7) += \
9 + at91-sama5d2_ptc_ek.dtb \
10 at91-sama5d27_som1_ek.dtb \
11 at91-sama5d2_xplained.dtb \
12 at91-sama5d3_xplained.dtb \
13 diff --git a/arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts b/arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts
15 index 0000000..257eaac
17 +++ b/arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts
19 +// SPDX-License-Identifier: (GPL-2.0+ OR X11)
21 + * at91-sama5d2_ptc_ek.dts - Device Tree file for SAMA5D2 PTC EK board
23 + * Copyright (C) 2017 Microchip/Atmel,
24 + * 2017 Wenyou Yang <wenyou.yang@microchip.com>
25 + * 2017 Ludovic Desroches <ludovic.desroches@microchip.com>
28 +#include "sama5d2.dtsi"
29 +#include "sama5d2-pinfunc.h"
30 +#include <dt-bindings/mfd/atmel-flexcom.h>
31 +#include <dt-bindings/gpio/gpio.h>
32 +#include <dt-bindings/pinctrl/at91.h>
35 + model = "Atmel SAMA5D2 PTC EK";
36 + compatible = "atmel,sama5d2-ptc_ek", "atmel,sama5d2", "atmel,sama5";
46 + stdout-path = "serial0:115200n8";
50 + reg = <0x20000000 0x80000>;
55 + clock-frequency = <32768>;
59 + clock-frequency = <24000000>;
64 + usb0: gadget@00300000 {
65 + atmel,vbus-gpio = <&pioA PIN_PB11 GPIO_ACTIVE_HIGH>;
66 + pinctrl-names = "default";
67 + pinctrl-0 = <&pinctrl_usba_vbus>;
71 + usb1: ohci@00400000 {
73 + atmel,vbus-gpio = <0
74 + &pioA PIN_PB12 GPIO_ACTIVE_HIGH
77 + pinctrl-names = "default";
78 + pinctrl-0 = <&pinctrl_usb_default>;
82 + usb2: ehci@00500000 {
86 + nand0: nand@80000000 {
87 + nand-bus-width = <8>;
88 + nand-ecc-mode = "hw";
91 + pinctrl-names = "default";
92 + pinctrl-0 = <&pinctrl_nand_default>;
93 + status = "okay"; /* conflicts with sdmmc1 and qspi0 */
96 + label = "bootstrap";
97 + reg = <0x0 0x40000>;
101 + label = "bootloader";
102 + reg = <0x40000 0xc0000>;
105 + bootloaderenv@0x100000 {
106 + label = "bootloader env";
107 + reg = <0x100000 0x40000>;
110 + bootloaderenvred@0x140000 {
111 + label = "bootloader env redundant";
112 + reg = <0x140000 0x40000>;
116 + label = "device tree";
117 + reg = <0x180000 0x80000>;
122 + reg = <0x200000 0x600000>;
127 + reg = <0x800000 0x1f800000>;
131 + sdmmc0: sdio-host@a0000000 {
133 + pinctrl-names = "default";
134 + pinctrl-0 = <&pinctrl_sdmmc0_default>;
139 + pmc: pmc@f0014000 {
141 + compatible = "atmel,sama5d2-pmc-fast-startup";
142 + #address-cells = <1>;
145 + atmel,wakeup-rtc-timer;
151 + gmac_wol: input@10 {
153 + atmel,wakeup-active-high;
158 + spi0: spi@f8000000 {
159 + pinctrl-names = "default";
160 + pinctrl-0 = <&pinctrl_spi0_default>;
165 + compatible = "atmel,at25df321a";
167 + spi-max-frequency = <50000000>;
172 + macb0: ethernet@f8008000 {
173 + pinctrl-names = "default";
174 + pinctrl-0 = <&pinctrl_macb0_default &pinctrl_macb0_phy_irq>;
180 + interrupt-parent = <&pioA>;
181 + interrupts = <56 IRQ_TYPE_LEVEL_LOW>;
185 + uart0: serial@f801c000 {
186 + pinctrl-names = "default";
187 + pinctrl-0 = <&pinctrl_uart0_default>;
193 + uart2: serial@f8024000 {
194 + pinctrl-names = "default";
195 + pinctrl-0 = <&pinctrl_uart2_default>;
201 + i2c0: i2c@f8028000 {
203 + pinctrl-names = "default";
204 + pinctrl-0 = <&pinctrl_i2c0_default>;
205 + i2c-sda-hold-time-ns = <350>;
209 + flx0: flexcom@f8034000 {
210 + atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
214 + compatible = "atmel,sama5d2-i2c";
215 + reg = <0x600 0x200>;
216 + interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;
218 + dma-names = "tx", "rx";
219 + #address-cells = <1>;
221 + clocks = <&flx0_clk>;
222 + pinctrl-names = "default";
223 + pinctrl-0 = <&pinctrl_flx0_default>;
224 + atmel,fifo-size = <16>;
230 + atmel,shdwc-debouncer = <976>;
234 + atmel,wakeup-type = "low";
238 + watchdog@f8048040 {
242 + spi1: spi@fc000000 {
243 + pinctrl-names = "default";
244 + pinctrl-0 = <&pinctrl_spi1_default>;
248 + i2c1: i2c@fc028000 {
250 + pinctrl-names = "default";
251 + pinctrl-0 = <&pinctrl_i2c1_default>;
255 + compatible = "24c02";
262 + pinctrl_flx0_default: flx0_default {
263 + pinmux = <PIN_PB28__FLEXCOM0_IO0>,
264 + <PIN_PB29__FLEXCOM0_IO1>;
268 + pinctrl_i2c0_default: i2c0_default {
269 + pinmux = <PIN_PD21__TWD0>,
274 + pinctrl_i2c1_default: i2c1_default {
275 + pinmux = <PIN_PC6__TWD1>,
280 + pinctrl_key_gpio_default: key_gpio_default {
281 + pinmux = <PIN_PA10__GPIO>;
285 + pinctrl_led_gpio_default: led_gpio_default {
286 + pinmux = <PIN_PB6__GPIO>,
292 + pinctrl_macb0_default: macb0_default {
293 + pinmux = <PIN_PB14__GTXCK>,
306 + pinctrl_macb0_phy_irq: macb0_phy_irq {
307 + pinmux = <PIN_PB24__GPIO>;
311 + pinctrl_nand_default: nand_default {
313 + pinmux = <PIN_PA22__D0>,
321 + <PIN_PA30__NWE_NANDWE>,
322 + <PIN_PB2__NRD_NANDOE>;
324 + drive-strength = <ATMEL_PIO_DRVSTR_ME>;
328 + pinmux = <PIN_PB0__A21_NANDALE>,
329 + <PIN_PB1__A22_NANDCLE>,
330 + <PIN_PC8__NANDRDY>,
336 + pinctrl_sdmmc0_default: sdmmc0_default {
338 + pinmux = <PIN_PA1__SDMMC0_CMD>,
339 + <PIN_PA2__SDMMC0_DAT0>,
340 + <PIN_PA3__SDMMC0_DAT1>,
341 + <PIN_PA4__SDMMC0_DAT2>,
342 + <PIN_PA5__SDMMC0_DAT3>,
343 + <PIN_PA6__SDMMC0_DAT4>,
344 + <PIN_PA7__SDMMC0_DAT5>,
345 + <PIN_PA8__SDMMC0_DAT6>,
346 + <PIN_PA9__SDMMC0_DAT7>;
351 + pinmux = <PIN_PA0__SDMMC0_CK>,
352 + <PIN_PA11__SDMMC0_VDDSEL>,
353 + <PIN_PA13__SDMMC0_CD>;
358 + pinctrl_spi0_default: spi0_default {
359 + pinmux = <PIN_PA14__SPI0_SPCK>,
360 + <PIN_PA15__SPI0_MOSI>,
361 + <PIN_PA16__SPI0_MISO>,
362 + <PIN_PA17__SPI0_NPCS0>;
366 + pinctrl_spi1_default: spi1_default {
367 + pinmux = <PIN_PC1__SPI1_SPCK>,
368 + <PIN_PC2__SPI1_MOSI>,
369 + <PIN_PC3__SPI1_MISO>,
370 + <PIN_PC4__SPI1_NPCS0>;
374 + pinctrl_uart0_default: uart0_default {
375 + pinmux = <PIN_PB26__URXD0>,
380 + pinctrl_uart2_default: uart2_default {
381 + pinmux = <PIN_PD23__URXD2>,
386 + pinctrl_usb_default: usb_default {
387 + pinmux = <PIN_PB12__GPIO>;
391 + pinctrl_usba_vbus: usba_vbus {
392 + pinmux = <PIN_PB11__GPIO>;
405 + compatible = "gpio-keys";
407 + pinctrl-names = "default";
408 + pinctrl-0 = <&pinctrl_key_gpio_default>;
412 + gpios = <&pioA PIN_PA10 GPIO_ACTIVE_LOW>;
413 + linux,code = <0x104>;
419 + compatible = "gpio-leds";
420 + pinctrl-names = "default";
421 + pinctrl-0 = <&pinctrl_led_gpio_default>;
426 + gpios = <&pioA PIN_PB10 GPIO_ACTIVE_HIGH>;
431 + gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
436 + gpios = <&pioA PIN_PB6 GPIO_ACTIVE_HIGH>;
437 + linux,default-trigger = "heartbeat";