From patchwork Wed Jul 3 10:08:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 11029271 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 84F5113B1 for ; Wed, 3 Jul 2019 10:08:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73C01288CE for ; Wed, 3 Jul 2019 10:08:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6817D288D8; Wed, 3 Jul 2019 10:08:55 +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 1F249288CE for ; Wed, 3 Jul 2019 10:08:55 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=bd4w1cRrPAVX+u9in+gW6P8lfnKvOtSlXSHONrllFUo=; b=cyGct0245XPDEU zWtvLFnWMGu0It3EcZJ87UlIO5YkCOcn25GmwX12OrV8VgsE1aM84hHWFrA3Lzs+b7hi2qWlXWXjj cSfqG57UbykLCiGocS/va/m0zm6H470Bq0Ri2VMAk+JGI/nZ+i4ecTMCgxatlvS1Yq01iFwdJBo51 lLXr5Q8zSb//x99YYWQRKeNk00RSTlUbexwbJMwq30pZ1+fiAnv6cYSDSqEgI985L12eTfeZKFXoY JsDqmf6KOWCBcKa0ZHvAz8rqggiTHRWiCubwSyURGkwb+RW0EXl/Cdebg02EspzRqIwRqjYI1oqPP KzJ5JQcMwR1OPyzSo/Ew==; 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 1hicC6-0008Bd-In; Wed, 03 Jul 2019 10:08:54 +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 1hicBp-00080d-9Z for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2019 10:08:39 +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 x63A78vA000403; Wed, 3 Jul 2019 12:08:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=yQLPGIAaYXazeAIq/YODkM7dpT27pO1tgwGE1je5OLc=; b=NPPjohpl4RNSBC7RN6FWvoNHRNykLuIpwfpJ0wKleYHtrYmiXHHp0rL6nIsIxhOj3XPt wvPP4xrcOtebmS/LHq/xKBBj3uWO+R5t46SeolR0ZCGwjUWIuw3JPOrO0bFbZYopEf0k p8xbGCliCA2pNjMK9n/tho7/8x8ZPcKK3SCQ5jvOwJSI59jBcgGzBouElFPgzuAMJofr kBgxG5LdWfl0A2EHqjQAhIrAFMWuI6szWjnngs2IMYLp2ZneuA83AIFmnEkwbCuKqTOS EgI11ymbmakYjj6o31+aVu02Vlwx1QZ1/QaaOMJ9LBXCQgPC9HKB6VmwBJaGUkM2DtXB hQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2tdwrv2j5b-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 03 Jul 2019 12:08:26 +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 E4D1231; Wed, 3 Jul 2019 10:08:23 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B01B92681; Wed, 3 Jul 2019 10:08:23 +0000 (GMT) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 3 Jul 2019 12:08:23 +0200 Received: from localhost (10.48.0.167) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 3 Jul 2019 12:08:23 +0200 From: Fabrice Gasnier To: , , Subject: [PATCH v2 0/3] STM32 ADC analog switches supply control Date: Wed, 3 Jul 2019 12:08:13 +0200 Message-ID: <1562148496-26789-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.48.0.167] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-07-03_03:, , signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190703_030837_945591_17274EA7 X-CRM114-Status: GOOD ( 12.29 ) 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: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, lars@metafoo.de, mcoquelin.stm32@gmail.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, pmeerw@pmeerw.net, knaack.h@gmx.de, fabrice.gasnier@st.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org 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 series adds support for SYSCFG bits that control ADC analog switches supply on STM32MP1 and STM32H7. The ADC inputs are multiplexed with analog switches which have reduced performances when their supply is below 2.7V. Analog switches supply can be controlled using SYSCFG bits, to reach full ADC performance. --- Changes in v2: - Rework since: "Add missing vdda-supply to STM32 ADC" series [1]. - Booster is handled by a regulator driver, see "regulator: add support for the STM32 ADC booster" series [2]. - Only enable vdd regulator when needed - Fix typos [1] https://lkml.org/lkml/2019/6/19/411 [2] https://lkml.org/lkml/2019/6/28/188 Fabrice Gasnier (3): dt-bindings: iio: adc: stm32: add analog switches supply control iio: adc: stm32-adc: add analog switches supply control ARM: dts: stm32: add syscfg to ADC on stm32mp157c .../devicetree/bindings/iio/adc/st,stm32-adc.txt | 6 + arch/arm/boot/dts/stm32mp157c.dtsi | 1 + drivers/iio/adc/stm32-adc-core.c | 193 ++++++++++++++++++++- 3 files changed, 199 insertions(+), 1 deletion(-)