All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices
@ 2015-10-01 12:48 ` Chen-Yu Tsai
  0 siblings, 0 replies; 6+ messages in thread
From: Chen-Yu Tsai @ 2015-10-01 12:48 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices
@ 2015-10-01 12:48 ` Chen-Yu Tsai
  0 siblings, 0 replies; 6+ messages in thread
From: Chen-Yu Tsai @ 2015-10-01 12:48 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: devicetree, Chen-Yu Tsai, linux-kernel, linux-arm-kernel,
	Hans de Goede

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices
@ 2015-10-01 12:48 ` Chen-Yu Tsai
  0 siblings, 0 replies; 6+ messages in thread
From: Chen-Yu Tsai @ 2015-10-01 12:48 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: Chen-Yu Tsai, linux-arm-kernel, devicetree, linux-kernel,
	Hans de Goede

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices
@ 2015-10-01 12:56   ` Maxime Ripard
  0 siblings, 0 replies; 6+ messages in thread
From: Maxime Ripard @ 2015-10-01 12:56 UTC (permalink / raw)
  To: linux-arm-kernel

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151001/cff2e61f/attachment.sig>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices
@ 2015-10-01 12:56   ` Maxime Ripard
  0 siblings, 0 replies; 6+ messages in thread
From: Maxime Ripard @ 2015-10-01 12:56 UTC (permalink / raw)
  To: Chen-Yu Tsai
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Hans de Goede

[-- Attachment #1: Type: text/plain, Size: 727 bytes --]

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-jdAy2FN1RRM@public.gmane.org>

Ordered the aliases alphabetically, and applied. Thanks!
Maxime

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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices
@ 2015-10-01 12:56   ` Maxime Ripard
  0 siblings, 0 replies; 6+ messages in thread
From: Maxime Ripard @ 2015-10-01 12:56 UTC (permalink / raw)
  To: Chen-Yu Tsai; +Cc: linux-arm-kernel, devicetree, linux-kernel, Hans de Goede

[-- Attachment #1: Type: text/plain, Size: 707 bytes --]

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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-01 12:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01 12:48 [PATCH v2] ARM: dts: sun6i: hummingbird: Add aliases for rtc devices Chen-Yu Tsai
2015-10-01 12:48 ` Chen-Yu Tsai
2015-10-01 12:48 ` Chen-Yu Tsai
2015-10-01 12:56 ` Maxime Ripard
2015-10-01 12:56   ` Maxime Ripard
2015-10-01 12:56   ` Maxime Ripard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.