PKGBUILDs/core/linux-armv5/0002-at91-ariag25-updates.patch

94 lines
2.2 KiB
Diff
Raw Normal View History

2020-04-05 19:08:14 +00:00
From 7fb02bd226292495bd3d6fde9eae6ca0c78217da Mon Sep 17 00:00:00 2001
2015-06-24 04:43:19 +00:00
From: Douglas Gilbert <[mailto:dgilbert@interlog.com]>
Date: Mon, 12 Aug 2013 10:36:25 -0500
2018-04-03 01:05:04 +00:00
Subject: [PATCH 2/9] at91: ariag25 updates
2015-06-24 04:43:19 +00:00
v2: dropped at91sam9x5 usart fix, as merged mainline
Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
2018-06-05 03:18:09 +00:00
arch/arm/boot/dts/at91-ariag25.dts | 39 +++++++++++++++++++++++++++---
2015-06-24 04:43:19 +00:00
1 file changed, 36 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/at91-ariag25.dts b/arch/arm/boot/dts/at91-ariag25.dts
2019-11-26 02:29:03 +00:00
index dbfefef2869d..2f20575c7ccb 100644
2015-06-24 04:43:19 +00:00
--- a/arch/arm/boot/dts/at91-ariag25.dts
+++ b/arch/arm/boot/dts/at91-ariag25.dts
2020-04-05 19:08:14 +00:00
@@ -82,7 +82,7 @@ &macb0 {
2019-11-26 02:29:03 +00:00
* following can be overwritten by bootloader:
* for example u-boot 'ftd set' command
*/
- local-mac-address = [00 00 00 00 00 00];
+ local-mac-address = [00 04 25 ef 00 00];
status = "okay";
};
2015-06-24 04:43:19 +00:00
2020-04-05 19:08:14 +00:00
@@ -104,7 +104,7 @@ slot@0 {
2019-11-26 02:29:03 +00:00
&pinctrl {
w1_0 {
pinctrl_w1_0: w1_0-0 {
- atmel,pins = <0 21 0x0 0x1>; /* PA21 PIO, pull-up */
+ atmel,pins = <AT91_PIOA 21 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
};
};
};
2020-04-05 19:08:14 +00:00
@@ -113,6 +113,11 @@ &rtc {
2019-11-26 02:29:03 +00:00
status = "okay";
};
2015-06-24 04:43:19 +00:00
2019-11-26 02:29:03 +00:00
+&watchdog {
+ /* timeout-sec = <14>; */
+ status = "okay";
+};
2015-06-24 04:43:19 +00:00
+
2019-11-26 02:29:03 +00:00
&tcb0 {
timer@0 {
compatible = "atmel,tcb-timer";
2020-04-05 19:08:14 +00:00
@@ -131,13 +136,41 @@ timer@1 {
2019-11-26 02:29:03 +00:00
* Change to "okay" if you need additional serial ports
*/
&uart0 {
- status = "disabled";
+ status = "okay";
};
&uart1 {
status = "disabled";
};
+&spi0 {
+ status = "okay";
+ cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
+ anything@0 {
+ compatible = "spidev";
+ // spi-max-frequency = <50000000>; // 50 MHz
+ spi-max-frequency = <5000000>; // 5 MHz
+ reg = <0>;
+ };
+ // m25p80@0 {
+ // compatible = "spidev";
+ // spi-max-frequency = <50000000>;
+ // reg = <0>;
+ // };
2015-06-24 04:43:19 +00:00
+
2019-11-26 02:29:03 +00:00
+ mmc-slot@0 {
+ compatible = "mmc-spi-slot";
+ reg = <0>;
+ voltage-ranges = <3300 3300>;
+ // Use one of next 3 lines, comment out other 2
+ gpios = <&pioA 26 0>; /* CD to PA26 */
+ // broken-cd;
+ // non-removable;
+ cd-inverted;
+ spi-max-frequency = <8000000>;
+ };
+};
2015-06-24 04:43:19 +00:00
+
2019-11-26 02:29:03 +00:00
&usart0 {
pinctrl-0 = <&pinctrl_usart0
&pinctrl_usart0_rts
2015-06-24 04:43:19 +00:00
--
2020-04-05 19:08:14 +00:00
2.25.0
2015-06-24 04:43:19 +00:00