1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * at91-sama5d27_wlsom1.dtsi - Device Tree file for SAMA5D27 WLSOM1
5 * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries
7 * Author: Nicolas Ferre <nicolas.ferre@microcihp.com>
8 * Author: Eugen Hristev <eugen.hristev@microcihp.com>
10 #include "sama5d2.dtsi"
11 #include "sama5d2-pinfunc.h"
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/mfd/atmel-flexcom.h>
14 #include <dt-bindings/pinctrl/at91.h>
17 model = "Microchip SAMA5D27 WLSOM1";
18 compatible = "microchip,sama5d27-wlsom1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
26 clock-frequency = <32768>;
30 clock-frequency = <24000000>;
36 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
39 pinctrl-0 = <&pinctrl_flx1_default>;
40 pinctrl-names = "default";
45 pinctrl-0 = <&pinctrl_i2c0_default>;
46 pinctrl-names = "default";
52 pinctrl-names = "default";
53 pinctrl-0 = <&pinctrl_i2c1_default>;
57 compatible = "microchip,mcp16502";
60 lpm-gpios = <&pioBU 0 GPIO_ACTIVE_LOW>;
64 regulator-name = "VDD_IO";
65 regulator-min-microvolt = <1200000>;
66 regulator-max-microvolt = <3700000>;
67 regulator-initial-mode = <2>;
68 regulator-allowed-modes = <2>, <4>;
71 regulator-state-standby {
72 regulator-on-in-suspend;
77 regulator-off-in-suspend;
83 regulator-name = "VDD_DDR";
84 regulator-min-microvolt = <600000>;
85 regulator-max-microvolt = <1850000>;
86 regulator-initial-mode = <2>;
87 regulator-allowed-modes = <2>, <4>;
90 regulator-state-standby {
91 regulator-on-in-suspend;
92 regulator-suspend-microvolt = <1200000>;
93 regulator-changeable-in-suspend;
98 regulator-on-in-suspend;
99 regulator-suspend-microvolt = <1200000>;
100 regulator-changeable-in-suspend;
101 regulator-mode = <4>;
106 regulator-name = "VDD_CORE";
107 regulator-min-microvolt = <600000>;
108 regulator-max-microvolt = <1850000>;
109 regulator-initial-mode = <2>;
110 regulator-allowed-modes = <2>, <4>;
113 regulator-state-standby {
114 regulator-on-in-suspend;
115 regulator-mode = <4>;
118 regulator-state-mem {
119 regulator-off-in-suspend;
120 regulator-mode = <4>;
125 regulator-name = "VDD_OTHER";
126 regulator-min-microvolt = <1800000>;
127 regulator-max-microvolt = <1800000>;
128 regulator-initial-mode = <2>;
129 regulator-allowed-modes = <2>, <4>;
132 regulator-state-standby {
133 regulator-on-in-suspend;
134 regulator-suspend-microvolt = <1800000>;
135 regulator-changeable-in-suspend;
136 regulator-mode = <4>;
139 regulator-state-mem {
140 regulator-on-in-suspend;
141 regulator-suspend-microvolt = <1800000>;
142 regulator-changeable-in-suspend;
143 regulator-mode = <4>;
148 regulator-name = "LDO1";
149 regulator-min-microvolt = <1200000>;
150 regulator-max-microvolt = <3700000>;
153 regulator-state-standby {
154 regulator-on-in-suspend;
157 regulator-state-mem {
158 regulator-off-in-suspend;
163 regulator-name = "LDO2";
164 regulator-min-microvolt = <1200000>;
165 regulator-max-microvolt = <3700000>;
168 regulator-state-standby {
169 regulator-on-in-suspend;
172 regulator-state-mem {
173 regulator-off-in-suspend;
181 pinctrl-names = "default";
182 pinctrl-0 = <&pinctrl_macb0_default>;
187 interrupt-parent = <&pioA>;
188 interrupts = <PIN_PB24 IRQ_TYPE_LEVEL_LOW>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&pinctrl_macb0_phy_irq>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&pinctrl_qspi1_default>;
203 qspi1_flash: spi_flash@0 {
204 #address-cells = <1>;
206 compatible = "jedec,spi-nor";
208 spi-max-frequency = <80000000>;
209 spi-rx-bus-width = <4>;
210 spi-tx-bus-width = <4>;
215 label = "at91bootstrap";
220 label = "bootloader";
221 reg = <0x40000 0xc0000>;
224 bootloaderenvred@100000 {
225 label = "bootloader env redundant";
226 reg = <0x100000 0x40000>;
229 bootloaderenv@140000 {
230 label = "bootloader env";
231 reg = <0x140000 0x40000>;
235 label = "device tree";
236 reg = <0x180000 0x80000>;
241 reg = <0x200000 0x600000>;
247 pinctrl_flx1_default: flx1_usart_default {
248 pinmux = <PIN_PA24__FLEXCOM1_IO0>,
249 <PIN_PA23__FLEXCOM1_IO1>,
250 <PIN_PA25__FLEXCOM1_IO3>,
251 <PIN_PA26__FLEXCOM1_IO4>;
255 pinctrl_i2c0_default: i2c0_default {
256 pinmux = <PIN_PD21__TWD0>,
261 pinctrl_i2c1_default: i2c1_default {
262 pinmux = <PIN_PD19__TWD1>,
267 pinctrl_macb0_default: macb0_default {
268 pinmux = <PIN_PB14__GTXCK>,
281 pinctrl_macb0_phy_irq: macb0_phy_irq {
282 pinmux = <PIN_PB24__GPIO>;
286 pinctrl_qspi1_default: qspi1_default {
287 pinmux = <PIN_PB5__QSPI1_SCK>,
289 <PIN_PB7__QSPI1_IO0>,
290 <PIN_PB8__QSPI1_IO1>,
291 <PIN_PB9__QSPI1_IO2>,
292 <PIN_PB10__QSPI1_IO3>;