1 --- a/arch/arm/boot/dts/Makefile
2 +++ b/arch/arm/boot/dts/Makefile
3 @@ -49,6 +49,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \
5 dtb-$(CONFIG_SOC_SAM_V7) += \
7 + at91-sama5d2_ptc_ek.dtb \
8 at91-sama5d27_som1_ek.dtb \
9 at91-sama5d2_xplained.dtb \
10 at91-sama5d3_xplained.dtb \
12 +++ b/arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts
14 +// SPDX-License-Identifier: (GPL-2.0+ OR X11)
16 + * at91-sama5d2_ptc_ek.dts - Device Tree file for SAMA5D2 PTC EK board
18 + * Copyright (C) 2017 Microchip/Atmel,
19 + * 2017 Wenyou Yang <wenyou.yang@microchip.com>
20 + * 2017 Ludovic Desroches <ludovic.desroches@microchip.com>
23 +#include "sama5d2.dtsi"
24 +#include "sama5d2-pinfunc.h"
25 +#include <dt-bindings/mfd/atmel-flexcom.h>
26 +#include <dt-bindings/gpio/gpio.h>
27 +#include <dt-bindings/pinctrl/at91.h>
30 + model = "Atmel SAMA5D2 PTC EK";
31 + compatible = "atmel,sama5d2-ptc_ek", "atmel,sama5d2", "atmel,sama5";
41 + stdout-path = "serial0:115200n8";
45 + reg = <0x20000000 0x80000>;
50 + clock-frequency = <32768>;
54 + clock-frequency = <24000000>;
59 + usb0: gadget@00300000 {
60 + atmel,vbus-gpio = <&pioA PIN_PB11 GPIO_ACTIVE_HIGH>;
61 + pinctrl-names = "default";
62 + pinctrl-0 = <&pinctrl_usba_vbus>;
66 + usb1: ohci@00400000 {
68 + atmel,vbus-gpio = <0
69 + &pioA PIN_PB12 GPIO_ACTIVE_HIGH
72 + pinctrl-names = "default";
73 + pinctrl-0 = <&pinctrl_usb_default>;
77 + usb2: ehci@00500000 {
81 + nand0: nand@80000000 {
82 + nand-bus-width = <8>;
83 + nand-ecc-mode = "hw";
86 + pinctrl-names = "default";
87 + pinctrl-0 = <&pinctrl_nand_default>;
88 + status = "okay"; /* conflicts with sdmmc1 and qspi0 */
91 + label = "bootstrap";
92 + reg = <0x0 0x40000>;
96 + label = "bootloader";
97 + reg = <0x40000 0xc0000>;
100 + bootloaderenv@0x100000 {
101 + label = "bootloader env";
102 + reg = <0x100000 0x40000>;
105 + bootloaderenvred@0x140000 {
106 + label = "bootloader env redundant";
107 + reg = <0x140000 0x40000>;
111 + label = "device tree";
112 + reg = <0x180000 0x80000>;
117 + reg = <0x200000 0x600000>;
122 + reg = <0x800000 0x1f800000>;
126 + sdmmc0: sdio-host@a0000000 {
128 + pinctrl-names = "default";
129 + pinctrl-0 = <&pinctrl_sdmmc0_default>;
134 + pmc: pmc@f0014000 {
136 + compatible = "atmel,sama5d2-pmc-fast-startup";
137 + #address-cells = <1>;
140 + atmel,wakeup-rtc-timer;
146 + gmac_wol: input@10 {
148 + atmel,wakeup-active-high;
153 + spi0: spi@f8000000 {
154 + pinctrl-names = "default";
155 + pinctrl-0 = <&pinctrl_spi0_default>;
160 + compatible = "atmel,at25df321a";
162 + spi-max-frequency = <50000000>;
167 + macb0: ethernet@f8008000 {
168 + pinctrl-names = "default";
169 + pinctrl-0 = <&pinctrl_macb0_default &pinctrl_macb0_phy_irq>;
175 + interrupt-parent = <&pioA>;
176 + interrupts = <56 IRQ_TYPE_LEVEL_LOW>;
180 + uart0: serial@f801c000 {
181 + pinctrl-names = "default";
182 + pinctrl-0 = <&pinctrl_uart0_default>;
188 + uart2: serial@f8024000 {
189 + pinctrl-names = "default";
190 + pinctrl-0 = <&pinctrl_uart2_default>;
196 + i2c0: i2c@f8028000 {
198 + pinctrl-names = "default";
199 + pinctrl-0 = <&pinctrl_i2c0_default>;
200 + i2c-sda-hold-time-ns = <350>;
204 + flx0: flexcom@f8034000 {
205 + atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
209 + compatible = "atmel,sama5d2-i2c";
210 + reg = <0x600 0x200>;
211 + interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;
213 + dma-names = "tx", "rx";
214 + #address-cells = <1>;
216 + clocks = <&flx0_clk>;
217 + pinctrl-names = "default";
218 + pinctrl-0 = <&pinctrl_flx0_default>;
219 + atmel,fifo-size = <16>;
225 + atmel,shdwc-debouncer = <976>;
229 + atmel,wakeup-type = "low";
233 + watchdog@f8048040 {
237 + spi1: spi@fc000000 {
238 + pinctrl-names = "default";
239 + pinctrl-0 = <&pinctrl_spi1_default>;
243 + i2c1: i2c@fc028000 {
245 + pinctrl-names = "default";
246 + pinctrl-0 = <&pinctrl_i2c1_default>;
250 + compatible = "24c02";
257 + pinctrl_flx0_default: flx0_default {
258 + pinmux = <PIN_PB28__FLEXCOM0_IO0>,
259 + <PIN_PB29__FLEXCOM0_IO1>;
263 + pinctrl_i2c0_default: i2c0_default {
264 + pinmux = <PIN_PD21__TWD0>,
269 + pinctrl_i2c1_default: i2c1_default {
270 + pinmux = <PIN_PC6__TWD1>,
275 + pinctrl_key_gpio_default: key_gpio_default {
276 + pinmux = <PIN_PA10__GPIO>;
280 + pinctrl_led_gpio_default: led_gpio_default {
281 + pinmux = <PIN_PB6__GPIO>,
287 + pinctrl_macb0_default: macb0_default {
288 + pinmux = <PIN_PB14__GTXCK>,
301 + pinctrl_macb0_phy_irq: macb0_phy_irq {
302 + pinmux = <PIN_PB24__GPIO>;
306 + pinctrl_nand_default: nand_default {
308 + pinmux = <PIN_PA22__D0>,
316 + <PIN_PA30__NWE_NANDWE>,
317 + <PIN_PB2__NRD_NANDOE>;
319 + drive-strength = <ATMEL_PIO_DRVSTR_ME>;
323 + pinmux = <PIN_PB0__A21_NANDALE>,
324 + <PIN_PB1__A22_NANDCLE>,
325 + <PIN_PC8__NANDRDY>,
331 + pinctrl_sdmmc0_default: sdmmc0_default {
333 + pinmux = <PIN_PA1__SDMMC0_CMD>,
334 + <PIN_PA2__SDMMC0_DAT0>,
335 + <PIN_PA3__SDMMC0_DAT1>,
336 + <PIN_PA4__SDMMC0_DAT2>,
337 + <PIN_PA5__SDMMC0_DAT3>,
338 + <PIN_PA6__SDMMC0_DAT4>,
339 + <PIN_PA7__SDMMC0_DAT5>,
340 + <PIN_PA8__SDMMC0_DAT6>,
341 + <PIN_PA9__SDMMC0_DAT7>;
346 + pinmux = <PIN_PA0__SDMMC0_CK>,
347 + <PIN_PA11__SDMMC0_VDDSEL>,
348 + <PIN_PA13__SDMMC0_CD>;
353 + pinctrl_spi0_default: spi0_default {
354 + pinmux = <PIN_PA14__SPI0_SPCK>,
355 + <PIN_PA15__SPI0_MOSI>,
356 + <PIN_PA16__SPI0_MISO>,
357 + <PIN_PA17__SPI0_NPCS0>;
361 + pinctrl_spi1_default: spi1_default {
362 + pinmux = <PIN_PC1__SPI1_SPCK>,
363 + <PIN_PC2__SPI1_MOSI>,
364 + <PIN_PC3__SPI1_MISO>,
365 + <PIN_PC4__SPI1_NPCS0>;
369 + pinctrl_uart0_default: uart0_default {
370 + pinmux = <PIN_PB26__URXD0>,
375 + pinctrl_uart2_default: uart2_default {
376 + pinmux = <PIN_PD23__URXD2>,
381 + pinctrl_usb_default: usb_default {
382 + pinmux = <PIN_PB12__GPIO>;
386 + pinctrl_usba_vbus: usba_vbus {
387 + pinmux = <PIN_PB11__GPIO>;
400 + compatible = "gpio-keys";
402 + pinctrl-names = "default";
403 + pinctrl-0 = <&pinctrl_key_gpio_default>;
407 + gpios = <&pioA PIN_PA10 GPIO_ACTIVE_LOW>;
408 + linux,code = <0x104>;
414 + compatible = "gpio-leds";
415 + pinctrl-names = "default";
416 + pinctrl-0 = <&pinctrl_led_gpio_default>;
421 + gpios = <&pioA PIN_PB10 GPIO_ACTIVE_HIGH>;
426 + gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
431 + gpios = <&pioA PIN_PB6 GPIO_ACTIVE_HIGH>;
432 + linux,default-trigger = "heartbeat";