linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: imx_v6_v7_defconfig: Enable RTC PCF8523 support
@ 2015-04-29  2:59 Fabio Estevam
  2015-04-29  2:59 ` [PATCH 2/2] ARM: dts: imx6q-cubox-i: Disable the internal RTC Fabio Estevam
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2015-04-29  2:59 UTC (permalink / raw)
  To: linux-arm-kernel

From: Fabio Estevam <fabio.estevam@freescale.com>

RTC PCF8523 is used on some mx6 cubox-i boards.

Let it work by default.

Reported-by: Rick Thomas <rbthomas@cube.rcthomas.org>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/configs/imx_v6_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index fdeb1c8..1d93fe9 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -283,6 +283,7 @@ CONFIG_RTC_CLASS=y
 CONFIG_RTC_INTF_DEV_UIE_EMUL=y
 CONFIG_RTC_DRV_DS1307=y
 CONFIG_RTC_DRV_ISL1208=y
+CONFIG_RTC_DRV_PCF8523=y
 CONFIG_RTC_DRV_PCF8563=y
 CONFIG_RTC_DRV_MC13XXX=y
 CONFIG_RTC_DRV_MXC=y
-- 
1.9.1

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

* [PATCH 2/2] ARM: dts: imx6q-cubox-i: Disable the internal RTC
  2015-04-29  2:59 [PATCH 1/2] ARM: imx_v6_v7_defconfig: Enable RTC PCF8523 support Fabio Estevam
@ 2015-04-29  2:59 ` Fabio Estevam
  0 siblings, 0 replies; 2+ messages in thread
From: Fabio Estevam @ 2015-04-29  2:59 UTC (permalink / raw)
  To: linux-arm-kernel

From: Fabio Estevam <fabio.estevam@freescale.com>

The internal SNVS RTC on imx6q-cubox-i is not battery backed and there
is a PCF8523 that is battery backed on CuBox-i2eX and CuBox-i4Pro models.

Disable the internal RTC in favour of the battery backed one, so that
we can have a valid clock setting right after boot.

Reported-by: Rick Thomas <rbthomas@cube.rcthomas.org>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/boot/dts/imx6q-cubox-i.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/imx6q-cubox-i.dts b/arch/arm/boot/dts/imx6q-cubox-i.dts
index 670bd8c..cff041a 100644
--- a/arch/arm/boot/dts/imx6q-cubox-i.dts
+++ b/arch/arm/boot/dts/imx6q-cubox-i.dts
@@ -56,3 +56,7 @@
 	fsl,transmit-atten-16ths = <9>;
 	fsl,no-spread-spectrum;
 };
+
+&snvs_rtc {
+	status = "disabled";
+};
-- 
1.9.1

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

end of thread, other threads:[~2015-04-29  2:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-29  2:59 [PATCH 1/2] ARM: imx_v6_v7_defconfig: Enable RTC PCF8523 support Fabio Estevam
2015-04-29  2:59 ` [PATCH 2/2] ARM: dts: imx6q-cubox-i: Disable the internal RTC Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).