1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * at91-sama7g54_curiosity.dts - Device Tree file for SAMA7G54 Curiosity Board
5 * Copyright (C) 2024 Microchip Technology Inc. and its subsidiaries
7 * Author: Mihai Sain <mihai.sain@microchip.com>
11 #include "sama7g5-pinfunc.h"
12 #include "sama7g5.dtsi"
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/leds/common.h>
15 #include <dt-bindings/mfd/atmel-flexcom.h>
16 #include <dt-bindings/pinctrl/at91.h>
19 model = "Microchip SAMA7G54 Curiosity";
20 compatible = "microchip,sama7g54-curiosity", "microchip,sama7g5", "microchip,sama7";
28 stdout-path = "serial0:115200n8";
32 compatible = "gpio-keys";
33 pinctrl-names = "default";
34 pinctrl-0 = <&pinctrl_key_gpio_default>;
37 label = "user-button";
38 gpios = <&pioA PIN_PD19 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_PROG1>;
45 compatible = "gpio-leds";
46 pinctrl-names = "default";
47 pinctrl-0 = <&pinctrl_led_gpio_default>;
50 color = <LED_COLOR_ID_RED>;
51 function = LED_FUNCTION_POWER;
52 gpios = <&pioA PIN_PD13 GPIO_ACTIVE_HIGH>;
53 default-state = "off";
57 color = <LED_COLOR_ID_GREEN>;
58 function = LED_FUNCTION_BOOT;
59 gpios = <&pioA PIN_PD14 GPIO_ACTIVE_HIGH>;
60 default-state = "off";
64 color = <LED_COLOR_ID_BLUE>;
65 function = LED_FUNCTION_CPU;
66 gpios = <&pioA PIN_PB15 GPIO_ACTIVE_HIGH>;
67 linux,default-trigger = "heartbeat";
72 device_type = "memory";
73 reg = <0x60000000 0x10000000>; /* 256 MiB DDR3L-1066 16-bit */
78 vddana-supply = <&vddout25>;
79 vref-supply = <&vddout25>;
80 pinctrl-names = "default";
81 pinctrl-0 = <&pinctrl_mikrobus1_an_default &pinctrl_mikrobus2_an_default>;
86 cpu-supply = <&vddcpu>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&pinctrl_nand_default>;
106 nand_controller: nand-controller {
110 reg = <0x3 0x0 0x800000>;
112 nand-bus-width = <8>;
113 nand-ecc-mode = "hw";
114 nand-ecc-strength = <8>;
115 nand-ecc-step-size = <512>;
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
125 label = "nand: at91bootstrap";
130 label = "nand: u-boot";
131 reg = <0x40000 0x100000>;
134 bootloaderenv@140000 {
135 label = "nand: u-boot env";
136 reg = <0x140000 0x40000>;
140 label = "nand: device tree";
141 reg = <0x180000 0x80000>;
145 label = "nand: kernel";
146 reg = <0x200000 0x600000>;
150 label = "nand: rootfs";
151 reg = <0x800000 0x1f800000>;
159 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
163 pinctrl-names = "default";
164 pinctrl-0 = <&pinctrl_flx3_default>;
170 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pinctrl_flx10_default>;
178 i2c-digital-filter-width-ns = <35>;
182 compatible = "atmel,24c02";
186 vcc-supply = <&vdd_3v3>;
190 compatible = "microchip,mcp16502";
195 regulator-name = "VDD_IO";
196 regulator-min-microvolt = <3300000>;
197 regulator-max-microvolt = <3300000>;
198 regulator-initial-mode = <2>;
199 regulator-allowed-modes = <2>, <4>;
202 regulator-state-standby {
203 regulator-on-in-suspend;
204 regulator-suspend-microvolt = <3300000>;
205 regulator-mode = <4>;
208 regulator-state-mem {
209 regulator-off-in-suspend;
210 regulator-mode = <4>;
215 regulator-name = "VDD_DDR";
216 regulator-min-microvolt = <1350000>;
217 regulator-max-microvolt = <1350000>;
218 regulator-initial-mode = <2>;
219 regulator-allowed-modes = <2>, <4>;
222 regulator-state-standby {
223 regulator-on-in-suspend;
224 regulator-suspend-microvolt = <1350000>;
225 regulator-mode = <4>;
228 regulator-state-mem {
229 regulator-on-in-suspend;
230 regulator-suspend-microvolt = <1350000>;
231 regulator-mode = <4>;
236 regulator-name = "VDD_CORE";
237 regulator-min-microvolt = <1150000>;
238 regulator-max-microvolt = <1150000>;
239 regulator-initial-mode = <2>;
240 regulator-allowed-modes = <2>, <4>;
243 regulator-state-standby {
244 regulator-on-in-suspend;
245 regulator-suspend-microvolt = <1150000>;
246 regulator-mode = <4>;
249 regulator-state-mem {
250 regulator-off-in-suspend;
251 regulator-mode = <4>;
256 regulator-name = "VDD_OTHER";
257 regulator-min-microvolt = <1050000>;
258 regulator-max-microvolt = <1250000>;
259 regulator-initial-mode = <2>;
260 regulator-allowed-modes = <2>, <4>;
261 regulator-ramp-delay = <3125>;
264 regulator-state-standby {
265 regulator-on-in-suspend;
266 regulator-suspend-microvolt = <1050000>;
267 regulator-mode = <4>;
270 regulator-state-mem {
271 regulator-off-in-suspend;
272 regulator-mode = <4>;
277 regulator-name = "LDO1";
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <1800000>;
282 regulator-state-standby {
283 regulator-suspend-microvolt = <1800000>;
284 regulator-on-in-suspend;
287 regulator-state-mem {
288 regulator-off-in-suspend;
293 regulator-name = "LDO2";
294 regulator-min-microvolt = <3300000>;
295 regulator-max-microvolt = <3300000>;
298 regulator-state-standby {
299 regulator-suspend-microvolt = <3300000>;
300 regulator-on-in-suspend;
303 regulator-state-mem {
304 regulator-off-in-suspend;
313 clock-frequency = <24000000>;
317 pinctrl-names = "default";
318 pinctrl-0 = <&pinctrl_qspi1_default>;
322 compatible = "jedec,spi-nor";
324 spi-max-frequency = <100000000>;
325 spi-tx-bus-width = <4>;
326 spi-rx-bus-width = <4>;
332 pinctrl_flx3_default: flx3-default {
333 pinmux = <PIN_PD16__FLEXCOM3_IO0>,
334 <PIN_PD17__FLEXCOM3_IO1>;
338 pinctrl_flx10_default: flx10-default {
339 pinmux = <PIN_PC30__FLEXCOM10_IO0>,
340 <PIN_PC31__FLEXCOM10_IO1>;
344 pinctrl_key_gpio_default: key-gpio-default {
345 pinmux = <PIN_PD19__GPIO>;
349 pinctrl_led_gpio_default: led-gpio-default {
350 pinmux = <PIN_PD13__GPIO>,
356 pinctrl_mikrobus1_an_default: mikrobus1-an-default {
357 pinmux = <PIN_PC15__GPIO>;
361 pinctrl_mikrobus2_an_default: mikrobus2-an-default {
362 pinmux = <PIN_PC13__GPIO>;
366 pinctrl_nand_default: nand-default {
367 pinmux = <PIN_PD9__D0>,
376 <PIN_PD4__NCS3_NANDCS>,
377 <PIN_PD5__NWE_NWR0_NANDWE>,
378 <PIN_PD6__NRD_NANDOE>,
379 <PIN_PD7__A21_NANDALE>,
380 <PIN_PD8__A22_NANDCLE>;
385 pinctrl_qspi1_default: qspi1-default {
386 pinmux = <PIN_PB22__QSPI1_IO3>,
387 <PIN_PB23__QSPI1_IO2>,
388 <PIN_PB24__QSPI1_IO1>,
389 <PIN_PB25__QSPI1_IO0>,
390 <PIN_PB26__QSPI1_CS>,
391 <PIN_PB27__QSPI1_SCK>;
396 pinctrl_sdmmc0_default: sdmmc0-default {
397 pinmux = <PIN_PA0__SDMMC0_CK>,
398 <PIN_PA1__SDMMC0_CMD>,
399 <PIN_PA2__SDMMC0_RSTN>,
400 <PIN_PA3__SDMMC0_DAT0>,
401 <PIN_PA4__SDMMC0_DAT1>,
402 <PIN_PA5__SDMMC0_DAT2>,
403 <PIN_PA6__SDMMC0_DAT3>;
408 pinctrl_sdmmc1_default: sdmmc1-default {
409 pinmux = <PIN_PB29__SDMMC1_CMD>,
410 <PIN_PB30__SDMMC1_CK>,
411 <PIN_PB31__SDMMC1_DAT0>,
412 <PIN_PC0__SDMMC1_DAT1>,
413 <PIN_PC1__SDMMC1_DAT2>,
414 <PIN_PC2__SDMMC1_DAT3>,
415 <PIN_PC4__SDMMC1_CD>;
422 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
425 /* M.2 slot for wireless card */
428 cd-gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
430 sdhci-caps-mask = <0x0 0x00200000>;
431 vmmc-supply = <&vdd_3v3>;
432 vqmmc-supply = <&vdd_3v3>;
433 pinctrl-names = "default";
434 pinctrl-0 = <&pinctrl_sdmmc0_default>;
438 /* micro SD socket */
442 sdhci-caps-mask = <0x0 0x00200000>;
443 vmmc-supply = <&vdd_3v3>;
444 vqmmc-supply = <&vdd_3v3>;
445 pinctrl-names = "default";
446 pinctrl-0 = <&pinctrl_sdmmc1_default>;
451 clock-frequency = <32768>;
455 debounce-delay-us = <976>;
465 compatible = "atmel,tcb-timer";
470 compatible = "atmel,tcb-timer";
480 vin-supply = <&vdd_3v3>;