mvebu: Add basic support for WRT1900AC (v1) and Turris Omnia (pre 2019)
[librecmc/librecmc.git] / target / linux / mvebu / patches-4.14 / 423-ARM-dts-armada-385-linksys-Disable-internal-RTC.patch
1 From e1cac198fea08c31ec204bed84c279ab05d20389 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Sat, 17 Mar 2018 15:22:25 +0100
4 Subject: ARM: dts: armada-385-linksys: Disable internal RTC
5
6 The internal RTC does not work correctly on these Linksys boards based
7 on Marvell SoCs. For me it only shows Wed Dec 31 23:59:59 1969 and for
8 others it is off by 3 minutes in 10 minutes running, this was reported
9 by multiple users. On the Linksys Mamba device the device tree comment
10 says that no crystal is connected to the internal RTC, this is probably
11 also true for the other devices.
12
13 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 ---
15  arch/arm/boot/dts/armada-385-linksys.dtsi | 5 +++++
16  1 file changed, 5 insertions(+)
17
18 --- a/arch/arm/boot/dts/armada-385-linksys.dtsi
19 +++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
20 @@ -304,3 +304,8 @@
21         status = "okay";
22         usb-phy = <&usb3_1_phy>;
23  };
24 +
25 +&rtc {
26 +       /* No crystal connected to the internal RTC */
27 +       status = "disabled";
28 +};