Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1235875 > unrolled thread
| Started by | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| First post | 2015-09-30 10:20 +0200 |
| Last post | 2015-10-01 14:10 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices Chen-Yu Tsai <wens@csie.org> - 2015-09-30 10:20 +0200
Re: [PATCH] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices Chen-Yu Tsai <wens@csie.org> - 2015-10-01 14:10 +0200
Re: [PATCH] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-10-01 14:10 +0200
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2015-09-30 10:20 +0200 |
| Subject | [PATCH] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices |
| Message-ID | <qekMj-7IF-23@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 to power the
internal rtc when power is removed, and its time 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>
---
Can someone else with the Hummingbird A31 also test the internal RTC
and see if it doesn't survive power removal?
Thanks
ChenYu
---
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]
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2015-10-01 14:10 +0200 |
| Message-ID | <qeKQq-3yE-15@gated-at.bofh.it> |
| In reply to | #1235875 |
On Thu, Oct 1, 2015 at 6:11 PM, Maxime Ripard <maxime.ripard@free-electrons.com> wrote: > Hi, > > On Wed, Sep 30, 2015 at 04:15:37PM +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 to power the >> internal rtc when power is removed, and its time would reset. Hence >> we want to use the external one by default. > > The patch looks fine, but I'm not sure to understand the first > sentence of that paragraph :/ Neither do I :/ I'll send another version. ChenYu -- 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] | [prev] | [next] | [standalone]
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2015-10-01 14:10 +0200 |
| Message-ID | <qeKQq-3yE-17@gated-at.bofh.it> |
| In reply to | #1235875 |
[Multipart message — attachments visible in raw view] — view raw
Hi, On Wed, Sep 30, 2015 at 04:15:37PM +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 to power the > internal rtc when power is removed, and its time would reset. Hence > we want to use the external one by default. The patch looks fine, but I'm not sure to understand the first sentence of that paragraph :/ 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