[rtc-linux] [PATCH v2 2/5] mfd: cros_ec: Get rid of cros_ec_check_features from cros_ec_dev.

2017-04-03 Thread Enric Balletbo i Serra
The cros_ec_dev driver should be used only to expose the Chrome OS Embedded Controller to user-space and should not be used to add MFD devices by calling mfd_add_devices. This patch moves this logic to the MFD cros_ec driver and removes the MFD bits from the character device driver. Also makes

[rtc-linux] [PATCH v2 5/5] mfd: cros_ec: add RTC as mfd subdevice

2017-04-03 Thread Enric Balletbo i Serra
From: Stephen Barber If the EC supports RTC host commands, expose an RTC device. Signed-off-by: Stephen Barber Signed-off-by: Enric Balletbo i Serra --- Changes since v1: - Use PLATFORM_DEVID_AUTO to add the

[rtc-linux] [PATCH v2 4/5] rtc: cros-ec: add cros-ec-rtc driver.

2017-04-03 Thread Enric Balletbo i Serra
From: Stephen Barber On platforms with a Chrome OS EC, the EC can function as a simple RTC. Add a basic driver with this functionality. Signed-off-by: Stephen Barber Signed-off-by: Enric Balletbo i Serra Acked-by:

[rtc-linux] [PATCH v2 3/5] mfd: cros_ec: Introduce RTC commands and events definitions.

2017-04-03 Thread Enric Balletbo i Serra
From: Stephen Barber The EC can function as a simple RT, this patch adds the RTC related definitions needed by the rtc-cros-ec driver. Signed-off-by: Stephen Barber Signed-off-by: Enric Balletbo i Serra Acked-by: Lee

[rtc-linux] [PATCH v2 1/5] mfd: cros-ec: Fix host command buffer size

2017-04-03 Thread Enric Balletbo i Serra
From: Vic Yang For SPI, we can get up to 32 additional bytes for response preamble. The current overhead (2 bytes) may cause problems when we try to receive a big response. Update it to 32 bytes. Without this fix we could see a kernel BUG when we receive a big response

[rtc-linux] Re: [PATCH v3 0/7] rtc: Reuse rtc-sh driver to support RZ/A1

2017-04-03 Thread Alexandre Belloni
Hi, On 29/03/2017 at 10:30:28 -0700, Chris Brandt wrote: > Basically, the same RTC that was used in SuperH devices is now used in > RZ/A1 devices. Therefore with some slight changes, that driver can be > reused. > > Additionally, since ARM architectures require Device Tree configurations, >

[rtc-linux] [PATCH] arm: dts: genmai: Enable rtc and rtc_x1 clock

2017-04-03 Thread Jacopo Mondi
Enable the 32.768 kHz RTC_X1 clock by setting the frequency value to non-zero and enable the realtime clock. Signed-off-by: Jacopo Mondi --- This patch depends on Chris Brandt's series "rtc: Reuse rtc-sh driver to support RZ/A1" Please queue this on top of that.

[rtc-linux] Re: [PATCH v3 2/7] dt-bindings: rtc: document the rtc-sh bindings

2017-04-03 Thread Rob Herring
On Wed, Mar 29, 2017 at 10:30:30AM -0700, Chris Brandt wrote: > Add the binding documentation for rtc-sh which is an RTC for > SuperH and RZ/A SoCs. > > Signed-off-by: Chris Brandt > --- > v3: > * remove 'power-domains' from example > * update commit message subject and

[rtc-linux] Re: [PATCH 1/7] mfd: cros-ec: Fix host command buffer size

2017-04-03 Thread Enric Balletbo i Serra
On 03/04/17 16:30, Lee Jones wrote: > On Mon, 03 Apr 2017, Lee Jones wrote: > >> On Fri, 24 Mar 2017, Enric Balletbo i Serra wrote: >> >>> From: Vic Yang >>> >>> For SPI, we can get up to 32 additional bytes for response preamble. >>> The current overhead (2 bytes) may

[rtc-linux] Re: [PATCH 7/7] mfd: cros_ec: add RTC as mfd subdevice

2017-04-03 Thread Enric Balletbo i Serra
On 03/04/17 16:25, Lee Jones wrote: > On Fri, 24 Mar 2017, Enric Balletbo i Serra wrote: > >> From: Stephen Barber >> >> If the EC supports RTC host commands, expose an RTC device. >> >> Signed-off-by: Stephen Barber >> Signed-off-by: Enric

[rtc-linux] Re: [PATCH 7/7] mfd: cros_ec: add RTC as mfd subdevice

2017-04-03 Thread Lee Jones
On Fri, 24 Mar 2017, Enric Balletbo i Serra wrote: > From: Stephen Barber > > If the EC supports RTC host commands, expose an RTC device. > > Signed-off-by: Stephen Barber > Signed-off-by: Enric Balletbo i Serra >

[rtc-linux] Re: [PATCH 1/7] mfd: cros-ec: Fix host command buffer size

2017-04-03 Thread Lee Jones
On Fri, 24 Mar 2017, Enric Balletbo i Serra wrote: > From: Vic Yang > > For SPI, we can get up to 32 additional bytes for response preamble. > The current overhead (2 bytes) may cause problems when we try to receive > a big response. Update it to 32 bytes. > > Without