1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * at91-sama5d29_curiosity.dts - Device Tree file for SAMA5D29 Curiosity board
5 * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries
7 * Author: Mihai Sain <mihai.sain@microchip.com>
11 #include "sama5d29.dtsi"
12 #include "sama5d2-pinfunc.h"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/mfd/atmel-flexcom.h>
18 model = "Microchip SAMA5D29 Curiosity";
19 compatible = "microchip,sama5d29-curiosity", "atmel,sama5d29", "atmel,sama5d2", "atmel,sama5";
22 serial0 = &uart0; // debug
23 serial1 = &uart1; // RPi
24 serial2 = &uart3; // mikro BUS 2
25 serial3 = &uart4; // mikro BUS 1
26 serial4 = &uart6; // flx1 Bluetooth
32 bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait";
33 stdout-path = "serial0:115200n8";
38 clock-frequency = <32768>;
42 clock-frequency = <24000000>;
47 compatible = "gpio-keys";
49 pinctrl-names = "default";
50 pinctrl-0 = <&pinctrl_key_gpio_default>;
53 label = "USER BUTTON";
54 gpios = <&pioA PIN_PA17 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_PROG1>;
61 compatible = "gpio-leds";
62 pinctrl-names = "default";
63 pinctrl-0 = <&pinctrl_led_gpio_default>;
68 gpios = <&pioA PIN_PA7 GPIO_ACTIVE_HIGH>;
73 gpios = <&pioA PIN_PA8 GPIO_ACTIVE_HIGH>;
78 gpios = <&pioA PIN_PA9 GPIO_ACTIVE_HIGH>;
79 linux,default-trigger = "heartbeat";
84 device_type = "memory";
85 reg = <0x20000000 0x20000000>;
90 vddana-supply = <&vdd_3v3>;
91 vref-supply = <&vdd_3v3>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&pinctrl_adc_default &pinctrl_adtrg_default>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&pinctrl_can0_default>;
104 pinctrl-names = "default";
105 pinctrl-0 = <&pinctrl_can1_default>;
110 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
114 pinctrl-0 = <&pinctrl_flx1_default>;
115 pinctrl-names = "default";
123 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&pinctrl_rpi_spi>;
136 pinctrl-names = "default", "gpio";
137 pinctrl-0 = <&pinctrl_i2c0_default>;
138 pinctrl-1 = <&pinctrl_i2c0_gpio>;
139 sda-gpios = <&pioA PIN_PB31 GPIO_ACTIVE_HIGH>;
140 scl-gpios = <&pioA PIN_PC0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
141 i2c-sda-hold-time-ns = <350>;
145 compatible = "microchip,mcp16502";
148 lpm-gpios = <&pioBU 0 GPIO_ACTIVE_LOW>;
152 regulator-name = "VDD_IO";
153 regulator-min-microvolt = <3300000>;
154 regulator-max-microvolt = <3300000>;
155 regulator-initial-mode = <2>;
156 regulator-allowed-modes = <2>, <4>;
159 regulator-state-standby {
160 regulator-on-in-suspend;
161 regulator-mode = <4>;
164 regulator-state-mem {
165 regulator-off-in-suspend;
166 regulator-mode = <4>;
171 regulator-name = "VDD_DDR";
172 regulator-min-microvolt = <1200000>;
173 regulator-max-microvolt = <1200000>;
174 regulator-initial-mode = <2>;
175 regulator-allowed-modes = <2>, <4>;
178 regulator-state-standby {
179 regulator-on-in-suspend;
180 regulator-suspend-microvolt = <1200000>;
181 regulator-changeable-in-suspend;
182 regulator-mode = <4>;
185 regulator-state-mem {
186 regulator-on-in-suspend;
187 regulator-suspend-microvolt = <1200000>;
188 regulator-changeable-in-suspend;
189 regulator-mode = <4>;
194 regulator-name = "VDD_CORE";
195 regulator-min-microvolt = <1250000>;
196 regulator-max-microvolt = <1250000>;
197 regulator-initial-mode = <2>;
198 regulator-allowed-modes = <2>, <4>;
201 regulator-state-standby {
202 regulator-on-in-suspend;
203 regulator-mode = <4>;
206 regulator-state-mem {
207 regulator-off-in-suspend;
208 regulator-mode = <4>;
213 regulator-name = "VDD_OTHER";
214 regulator-min-microvolt = <1800000>;
215 regulator-max-microvolt = <1800000>;
216 regulator-initial-mode = <2>;
217 regulator-allowed-modes = <2>, <4>;
220 regulator-state-standby {
221 regulator-on-in-suspend;
222 regulator-suspend-microvolt = <1800000>;
223 regulator-changeable-in-suspend;
224 regulator-mode = <4>;
227 regulator-state-mem {
228 regulator-on-in-suspend;
229 regulator-suspend-microvolt = <1800000>;
230 regulator-changeable-in-suspend;
231 regulator-mode = <4>;
236 regulator-name = "LDO1";
237 regulator-min-microvolt = <2500000>;
238 regulator-max-microvolt = <2500000>;
241 regulator-state-standby {
242 regulator-on-in-suspend;
245 regulator-state-mem {
246 regulator-off-in-suspend;
251 regulator-name = "LDO2";
252 regulator-min-microvolt = <3300000>;
253 regulator-max-microvolt = <3300000>;
256 regulator-state-standby {
257 regulator-on-in-suspend;
260 regulator-state-mem {
261 regulator-off-in-suspend;
270 pinctrl-names = "default", "gpio";
271 pinctrl-0 = <&pinctrl_i2c1_default>;
272 pinctrl-1 = <&pinctrl_i2c1_gpio>;
275 i2c-digital-filter-width-ns = <35>;
276 sda-gpios = <&pioA PIN_PD4 GPIO_ACTIVE_HIGH>;
277 scl-gpios = <&pioA PIN_PD5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
282 pinctrl_adc_default: adc-default {
283 pinmux = <PIN_PD25__GPIO>,
288 pinctrl_adtrg_default: adtrg-default {
289 pinmux = <PIN_PD31__ADTRG>;
293 pinctrl_can0_default: can0-default {
294 pinmux = <PIN_PC10__CANTX0>,
299 pinctrl_can1_default: can1-default {
300 pinmux = <PIN_PC26__CANTX1>,
305 pinctrl_debug_uart: debug-uart {
306 pinmux = <PIN_PB26__URXD0>,
311 pinctrl_flx1_default: flx1-default {
312 pinmux = <PIN_PA24__FLEXCOM1_IO0>,
313 <PIN_PA23__FLEXCOM1_IO1>,
314 <PIN_PA25__FLEXCOM1_IO3>,
315 <PIN_PA26__FLEXCOM1_IO4>;
319 pinctrl_i2c0_default: i2c0-default {
320 pinmux = <PIN_PB31__TWD0>,
325 pinctrl_i2c0_gpio: i2c0-gpio-default {
326 pinmux = <PIN_PB31__GPIO>,
331 pinctrl_i2c1_default: i2c1-default {
332 pinmux = <PIN_PD4__TWD1>,
337 pinctrl_i2c1_gpio: i2c1-gpio-default {
338 pinmux = <PIN_PD4__GPIO>,
343 pinctrl_key_gpio_default: key-gpio-default {
344 pinmux = <PIN_PA17__GPIO>;
348 pinctrl_led_gpio_default: led-gpio-default {
349 pinmux = <PIN_PA7__GPIO>,
355 pinctrl_mikrobus1_pwm: mikrobus1-pwm {
356 pinmux = <PIN_PA31__PWML0>;
360 pinctrl_mikrobus2_pwm: mikrobus2-pwm {
361 pinmux = <PIN_PB0__PWMH1>;
365 pinctrl_mikrobus1_uart: mikrobus1-uart {
366 pinmux = <PIN_PB3__URXD4>,
371 pinctrl_mikrobus2_uart: mikrobus2-uart {
372 pinmux = <PIN_PB11__URXD3>,
377 pinctrl_qspi1_default: qspi1-default {
378 pinmux = <PIN_PB5__QSPI1_SCK>,
380 <PIN_PB7__QSPI1_IO0>,
381 <PIN_PB8__QSPI1_IO1>,
382 <PIN_PB9__QSPI1_IO2>,
383 <PIN_PB10__QSPI1_IO3>;
387 pinctrl_rpi_spi: rpi-spi {
388 pinmux = <PIN_PD12__FLEXCOM4_IO0>,
389 <PIN_PD13__FLEXCOM4_IO1>,
390 <PIN_PD14__FLEXCOM4_IO2>,
391 <PIN_PD15__FLEXCOM4_IO3>,
392 <PIN_PD16__FLEXCOM4_IO4>;
396 pinctrl_rpi_uart: rpi-uart {
397 pinmux = <PIN_PD2__URXD1>,
402 pinctrl_sdmmc0_default: sdmmc0-default {
403 pinmux = <PIN_PA0__SDMMC0_CK>,
404 <PIN_PA1__SDMMC0_CMD>,
405 <PIN_PA2__SDMMC0_DAT0>,
406 <PIN_PA3__SDMMC0_DAT1>,
407 <PIN_PA4__SDMMC0_DAT2>,
408 <PIN_PA5__SDMMC0_DAT3>,
409 <PIN_PA11__SDMMC0_VDDSEL>,
410 <PIN_PA13__SDMMC0_CD>;
414 pinctrl_sdmmc1_default: sdmmc1-default {
415 pinmux = <PIN_PA18__SDMMC1_DAT0>,
416 <PIN_PA19__SDMMC1_DAT1>,
417 <PIN_PA20__SDMMC1_DAT2>,
418 <PIN_PA21__SDMMC1_DAT3>,
419 <PIN_PA22__SDMMC1_CK>,
420 <PIN_PA28__SDMMC1_CMD>,
421 <PIN_PA30__SDMMC1_CD>;
425 pinctrl_spi1_default: spi1-default {
426 pinmux = <PIN_PC1__SPI1_SPCK>,
427 <PIN_PC2__SPI1_MOSI>,
428 <PIN_PC3__SPI1_MISO>,
429 <PIN_PC4__SPI1_NPCS0>,
430 <PIN_PC5__SPI1_NPCS1>,
431 <PIN_PC6__SPI1_NPCS2>,
432 <PIN_PC7__SPI1_NPCS3>;
436 pinctrl_usb_default: usb-default {
437 pinmux = <PIN_PA6__GPIO>;
441 pinctrl_usba_vbus: usba-vbus {
442 pinmux = <PIN_PB13__GPIO>;
448 pinctrl-names = "default";
449 pinctrl-0 = <&pinctrl_mikrobus1_pwm &pinctrl_mikrobus2_pwm>;
454 pinctrl-names = "default";
455 pinctrl-0 = <&pinctrl_qspi1_default>;
459 #address-cells = <1>;
461 compatible = "jedec,spi-nor";
463 spi-max-frequency = <80000000>;
464 spi-tx-bus-width = <4>;
465 spi-rx-bus-width = <4>;
467 label = "atmel_qspi1";
471 label = "at91bootstrap";
476 label = "bootloader";
477 reg = <0x40000 0xc0000>;
480 bootloaderenvred@100000 {
481 label = "bootloader env redundant";
482 reg = <0x100000 0x40000>;
485 bootloaderenv@140000 {
486 label = "bootloader env";
487 reg = <0x140000 0x40000>;
491 label = "device tree";
492 reg = <0x180000 0x80000>;
497 reg = <0x200000 0x600000>;
504 pinctrl-names = "default";
505 pinctrl-0 = <&pinctrl_sdmmc0_default>;
512 pinctrl-names = "default";
513 pinctrl-0 = <&pinctrl_sdmmc1_default>;
518 &shutdown_controller {
519 debounce-delay-us = <976>;
520 atmel,wakeup-rtc-timer;
528 pinctrl-names = "default";
529 pinctrl-0 = <&pinctrl_spi1_default>;
535 compatible = "atmel,tcb-timer";
540 compatible = "atmel,tcb-timer";
546 pinctrl-names = "default";
547 pinctrl-0 = <&pinctrl_debug_uart>;
554 pinctrl-names = "default";
555 pinctrl-0 = <&pinctrl_rpi_uart>;
562 pinctrl-names = "default";
563 pinctrl-0 = <&pinctrl_mikrobus2_uart>;
570 pinctrl-names = "default";
571 pinctrl-0 = <&pinctrl_mikrobus1_uart>;
578 atmel,vbus-gpio = <&pioA PIN_PB13 GPIO_ACTIVE_HIGH>;
579 pinctrl-names = "default";
580 pinctrl-0 = <&pinctrl_usba_vbus>;
587 &pioA PIN_PA6 GPIO_ACTIVE_HIGH
589 pinctrl-names = "default";
590 pinctrl-0 = <&pinctrl_usb_default>;