hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
12 /*
23 * at91-sama5d27_som1_ek.dts - Device Tree file for SAMA5D27-SOM1-EK board
34 *
....@@ -5,49 +6,12 @@
56 * 2016 Nicolas Ferre <nicolas.ferre@atmel.com>
67 * 2017 Cristian Birsan <cristian.birsan@microchip.com>
78 * 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.
469 */
4710 /dts-v1/;
4811 #include "at91-sama5d27_som1.dtsi"
4912 #include <dt-bindings/mfd/atmel-flexcom.h>
5013 #include <dt-bindings/gpio/gpio.h>
14
+#include <dt-bindings/input/input.h>
5115
5216 / {
5317 model = "Atmel SAMA5D27 SOM1 EK";
....@@ -58,7 +22,7 @@
5822 serial1 = &uart4; /* mikro BUS 1 */
5923 serial2 = &uart2; /* mikro BUS 2 */
6024 i2c1 = &i2c1;
61
- i2c2 = &i2c2;
25
+ i2c2 = &i2c3;
6226 };
6327
6428 chosen {
....@@ -90,6 +54,7 @@
9054
9155 sdmmc0: sdio-host@a0000000 {
9256 bus-width = <8>;
57
+ mmc-ddr-3_3v;
9358 pinctrl-names = "default";
9459 pinctrl-0 = <&pinctrl_sdmmc0_default>;
9560 status = "okay";
....@@ -106,6 +71,10 @@
10671 isc: isc@f0008000 {
10772 pinctrl-names = "default";
10873 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";
10978 };
11079
11180 spi0: spi@f8000000 {
....@@ -156,24 +125,19 @@
156125 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
157126 status = "okay";
158127
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 {
163129 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>;
168133 pinctrl-names = "default";
169134 pinctrl-0 = <&pinctrl_mikrobus_i2c>;
170
- atmel,fifo-size = <16>;
171135 status = "okay";
172136 };
173137 };
174138
175139 shdwc@f8048010 {
176
- atmel,shdwc-debouncer = <976>;
140
+ debounce-delay-us = <976>;
177141 atmel,wakeup-rtc-timer;
178142
179143 input@0 {
....@@ -206,27 +170,17 @@
206170 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
207171 status = "disabled";
208172
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>;
215175 pinctrl-names = "default";
216176 pinctrl-0 = <&pinctrl_flx3_default>;
217
- atmel,fifo-size = <32>;
218177 status = "disabled"; /* Conflict with isc. */
219178 };
220179
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>;
227182 pinctrl-names = "default";
228183 pinctrl-0 = <&pinctrl_flx3_default>;
229
- atmel,fifo-size = <16>;
230184 status = "disabled"; /* Conflict with isc. */
231185 };
232186 };
....@@ -235,51 +189,43 @@
235189 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
236190 status = "okay";
237191
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>;
244194 pinctrl-names = "default";
245195 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. */
248197 };
249198
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>;
256201 pinctrl-names = "default";
257202 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. */
260204 };
261205
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 {
266207 dmas = <0>, <0>;
267
- dma-names = "tx", "rx";
268
- #address-cells = <1>;
269
- #size-cells = <0>;
270
- clocks = <&flx4_clk>;
271208 pinctrl-names = "default";
272209 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. */
275211 };
276212 };
277213
278214 i2c1: i2c@fc028000 {
279215 dmas = <0>, <0>;
216
+ i2c-analog-filter;
217
+ i2c-digital-filter;
218
+ i2c-digital-filter-width-ns = <35>;
280219 pinctrl-names = "default";
281220 pinctrl-0 = <&pinctrl_i2c1_default>;
282221 status = "okay";
222
+ };
223
+
224
+ adc: adc@fc030000 {
225
+ vddana-supply = <&vddana>;
226
+ vref-supply = <&advref>;
227
+
228
+ status = "disabled";
283229 };
284230
285231 pinctrl@fc038000 {
....@@ -521,7 +467,7 @@
521467 pb4 {
522468 label = "USER";
523469 gpios = <&pioA PIN_PA29 GPIO_ACTIVE_LOW>;
524
- linux,code = <0x104>;
470
+ linux,code = <KEY_PROG1>;
525471 wakeup-source;
526472 };
527473 };
....@@ -548,4 +494,39 @@
548494 linux,default-trigger = "heartbeat";
549495 };
550496 };
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
+ };
551532 };