Received: by 10.192.165.156 with SMTP id m28csp834982imm; Mon, 16 Apr 2018 09:26:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Np5T3Nnusn2NrHBnpHH12DqpJg1ArEqE4VpbUEZThKScz3unq1FTBU6qKt4hUvo52ioVy X-Received: by 10.99.159.25 with SMTP id g25mr13185684pge.288.1523895963391; Mon, 16 Apr 2018 09:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523895963; cv=none; d=google.com; s=arc-20160816; b=bm7r1eVZ7uXkYeXDnw8liH2ljIPWy/J9mw9AEXZXcq4nZRStE5g8OVLo/89wOl6L2l my6CEhrh1KzTyGrewkSUDLgZJDCyqb0pTRfYa6MJZAr18KVzRXjVjRLdEDqOB/z3aMtA FN7vaUK+tXwoD7Ev8Bpk1nYTQLiut59/zv3Ex0NSIj8Cf8zoZ82o9SjhiT0GOwnhl0of L3XXNgxLJLDGwvn4X7ETXIVvfnhqzC72DpTnmNto3QHRFhVwK+lcU2oANQ3+C9JsNDX1 KhUMP1Id4nrhYEgCfMUe7IQcRGkJsUVtSh41JRR0IlybluNz/B4/5p/iMLwPJ14t/Nkf QvSA== 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=h8C0PcdrjopHCjaFURtEGs8Nxjr7xM2Dli5Zd0yY35A=; b=znAr98e4kOP5oFUnrj7Sh7DjyCfPw4et1oqkn0ZlAtrZ/GgFCztgxmFUfHAjyme6Hq 1j1MN5S10s+0oH27gXFNPbDVjFUsa9GuZEJ2oMTvGWK5YeeHbfoBwYMiF945WyQDBYMn V9/rpkdDQ6+N08niePyGWNNTeO75AGpBWSw1kdgwyDuAkoMcz5pakgqnOxDKC1yqAYzA LATm69omb3+1wQjIzcQ0H+WS7esWPqhOlq1ZHvKAEjvKwBC2nLG0kAL33yj2PuFxzV38 DCNleIKOvDF1ifHgwjvMF9esHBM3PQqtbk0OikN6OOQGzm0Whx91Zy+s7vXBNfHTxcf/ I6gw== 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 n86si11177315pfb.126.2018.04.16.09.25.49; Mon, 16 Apr 2018 09:26:03 -0700 (PDT) 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 S1753149AbeDPQUM (ORCPT + 99 others); Mon, 16 Apr 2018 12:20:12 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:46218 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752770AbeDPQUK (ORCPT ); Mon, 16 Apr 2018 12:20:10 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w3GGETks003663; Mon, 16 Apr 2018 18:19:33 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2hbd6ct8pn-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 16 Apr 2018 18:19: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 E085E3A; Mon, 16 Apr 2018 16:19:32 +0000 (GMT) Received: from Webmail-eu.st.com (gpxdag5node6.st.com [10.75.127.79]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id AFEBF5145; Mon, 16 Apr 2018 16:19:32 +0000 (GMT) Received: from localhost (10.75.127.122) by GPXDAG5NODE6.st.com (10.75.127.79) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 16 Apr 2018 18:19:32 +0200 From: Fabrice Gasnier To: , CC: , , , , , , , , , , , Subject: [PATCH v4 0/6] Add support for PWM input capture on STM32 Date: Mon, 16 Apr 2018 18:19:15 +0200 Message-ID: <1523895561-4073-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.122] X-ClientProxiedBy: GPXDAG5NODE5.st.com (10.75.127.78) To GPXDAG5NODE6.st.com (10.75.127.79) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-16_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 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 v4: - Lee's comments on patch 2 (mfd: stm32-timers: add support for dmas) Add kerneldoc header, better format comments. Changes in v3: - Dropped 2 precusor patches applied by Thierry in pwm tree: "pwm: stm32: fix, remove unused struct device" "pwm: stm32: protect common prescaler for all channels" - Note: this series applies on top on pwm tree - Implements Lee's comments on MFD part: rework stm32_timers_dma struct, exported routine prototype now use generic device struct, more various comments (see patch 2 changelog). Resend v2: - Add collected Acks 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 (6): 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 | 227 +++++++++++++++++- drivers/pwm/pwm-stm32.c | 257 +++++++++++++++++++++ include/linux/mfd/stm32-timers.h | 44 ++++ 5 files changed, 549 insertions(+), 2 deletions(-) -- 1.9.1