[rtc-linux] [RFC] rtc: ds1307: add square wave output from ds1308

2017-07-31 Thread Sean Nyekjaer
add square wave output to generic clock framework and disable sqw output from ds1308 in order to reduce the power consumption by ~50%. Signed-off-by: Sean Nyekjaer <sean.nyekj...@prevas.dk> --- This contains some code duplication(of my opinion) I guess it could be done more generic to

[rtc-linux] [PATCH 1/2] rtc: ds1307: add ds1308 variant

2017-06-08 Thread Sean Nyekjaer
The ds1308 variant is very similar to the already supported ds1338 variant, it have more debug registers and a square wave clock output. Signed-off-by: Sean Nyekjaer <sean.nyekj...@prevas.dk> --- drivers/rtc/rtc-ds1307.c | 12 1 file changed, 12 insertions(+) diff --git a/d

[rtc-linux] [PATCH v2] rtc: pcf2127: bulk read only date and time registers.

2017-02-23 Thread Sean Nyekjaer
Read control registers one by one and bulk read time registers. This fixes when the clock is read, the watchdog counter register is zeroed. Signed-off-by: Sean Nyekjaer <sean.nyekj...@prevas.dk> --- Changes since v1: - fixed indentation - use of more defines drivers/rtc/rtc-pcf2127.

[rtc-linux] [PATCH 1/2] rtc: pcf2127: add support for pcf2127 watchdog functionality

2017-01-20 Thread Sean Nyekjaer
PCF2129 does not have watchdog functionality built-in so we are only allowing to enable watchdog for PCF2127. Watchdog functionality is done with great inspiration from the rtc-ds1374 driver. Signed-off-by: Sean Nyekjaer <sean.nyekj...@prevas.dk> --- drivers/rtc/Kconfig | 7 ++ d

[rtc-linux] [PATCH 2/2] rtc: pcf2127: add support for pcf2127 tamper functionality

2017-01-20 Thread Sean Nyekjaer
Signed-off-by: Sean Nyekjaer <sean.nyekj...@prevas.dk> --- drivers/rtc/Kconfig | 7 +++ drivers/rtc/rtc-pcf2127.c | 128 +++--- 2 files changed, 129 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig