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 C273EC433FE for ; Wed, 23 Nov 2022 11:06:30 +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:In-Reply-To:From:References:CC:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SbRJ8+iQazzFxzLwiA+R1xVOKX5MYHum2qaD5rRRhmE=; b=xT0HFsENR/xCxX 3WXt+eI+rW+NAJ3iAXQhbBi8DYXJ9xA9reYkmOPdv81QYdWoaGOXcjN0Qrh3bu7h0v3wMYJ3pUjOr HTNOOejA8c/UmTRlGOx7JKCdYHEAdKw/URIeA5tczXRlQce+XaiIsLFJ1EaLoIVyC7wYheGhTkq0z fNB7xy5ooJAQFGTB5e5Ffrl6N82ueiuqXThDXnC9fPm/eIcXT7tk+irIqshIGVufxXy4WvlPOmYWe D6VhVa+nqOmPfYxXUOtFtirnZ7OPit1/DaKLWZrL3Kh5QgdBXinoDWR2j5cPpf9SNO7jUIio8Y2+A rKFCWL+3C/ZMpgJ1JatQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxnYm-00GWMj-8s; Wed, 23 Nov 2022 11:04:56 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxnYi-00GWKo-7d for linux-arm-kernel@lists.infradead.org; Wed, 23 Nov 2022 11:04:55 +0000 Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2ANAapRm023568; Wed, 23 Nov 2022 12:04:43 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=u0sShtivsgK/20XBxCveeAhPRdkeUJsHdC8lqu1cuGU=; b=Eg240EFQCP7w8o+l4HFuPIv4z4pgaDZZUT9YTRzpEYf5NNFxEr3HvWzQUb9IRNSCt8Uo CyXtcytbZhL7PM/FRT8YJ1n1XIkh6PpkeRJ95DIQMHnWp2d3f3357cqMszu2PAj9DVBT aKgSQmD6Z5Ij2vKyHvw87cOQcZA9SUyUyZJlF/U+jLmruAHiBEILu951zRkDUkXtiLMh xxzOv9E+D6kBXxGEWQOuL1Jr4hj/DKcdEI9uhfhC7xHLVOPVDQukR0GrcJnwCMqr6hmI TFd7fTNvMKtXgOPVWlq/ebzIY+57NHlKMR+nfHmT/WD61oUuB8z9QDziJV2jdg8hCTZl Lw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3m10c4e1wq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 23 Nov 2022 12:04:43 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 13458100034; Wed, 23 Nov 2022 12:04:38 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 0DD0421A229; Wed, 23 Nov 2022 12:04:38 +0100 (CET) Received: from [10.48.1.102] (10.48.1.102) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.13; Wed, 23 Nov 2022 12:04:37 +0100 Message-ID: Date: Wed, 23 Nov 2022 12:04:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 0/3] iio: adc: stm32: add smart calibration Content-Language: en-US To: Olivier Moysan , Jonathan Cameron , Lars-Peter Clausen , Maxime Coquelin , Alexandre Torgue CC: , , , References: <20221115103124.70074-1-olivier.moysan@foss.st.com> From: Fabrice Gasnier In-Reply-To: <20221115103124.70074-1-olivier.moysan@foss.st.com> X-Originating-IP: [10.48.1.102] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-23_05,2022-11-23_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221123_030452_751189_95708BB7 X-CRM114-Status: GOOD ( 17.92 ) 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 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 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