Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1237390 > unrolled thread

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

Started byChen-Yu Tsai <wens@csie.org>
First post2015-10-01 14:50 +0200
Last post2015-10-01 15:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices Chen-Yu Tsai <wens@csie.org> - 2015-10-01 14:50 +0200
    Re: [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc  devices Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-10-01 15:00 +0200

#1237390 — [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices

FromChen-Yu Tsai <wens@csie.org>
Date2015-10-01 14:50 +0200
Subject[PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices
Message-ID<qeLt8-4i7-19@gated-at.bofh.it>
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(+)

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 {
-- 
2.5.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1237395 — Re: [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2015-10-01 15:00 +0200
SubjectRe: [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices
Message-ID<qeLCN-4xp-9@gated-at.bofh.it>
In reply to#1237390

[Multipart message — attachments visible in raw view] — view raw

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

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web