From patchwork Thu May 17 12:04:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amelie DELAUNAY X-Patchwork-Id: 915383 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-rtc-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=st.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40mqkg724vz9s0q for ; Thu, 17 May 2018 22:05:31 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752141AbeEQMFT (ORCPT ); Thu, 17 May 2018 08:05:19 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:55971 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752065AbeEQMFQ (ORCPT ); Thu, 17 May 2018 08:05:16 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w4HC45ME002195; Thu, 17 May 2018 14:04:33 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2j0apb91a5-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 17 May 2018 14:04:33 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BC31131; Thu, 17 May 2018 12:04:32 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8833A2973; Thu, 17 May 2018 12:04:32 +0000 (GMT) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 17 May 2018 14:04:32 +0200 Received: from localhost (10.201.20.5) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 17 May 2018 14:04:31 +0200 From: Amelie Delaunay To: Alessandro Zummo , Alexandre Belloni , Rob Herring , "Mark Rutland" , Maxime Coquelin , Alexandre Torgue CC: , , , , Amelie Delaunay Subject: [PATCH v3 0/4] Introduce STM32MP1 RTC Date: Thu, 17 May 2018 14:04:22 +0200 Message-ID: <1526558666-24243-1-git-send-email-amelie.delaunay@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.201.20.5] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-17_05:, , signatures=0 Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org This series introduces STM32MP1 RTC. On STM32MP1: - two clocks are needed, plck and rtc_ck; - to wakeup the system, a wakeup alarm interrupt is needed; - some registers or bits have moved, but the operation is the same; - the Backup Domain Protection (DBP) is not managed by RTC driver. --- Changes in v3: * Move cleanup changes in a separate patch * Replace regs and evts by pointers to ensure no copy is made * Set all registers offset as u16 instead of u8 and u16 * Fix Kbuild smatch warning: drivers/rtc/rtc-stm32.c:827 stm32_rtc_probe() warn: always true condition '(regs.verr != ~0) => (0-u16max != (-1))' Changes in v2: * One compatible per line in bindings file * Remove unnecessary comment under rtc_ck as this clock is required for all * Remove interrupts-extended and add stm32mp1 rtc alarm wakeup interrupt in interrupts property description Amelie Delaunay (4): rtc: stm32: fix misspelling and misalignment issues rtc: stm32: rework register management to prepare other version of RTC dt-bindings: rtc: update stm32-rtc documentation for stm32mp1 rtc rtc: stm32: add stm32mp1 rtc support .../devicetree/bindings/rtc/st,stm32-rtc.txt | 27 +- drivers/rtc/rtc-stm32.c | 273 ++++++++++++++++----- 2 files changed, 229 insertions(+), 71 deletions(-)