Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752194AbeAPMq0 (ORCPT + 1 other); Tue, 16 Jan 2018 07:46:26 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:33014 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751076AbeAPMpX (ORCPT ); Tue, 16 Jan 2018 07:45:23 -0500 From: Fabrice Gasnier To: , , , , CC: , , , , , , , , Subject: [PATCH 0/8] Add support for PWM input capture on STM32 Date: Tue, 16 Jan 2018 13:43:43 +0100 Message-ID: <1516106631-18722-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.51] X-ClientProxiedBy: SFHDAG8NODE1.st.com (10.75.127.22) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-16_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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. 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 | 37 +- drivers/pwm/pwm-stm32.c | 407 ++++++++++++++++++++- include/linux/mfd/stm32-timers.h | 31 ++ 5 files changed, 492 insertions(+), 6 deletions(-) -- 1.9.1