Received: by 10.223.164.221 with SMTP id h29csp2189102wrb; Tue, 17 Oct 2017 17:39:18 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TVyZgwwwnHsrOWwagCmgy16vtkqceTyid8VsJZhvcNpbUpWkw8nj1/jhp1XQ9dPbWg87oX X-Received: by 10.159.235.142 with SMTP id f14mr5563569plr.450.1508287158501; Tue, 17 Oct 2017 17:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508287158; cv=none; d=google.com; s=arc-20160816; b=pN63RMEhr8igqkyzoYdb1IluB+EehEckuLOzRhsydGF2xm/bMu3sjh2CSW9MGCjkG6 DFTBjTSoYJmJ52m5nXp18PVNPCi7cmOpkhxzKyTopM+pxKfrVgln4Xvk/GpjT7brJn/F YfvIHw2kT7aErxV/KVZ1zayz5kpaRkbm8ew9MIKaRNQfbhQz21MvXXxOHWIiGJGuzUs3 asMWyvsNpKMIiVYvgIo/nGBG757CZ5Vmnl9T38J4wioNPCIubACQPezYXn5lxHj/zUoq uj+7zvX91Ms5OLpd5LiwyWjZ3qQy8XxFwkD3iICXWQWIq7OlnMFBMHDOQM/CVhrJiB4J n+FA== 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:arc-authentication-results; bh=XDA7z/lFc1aFLqGqj73zxQFD/NV6rWcVO2McWynlkb8=; b=OrsYJKg0/s/wK95Wm8QCKA7cUOMIH9aQcIevc4pZHQvpzdUaX8rxcaCE+FJbSkIUEA HzS/r9iD4Pm66vHuMV+aIcKvQ9RNwdyAbSieSRRIBSsf9W0uGrMVIqNcAb7x4ynZlaoe nKbPlE/aNJLuCBouTlfTtVaeJAng13t72movBhm7iCrmyHXUiC5beXoTvuii6RVkalLv Roe6cG6RPIDaAPl9kCJ2yJ1qYcaowa9ia5oQsp1v18Or5eTQOU11mkxfIExdGsAQf1eO arfnd8kyY8ecaBATt1Xi9Te5eVAPVCqFHDmHC2zaZAGfu3EWlZ5CeENgLQuCFpGwixa+ jIMg== ARC-Authentication-Results: i=1; mx.google.com; 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 f16si4811385pfj.526.2017.10.17.17.39.04; Tue, 17 Oct 2017 17:39:18 -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; 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 S1762133AbdJQNR0 (ORCPT + 99 others); Tue, 17 Oct 2017 09:17:26 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:24440 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755123AbdJQNRP (ORCPT ); Tue, 17 Oct 2017 09:17:15 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v9HDEHrJ024000; Tue, 17 Oct 2017 15:16:03 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2dmvtrx9u2-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 17 Oct 2017 15:16:03 +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 23C243A; Tue, 17 Oct 2017 13:16:03 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id EDFA72725; Tue, 17 Oct 2017 13:16:02 +0000 (GMT) Received: from localhost (10.75.127.46) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 17 Oct 2017 15:16:02 +0200 From: Fabrice Gasnier To: , CC: , , , , , , , , , , , , , Subject: [PATCH 1/3] dt-bindings: iio: adc: stm32: add support for diff channels Date: Tue, 17 Oct 2017 15:15:43 +0200 Message-ID: <1508246145-19417-2-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508246145-19417-1-git-send-email-fabrice.gasnier@st.com> References: <1508246145-19417-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG3NODE1.st.com (10.75.127.7) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-10-17_10:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org STM32H7 ADC channels may be configured either as single-ended or differential. Add 'st,adc-diff-channels' property to support differential channels. Differential channels are defined as a pair of positive and negative inputs: vinp & vinn. Signed-off-by: Fabrice Gasnier --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt index 48bfcaa3..c3c8de1 100644 --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt @@ -62,6 +62,12 @@ Required properties: - st,adc-channels: List of single-ended channels muxed for this ADC. It can have up to 16 channels on stm32f4 or 20 channels on stm32h7, numbered from 0 to 15 or 19 (resp. for in0..in15 or in0..in19). +- st,adc-diff-channels: List of differential channels muxed for this ADC. + Depending on part used, some channels can be configured as differential + instead of single-ended (e.g. stm32h7). List here positive and negative + inputs pairs as , ,... vinp and vinn are numbered + from 0 to 19 on stm32h7) + Note: At least one of "st,adc-channels" or "st,adc-diff-channels" is required. - #io-channel-cells = <1>: See the IIO bindings section "IIO consumers" in Documentation/devicetree/bindings/iio/iio-bindings.txt -- 1.9.1 From 1585873686883635272@xxx Mon Dec 04 17:03:24 +0000 2017 X-GM-THRID: 1585426008347692082 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread