Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2739271ybx; Fri, 8 Nov 2019 08:39:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwiAvUvLH8D++zloHXy/qXpvndlk+sCoGKNO1VInL+pFaGyGiT1cnXxu3o3eKE6C4q7+4IZ X-Received: by 2002:a17:906:4d58:: with SMTP id b24mr9489610ejv.277.1573231167463; Fri, 08 Nov 2019 08:39:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573231167; cv=none; d=google.com; s=arc-20160816; b=BdwJIBKl89cafUofxyhl98OHkBR7EWlJjqRCZ//G82iwakxduLm54wWG2e9Ni3oscr YFAMpupL221oq0NozTsRUFOXtDzofBEGRrTwZvmMglPkidhVQO7ZqQeB1LugePcDkxEh 7ULwMqrDCy6NQ0kHtYcL/bMkmgcwNJRoTUalCYv2v270IansEGmHQ9rASIGn9AGxE2a9 6X15bKhIBHNh11Nplvt6ZCOwxqXaZwSrmZOpLV8TOBIQxJ1FcHPJ3pk8v+HhEA0x/JOj zVyRUF/QpjihNK0YmC4usQX5GX4eZO8sonD/3OowQ7zyP5+4xYd/xt2ctb+oUEveuJ/U AoRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=smoPj/z5Sn90v90H2JHjnC4eM+rbToGswr/u4f90j/g=; b=LUDMvht0ceEaTGpzyuFa/eklIEqUOGu97jDbF/L46ZK1D9y7cErvUFo3nocrXdYLUj 9tL8eCBUPnQ1MuaVFoM8yfUbOerhtBGQ9HfMxNvtVdK0dPk98+20fJayG845OLfCEoy1 lEBFI15O8hnTfY39KBqXzTom8aSBvW/xmDljwHf3nbBFFoO4fQ+j6dcVLX+y0tUtskwH NeqVBzBdnroxfH1+98959emvZl6hXjK5Q8zAW8h0lyqiuSJGQ2u4yM4dZdRHE2TroSJv XRKqTIyIajQSZ9i9n32IOkHWhyLU5GtUYIu5WP+qkHi6HhsdTC5JZb8TeQX53BBEm507 WuMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=vOZvnoNT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be23si4206221edb.103.2019.11.08.08.39.04; Fri, 08 Nov 2019 08:39:27 -0800 (PST) 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=vOZvnoNT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727700AbfKHQiG (ORCPT + 99 others); Fri, 8 Nov 2019 11:38:06 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:30830 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727412AbfKHQiB (ORCPT ); Fri, 8 Nov 2019 11:38:01 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xA8GMENE032766; Fri, 8 Nov 2019 17:37:50 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=smoPj/z5Sn90v90H2JHjnC4eM+rbToGswr/u4f90j/g=; b=vOZvnoNT0YRkphaJ2ZC3jspcjSv811wxUyT0b9/ZWw5tLJmJqA4sBs5DoWg97XZODQjH aJWcICZALYH86Hkrcb+O8b1TTHAi+ntFz0bBX5co2GlXx4qk2kO+iu8a//U+DYeXx8ln rLG570a9czCepj+Q5dsQ0QyQfMK47rWkEBOXeJYcCuUmBWO9OtXLjH9okTcNFWY25rH8 Ly0dbrzclGaVJjkzFtbb6PNI8AFJ+W1A1qhSuALX/0d2xsP/Jgwut836msmunfZHTkE4 fahvm3uD91TBOpBcCxybYKxBidp6NfR9h14UTXW9oogkIo54URafitsGD2EjSAD4bw5T eQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2w41vmvpvw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 Nov 2019 17:37:50 +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 1290D10002A; Fri, 8 Nov 2019 17:37:50 +0100 (CET) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 064AF2C38AC; Fri, 8 Nov 2019 17:37:50 +0100 (CET) Received: from SAFEX1HUBCAS23.st.com (10.75.90.46) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 8 Nov 2019 17:37:49 +0100 Received: from localhost (10.48.0.192) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 8 Nov 2019 17:37:49 +0100 From: Fabrice Gasnier To: CC: , , , , , , , Subject: [PATCH 2/2] ARM: dts: stm32: add ADC support to stm32mp157c-ed1 Date: Fri, 8 Nov 2019 17:37:39 +0100 Message-ID: <1573231059-395-3-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573231059-395-1-git-send-email-fabrice.gasnier@st.com> References: <1573231059-395-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.48.0.192] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-08_05:2019-11-08,2019-11-08 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add ADC support to stm32mp157c-ed1 board. Following ADC signals are dedicated for analog and routed to connectors: - ADC1/2 in0 (ANA0) - ADC1/2 in1 (ANA1) - ADC1 in6 (PF12) Configure ADC1 with these signals. But keep it disabled by default, so PF12 can be used as gpio by default. Add VDD and VDDA supplies to ADC on stm32mp157c-ed1 board. This allows to get full ADC analog performances in case VDDA is below 2.7V (not the case by default). Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp157c-ed1.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts index b8cc0fb..d889813 100644 --- a/arch/arm/boot/dts/stm32mp157c-ed1.dts +++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts @@ -89,6 +89,22 @@ }; }; +&adc { + /* ANA0, ANA1 are dedicated pins and don't need pinctrl: only in6. */ + pinctrl-0 = <&adc1_in6_pins_a>; + pinctrl-names = "default"; + vdd-supply = <&vdd>; + vdda-supply = <&vdda>; + vref-supply = <&vdda>; + status = "disabled"; + adc1: adc@0 { + st,adc-channels = <0 1 6>; + /* 16.5 ck_cycles sampling time */ + st,min-sample-time-nsecs = <400>; + status = "okay"; + }; +}; + &dac { pinctrl-names = "default"; pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>; -- 2.7.4