Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp692382ybi; Wed, 3 Jul 2019 03:10:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2sWjPuCC0jqfaausCgf3d+ULYv/cmq7QwNNOGCoXydmaikc+RBVeoWjpX1cYY4tv7ew8q X-Received: by 2002:a63:6843:: with SMTP id d64mr28419988pgc.383.1562148635744; Wed, 03 Jul 2019 03:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562148635; cv=none; d=google.com; s=arc-20160816; b=T+UkCeohGaQyd+NXlc2CiSpV8KHCLWTgdh7UAEjOoMiNtY9Xh6y5iC+wsJH9sGumRk s2tSvzGnSaGaVUE/P0zAAXvEjeNz2eyqP4dZo3Uh4rA8pwFHJ916+JehPDxXn/zD4lRW 6J5TfExOoiBYYX7xy5yJdmlufHLrCCzZQvpFxadUf551Ec00iO2Cre/2GvE80mDnjM2y Z6hN1WCyj/fXm3OBU/i4RNeuUgrw7JcJ6fayFsXZVzyp6bVZCnTUARz1LXWVgkjSIwo3 iQvH1C5zEjDFfFQ9x/Tj2V2ExjI7dpvaaZJrj4xnLST225u7Hsw5D7Xxi6QG3DNEeWtI Sncg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=yQLPGIAaYXazeAIq/YODkM7dpT27pO1tgwGE1je5OLc=; b=X0Qo1jJZ+C8Xi0VQiRxw8Rbd4OG6LSu5IQt1tprhq7L87CPLRAqBl6hkuE6Vzwk+E0 fOW9saRQXXKzY8+PKgDLz4gzJd8CoUXiPFhKVw3R/BCC10W3/OKCNvJeVVH551K4m1fK YAjMemXNpnjn95IjBXZZfHVkxTjVlZbPQ5o1E+Qxc2W8OhtEcbmXKI5NeaorNHtbc+DO FqeYUIE3Xu6dRafFvreopCskXhMysQbi4HtMovaL7YOZfPgHux/22YKdtcN1+oDHq2WA C5gCh9jHdECyHLWaQubqFYV23wgf2Wo90w6+cPK+uUbreVNhBRp+o4yhaBagqpjzl6A8 E7qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=NPPjohpl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si1892238pfn.208.2019.07.03.03.10.20; Wed, 03 Jul 2019 03:10:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=NPPjohpl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727134AbfGCKJB (ORCPT + 99 others); Wed, 3 Jul 2019 06:09:01 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:39005 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726917AbfGCKJA (ORCPT ); Wed, 3 Jul 2019 06:09:00 -0400 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: , , CC: , , , , , , , , , , 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 Content-Type: text/plain X-Originating-IP: [10.48.0.167] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-03_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.7.4