From patchwork Wed Oct 25 09:27:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 830158 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yMPwH1wz9z9sRV for ; Wed, 25 Oct 2017 20:29:03 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932425AbdJYJ3A (ORCPT ); Wed, 25 Oct 2017 05:29:00 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:22910 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932419AbdJYJ26 (ORCPT ); Wed, 25 Oct 2017 05:28:58 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v9P9OefJ010452; Wed, 25 Oct 2017 11:28:04 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2dtg2q2mfc-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 25 Oct 2017 11:28:04 +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 EFCA331; Wed, 25 Oct 2017 09:28: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 9F57E15B9; Wed, 25 Oct 2017 09:28:03 +0000 (GMT) Received: from localhost (10.75.127.44) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 25 Oct 2017 11:28:03 +0200 From: Fabrice Gasnier To: , CC: , , , , , , , , , , , , , Subject: [PATCH v2 0/3] iio: adc: stm32: Add support for differential channels Date: Wed, 25 Oct 2017 11:27:42 +0200 Message-ID: <1508923665-2274-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG5NODE3.st.com (10.75.127.15) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-10-25_05:, , signatures=0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for differential channels that can be found on STM32H7 ADC: - Introduce new DT property 'st,adc-diff-channels'. - Slightly rework single-ended channels definition in stm32-adc driver. - Add support for differential channels to stm32-adc driver. --- Changes in v2: - Add an example and a note in dt-bindings to better explain 'st,adc-diff-channels' usage (based on Jonathan & Rob remarks). - Update variable names in stm32_adc_chan_init_one() based on Jonathan remark. Fabrice Gasnier (3): dt-bindings: iio: adc: stm32: add support for diff channels iio: adc: stm32: remove const channel names definition iio: adc: stm32: add support for differential channels .../devicetree/bindings/iio/adc/st,stm32-adc.txt | 24 +++ drivers/iio/adc/stm32-adc.c | 181 +++++++++++++-------- 2 files changed, 137 insertions(+), 68 deletions(-)