Skip to contentSkip to conversation

rtc: add support for rtc NXP pca21125

PATCH In review VENKAT PRASHANTH B U 2 participants 2 messages Oct 19, 2016 – Oct 30, 2016 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 rtc: add support for rtc NXP pca21125

This is a patch to add support for
NXP rtc pca21125

---
changelog v2:
1. used the registers defined in pca21125_set_time function
2. code cleanup in the function pca21125_read_time function
3. Write the address on the bus with pca21125_write_reg function
4. code clean up on pca21125_probe function
5. Add the alarm feature support feature in the driver code
6. fixed the indentation of entire file
---

---
 drivers/rtc/Kconfig        |   9 ++
 drivers/rtc/Makefile       |   1 +
 drivers/rtc/rtc-pca21125.c | 234 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 244 insertions(+)
drivers/rtc/Kconfig +9 -0
index e215f50..29f40cb 100644
@@ -739,6 +739,15 @@ config RTC_DRV_PCF2123
 	  This driver can also be built as a module. If so, the module
 	  will be called rtc-pcf2123.
 
+config RTC_DRV_PCA21125
+	tristate "NXP PCA21125"
+	help
+	  If you say yes here you get support for the NXP PCA21125
+	  RTC chip.
+
+	  This driver can also be built as a module. If so, the module
+	  will be called rtc-pca21125.
+
 config RTC_DRV_MCP795
 	tristate "Microchip MCP795"
 	help
drivers/rtc/Makefile +1 -0
index 7cf7ad5..41a5807 100644
@@ -106,6 +106,7 @@ obj-$(CONFIG_RTC_DRV_OMAP)	+= rtc-omap.o
 obj-$(CONFIG_RTC_DRV_OPAL)	+= rtc-opal.o
 obj-$(CONFIG_RTC_DRV_PALMAS)	+= rtc-palmas.o
 obj-$(CONFIG_RTC_DRV_PCAP)	+= rtc-pcap.o
+obj-$(CONFIG_RTC_DRV_PCA21125)	+= rtc-pca21125.o
 obj-$(CONFIG_RTC_DRV_PCF2123)	+= rtc-pcf2123.o
 obj-$(CONFIG_RTC_DRV_PCF2127)	+= rtc-pcf2127.o
 obj-$(CONFIG_RTC_DRV_PCF50633)	+= rtc-pcf50633.o
drivers/rtc/rtc-pca21125.c +234 -0

234 lines not on this page · raw message

Signature · 11 lines
1.9.2

-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
#1 lore raw

Hi Venkat,

Quoted 2 lines · VENKAT PRASHANTH B U

This is a patch to add support for
NXP rtc pca21125

The register layout PCA21125 looks similar to PCF8563 which already has a driver.

Would it be possible to support the PCA21125 device with the rtc-pcf8563 driver? You will need to add a regmap layer since the PCA21125 is SPI while the PCF8563 is I2C.

regards,
Joachim Eastwood

Signature · 8 lines
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.