diff mbox

[v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices

Message ID 1443703709-24835-1-git-send-email-wens@csie.org (mailing list archive)
State New, archived
Headers show

Commit Message

Chen-Yu Tsai Oct. 1, 2015, 12:48 p.m. UTC
The hummingbird A31 has 2 rtc devices available: one in the SoC,
and a pcf8563 external rtc on i2c2.

For some unknown reason, the onboard backup battery alone can not
supply enough power to the internal rtc. When external power is
removed, the internal rtc would reset. Hence we want to use the
external one by default.

Add aliases for the rtc devices with the external one as rtc0.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---

Changes since v1:

  - Cleared up commit message

---
 arch/arm/boot/dts/sun6i-a31-hummingbird.dts | 2 ++
 1 file changed, 2 insertions(+)

Comments

Maxime Ripard Oct. 1, 2015, 12:56 p.m. UTC | #1
On Thu, Oct 01, 2015 at 08:48:29PM +0800, Chen-Yu Tsai wrote:
> The hummingbird A31 has 2 rtc devices available: one in the SoC,
> and a pcf8563 external rtc on i2c2.
> 
> For some unknown reason, the onboard backup battery alone can not
> supply enough power to the internal rtc. When external power is
> removed, the internal rtc would reset. Hence we want to use the
> external one by default.
> 
> Add aliases for the rtc devices with the external one as rtc0.
> 
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>

Ordered the aliases alphabetically, and applied. Thanks!
Maxime
diff mbox

Patch

diff --git a/arch/arm/boot/dts/sun6i-a31-hummingbird.dts b/arch/arm/boot/dts/sun6i-a31-hummingbird.dts
index 06d9391ca30e..358781113582 100644
--- a/arch/arm/boot/dts/sun6i-a31-hummingbird.dts
+++ b/arch/arm/boot/dts/sun6i-a31-hummingbird.dts
@@ -55,6 +55,8 @@ 
 
 	aliases {
 		serial0 = &uart0;
+		rtc0 = &pcf8563;
+		rtc1 = &rtc;
 	};
 
 	chosen {