[rtc-linux] Re: [PATCH 4/6] rtc: sun6i: Force the mux to the external oscillator

2017-01-20 Thread Chen-Yu Tsai
Hi, On Fri, Jan 20, 2017 at 11:56 PM, Maxime Ripard wrote: > The internal oscillator is way too inaccurate to do something useful with > it. Switch to the external oscillator if it is available. > > Signed-off-by: Maxime Ripard

[rtc-linux] Re: [PATCH 3/6] rtc: sun6i: Disable the build as a module

2017-01-20 Thread Chen-Yu Tsai
Hi, On Fri, Jan 20, 2017 at 11:56 PM, Maxime Ripard wrote: > Since we have to provide the clock very early on, the RTC driver cannot be > built as a module. Make sure that won't happen. > > Signed-off-by: Maxime Ripard > --- >

[rtc-linux] [PATCH 0/6] rtc: sun6i: Fix the RTC accuracy

2017-01-20 Thread Maxime Ripard
Hi, The RTC used in the A31 and later SoC has an accuracy issue, which is already significant even after a couple of hours. This is due to the fact that the oscillator used by default is an internal and very inaccurate one. A first attempt at fixing that by switching to the external oscillator

[rtc-linux] [PATCH 6/6] ARM: sun8i: a23/a33: Add the oscillators accuracy

2017-01-20 Thread Maxime Ripard
The datasheet provided by Allwinner requires oscillators with an accuracy of 50ppm. Add it to our fixed clocks so that we can properly track the accuracy chain. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a23-a33.dtsi | 2 ++ 1 file changed, 2

[rtc-linux] [PATCH 1/6] rtc: sun6i: Expose the 32kHz oscillator

2017-01-20 Thread Maxime Ripard
The RTC controls the input source of the main 32kHz oscillator in the system, feeding it to the clock unit too. By default, this is using an internal, very inaccurate (+/- 30%) oscillator with a divider to make it roughly around 32kHz. This is however quite impractical for the RTC, since our time

[rtc-linux] Re: imx6ul: power-up using the RTC

2017-01-20 Thread Alexandre Belloni
On 20/01/2017 at 13:12:10 +0100, Sebastian Reichel wrote : > Hi, > > On Wed, Jan 18, 2017 at 04:49:11PM +0200, Guy Shapiro wrote: > > I'm trying to use the low power RTC of the i.MX6UL to start from > > power-off state. > > > > I started by hopefully running: # echo +30 > > >

[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 --- drivers/rtc/Kconfig | 7 ++

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

2017-01-20 Thread Sean Nyekjaer
Signed-off-by: Sean Nyekjaer --- 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 index

[rtc-linux] Re: imx6ul: power-up using the RTC

2017-01-20 Thread Sebastian Reichel
Hi, On Wed, Jan 18, 2017 at 04:49:11PM +0200, Guy Shapiro wrote: > I'm trying to use the low power RTC of the i.MX6UL to start from > power-off state. > > I started by hopefully running: # echo +30 > > /sys/class/rtc/rtc0/wakealarm && shutdown -h now The system was > powered down, but it didn't