hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/arch/arm/boot/dts/at91-sama5d3_xplained.dts
....@@ -1,13 +1,13 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * at91-sama5d3_xplained.dts - Device Tree file for the SAMA5D3 Xplained board
34 *
45 * Copyright (C) 2014 Atmel,
56 * 2014 Nicolas Ferre <nicolas.ferre@atmel.com>
6
- *
7
- * Licensed under GPLv2 or later.
87 */
98 /dts-v1/;
109 #include "sama5d36.dtsi"
10
+#include <dt-bindings/input/input.h>
1111
1212 / {
1313 model = "SAMA5D3 Xplained";
....@@ -17,7 +17,7 @@
1717 stdout-path = "serial0:115200n8";
1818 };
1919
20
- memory {
20
+ memory@20000000 {
2121 reg = <0x20000000 0x10000000>;
2222 };
2323
....@@ -57,6 +57,8 @@
5757 };
5858
5959 spi0: spi@f0004000 {
60
+ pinctrl-names = "default";
61
+ pinctrl-0 = <&pinctrl_spi0_cs>;
6062 cs-gpios = <&pioD 13 0>, <0>, <0>, <&pioD 16 0>;
6163 status = "okay";
6264 };
....@@ -129,7 +131,7 @@
129131 };
130132
131133 macb0: ethernet@f0028000 {
132
- phy-mode = "rgmii";
134
+ phy-mode = "rgmii-rxid";
133135 #address-cells = <1>;
134136 #size-cells = <0>;
135137 status = "okay";
....@@ -169,6 +171,8 @@
169171 };
170172
171173 spi1: spi@f8008000 {
174
+ pinctrl-names = "default";
175
+ pinctrl-0 = <&pinctrl_spi1_cs>;
172176 cs-gpios = <&pioC 25 0>;
173177 status = "okay";
174178 };
....@@ -248,6 +252,26 @@
248252 <AT91_PIOE 3 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
249253 AT91_PIOE 4 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
250254 };
255
+
256
+ pinctrl_gpio_leds: gpio_leds_default {
257
+ atmel,pins =
258
+ <AT91_PIOE 23 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
259
+ AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
260
+ };
261
+
262
+ pinctrl_spi0_cs: spi0_cs_default {
263
+ atmel,pins =
264
+ <AT91_PIOD 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
265
+ AT91_PIOD 16 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
266
+ };
267
+
268
+ pinctrl_spi1_cs: spi1_cs_default {
269
+ atmel,pins = <AT91_PIOC 25 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
270
+ };
271
+
272
+ pinctrl_vcc_mmc0_reg_gpio: vcc_mmc0_reg_gpio_default {
273
+ atmel,pins = <AT91_PIOE 2 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
274
+ };
251275 };
252276 };
253277 };
....@@ -304,12 +328,17 @@
304328
305329 bootloader@40000 {
306330 label = "bootloader";
307
- reg = <0x40000 0x80000>;
331
+ reg = <0x40000 0xc0000>;
308332 };
309333
310
- bootloaderenv@c0000 {
334
+ bootloaderenvred@100000 {
335
+ label = "bootloader env redundant";
336
+ reg = <0x100000 0x40000>;
337
+ };
338
+
339
+ bootloaderenv@140000 {
311340 label = "bootloader env";
312
- reg = <0xc0000 0xc0000>;
341
+ reg = <0x140000 0x40000>;
313342 };
314343
315344 dtb@180000 {
....@@ -334,6 +363,8 @@
334363
335364 vcc_mmc0_reg: fixedregulator_mmc0 {
336365 compatible = "regulator-fixed";
366
+ pinctrl-names = "default";
367
+ pinctrl-0 = <&pinctrl_vcc_mmc0_reg_gpio>;
337368 gpio = <&pioE 2 GPIO_ACTIVE_LOW>;
338369 regulator-name = "mmc0-card-supply";
339370 regulator-min-microvolt = <3300000>;
....@@ -350,13 +381,16 @@
350381 bp3 {
351382 label = "PB_USER";
352383 gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
353
- linux,code = <0x104>;
384
+ linux,code = <KEY_PROG1>;
354385 wakeup-source;
355386 };
356387 };
357388
358389 leds {
359390 compatible = "gpio-leds";
391
+ pinctrl-names = "default";
392
+ pinctrl-0 = <&pinctrl_gpio_leds>;
393
+ status = "okay";
360394
361395 d2 {
362396 label = "d2";