Skip to contentSkip to conversation

ARM: imx_v6_v7_defconfig: Enable RTC PCF8523 support

PATCH Superseded Fabio Estevam 1 participant 2 messages Apr 29, 2015

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/2 ARM: imx_v6_v7_defconfig: Enable RTC PCF8523 support

From: Fabio Estevam <[email protected]>

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

Let it work by default.

---
 arch/arm/configs/imx_v6_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/imx_v6_v7_defconfig +1 -0
index fdeb1c8..1d93fe9 100644
@@ -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
Signature · 1 line
1.9.1
author reviewer
#1 lore raw

PATCH 2/2 ARM: dts: imx6q-cubox-i: Disable the internal RTC

From: Fabio Estevam <[email protected]>

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.

---
 arch/arm/boot/dts/imx6q-cubox-i.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/imx6q-cubox-i.dts +4 -0
index 670bd8c..cff041a 100644
@@ -56,3 +56,7 @@
 	fsl,transmit-atten-16ths = <9>;
 	fsl,no-spread-spectrum;
 };
+
+&snvs_rtc {
+	status = "disabled";
+};
Signature · 1 line
1.9.1