1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * at91-sama5d3_xplained.dts - Device Tree file for the SAMA5D3 Xplained board
5 * Copyright (C) 2014 Atmel,
6 * 2014 Nicolas Ferre <nicolas.ferre@atmel.com>
9 #include "sama5d36.dtsi"
10 #include <dt-bindings/input/input.h>
13 model = "SAMA5D3 Xplained";
14 compatible = "atmel,sama5d3-xplained", "atmel,sama5d3", "atmel,sama5";
17 stdout-path = "serial0:115200n8";
21 reg = <0x20000000 0x10000000>;
26 clock-frequency = <32768>;
30 clock-frequency = <12000000>;
37 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>;
38 vmmc-supply = <&vcc_mmc0_reg>;
39 vqmmc-supply = <&vcc_3v3_reg>;
44 cd-gpios = <&pioE 0 GPIO_ACTIVE_LOW>;
49 vmmc-supply = <&vcc_3v3_reg>;
50 vqmmc-supply = <&vcc_3v3_reg>;
55 cd-gpios = <&pioE 1 GPIO_ACTIVE_LOW>;
60 pinctrl-names = "default";
61 pinctrl-0 = <&pinctrl_spi0_cs>;
62 cs-gpios = <&pioD 13 0>, <0>, <0>, <&pioD 16 0>;
70 tcb0: timer@f0010000 {
72 compatible = "atmel,tcb-timer";
77 compatible = "atmel,tcb-timer";
83 pinctrl-0 = <&pinctrl_i2c0_pu>;
91 compatible = "active-semi,act8865";
96 vcc_1v8_reg: DCDC_REG1 {
97 regulator-name = "VCC_1V8";
98 regulator-min-microvolt = <1800000>;
99 regulator-max-microvolt = <1800000>;
103 vcc_1v2_reg: DCDC_REG2 {
104 regulator-name = "VCC_1V2";
105 regulator-min-microvolt = <1200000>;
106 regulator-max-microvolt = <1200000>;
110 vcc_3v3_reg: DCDC_REG3 {
111 regulator-name = "VCC_3V3";
112 regulator-min-microvolt = <3300000>;
113 regulator-max-microvolt = <3300000>;
117 vddfuse_reg: LDO_REG1 {
118 regulator-name = "FUSE_2V5";
119 regulator-min-microvolt = <2500000>;
120 regulator-max-microvolt = <2500000>;
123 vddana_reg: LDO_REG2 {
124 regulator-name = "VDDANA";
125 regulator-min-microvolt = <3300000>;
126 regulator-max-microvolt = <3300000>;
133 macb0: ethernet@f0028000 {
134 phy-mode = "rgmii-rxid";
135 #address-cells = <1>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&pinctrl_pwm0_pwmh0_0 &pinctrl_pwm0_pwmh1_0>;
150 usart0: serial@f001c000 {
154 usart1: serial@f0020000 {
155 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
159 uart0: serial@f0024000 {
164 pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
169 cd-gpios = <&pioE 1 GPIO_ACTIVE_HIGH>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pinctrl_spi1_cs>;
176 cs-gpios = <&pioC 25 0>;
181 atmel,adc-vref = <3300>;
182 atmel,adc-channels-used = <0xfe>;
197 dmas = <0>, <0>; /* Do not use DMA for i2c2 */
198 pinctrl-0 = <&pinctrl_i2c2_pu>;
202 macb1: ethernet@f802c000 {
204 #address-cells = <1>;
213 dbgu: serial@ffffee00 {
219 pinctrl_i2c0_pu: i2c0_pu {
221 <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
222 <AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
225 pinctrl_i2c2_pu: i2c2_pu {
227 <AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
228 <AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
231 pinctrl_key_gpio: key_gpio_0 {
233 <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
236 pinctrl_mmc0_cd: mmc0_cd {
238 <AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
241 pinctrl_mmc1_cd: mmc1_cd {
243 <AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
246 pinctrl_usba_vbus: usba_vbus {
248 <AT91_PIOE 9 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PE9, conflicts with A9 */
250 pinctrl_usb_default: usb_default {
252 <AT91_PIOE 3 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
253 AT91_PIOE 4 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
256 pinctrl_gpio_leds: gpio_leds_default {
258 <AT91_PIOE 23 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
259 AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
262 pinctrl_spi0_cs: spi0_cs_default {
264 <AT91_PIOD 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
265 AT91_PIOD 16 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
268 pinctrl_spi1_cs: spi1_cs_default {
269 atmel,pins = <AT91_PIOC 25 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
272 pinctrl_vcc_mmc0_reg_gpio: vcc_mmc0_reg_gpio_default {
273 atmel,pins = <AT91_PIOE 2 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
279 usb0: gadget@500000 {
280 atmel,vbus-gpio = <&pioE 9 GPIO_ACTIVE_HIGH>; /* PE9, conflicts with A9 */
281 pinctrl-names = "default";
282 pinctrl-0 = <&pinctrl_usba_vbus>;
289 &pioE 3 GPIO_ACTIVE_LOW
290 &pioE 4 GPIO_ACTIVE_LOW
292 pinctrl-names = "default";
293 pinctrl-0 = <&pinctrl_usb_default>;
302 pinctrl-0 = <&pinctrl_ebi_nand_addr>;
303 pinctrl-names = "default";
306 nand_controller: nand-controller {
312 nand-bus-width = <8>;
313 nand-ecc-mode = "hw";
314 nand-ecc-strength = <4>;
315 nand-ecc-step-size = <512>;
317 label = "atmel_nand";
320 compatible = "fixed-partitions";
321 #address-cells = <1>;
325 label = "at91bootstrap";
330 label = "bootloader";
331 reg = <0x40000 0xc0000>;
334 bootloaderenvred@100000 {
335 label = "bootloader env redundant";
336 reg = <0x100000 0x40000>;
339 bootloaderenv@140000 {
340 label = "bootloader env";
341 reg = <0x140000 0x40000>;
345 label = "device tree";
346 reg = <0x180000 0x80000>;
351 reg = <0x200000 0x600000>;
356 reg = <0x800000 0x0f800000>;
364 vcc_mmc0_reg: fixedregulator_mmc0 {
365 compatible = "regulator-fixed";
366 pinctrl-names = "default";
367 pinctrl-0 = <&pinctrl_vcc_mmc0_reg_gpio>;
368 gpio = <&pioE 2 GPIO_ACTIVE_LOW>;
369 regulator-name = "mmc0-card-supply";
370 regulator-min-microvolt = <3300000>;
371 regulator-max-microvolt = <3300000>;
376 compatible = "gpio-keys";
378 pinctrl-names = "default";
379 pinctrl-0 = <&pinctrl_key_gpio>;
383 gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
384 linux,code = <KEY_PROG1>;
390 compatible = "gpio-leds";
391 pinctrl-names = "default";
392 pinctrl-0 = <&pinctrl_gpio_leds>;
397 gpios = <&pioE 23 GPIO_ACTIVE_LOW>; /* PE23, conflicts with A23, CTS2 */
398 linux,default-trigger = "heartbeat";
402 label = "d3"; /* Conflict with EBI CS0, USART2 CTS. */
403 gpios = <&pioE 24 GPIO_ACTIVE_HIGH>;