1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * at91-sama5d2_xplained.dts - Device Tree file for SAMA5D2 Xplained board
5 * Copyright (C) 2015 Atmel,
6 * 2015 Nicolas Ferre <nicolas.ferre@atmel.com>
9 #include "sama5d2.dtsi"
10 #include "sama5d2-pinfunc.h"
11 #include <dt-bindings/mfd/atmel-flexcom.h>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/regulator/active-semi,8945a-regulator.h>
16 model = "Atmel SAMA5D2 Xplained";
17 compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5";
20 stdout-path = "serial0:115200n8";
25 clock-frequency = <32768>;
29 clock-frequency = <12000000>;
35 atmel,vbus-gpio = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
36 pinctrl-names = "default";
37 pinctrl-0 = <&pinctrl_usba_vbus>;
43 atmel,vbus-gpio = <0 /* &pioA PIN_PB9 GPIO_ACTIVE_HIGH */
44 &pioA PIN_PB10 GPIO_ACTIVE_HIGH
47 pinctrl-names = "default";
48 pinctrl-0 = <&pinctrl_usb_default>;
56 sdmmc0: sdio-host@a0000000 {
58 pinctrl-names = "default";
59 pinctrl-0 = <&pinctrl_sdmmc0_default>;
65 sdmmc1: sdio-host@b0000000 {
67 pinctrl-names = "default";
68 pinctrl-0 = <&pinctrl_sdmmc1_default>;
69 status = "okay"; /* conflict with qspi0 */
70 vqmmc-supply = <&vdd_3v3_reg>;
71 vmmc-supply = <&vdd_3v3_reg>;
76 pinctrl-names = "default";
77 pinctrl-0 = <&pinctrl_spi0_default>;
81 compatible = "atmel,at25df321a";
83 spi-max-frequency = <50000000>;
87 macb0: ethernet@f8008000 {
88 pinctrl-names = "default";
89 pinctrl-0 = <&pinctrl_macb0_default &pinctrl_macb0_phy_irq>;
95 interrupt-parent = <&pioA>;
96 interrupts = <PIN_PC9 IRQ_TYPE_LEVEL_LOW>;
100 tcb0: timer@f800c000 {
102 compatible = "atmel,tcb-timer";
107 compatible = "atmel,tcb-timer";
113 pinctrl-names = "default";
114 pinctrl-0 = <&pinctrl_pdmic_default>;
115 atmel,model = "PDMIC @ sama5d2_xplained";
116 atmel,mic-min-freq = <1000000>;
117 atmel,mic-max-freq = <3246000>;
118 atmel,mic-offset = <0x0>;
122 uart1: serial@f8020000 {
123 pinctrl-names = "default";
124 pinctrl-0 = <&pinctrl_uart1_default>;
132 pinctrl-names = "default", "gpio";
133 pinctrl-0 = <&pinctrl_i2c0_default>;
134 pinctrl-1 = <&pinctrl_i2c0_gpio>;
135 sda-gpios = <&pioA PIN_PD21 GPIO_ACTIVE_HIGH>;
136 scl-gpios = <&pioA PIN_PD22 GPIO_ACTIVE_HIGH>;
137 i2c-sda-hold-time-ns = <350>;
141 compatible = "active-semi,act8945a";
143 active-semi,vsel-high;
147 vdd_1v35_reg: REG_DCDC1 {
148 regulator-name = "VDD_1V35";
149 regulator-min-microvolt = <1350000>;
150 regulator-max-microvolt = <1350000>;
151 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
152 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
153 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
156 regulator-state-mem {
157 regulator-on-in-suspend;
158 regulator-suspend-min-microvolt=<1400000>;
159 regulator-suspend-max-microvolt=<1400000>;
160 regulator-changeable-in-suspend;
161 regulator-mode=<ACT8945A_REGULATOR_MODE_LOWPOWER>;
165 vdd_1v2_reg: REG_DCDC2 {
166 regulator-name = "VDD_1V2";
167 regulator-min-microvolt = <1100000>;
168 regulator-max-microvolt = <1300000>;
169 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
170 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
171 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
174 regulator-state-mem {
175 regulator-off-in-suspend;
179 vdd_3v3_reg: REG_DCDC3 {
180 regulator-name = "VDD_3V3";
181 regulator-min-microvolt = <3300000>;
182 regulator-max-microvolt = <3300000>;
183 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
184 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
185 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
188 regulator-state-mem {
189 regulator-off-in-suspend;
193 vdd_fuse_reg: REG_LDO1 {
194 regulator-name = "VDD_FUSE";
195 regulator-min-microvolt = <2500000>;
196 regulator-max-microvolt = <2500000>;
197 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
198 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
199 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
202 regulator-state-mem {
203 regulator-off-in-suspend;
207 vdd_3v3_lp_reg: REG_LDO2 {
208 regulator-name = "VDD_3V3_LP";
209 regulator-min-microvolt = <3300000>;
210 regulator-max-microvolt = <3300000>;
211 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
212 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
213 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
216 regulator-state-mem {
217 regulator-off-in-suspend;
221 vdd_led_reg: REG_LDO3 {
222 regulator-name = "VDD_LED";
223 regulator-min-microvolt = <3300000>;
224 regulator-max-microvolt = <3300000>;
225 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
226 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
227 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
230 regulator-state-mem {
231 regulator-off-in-suspend;
235 vdd_sdhc_1v8_reg: REG_LDO4 {
236 regulator-name = "VDD_SDHC_1V8";
237 regulator-min-microvolt = <1800000>;
238 regulator-max-microvolt = <1800000>;
239 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
240 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
241 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
244 regulator-state-mem {
245 regulator-off-in-suspend;
251 compatible = "active-semi,act8945a-charger";
252 pinctrl-names = "default";
253 pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
254 interrupt-parent = <&pioA>;
255 interrupts = <PIN_PB13 IRQ_TYPE_EDGE_RISING>;
257 active-semi,chglev-gpios = <&pioA PIN_PA12 GPIO_ACTIVE_HIGH>;
258 active-semi,lbo-gpios = <&pioA PIN_PC8 GPIO_ACTIVE_LOW>;
259 active-semi,input-voltage-threshold-microvolt = <6600>;
260 active-semi,precondition-timeout = <40>;
261 active-semi,total-timeout = <3>;
268 pinctrl-names = "default";
269 pinctrl-0 = <&pinctrl_pwm0_pwm2_default>;
270 status = "disabled"; /* conflict with leds */
273 flx0: flexcom@f8034000 {
274 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
275 status = "disabled"; /* conflict with ISC_D2 & ISC_D3 data pins */
278 compatible = "atmel,at91sam9260-usart";
280 interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;
281 clocks = <&pmc PMC_TYPE_PERIPHERAL 19>;
282 clock-names = "usart";
283 pinctrl-names = "default";
284 pinctrl-0 = <&pinctrl_flx0_default>;
285 atmel,fifo-size = <32>;
291 atmel,shdwc-debouncer = <976>;
292 atmel,wakeup-rtc-timer;
296 atmel,wakeup-type = "low";
305 pinctrl-names = "default";
306 pinctrl-0 = <&pinctrl_i2s0_default>;
307 status = "disabled"; /* conflict with can0 */
311 pinctrl-names = "default";
312 pinctrl-0 = <&pinctrl_can0_default>;
316 uart3: serial@fc008000 {
319 pinctrl-names = "default";
320 pinctrl-0 = <&pinctrl_uart3_default>;
324 flx4: flexcom@fc018000 {
325 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
329 compatible = "atmel,sama5d2-i2c";
331 interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
333 dma-names = "tx", "rx";
334 #address-cells = <1>;
336 clocks = <&pmc PMC_TYPE_PERIPHERAL 23>;
337 pinctrl-names = "default", "gpio";
338 pinctrl-0 = <&pinctrl_flx4_default>;
339 pinctrl-1 = <&pinctrl_flx4_gpio>;
340 sda-gpios = <&pioA PIN_PD12 GPIO_ACTIVE_HIGH>;
341 scl-gpios = <&pioA PIN_PD13 GPIO_ACTIVE_HIGH>;
342 atmel,fifo-size = <16>;
345 i2c-digital-filter-width-ns = <35>;
352 pinctrl-names = "default", "gpio";
353 pinctrl-0 = <&pinctrl_i2c1_default>;
356 i2c-digital-filter-width-ns = <35>;
357 pinctrl-1 = <&pinctrl_i2c1_gpio>;
358 sda-gpios = <&pioA PIN_PD4 GPIO_ACTIVE_HIGH>;
359 scl-gpios = <&pioA PIN_PD5 GPIO_ACTIVE_HIGH>;
363 compatible = "atmel,24c02";
370 vddana-supply = <&vdd_3v3_lp_reg>;
371 vref-supply = <&vdd_3v3_lp_reg>;
372 pinctrl-names = "default";
373 pinctrl-0 = <&pinctrl_adc_default &pinctrl_adtrg_default>;
379 * There is no real pinmux for ADC, if the pin
380 * is not requested by another peripheral then
381 * the muxing is done when channel is enabled.
382 * Requesting pins for ADC is GPIO is
383 * encouraged to prevent conflicts and to
384 * disable bias in order to be in the same
385 * state when the pin is not muxed to the adc.
387 pinctrl_adc_default: adc_default {
388 pinmux = <PIN_PD23__GPIO>;
392 pinctrl_can0_default: can0_default {
393 pinmux = <PIN_PC10__CANTX0>,
398 pinctrl_can1_default: can1_default {
399 pinmux = <PIN_PC26__CANTX1>,
405 * The ADTRG pin can work on any edge type.
406 * In here it's being pulled up, so need to
407 * connect it to ground to get an edge e.g.
408 * Trigger can be configured on falling, rise
409 * or any edge, and the pull-up can be changed
410 * to pull-down or left floating according to
413 pinctrl_adtrg_default: adtrg_default {
414 pinmux = <PIN_PD31__ADTRG>;
418 pinctrl_charger_chglev: charger_chglev {
419 pinmux = <PIN_PA12__GPIO>;
423 pinctrl_charger_irq: charger_irq {
424 pinmux = <PIN_PB13__GPIO>;
428 pinctrl_charger_lbo: charger_lbo {
429 pinmux = <PIN_PC8__GPIO>;
433 pinctrl_classd_default: classd_default {
434 pinmux = <PIN_PB1__CLASSD_R0>,
435 <PIN_PB2__CLASSD_R1>,
436 <PIN_PB3__CLASSD_R2>,
437 <PIN_PB4__CLASSD_R3>;
441 pinctrl_flx0_default: flx0_default {
442 pinmux = <PIN_PB28__FLEXCOM0_IO0>,
443 <PIN_PB29__FLEXCOM0_IO1>;
447 pinctrl_flx4_default: flx4_default {
448 pinmux = <PIN_PD12__FLEXCOM4_IO0>,
449 <PIN_PD13__FLEXCOM4_IO1>;
453 pinctrl_flx4_gpio: flx4_gpio {
454 pinmux = <PIN_PD12__GPIO>,
459 pinctrl_i2c0_default: i2c0_default {
460 pinmux = <PIN_PD21__TWD0>,
465 pinctrl_i2c0_gpio: i2c0_gpio {
466 pinmux = <PIN_PD21__GPIO>,
471 pinctrl_i2c1_default: i2c1_default {
472 pinmux = <PIN_PD4__TWD1>,
477 pinctrl_i2c1_gpio: i2c1_gpio {
478 pinmux = <PIN_PD4__GPIO>,
483 pinctrl_i2s0_default: i2s0_default {
484 pinmux = <PIN_PC1__I2SC0_CK>,
485 <PIN_PC2__I2SC0_MCK>,
487 <PIN_PC4__I2SC0_DI0>,
488 <PIN_PC5__I2SC0_DO0>;
492 pinctrl_i2s1_default: i2s1_default {
493 pinmux = <PIN_PA15__I2SC1_CK>,
494 <PIN_PA14__I2SC1_MCK>,
495 <PIN_PA16__I2SC1_WS>,
496 <PIN_PA17__I2SC1_DI0>,
497 <PIN_PA18__I2SC1_DO0>;
501 pinctrl_key_gpio_default: key_gpio_default {
502 pinmux = <PIN_PB9__GPIO>;
506 pinctrl_led_gpio_default: led_gpio_default {
507 pinmux = <PIN_PB0__GPIO>,
513 pinctrl_macb0_default: macb0_default {
514 pinmux = <PIN_PB14__GTXCK>,
527 pinctrl_macb0_phy_irq: macb0_phy_irq {
528 pinmux = <PIN_PC9__GPIO>;
532 pinctrl_pdmic_default: pdmic_default {
533 pinmux = <PIN_PB26__PDMIC_DAT>,
534 <PIN_PB27__PDMIC_CLK>;
538 pinctrl_sdmmc0_default: sdmmc0_default {
540 pinmux = <PIN_PA1__SDMMC0_CMD>,
541 <PIN_PA2__SDMMC0_DAT0>,
542 <PIN_PA3__SDMMC0_DAT1>,
543 <PIN_PA4__SDMMC0_DAT2>,
544 <PIN_PA5__SDMMC0_DAT3>,
545 <PIN_PA6__SDMMC0_DAT4>,
546 <PIN_PA7__SDMMC0_DAT5>,
547 <PIN_PA8__SDMMC0_DAT6>,
548 <PIN_PA9__SDMMC0_DAT7>;
553 pinmux = <PIN_PA0__SDMMC0_CK>,
554 <PIN_PA10__SDMMC0_RSTN>,
555 <PIN_PA11__SDMMC0_VDDSEL>,
556 <PIN_PA13__SDMMC0_CD>;
561 pinctrl_sdmmc1_default: sdmmc1_default {
563 pinmux = <PIN_PA28__SDMMC1_CMD>,
564 <PIN_PA18__SDMMC1_DAT0>,
565 <PIN_PA19__SDMMC1_DAT1>,
566 <PIN_PA20__SDMMC1_DAT2>,
567 <PIN_PA21__SDMMC1_DAT3>;
572 pinmux = <PIN_PA22__SDMMC1_CK>,
573 <PIN_PA30__SDMMC1_CD>;
578 pinctrl_spi0_default: spi0_default {
579 pinmux = <PIN_PA14__SPI0_SPCK>,
580 <PIN_PA15__SPI0_MOSI>,
581 <PIN_PA16__SPI0_MISO>,
582 <PIN_PA17__SPI0_NPCS0>;
586 pinctrl_uart1_default: uart1_default {
587 pinmux = <PIN_PD2__URXD1>,
592 pinctrl_uart3_default: uart3_default {
593 pinmux = <PIN_PB11__URXD3>,
598 pinctrl_usb_default: usb_default {
599 pinmux = <PIN_PB10__GPIO>;
603 pinctrl_usba_vbus: usba_vbus {
604 pinmux = <PIN_PA31__GPIO>;
608 pinctrl_pwm0_pwm2_default: pwm0_pwm2_default {
609 pinmux = <PIN_PB5__PWMH2>,
615 classd: classd@fc048000 {
616 pinctrl-names = "default";
617 pinctrl-0 = <&pinctrl_classd_default>;
618 atmel,pwm-type = "diff";
619 atmel,non-overlap-time = <10>;
624 pinctrl-names = "default";
625 pinctrl-0 = <&pinctrl_i2s1_default>;
626 status = "disabled"; /* conflict with spi0, sdmmc1 */
630 pinctrl-names = "default";
631 pinctrl-0 = <&pinctrl_can1_default>;
638 compatible = "gpio-keys";
640 pinctrl-names = "default";
641 pinctrl-0 = <&pinctrl_key_gpio_default>;
645 gpios = <&pioA PIN_PB9 GPIO_ACTIVE_LOW>;
646 linux,code = <0x104>;
652 compatible = "gpio-leds";
653 pinctrl-names = "default";
654 pinctrl-0 = <&pinctrl_led_gpio_default>;
655 status = "okay"; /* conflict with pwm0 */
659 gpios = <&pioA PIN_PB6 GPIO_ACTIVE_LOW>;
665 gpios = <&pioA PIN_PB5 GPIO_ACTIVE_LOW>;
670 gpios = <&pioA PIN_PB0 GPIO_ACTIVE_LOW>;
671 linux,default-trigger = "heartbeat";