aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2018-03-17 15:52:47 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2018-03-17 22:59:29 +0100
commit8605ac87f822254af258bf8f20d24cd4186ff84a (patch)
treed020558d1b6890952be43be818352003feafc916 /target/linux
parentdfe4de0287863934bb06542de93828829ff8422d (diff)
downloadupstream-8605ac87f822254af258bf8f20d24cd4186ff84a.tar.gz
upstream-8605ac87f822254af258bf8f20d24cd4186ff84a.tar.bz2
upstream-8605ac87f822254af258bf8f20d24cd4186ff84a.zip
mvebu: Disable internal RTC on Linksys devices
The internal RTC does not work correctly on these Linksys boards based on Marvell SoCs. It is off by 3 minutes in 10 minutes running, this was reported by multiple users. On the Linksys Mamba device the device tree comment says that no crystal is connected to the internal RTC, this is probably also true for the other devices. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/mvebu/patches-4.14/423-ARM-dts-armada-385-linksys-Disable-internal-RTC.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/mvebu/patches-4.14/423-ARM-dts-armada-385-linksys-Disable-internal-RTC.patch b/target/linux/mvebu/patches-4.14/423-ARM-dts-armada-385-linksys-Disable-internal-RTC.patch
new file mode 100644
index 0000000000..ea5ad5acad
--- /dev/null
+++ b/target/linux/mvebu/patches-4.14/423-ARM-dts-armada-385-linksys-Disable-internal-RTC.patch
@@ -0,0 +1,28 @@
+From e1cac198fea08c31ec204bed84c279ab05d20389 Mon Sep 17 00:00:00 2001
+From: Hauke Mehrtens <hauke@hauke-m.de>
+Date: Sat, 17 Mar 2018 15:22:25 +0100
+Subject: ARM: dts: armada-385-linksys: Disable internal RTC
+
+The internal RTC does not work correctly on these Linksys boards based
+on Marvell SoCs. For me it only shows Wed Dec 31 23:59:59 1969 and for
+others it is off by 3 minutes in 10 minutes running, this was reported
+by multiple users. On the Linksys Mamba device the device tree comment
+says that no crystal is connected to the internal RTC, this is probably
+also true for the other devices.
+
+Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
+---
+ arch/arm/boot/dts/armada-385-linksys.dtsi | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+--- a/arch/arm/boot/dts/armada-385-linksys.dtsi
++++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
+@@ -302,3 +302,8 @@
+ status = "okay";
+ usb-phy = <&usb3_1_phy>;
+ };
++
++&rtc {
++ /* No crystal connected to the internal RTC */
++ status = "disabled";
++};