{"id":806469,"url":"http://patchwork.ozlabs.org/api/1.0/covers/806469/?format=json","project":{"id":19,"url":"http://patchwork.ozlabs.org/api/1.0/projects/19/?format=json","name":"Linux IMX development","link_name":"linux-imx","list_id":"linux-imx-kernel.lists.patchwork.ozlabs.org","list_email":"linux-imx-kernel@lists.patchwork.ozlabs.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<1503914654-19963-1-git-send-email-fabrice.gasnier@st.com>","date":"2017-08-28T10:04:05","name":"[RESEND,v3,0/9] Add STM32 LPTimer: PWM, trigger and counter","submitter":{"id":65902,"url":"http://patchwork.ozlabs.org/api/1.0/people/65902/?format=json","name":"Fabrice Gasnier","email":"fabrice.gasnier@st.com"},"series":[{"id":123,"url":"http://patchwork.ozlabs.org/api/1.0/series/123/?format=json","date":"2017-08-28T10:04:05","name":"Add STM32 LPTimer: PWM, trigger and counter","version":3,"mbox":"http://patchwork.ozlabs.org/series/123/mbox/"}],"headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"SoIRjO47\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xgnTX3lYXz9sP3\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 20:05:52 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dmGvU-0006rV-Pz; Mon, 28 Aug 2017 10:05:48 +0000","from mx08-00178001.pphosted.com ([91.207.212.93]\n\thelo=mx07-00178001.pphosted.com)\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dmGuq-0005Cc-9D for linux-arm-kernel@lists.infradead.org;\n\tMon, 28 Aug 2017 10:05:15 +0000","from pps.filterd (m0046661.ppops.net [127.0.0.1])\n\tby mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7SA4e11015962; Mon, 28 Aug 2017 12:04:40 +0200","from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35])\n\tby mx08-.pphosted.com with ESMTP id 2cjyveha6m-1\n\t(version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT);\n\tMon, 28 Aug 2017 12:04:36 +0200","from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9])\n\tby beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 90AA338;\n\tMon, 28 Aug 2017 10:04:35 +0000 (GMT)","from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15])\n\tby zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 41D59201F;\n\tMon, 28 Aug 2017 10:04:35 +0000 (GMT)","from localhost (10.75.127.45) by SFHDAG5NODE3.st.com (10.75.127.15)\n\twith Microsoft SMTP Server (TLS) id 15.0.1178.4;\n\tMon, 28 Aug 2017 12:04:34 +0200"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To\n\t:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=Isg2g/5HOV5odwJuRsfOYqHwKBJUM5vBlPw9N0XyEmo=;\n\tb=SoIRjO47/be6qB\n\tpdmeKU7gdJ4E9h9fYzIRpwyDHVYpxOsy7FkLxJy05gaxcocEtcrZIe2p1FZbNjFEL0lS/jeAb+rKO\n\t2bRVUQYg9vmHqpktcftRS+vS2UVuZGVXohxbkzJ/Jvc8HYDrsqGY6wEecZK5uBUvaX/Ow0yRbJeoM\n\tj0Lwl+hrIH+vitlqzRHDKNTIjj/N+m4l7xidKhitUfltwTvLD8ej0I6CyxniKE/NdD+UQWV6rcdOm\n\twCGeUTiUVQqMp+5ibOVDXb9em3Q77R/Kc4svAcRUXNiDFV2ZaBqYYy/WHWxXYE6p9MtkHXmAl/iT3\n\tC/fcwAitn1CDMZ2AWSjg==;","From":"Fabrice Gasnier <fabrice.gasnier@st.com>","To":"<lee.jones@linaro.org>, <benjamin.gaignard@linaro.org>,\n\t<jic23@kernel.org>, <thierry.reding@gmail.com>, <robh+dt@kernel.org>","Subject":"[RESEND PATCH v3 0/9] Add STM32 LPTimer: PWM, trigger and counter","Date":"Mon, 28 Aug 2017 12:04:05 +0200","Message-ID":"<1503914654-19963-1-git-send-email-fabrice.gasnier@st.com>","X-Mailer":"git-send-email 1.9.1","MIME-Version":"1.0","X-Originating-IP":"[10.75.127.45]","X-ClientProxiedBy":"SFHDAG1NODE1.st.com (10.75.127.1) To SFHDAG5NODE3.st.com\n\t(10.75.127.15)","X-Proofpoint-Virus-Version":"vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-28_06:, , signatures=0","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170828_030508_866557_F1793F24 ","X-CRM114-Status":"GOOD (  12.15  )","X-Spam-Score":"-2.6 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.6 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow trust [91.207.212.93 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"mark.rutland@arm.com, devicetree@vger.kernel.org, alexandre.torgue@st.com,\n\tlinux-pwm@vger.kernel.org, linux-iio@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org, vilhelm.gray@gmail.com,\n\tmcoquelin.stm32@gmail.com, fabrice.gasnier@st.com,\n\tlinux-arm-kernel@lists.infradead.org, benjamin.gaignard@st.com","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"},"content":"This series adds support for Low-Power Timer that can be found on\nsome STM32 devices.\n\nSTM32 LPTimer (LPTIM) is a 16-bit timer that provides several\nfunctionalities. This series adds support for following features:\n- PWM output (with programmable prescaler, configurable polarity)\n- Trigger source for STM32 ADC or DAC (LPTIM_OUT)\n- Quadrature encoder and counter\n\nThe MFD core is used to manage common resources (clock, register map)\nand to detect encoder feature. \"stm32_lptimer\" structure is provided\nto its sub-nodes to share those information:\n- PWM driver is used to implement single PWM channel\n- IIO trigger\n- IIO quadrature encoder and counter\n\n---\nResend v3 with collected Acks\n\nChanges in v3:\n- I sent this v3 with various changes, but still need to discuss ABI\n  for counter driver (no change on this in v3).\n- Remarks for Rob on dt-bindings\n- Add validate_device in Trigger driver\n- Update PWM driver after Thierry's comments\n- Additional patch for STM32 ADC trigger\n\nChanges in v2:\n- Various remarks from Lee, on MFD part, extended to the full series,\n  such as: clock name, use \"Low-Power Timer\", file headers, dt-bindings\n  props descriptions, fix dt example.\n\nFabrice Gasnier (9):\n  dt-bindings: mfd: Add STM32 LPTimer binding\n  mfd: Add STM32 LPTimer driver\n  dt-bindings: pwm: Add STM32 LPTimer PWM binding\n  pwm: Add STM32 LPTimer PWM driver\n  dt-bindings: iio: Add STM32 LPTimer trigger binding\n  iio: trigger: Add STM32 LPTimer trigger driver\n  dt-bindings: iio: Add STM32 LPTimer quadrature encoder and counter\n  iio: counter: Add support for STM32 LPTimer\n  iio: adc: stm32: add support for lptimer triggers\n\n .../ABI/testing/sysfs-bus-iio-lptimer-stm32        |  57 +++\n .../bindings/iio/counter/stm32-lptimer-cnt.txt     |  27 ++\n .../bindings/iio/timer/stm32-lptimer-trigger.txt   |  23 ++\n .../devicetree/bindings/mfd/stm32-lptimer.txt      |  48 +++\n .../devicetree/bindings/pwm/pwm-stm32-lp.txt       |  24 ++\n drivers/iio/adc/stm32-adc.c                        |  14 +-\n drivers/iio/counter/Kconfig                        |   9 +\n drivers/iio/counter/Makefile                       |   1 +\n drivers/iio/counter/stm32-lptimer-cnt.c            | 383 +++++++++++++++++++++\n drivers/iio/trigger/Kconfig                        |  11 +\n drivers/iio/trigger/Makefile                       |   1 +\n drivers/iio/trigger/stm32-lptimer-trigger.c        | 118 +++++++\n drivers/mfd/Kconfig                                |  14 +\n drivers/mfd/Makefile                               |   1 +\n drivers/mfd/stm32-lptimer.c                        | 107 ++++++\n drivers/pwm/Kconfig                                |  10 +\n drivers/pwm/Makefile                               |   1 +\n drivers/pwm/pwm-stm32-lp.c                         | 246 +++++++++++++\n include/linux/iio/timer/stm32-lptim-trigger.h      |  27 ++\n include/linux/mfd/stm32-lptimer.h                  |  62 ++++\n 20 files changed, 1182 insertions(+), 2 deletions(-)\n create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-lptimer-stm32\n create mode 100644 Documentation/devicetree/bindings/iio/counter/stm32-lptimer-cnt.txt\n create mode 100644 Documentation/devicetree/bindings/iio/timer/stm32-lptimer-trigger.txt\n create mode 100644 Documentation/devicetree/bindings/mfd/stm32-lptimer.txt\n create mode 100644 Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt\n create mode 100644 drivers/iio/counter/stm32-lptimer-cnt.c\n create mode 100644 drivers/iio/trigger/stm32-lptimer-trigger.c\n create mode 100644 drivers/mfd/stm32-lptimer.c\n create mode 100644 drivers/pwm/pwm-stm32-lp.c\n create mode 100644 include/linux/iio/timer/stm32-lptim-trigger.h\n create mode 100644 include/linux/mfd/stm32-lptimer.h"}