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";
22 clock-frequency = <32768>;
26 clock-frequency = <24000000>;
32 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
35 compatible = "atmel,at91sam9260-usart";
37 interrupts = <20 IRQ_TYPE_LEVEL_HIGH 7>;
39 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
40 AT91_XDMAC_DT_PERID(13))>,
42 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
43 AT91_XDMAC_DT_PERID(14))>;
44 dma-names = "tx", "rx";
45 clocks = <&pmc PMC_TYPE_PERIPHERAL 20>;
46 clock-names = "usart";
47 pinctrl-0 = <&pinctrl_flx1_default>;
48 pinctrl-names = "default";
53 pinctrl-0 = <&pinctrl_i2c0_default>;
54 pinctrl-names = "default";
60 pinctrl-names = "default";
61 pinctrl-0 = <&pinctrl_i2c1_default>;
65 compatible = "microchip,mcp16502";
68 lpm-gpios = <&pioBU 0 GPIO_ACTIVE_LOW>;
72 regulator-name = "VDD_IO";
73 regulator-min-microvolt = <1200000>;
74 regulator-max-microvolt = <3700000>;
75 regulator-initial-mode = <2>;
76 regulator-allowed-modes = <2>, <4>;
79 regulator-state-standby {
80 regulator-on-in-suspend;
85 regulator-off-in-suspend;
91 regulator-name = "VDD_DDR";
92 regulator-min-microvolt = <600000>;
93 regulator-max-microvolt = <1850000>;
94 regulator-initial-mode = <2>;
95 regulator-allowed-modes = <2>, <4>;
98 regulator-state-standby {
99 regulator-on-in-suspend;
100 regulator-suspend-microvolt = <1200000>;
101 regulator-changeable-in-suspend;
102 regulator-mode = <4>;
105 regulator-state-mem {
106 regulator-on-in-suspend;
107 regulator-suspend-microvolt = <1200000>;
108 regulator-changeable-in-suspend;
109 regulator-mode = <4>;
114 regulator-name = "VDD_CORE";
115 regulator-min-microvolt = <600000>;
116 regulator-max-microvolt = <1850000>;
117 regulator-initial-mode = <2>;
118 regulator-allowed-modes = <2>, <4>;
121 regulator-state-standby {
122 regulator-on-in-suspend;
123 regulator-mode = <4>;
126 regulator-state-mem {
127 regulator-off-in-suspend;
128 regulator-mode = <4>;
133 regulator-name = "VDD_OTHER";
134 regulator-min-microvolt = <1800000>;
135 regulator-max-microvolt = <1800000>;
136 regulator-initial-mode = <2>;
137 regulator-allowed-modes = <2>, <4>;
140 regulator-state-standby {
141 regulator-on-in-suspend;
142 regulator-suspend-microvolt = <1800000>;
143 regulator-changeable-in-suspend;
144 regulator-mode = <4>;
147 regulator-state-mem {
148 regulator-on-in-suspend;
149 regulator-suspend-microvolt = <1800000>;
150 regulator-changeable-in-suspend;
151 regulator-mode = <4>;
156 regulator-name = "LDO1";
157 regulator-min-microvolt = <1200000>;
158 regulator-max-microvolt = <3700000>;
161 regulator-state-standby {
162 regulator-on-in-suspend;
165 regulator-state-mem {
166 regulator-off-in-suspend;
171 regulator-name = "LDO2";
172 regulator-min-microvolt = <1200000>;
173 regulator-max-microvolt = <3700000>;
176 regulator-state-standby {
177 regulator-on-in-suspend;
180 regulator-state-mem {
181 regulator-off-in-suspend;
189 pinctrl-names = "default";
190 pinctrl-0 = <&pinctrl_macb0_default>;
195 interrupt-parent = <&pioA>;
196 interrupts = <PIN_PB24 IRQ_TYPE_LEVEL_LOW>;
197 pinctrl-names = "default";
198 pinctrl-0 = <&pinctrl_macb0_phy_irq>;
207 pinctrl-names = "default";
208 pinctrl-0 = <&pinctrl_qspi1_default>;
211 qspi1_flash: spi_flash@0 {
212 #address-cells = <1>;
214 compatible = "jedec,spi-nor";
216 spi-max-frequency = <80000000>;
217 spi-rx-bus-width = <4>;
218 spi-tx-bus-width = <4>;
223 label = "at91bootstrap";
228 label = "bootloader";
229 reg = <0x40000 0xc0000>;
232 bootloaderenvred@100000 {
233 label = "bootloader env redundant";
234 reg = <0x100000 0x40000>;
237 bootloaderenv@140000 {
238 label = "bootloader env";
239 reg = <0x140000 0x40000>;
243 label = "device tree";
244 reg = <0x180000 0x80000>;
249 reg = <0x200000 0x600000>;
255 pinctrl_flx1_default: flx1_usart_default {
256 pinmux = <PIN_PA24__FLEXCOM1_IO0>,
257 <PIN_PA23__FLEXCOM1_IO1>,
258 <PIN_PA25__FLEXCOM1_IO3>,
259 <PIN_PA26__FLEXCOM1_IO4>;
263 pinctrl_i2c0_default: i2c0_default {
264 pinmux = <PIN_PD21__TWD0>,
269 pinctrl_i2c1_default: i2c1_default {
270 pinmux = <PIN_PD19__TWD1>,
275 pinctrl_macb0_default: macb0_default {
276 pinmux = <PIN_PB14__GTXCK>,
289 pinctrl_macb0_phy_irq: macb0_phy_irq {
290 pinmux = <PIN_PB24__GPIO>;
294 pinctrl_qspi1_default: qspi1_default {
295 pinmux = <PIN_PB5__QSPI1_SCK>,
297 <PIN_PB7__QSPI1_IO0>,
298 <PIN_PB8__QSPI1_IO1>,
299 <PIN_PB9__QSPI1_IO2>,
300 <PIN_PB10__QSPI1_IO3>;