Received: by 10.223.176.46 with SMTP id f43csp811224wra; Fri, 26 Jan 2018 07:17:42 -0800 (PST) X-Google-Smtp-Source: AH8x226NdLCCX5ZcSMa3eazgcZGpjT+z9MLDp/6LbS/CutFUHWJmhWzBJPRagP7wwQADI0EgyczW X-Received: by 10.99.98.66 with SMTP id w63mr15631927pgb.10.1516979862784; Fri, 26 Jan 2018 07:17:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516979862; cv=none; d=google.com; s=arc-20160816; b=08Ca82xdb2/EiVc9xRE6w/Zzem32UFWf6XVT8WXsL/Yd1jcPQSQtApE2EjQIF84l81 S9A3cZyjy+OV1KWmBoIvXr+w2FV+n5gNZI4smUMkUJR6fgzHgrvV8U3vzfUX8yDETXI4 +hE6TW7kokyBHzFINk0qSHl7wgR6qUCMflS0s78UbBNQDGkdZZBzL6e2i+KJbJDT35e4 J02CgLnaCXcio/mqLm6itNWZabpHbffHknS3sC7+CYhPxMRo8ls5C/pfJiy3hvnS2p9M h1qFd2KYXUZqXOs0SsmfutFu6mgl6NWtFGHHkTchVLSlRqaDfzc9nqvYglwX8uXPJspy WcTg== 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:arc-authentication-results; bh=ylY2VbVd5W7JVRNzWvzvDHWfMvlI5ArJCVLd3Joxh8E=; b=K5SJFkPTBNQCzB7mJ5ANmuEVmygSxcQD3GiVrUDpjTdgie/DyBvYTRgPrdl80hFvtC BTqBOWH6Xxl5kHzsk6n+ucaHz3i7oREskZIvuZ/TetEEO4KbkzGcSWpw0JLNOjTHQ6Mq bkqm8cwZlss2KupddqF8VT/2Q0O4THs6Df3sH34VDOwjg3rMCx1l6ZueWuh16EnutTs9 mP6vlO38r9U6WWVliuykNhcdFmrLIWgUckCqE76G1+A/mKvpv1Dcrd+OGi2Qu3l6IcjQ txSP9jv6Q7HUl9kOhXF2J1/RlOzEIfCjVD8dlWPbZjjpv0bkXnQZKu+kQcDdO/SCA6eX 6lmA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si3764233plp.416.2018.01.26.07.17.28; Fri, 26 Jan 2018 07:17:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753723AbeAZPPP (ORCPT + 99 others); Fri, 26 Jan 2018 10:15:15 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:42282 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753521AbeAZPMm (ORCPT ); Fri, 26 Jan 2018 10:12:42 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w0QF4DuT018506; Fri, 26 Jan 2018 16:11:53 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2fq4dds8cd-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 26 Jan 2018 16:11:53 +0100 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 20D9538; Fri, 26 Jan 2018 15:11:53 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id DFA9B2CE6; Fri, 26 Jan 2018 15:11:52 +0000 (GMT) Received: from localhost (10.75.127.49) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 26 Jan 2018 16:11:52 +0100 From: Fabrice Gasnier To: , , , , CC: , , , , , , , , Subject: [PATCH v2 0/8] Add support for PWM input capture on STM32 Date: Fri, 26 Jan 2018 16:11:31 +0100 Message-ID: <1516979499-3665-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG7NODE2.st.com (10.75.127.20) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-26_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for capture to stm32-pwm driver. Capture is based on DMAs. - First two patches are precursor patches - Subsequent two patches add support for requesting DMAs to MFD core - Next three patches add support for capture to stm32-pwm driver - This has been tested on stm32429i-eval board. --- Changes in v2: - Abstract DMA handling from child driver: move it to MFD core - Rework pwm capture routines to adopt this change - Comment on optional dma support, beautify DMAs probe Fabrice Gasnier (8): pwm: stm32: fix, remove unused struct device pwm: stm32: protect common prescaler for all channels dt-bindings: mfd: stm32-timers: add support for dmas mfd: stm32-timers: add support for dmas pwm: stm32: add capture support pwm: stm32: improve capture by tuning counter prescaler pwm: stm32: use input prescaler to improve period capture ARM: dts: stm32: Enable pwm3 input capture on stm32f429i-eval .../devicetree/bindings/mfd/stm32-timers.txt | 20 ++ arch/arm/boot/dts/stm32429i-eval.dts | 3 + drivers/mfd/stm32-timers.c | 215 +++++++++++++++- drivers/pwm/pwm-stm32.c | 276 ++++++++++++++++++++- include/linux/mfd/stm32-timers.h | 39 +++ 5 files changed, 547 insertions(+), 6 deletions(-) -- 1.9.1