Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758057AbdLROSN (ORCPT ); Mon, 18 Dec 2017 09:18:13 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:39581 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752954AbdLROSJ (ORCPT ); Mon, 18 Dec 2017 09:18:09 -0500 X-Google-Smtp-Source: ACJfBovqPKDDajMlJiF8HoYRzLEo5XROt3GQTw0d2pF2BAfITGtgkaF3NOdOEsNML57oOUv4NjsBXz+YfRfOGjkdZm4= MIME-Version: 1.0 In-Reply-To: <20171218115133.16371-1-linux-kernel-dev@beckhoff.com> References: <20171218115133.16371-1-linux-kernel-dev@beckhoff.com> From: Philippe Ombredanne Date: Mon, 18 Dec 2017 15:17:27 +0100 Message-ID: Subject: Re: [PATCH v4 0/4] rtc: add mxc driver for i.MX53 SRTC To: linux-kernel-dev Cc: Patrick Bruenn , Alessandro Zummo , Alexandre Belloni , Rob Herring , Mark Rutland , "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , Fabio Estevam , Juergen Borleis , Noel Vellemans , Shawn Guo , Sascha Hauer , Russell King , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , =?UTF-8?Q?Lothar_Wa=C3=9Fmann?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id vBIEIHRM009433 Content-Length: 4176 Lines: 96 On Mon, Dec 18, 2017 at 12:51 PM, wrote: > From: Patrick Bruenn > > Neither rtc-imxdi, rtc-mxc nor rtc-snvs are compatible with i.MX53. > > This is driver enables support for the low power domain SRTC features: > - 32-bit MSB of non-rollover time counter > - 32-bit alarm register > > Select the new config option RTC_DRV_MXC_V2 to build this driver > > Based on: > http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/rtc/rtc-mxc_v2.c?h=imx_2.6.35_11.09.01 > > Signed-off-by: Patrick Bruenn > > --- > > v4: > - rename "srtc" node into generic "rtc" keep the label as "srtc" to avoid > duplication with imx53-m53.dtsi > - fix Signed-off-by: in bindings-patch > > v3: > - introduce new config option with the same patch, which adds the driver > - call rtc_update_irq() only if necessary > - merge mxc_rtc_write_alarm_locked() with mxc_rtc_set_alarm() > - only use clk_enable/disable (without "prepare") during operation > - rebase on v4.15-rc3 > - consistently use rtc_tm_to_time64() and time64_t > - refactor mxc_rtc_read_time(): don't lock for readl() only; > don't rtc_valid_tm(); use time64_t > - check returncode of mxc_rtc_wait_for_flag() > - restructure mxc_rtc_sync_lp_locked() to replace pr_err() with > dev_err_once(); remove explicit 'inline' > - don't touch imx_v4_v5_defconfig, instead add to imx_v6_v7_defconfig > > v2: > - have seperate patches for dt-binding, CONFIG option, imx53.dtsi and driver > - add SPDX-License-Identifier and cleanup copyright notice > - replace __raw_readl/writel() with readl/writel() > - fix PM_SLEEP callbacks > - add CONFIG_RTC_DRV_MXC_V2 to build rtc-mxc_v2.c > - remove misleading or obvious comments and fix style of the remaining > - avoid endless loop while waiting for hw > - implement consistent locking; make spinlock a member of dev struct > - enable clk only for register accesses > - remove all udelay() calls since they are obsolete or redundant > (we are already waiting for register flags to change) > - init platform_data before registering irq callback > - let set_time() fail, when 32 bit rtc counter exceeded > - make names more consistent > - cleanup and reorder includes > - cleanup and remove unused defines > > Cc: Alessandro Zummo > Cc: Alexandre Belloni > Cc: Rob Herring > Cc: Mark Rutland (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) > Cc: linux-rtc@vger.kernel.org (open list:REAL TIME CLOCK (RTC) SUBSYSTEM) > Cc: devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) > Cc: linux-kernel@vger.kernel.org (open list) > Cc: Fabio Estevam > Cc: Juergen Borleis > Cc: Noel Vellemans > Cc: Shawn Guo > Cc: Sascha Hauer (maintainer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) > Cc: Russell King (maintainer:ARM PORT) > Cc: linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) > > Cc: Philippe Ombredanne > Cc: Lothar Waßmann > --- > > Patrick Bruenn (4): > dt-bindings: rtc: add bindings for i.MX53 SRTC > ARM: dts: imx53: add srtc node > rtc: add mxc driver for i.MX53 SRTC > ARM: imx_v6_v7_defconfig: enable RTC_DRV_MXC_V2 > > .../devicetree/bindings/rtc/rtc-mxc_v2.txt | 17 + > arch/arm/boot/dts/imx53.dtsi | 7 + > arch/arm/configs/imx_v6_v7_defconfig | 1 + > drivers/rtc/Kconfig | 10 + > drivers/rtc/Makefile | 1 + > drivers/rtc/rtc-mxc_v2.c | 422 +++++++++++++++++++++ > 6 files changed, 458 insertions(+) > create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mxc_v2.txt > create mode 100644 drivers/rtc/rtc-mxc_v2.c > > -- > 2.11.0 For the use of SPDX license tags in this patch set: Acked-by: Philippe Ombredanne