hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/at91-sama5d4_xplained.dts
....@@ -1,46 +1,9 @@
1
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
12 /*
23 * at91-sama5d4_xplained.dts - Device Tree file for SAMA5D4 Xplained board
34 *
45 * Copyright (C) 2015 Atmel,
56 * 2015 Josh Wu <josh.wu@atmel.com>
6
- *
7
- * This file is dual-licensed: you can use it either under the terms
8
- * of the GPL or the X11 license, at your option. Note that this dual
9
- * licensing only applies to this file, and not this project as a
10
- * whole.
11
- *
12
- * a) This file is free software; you can redistribute it and/or
13
- * modify it under the terms of the GNU General Public License as
14
- * published by the Free Software Foundation; either version 2 of the
15
- * License, or (at your option) any later version.
16
- *
17
- * This file is distributed in the hope that it will be useful,
18
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- * GNU General Public License for more details.
21
- *
22
- * Or, alternatively,
23
- *
24
- * b) Permission is hereby granted, free of charge, to any person
25
- * obtaining a copy of this software and associated documentation
26
- * files (the "Software"), to deal in the Software without
27
- * restriction, including without limitation the rights to use,
28
- * copy, modify, merge, publish, distribute, sublicense, and/or
29
- * sell copies of the Software, and to permit persons to whom the
30
- * Software is furnished to do so, subject to the following
31
- * conditions:
32
- *
33
- * The above copyright notice and this permission notice shall be
34
- * included in all copies or substantial portions of the Software.
35
- *
36
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38
- * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43
- * OTHER DEALINGS IN THE SOFTWARE.
447 */
458 /dts-v1/;
469 #include "sama5d4.dtsi"
....@@ -53,7 +16,7 @@
5316 stdout-path = "serial0:115200n8";
5417 };
5518
56
- memory {
19
+ memory@20000000 {
5720 reg = <0x20000000 0x20000000>;
5821 };
5922
....@@ -86,6 +49,7 @@
8649 };
8750
8851 i2c0: i2c@f8014000 {
52
+ i2c-digital-filter;
8953 status = "okay";
9054 };
9155
....@@ -126,6 +90,8 @@
12690 };
12791
12892 spi1: spi@fc018000 {
93
+ pinctrl-names = "default";
94
+ pinctrl-0 = <&pinctrl_spi1_cs>;
12995 cs-gpios = <&pioB 21 0>;
13096 status = "okay";
13197 };
....@@ -183,6 +149,19 @@
183149 atmel,pins =
184150 <AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
185151 };
152
+ pinctrl_spi1_cs: spi1_cs_default {
153
+ atmel,pins =
154
+ <AT91_PIOB 21 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
155
+ };
156
+ pinctrl_gpio_leds: gpio_leds_default {
157
+ atmel,pins =
158
+ <AT91_PIOD 30 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
159
+ AT91_PIOE 15 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
160
+ };
161
+ pinctrl_vcc_mmc1_reg: vcc_mmc1_reg {
162
+ atmel,pins =
163
+ <AT91_PIOE 4 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
164
+ };
186165 };
187166 };
188167 };
....@@ -239,12 +218,17 @@
239218
240219 bootloader@40000 {
241220 label = "bootloader";
242
- reg = <0x40000 0x80000>;
221
+ reg = <0x40000 0xc0000>;
243222 };
244223
245
- bootloaderenv@c0000 {
224
+ bootloaderenvred@100000 {
225
+ label = "bootloader env redundant";
226
+ reg = <0x100000 0x40000>;
227
+ };
228
+
229
+ bootloaderenv@140000 {
246230 label = "bootloader env";
247
- reg = <0xc0000 0xc0000>;
231
+ reg = <0x140000 0x40000>;
248232 };
249233
250234 dtb@180000 {
....@@ -283,6 +267,8 @@
283267
284268 leds {
285269 compatible = "gpio-leds";
270
+ pinctrl-names = "default";
271
+ pinctrl-0 = <&pinctrl_gpio_leds>;
286272 status = "okay";
287273
288274 d8 {
....@@ -309,6 +295,8 @@
309295
310296 vcc_mmc1_reg: fixedregulator_mmc1 {
311297 compatible = "regulator-fixed";
298
+ pinctrl-names = "default";
299
+ pinctrl-0 = <&pinctrl_vcc_mmc1_reg>;
312300 gpio = <&pioE 4 GPIO_ACTIVE_LOW>;
313301 regulator-name = "VDD MCI1";
314302 regulator-min-microvolt = <3300000>;