Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4798940ybv; Mon, 17 Feb 2020 06:13:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyKL8gu8Ouix4e9ok1/95VeeBETa8GPAN7Ay/I4dH+MJDoy8O15fKDmYq2i8mEbojw7svCE X-Received: by 2002:aca:5150:: with SMTP id f77mr9747239oib.52.1581948799633; Mon, 17 Feb 2020 06:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581948799; cv=none; d=google.com; s=arc-20160816; b=e0num7DTt+74ArQN/3dXwhFTwNbfJLPQ4iHfYVwTDGQwn2vfVYrVRBFjHaU+Zq69O9 dIodu5B0aSKBOrnnln9x1z1U7yOMKJB4XEZPxAVzYXWOUYk5wJNtK3n5nqhR3ctDBQaF y1ZcRycwG/IlVvz6yBPiLKuwa4zH09RjfZvbowy4qdZupKFDhV2XhM5DZKiZRtLQOzde MWM5agEavRjLdXUo8von8zCfoI+1IWfBMHR4h9v8uhyM7FG2abV13opAaKOuFkHvWP0J EGnVHt7B5OITEufcGCCjBCXW9Ow7aPD486cNVPK7gMTFc5TdZZnuZZPfjEICp09l+655 tPFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=6krLsyTnJQGCuNqc99FBtGiT29OEuI/cKr9z9oLmia8=; b=XvrJSIIYftZqphc0hMM/jgS32Ugun/reTC+z+DWTwc7+tUiwAGfDn8SGoObU2UjSD/ XKcI/c6HP2UD9vJhtzLcz/+VCxvuwPNM1uq+MVvcB10ygJ8kywrc1IxKAWLCDgeoTBP7 LtmOWKYcPgj7Suw6A49DdERSEr8VR+1WxSTEZyKSYME4oJTracncSG0kaSTzBMEfvX/u jcOz3kE76KouG8s9bj6eL3gT05eH6rwKwl+auROjbYbl2ZWSAMXPhKDDvSFUGCiYpvbF xfZjM5TwUaOCDrOEk0cR11btnB3IxoWzMn+bLw51kUxLByFe6NTBa4gjFjlEQ8ypYXH7 N6tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=F84Im76Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z20si5921088oib.26.2020.02.17.06.13.06; Mon, 17 Feb 2020 06:13:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=F84Im76Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728656AbgBQNqS (ORCPT + 99 others); Mon, 17 Feb 2020 08:46:18 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:55282 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726823AbgBQNqJ (ORCPT ); Mon, 17 Feb 2020 08:46:09 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01HDhVxP007656; Mon, 17 Feb 2020 14:45:50 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=6krLsyTnJQGCuNqc99FBtGiT29OEuI/cKr9z9oLmia8=; b=F84Im76Z7/5isx65KidMfCyyaLPXGt2Y5cGz2X+0BlsHzESPQg4vgRpUp6J5rEQhhCOe emI2exVjxiGhhLWsO9coFpILiLMqcnTGanXsd8/dreBVmvJV9s+xVNDLvxpmtiKZnDBZ oOo10cDgPlSLoH/6mQTiQsblEhz6AYncmx41dwxyscm2KLYjp07f0i7LErZxMD9F1++X RepEMliZoXQWFD+zh64zpjOS3f4r+FEJc5b6wlExHGz3KG91Tkt+6QhI20r9vXqOl0Vy RQ97DpGzb4/dRxwF5kjC1sYgtkzMYJhAoIkLtSz+gxvnNWLR/VyGI4YLyihMutFA56Rt FA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2y68dp3axk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Feb 2020 14:45:50 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 93321100034; Mon, 17 Feb 2020 14:45:49 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7E01A2FF5C7; Mon, 17 Feb 2020 14:45:49 +0100 (CET) Received: from localhost (10.75.127.47) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 17 Feb 2020 14:45:49 +0100 From: Benjamin Gaignard To: , , , , , , , CC: , , , , Benjamin Gaignard Subject: [PATCH v4 0/3] clockevent: add low power STM32 timer Date: Mon, 17 Feb 2020 14:45:43 +0100 Message-ID: <20200217134546.14562-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG4NODE2.st.com (10.75.127.11) To SFHDAG3NODE3.st.com (10.75.127.9) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-17_08:2020-02-17,2020-02-17 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series add low power timer as boadcast clockevent device. Low power timer could runs even when CPUs are in idle mode and could wakeup them. version 4: - move defines in mfd/stm32-lptimer.h - change compatible and subnode names - document wakeup-source property - reword commit message - make driver Kconfig depends of MFD_STM32_LPTIMER - remove useless include - remove rate and clk fields from the private structure - to add comments about the registers sequence in stm32_clkevent_lp_set_timer - rework probe function and use devm_request_irq() - do not allow module to be removed version 3: - fix timer set sequence - don't forget to free irq on remove function - use devm_kzalloc to simplify errors handling in probe function version 2: - stm32 clkevent driver is now a child of the stm32 lp timer node - add a probe function and adpat the driver to use regmap provide by it parent - stop using timer_of helpers Benjamin Gaignard (3): dt-bindings: mfd: Document STM32 low power timer bindings mfd: stm32: Add defines to be used for clkevent purpose clocksource: Add Low Power STM32 timers driver .../devicetree/bindings/mfd/st,stm32-lptimer.yaml | 16 ++ drivers/clocksource/Kconfig | 7 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-stm32-lp.c | 213 +++++++++++++++++++++ include/linux/mfd/stm32-lptimer.h | 5 + 5 files changed, 242 insertions(+) create mode 100644 drivers/clocksource/timer-stm32-lp.c -- 2.15.0