.. | .. |
---|
| 1 | +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
---|
1 | 2 | /* |
---|
2 | 3 | * at91-sama5d27_som1_ek.dts - Device Tree file for SAMA5D27-SOM1-EK board |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * 2016 Nicolas Ferre <nicolas.ferre@atmel.com> |
---|
6 | 7 | * 2017 Cristian Birsan <cristian.birsan@microchip.com> |
---|
7 | 8 | * 2017 Claudiu Beznea <claudiu.beznea@microchip.com> |
---|
8 | | - * |
---|
9 | | - * This file is dual-licensed: you can use it either under the terms |
---|
10 | | - * of the GPL or the X11 license, at your option. Note that this dual |
---|
11 | | - * licensing only applies to this file, and not this project as a |
---|
12 | | - * whole. |
---|
13 | | - * |
---|
14 | | - * a) This file is free software; you can redistribute it and/or |
---|
15 | | - * modify it under the terms of the GNU General Public License as |
---|
16 | | - * published by the Free Software Foundation; either version 2 of the |
---|
17 | | - * License, or (at your option) any later version. |
---|
18 | | - * |
---|
19 | | - * This file is distributed in the hope that it will be useful, |
---|
20 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
21 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
22 | | - * GNU General Public License for more details. |
---|
23 | | - * |
---|
24 | | - * Or, alternatively, |
---|
25 | | - * |
---|
26 | | - * b) Permission is hereby granted, free of charge, to any person |
---|
27 | | - * obtaining a copy of this software and associated documentation |
---|
28 | | - * files (the "Software"), to deal in the Software without |
---|
29 | | - * restriction, including without limitation the rights to use, |
---|
30 | | - * copy, modify, merge, publish, distribute, sublicense, and/or |
---|
31 | | - * sell copies of the Software, and to permit persons to whom the |
---|
32 | | - * Software is furnished to do so, subject to the following |
---|
33 | | - * conditions: |
---|
34 | | - * |
---|
35 | | - * The above copyright notice and this permission notice shall be |
---|
36 | | - * included in all copies or substantial portions of the Software. |
---|
37 | | - * |
---|
38 | | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
---|
39 | | - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
---|
40 | | - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
---|
41 | | - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
---|
42 | | - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
---|
43 | | - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
---|
44 | | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
---|
45 | | - * OTHER DEALINGS IN THE SOFTWARE. |
---|
46 | 9 | */ |
---|
47 | 10 | /dts-v1/; |
---|
48 | 11 | #include "at91-sama5d27_som1.dtsi" |
---|
49 | 12 | #include <dt-bindings/mfd/atmel-flexcom.h> |
---|
50 | 13 | #include <dt-bindings/gpio/gpio.h> |
---|
| 14 | +#include <dt-bindings/input/input.h> |
---|
51 | 15 | |
---|
52 | 16 | / { |
---|
53 | 17 | model = "Atmel SAMA5D27 SOM1 EK"; |
---|
.. | .. |
---|
58 | 22 | serial1 = &uart4; /* mikro BUS 1 */ |
---|
59 | 23 | serial2 = &uart2; /* mikro BUS 2 */ |
---|
60 | 24 | i2c1 = &i2c1; |
---|
61 | | - i2c2 = &i2c2; |
---|
| 25 | + i2c2 = &i2c3; |
---|
62 | 26 | }; |
---|
63 | 27 | |
---|
64 | 28 | chosen { |
---|
.. | .. |
---|
90 | 54 | |
---|
91 | 55 | sdmmc0: sdio-host@a0000000 { |
---|
92 | 56 | bus-width = <8>; |
---|
| 57 | + mmc-ddr-3_3v; |
---|
93 | 58 | pinctrl-names = "default"; |
---|
94 | 59 | pinctrl-0 = <&pinctrl_sdmmc0_default>; |
---|
95 | 60 | status = "okay"; |
---|
.. | .. |
---|
106 | 71 | isc: isc@f0008000 { |
---|
107 | 72 | pinctrl-names = "default"; |
---|
108 | 73 | pinctrl-0 = <&pinctrl_isc_base &pinctrl_isc_data_8bit &pinctrl_isc_data_9_10 &pinctrl_isc_data_11_12>; |
---|
| 74 | + }; |
---|
| 75 | + |
---|
| 76 | + qspi1: spi@f0024000 { |
---|
| 77 | + status = "okay"; |
---|
109 | 78 | }; |
---|
110 | 79 | |
---|
111 | 80 | spi0: spi@f8000000 { |
---|
.. | .. |
---|
156 | 125 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
---|
157 | 126 | status = "okay"; |
---|
158 | 127 | |
---|
159 | | - i2c2: i2c@600 { |
---|
160 | | - compatible = "atmel,sama5d2-i2c"; |
---|
161 | | - reg = <0x600 0x200>; |
---|
162 | | - interrupts = <20 IRQ_TYPE_LEVEL_HIGH 7>; |
---|
| 128 | + i2c3: i2c@600 { |
---|
163 | 129 | dmas = <0>, <0>; |
---|
164 | | - dma-names = "tx", "rx"; |
---|
165 | | - #address-cells = <1>; |
---|
166 | | - #size-cells = <0>; |
---|
167 | | - clocks = <&flx1_clk>; |
---|
| 130 | + i2c-analog-filter; |
---|
| 131 | + i2c-digital-filter; |
---|
| 132 | + i2c-digital-filter-width-ns = <35>; |
---|
168 | 133 | pinctrl-names = "default"; |
---|
169 | 134 | pinctrl-0 = <&pinctrl_mikrobus_i2c>; |
---|
170 | | - atmel,fifo-size = <16>; |
---|
171 | 135 | status = "okay"; |
---|
172 | 136 | }; |
---|
173 | 137 | }; |
---|
174 | 138 | |
---|
175 | 139 | shdwc@f8048010 { |
---|
176 | | - atmel,shdwc-debouncer = <976>; |
---|
| 140 | + debounce-delay-us = <976>; |
---|
177 | 141 | atmel,wakeup-rtc-timer; |
---|
178 | 142 | |
---|
179 | 143 | input@0 { |
---|
.. | .. |
---|
206 | 170 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>; |
---|
207 | 171 | status = "disabled"; |
---|
208 | 172 | |
---|
209 | | - uart7: serial@200 { |
---|
210 | | - compatible = "atmel,at91sam9260-usart"; |
---|
211 | | - reg = <0x200 0x200>; |
---|
212 | | - interrupts = <22 IRQ_TYPE_LEVEL_HIGH 7>; |
---|
213 | | - clocks = <&flx3_clk>; |
---|
214 | | - clock-names = "usart"; |
---|
| 173 | + uart8: serial@200 { |
---|
| 174 | + dmas = <0>, <0>; |
---|
215 | 175 | pinctrl-names = "default"; |
---|
216 | 176 | pinctrl-0 = <&pinctrl_flx3_default>; |
---|
217 | | - atmel,fifo-size = <32>; |
---|
218 | 177 | status = "disabled"; /* Conflict with isc. */ |
---|
219 | 178 | }; |
---|
220 | 179 | |
---|
221 | | - spi2: spi@400 { |
---|
222 | | - compatible = "atmel,at91rm9200-spi"; |
---|
223 | | - reg = <0x400 0x200>; |
---|
224 | | - interrupts = <22 IRQ_TYPE_LEVEL_HIGH 7>; |
---|
225 | | - clocks = <&flx3_clk>; |
---|
226 | | - clock-names = "spi_clk"; |
---|
| 180 | + spi5: spi@400 { |
---|
| 181 | + dmas = <0>, <0>; |
---|
227 | 182 | pinctrl-names = "default"; |
---|
228 | 183 | pinctrl-0 = <&pinctrl_flx3_default>; |
---|
229 | | - atmel,fifo-size = <16>; |
---|
230 | 184 | status = "disabled"; /* Conflict with isc. */ |
---|
231 | 185 | }; |
---|
232 | 186 | }; |
---|
.. | .. |
---|
235 | 189 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>; |
---|
236 | 190 | status = "okay"; |
---|
237 | 191 | |
---|
238 | | - uart6: serial@200 { |
---|
239 | | - compatible = "atmel,at91sam9260-usart"; |
---|
240 | | - reg = <0x200 0x200>; |
---|
241 | | - interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>; |
---|
242 | | - clocks = <&flx4_clk>; |
---|
243 | | - clock-names = "usart"; |
---|
| 192 | + uart9: serial@200 { |
---|
| 193 | + dmas = <0>, <0>; |
---|
244 | 194 | pinctrl-names = "default"; |
---|
245 | 195 | pinctrl-0 = <&pinctrl_flx4_default>; |
---|
246 | | - atmel,fifo-size = <32>; |
---|
247 | | - status = "disabled"; /* Conflict with spi3 and i2c3. */ |
---|
| 196 | + status = "disabled"; /* Conflict with spi6 and i2c6. */ |
---|
248 | 197 | }; |
---|
249 | 198 | |
---|
250 | | - spi3: spi@400 { |
---|
251 | | - compatible = "atmel,at91rm9200-spi"; |
---|
252 | | - reg = <0x400 0x200>; |
---|
253 | | - interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>; |
---|
254 | | - clocks = <&flx4_clk>; |
---|
255 | | - clock-names = "spi_clk"; |
---|
| 199 | + spi6: spi@400 { |
---|
| 200 | + dmas = <0>, <0>; |
---|
256 | 201 | pinctrl-names = "default"; |
---|
257 | 202 | pinctrl-0 = <&pinctrl_mikrobus_spi &pinctrl_mikrobus1_spi_cs &pinctrl_mikrobus2_spi_cs>; |
---|
258 | | - atmel,fifo-size = <16>; |
---|
259 | | - status = "okay"; /* Conflict with uart6 and i2c3. */ |
---|
| 203 | + status = "okay"; /* Conflict with uart5 and i2c6. */ |
---|
260 | 204 | }; |
---|
261 | 205 | |
---|
262 | | - i2c3: i2c@600 { |
---|
263 | | - compatible = "atmel,sama5d2-i2c"; |
---|
264 | | - reg = <0x600 0x200>; |
---|
265 | | - interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>; |
---|
| 206 | + i2c6: i2c@600 { |
---|
266 | 207 | dmas = <0>, <0>; |
---|
267 | | - dma-names = "tx", "rx"; |
---|
268 | | - #address-cells = <1>; |
---|
269 | | - #size-cells = <0>; |
---|
270 | | - clocks = <&flx4_clk>; |
---|
271 | 208 | pinctrl-names = "default"; |
---|
272 | 209 | pinctrl-0 = <&pinctrl_flx4_default>; |
---|
273 | | - atmel,fifo-size = <16>; |
---|
274 | | - status = "disabled"; /* Conflict with uart6 and spi3. */ |
---|
| 210 | + status = "disabled"; /* Conflict with uart5 and spi6. */ |
---|
275 | 211 | }; |
---|
276 | 212 | }; |
---|
277 | 213 | |
---|
278 | 214 | i2c1: i2c@fc028000 { |
---|
279 | 215 | dmas = <0>, <0>; |
---|
| 216 | + i2c-analog-filter; |
---|
| 217 | + i2c-digital-filter; |
---|
| 218 | + i2c-digital-filter-width-ns = <35>; |
---|
280 | 219 | pinctrl-names = "default"; |
---|
281 | 220 | pinctrl-0 = <&pinctrl_i2c1_default>; |
---|
282 | 221 | status = "okay"; |
---|
| 222 | + }; |
---|
| 223 | + |
---|
| 224 | + adc: adc@fc030000 { |
---|
| 225 | + vddana-supply = <&vddana>; |
---|
| 226 | + vref-supply = <&advref>; |
---|
| 227 | + |
---|
| 228 | + status = "disabled"; |
---|
283 | 229 | }; |
---|
284 | 230 | |
---|
285 | 231 | pinctrl@fc038000 { |
---|
.. | .. |
---|
521 | 467 | pb4 { |
---|
522 | 468 | label = "USER"; |
---|
523 | 469 | gpios = <&pioA PIN_PA29 GPIO_ACTIVE_LOW>; |
---|
524 | | - linux,code = <0x104>; |
---|
| 470 | + linux,code = <KEY_PROG1>; |
---|
525 | 471 | wakeup-source; |
---|
526 | 472 | }; |
---|
527 | 473 | }; |
---|
.. | .. |
---|
548 | 494 | linux,default-trigger = "heartbeat"; |
---|
549 | 495 | }; |
---|
550 | 496 | }; |
---|
| 497 | + |
---|
| 498 | + vddin_3v3: fixed-regulator-vddin_3v3 { |
---|
| 499 | + compatible = "regulator-fixed"; |
---|
| 500 | + |
---|
| 501 | + regulator-name = "VDDIN_3V3"; |
---|
| 502 | + regulator-min-microvolt = <3300000>; |
---|
| 503 | + regulator-max-microvolt = <3300000>; |
---|
| 504 | + regulator-always-on; |
---|
| 505 | + regulator-boot-on; |
---|
| 506 | + status = "okay"; |
---|
| 507 | + }; |
---|
| 508 | + |
---|
| 509 | + vddana: fixed-regulator-vddana { |
---|
| 510 | + compatible = "regulator-fixed"; |
---|
| 511 | + |
---|
| 512 | + regulator-name = "VDDANA"; |
---|
| 513 | + regulator-min-microvolt = <3300000>; |
---|
| 514 | + regulator-max-microvolt = <3300000>; |
---|
| 515 | + regulator-always-on; |
---|
| 516 | + regulator-boot-on; |
---|
| 517 | + vin-supply = <&vddin_3v3>; |
---|
| 518 | + status = "okay"; |
---|
| 519 | + }; |
---|
| 520 | + |
---|
| 521 | + advref: fixed-regulator-advref { |
---|
| 522 | + compatible = "regulator-fixed"; |
---|
| 523 | + |
---|
| 524 | + regulator-name = "advref"; |
---|
| 525 | + regulator-min-microvolt = <3300000>; |
---|
| 526 | + regulator-max-microvolt = <3300000>; |
---|
| 527 | + regulator-always-on; |
---|
| 528 | + regulator-boot-on; |
---|
| 529 | + vin-supply = <&vddana>; |
---|
| 530 | + status = "okay"; |
---|
| 531 | + }; |
---|
551 | 532 | }; |
---|