[rtc-linux] Re: [PATCH 3/3] mfd: twl: move header file out of I2C realm

2017-07-05 Thread Thierry Reding
On Mon, May 22, 2017 at 12:02:10AM +0200, Wolfram Sang wrote: > include/linux/i2c is not for client devices. Move the header file to a > more appropriate location. > > Signed-off-by: Wolfram Sang > --- > arch/arm/mach-omap2/common.h| 2 +- > arch/arm/mach-omap2/omap_twl.c |

[rtc-linux] Re: [PATCH 2/2] rtc: stm32: add STM32H7 RTC support

2017-07-05 Thread Alexandre Belloni
Hi, This is mostly fine, even if I'm not too happy with the s/ck_rtc/rtc_ck/. On 26/06/2017 at 11:51:29 +0200, Amelie Delaunay wrote: > - rtc->ck_rtc = devm_clk_get(&pdev->dev, NULL); > - if (IS_ERR(rtc->ck_rtc)) { > - dev_err(&pdev->dev, "no ck_rtc clock"); > - re

[rtc-linux] Re: [PATCH 3/3 v2] rtc: gemini/ftrtc010: rename driver and symbols

2017-07-05 Thread Alexandre Belloni
On 30/05/2017 at 09:53:32 +0200, Linus Walleij wrote: > The Gemini RTC is actually a generic IP block from Faraday > Technology names FTRTC010. Rename the driver file and all > symbols to match this IP name. > > The relationship can be clearly seen in the U-Boot driver > posted by Po-Yu Chuang for

[rtc-linux] Re: [PATCH 2/3 v2] rtc: gemini: Augment DT bindings for Faraday

2017-07-05 Thread Alexandre Belloni
On 30/05/2017 at 09:53:31 +0200, Linus Walleij wrote: > The Gemini RTC is actually a standard IP block from Faraday > Technology called FTRTC010. Rename the bindings, add the > generic compatible string and add definitions for the two > available clocks. > > Cc: devicet...@vger.kernel.org > Cc: Po

[rtc-linux] Re: [PATCH 1/3 v2] rtc: gemini: Add optional clock handling

2017-07-05 Thread Alexandre Belloni
On 30/05/2017 at 09:53:30 +0200, Linus Walleij wrote: > This makes the Gemini optionally take two clock references to > the PCLK and EXTCLK. As we are adding a clock framework to the > Gemini platform we need to make sure that we get the right > references. > > Acked-by: Hans Ulli Kroll > Signed-

[rtc-linux] Re: [PATCH 2/2] rtc: stm32: add STM32H7 RTC support

2017-07-05 Thread Amelie DELAUNAY
On 06/26/2017 11:51 AM, Amelie Delaunay wrote: This patch adds support for STM32H7 RTC. On STM32H7, the RTC bus interface clock (APB clock) needs to be enabled. Signed-off-by: Amelie Delaunay --- A gentle ping about this patch. Thanks, Amelie drivers/rtc/rtc-stm32.c | 85

[rtc-linux] [PATCH v2 1/2] RTC: s35390a: handle invalid RTC time

2017-07-05 Thread Fabien Lahoudere
If RTC time have been altered by low voltage, we notify users that RTC time is invalid by returning -EINVAL. The RTC time needs to be set correctly to clear the invalid flag. If the RTC is not set before restarting, the information will be lost. Signed-off-by: Fabien Lahoudere --- drivers/rtc/rt

[rtc-linux] [PATCH v2 2/2] RTC: s35390a: implement ioctls

2017-07-05 Thread Fabien Lahoudere
Implements RTC_VL_READ and RTC_VL_CLR ioctls. Signed-off-by: Fabien Lahoudere --- drivers/rtc/rtc-s35390a.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-s35390a.c b/drivers/rtc/rtc-s35390a.c index 5ebb132..9261ba6 100644 ---

[rtc-linux] [PATCH v2 0/2] RTC: s35390a: Improve low voltage or invalid time detection

2017-07-05 Thread Fabien Lahoudere
This patchset implements feature to detect RTC low voltage or power off. Changes since v1: - Read register instead setting flags Fabien Lahoudere (2): RTC: s35390a: handle invalid RTC time RTC: s35390a: implement ioctls drivers/rtc/rtc-s35390a.c | 104 +++