From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4EA5EC4332F for ; Wed, 23 Nov 2022 20:45:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ffnq3kS2SLshv6l0FpoG75XJBWvXaL9mJBUdthTPkEs=; b=uh+3/+lPcpYeuN bi5sxHiAJaJK2rKq5GlNmi+2gO7zmNauzCpgu2P1HTMuEKKxauCpetLU+bhRl9YkLEQulgplV2Fqn nHaEy9ZTxqiIHWIWlSxvZbXvGXgElSaS32KSM93QWMXa+D4GVNLfLzoikJvCHlxg9nO0sWr8fbOK7 b4nRBW+FtQsbX4ukE5pNmZjV62jkJbzRrnYjypqgnIbmd3zyyvWcERR7j4jCSNCEhAtpRnqzbkKew g4TB8WwYnerNuZU4hQwBMf8jMC8oqjuiyEaielCPtrMMJGMmgOPQNulXoUNIQ6+YhOreIF3HVKwc2 7vJHx2zbRb5TO6/HhUGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxwbZ-002N0I-K2; Wed, 23 Nov 2022 20:44:25 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxwbX-002Myl-FD for linux-arm-kernel@lists.infradead.org; Wed, 23 Nov 2022 20:44:24 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 140E2B81F03; Wed, 23 Nov 2022 20:44:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1276FC433D6; Wed, 23 Nov 2022 20:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669236257; bh=blYSzKUNc7T988paAGw1Il7D1vmiMKzkZW2yOWCzzlg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hE7THTRUjsqqpPzD1p2zT+Sgxpmvspx3KLbpcQGOZr2BmnKf70NEIbO7heL7VJx+X 1M3JcHc209FIGLf4HtLpfNu06csLx46ZQRgpbZTDuamESCHaRw7Fq+gtnX4JdHMKWJ Aqt0uZe7C0pRUR4g7/Hbp26I+BhIRaXtT61gvr9QOybqjcFFy3b6+yXi/UzH0c8Ext rrworE6PHYCtU6gbWMsyFxfDpue0ay2EMtA4JgFwdBWQybY73Xpy1y6cIjNDC6uzbf nGSNXNutBibXCa+eeHNpgSnLi5Zmonjt2vhCvelH4icfgryzAe0zlzYmDXGHLzFQbQ RdhpiD65GLmgQ== Date: Wed, 23 Nov 2022 20:56:50 +0000 From: Jonathan Cameron To: Fabrice Gasnier Cc: Olivier Moysan , Lars-Peter Clausen , Maxime Coquelin , Alexandre Torgue , , , , Subject: Re: [PATCH 0/3] iio: adc: stm32: add smart calibration Message-ID: <20221123205650.3be4ee4e@jic23-huawei> In-Reply-To: References: <20221115103124.70074-1-olivier.moysan@foss.st.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221123_124423_703764_8DCB8B07 X-CRM114-Status: GOOD ( 21.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 23 Nov 2022 12:04:36 +0100 Fabrice Gasnier wrote: > On 11/15/22 11:31, Olivier Moysan wrote: > > Refine offset and linear calibration strategy for STM32MP15 and > > STM32MP13 SoCs: > > > > - offset calibration > > This calibration depends on factors such as temperature and voltage. > > As it is not time consuming, it's worth doing it on each ADC > > start, to get the best accuracy. There is no need to save these data. > > > > - linear calibration > > This calibration is basically SoC dependent, so it can be done only once. > > When this calibration has been performed at boot stage, the ADC kernel > > driver can retrieve the calibration data from the ADC registers. > > Otherwise, the linear calibration is performed once by the ADC driver. > > The backup of these data, allows to restore them on successive ADC starts. > > > > Olivier Moysan (3): > > iio: adc: stm32-adc: smart calibration support > > iio: adc: stm32-adc: improve calibration error log > > iio: adc: stm32-adc: add debugfs to read raw calibration result > > Hi Olivier, > > For the series, you can add my: > Reviewed-by: Fabrice Gasnier Applied to the togreg branch of iio.git and pushed out as testing to let 0-day have a first look at it. Thanks, Jonathan > > Thanks, > Fabrice > > > > > drivers/iio/adc/stm32-adc-core.h | 1 + > > drivers/iio/adc/stm32-adc.c | 135 ++++++++++++++++++------------- > > 2 files changed, 78 insertions(+), 58 deletions(-) > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel