From patchwork Wed Jun 19 13:03:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 11004107 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C469176 for ; Wed, 19 Jun 2019 13:04:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3C0428A51 for ; Wed, 19 Jun 2019 13:04:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7BEF28A1A; Wed, 19 Jun 2019 13:04:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1DA1C28A5A for ; Wed, 19 Jun 2019 13:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=L8i6D+G0f3BN9NpK24y6TfJFxBzhev8ZzJ96RBnAdYg=; b=lAem5NroDUmH48 obkwJ66mF/HrB1qSPkansXmxGqW764pkBCxcFJz+9nFuACEBCl9IN28p3gBpXrINZe8E+HMOk2Qsu WljRH8fnJ1r7doTRNJNBSMoCQ7APcpe8oYNgNSbdPMNe7ZrKMmY2373z74i5wOnnDLaG094sPDG+7 2OQf3PUyRa9v4BXrkSydtdyjHNJAiB0yApCv5M6eGgOIPMc5soT9VULCXoPbSrRU4Nl6Nyvc/XftV HfGhZmsgTpSMdYUdX8nuZ8VSKgINf1hYBI+Ht9G4OqrjMKBIsRiQ3eNO2uzEhyqU2aMrTfazsGpO4 /AmxzGqqzl1QMhgLuC2w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hdaFw-0000DW-As; Wed, 19 Jun 2019 13:04:04 +0000 Received: from mx07-00178001.pphosted.com ([62.209.51.94]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hdaFt-0000CY-9J for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2019 13:04:03 +0000 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5JCuBsW030426; Wed, 19 Jun 2019 15:03:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=iujWyaLCp1yh3WAwepteDeXAm/rq9tWRC+STHY0lkfE=; b=hp7o3lBcKOgc5RGR6SJ+PIyrZXgOU7T3o+HX1UMkMyTpkK+ytnl+N3MRTjcFsyiJkQKO UGqugdp+C01wkx+1FrgEeSXg1q1Fj25vZcVRvMdY9gTU5K5cxlnFdUlWFyCImGjiLBPl etpHvNb6rVL9Kb+53EIFxmph9mxqF2gdFq37zySslBHvHzLdsWaJ5K8uQ4Hbk0M6ymly 4T4JAbZOc+Rk8iCwqtCFVYNJQAQcLZcoqxdrPqjB2zP2lJSrWXr5RhvL+yzKn/8Wd4tO 4HDiVf9YfYPeL+n7tOGhm1bnGDCVLqq9KXv77ykG8sBzghJ49AnFwz6aHsPG/RzvIIew aA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2t781a3yxc-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 19 Jun 2019 15:03:55 +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 3B49634; Wed, 19 Jun 2019 13:03:54 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 17F142831; Wed, 19 Jun 2019 13:03:54 +0000 (GMT) Received: from SAFEX1HUBCAS21.st.com (10.75.90.45) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 19 Jun 2019 15:03:54 +0200 Received: from localhost (10.201.23.16) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 19 Jun 2019 15:03:53 +0200 From: Olivier Moysan To: , , , , , , , , , , , , Subject: [PATCH 0/5] iio: adc: stm32-dfsdm: fix and improve output data managementiio: adc: stm32-dfsdm: fix and improve output data management Date: Wed, 19 Jun 2019 15:03:46 +0200 Message-ID: <1560949431-22948-1-git-send-email-olivier.moysan@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.201.23.16] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-19_07:, , signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190619_060401_797870_7FF8BD18 X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch-set provides some fixes and improvements regarding output data format for STM32 DFSDM. - Fix output data resolution and saturation management in continuous mode - Fix data type - Apply same processing on data in continuous and triggered mode - Add fast mode support to get better resolution for output data - Add a comment about 16 bits data transfers Olivier Moysan (5): iio: adc: stm32-dfsdm: fix output resolution iio: adc: stm32-dfsdm: fix data type iio: adc: stm32-dfsdm: manage data resolution in trigger mode iio: adc: stm32-dfsdm: add fast mode support iio: adc: stm32-dfsdm: add comment for 16 bits record drivers/iio/adc/stm32-dfsdm-adc.c | 233 +++++++++++++++++++++++++++++++------- drivers/iio/adc/stm32-dfsdm.h | 24 +++- 2 files changed, 208 insertions(+), 49 deletions(-) Acked-by: Fabrice Gasnier