Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1516942imm; Tue, 22 May 2018 05:26:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrZAXhp/2qITdpjLpteaV7uY/hWqzIN0/AzysDRL+XgTfiS8JS9HlTRMwe5SYV9Bu3sfvHr X-Received: by 2002:a17:902:8c83:: with SMTP id t3-v6mr24704006plo.357.1526991971741; Tue, 22 May 2018 05:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526991971; cv=none; d=google.com; s=arc-20160816; b=cZvQ2BBdUO/W4vII4ZcLJBprbgg/bzu1B9afMXhmzTYkSUZFRNn2fFER2K+9t0rwoO GMarqbD/v9B7MQO0boBwugrIC4Z5RApTGf0/mK6+LwzgfUFeJrTCcx+ltY9fuEy5bw/W k0HDONZJLvGaXQeVJHZ1NCVJde2rY6nXVtphq/9EaMP8EMPPNtcDdMoPO7lzNtjE/of1 8ZvCA/4MWgpkb3sFroa+GzCcZ3DMaz7lLVam1kH6Yfb1QuWtgEV7L0ufd+CJeG5HcxeS U+Ic3yFnIXCJbpbqQTBRCaeq9s0/a/qAPZxKerFJgxGfEz9iwwZYW/6BYe2gTW/OVQP1 CDtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=bFqvDkdl2vMUtZ2LhqqV2D60vbQ+qVgex5NBsi1pOos=; b=F7Q46dATLbSD5/bSl1RrES/3m3uFuwbnJ7qdwKsqBZniXUGZJQvJrEtvTz5/WqVU3n VjGaHcnXvDOjCGhuir3QEd3kc8oSZI1OCHSoRBuNXYMa4WZCnLhtD5GBIRa2a6SFu3QL trETO1RtbsYosw67tFUXzylssiBH1PJcMr7MDXXxBhUptpzlnJjK3r8SvjMEu+WaLpXA cJeBKnAbE78HJD9mlpw+2xR5X22YbEV1lcjHAA+aqADFwu4U23LG4wlbgxTH3NVxl539 rMD32MYCvEaXQFSsMR5CFWNZ8lggaLrmvf2qZiE2HhaCgoq8FGu9AkPz3C8xRVWLau4J jxsg== 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 e129-v6si16684040pfa.217.2018.05.22.05.25.56; Tue, 22 May 2018 05:26:11 -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 S1751528AbeEVMYQ (ORCPT + 99 others); Tue, 22 May 2018 08:24:16 -0400 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:39745 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750707AbeEVMYN (ORCPT ); Tue, 22 May 2018 08:24:13 -0400 X-IronPort-AV: E=Sophos;i="5.49,430,1520924400"; d="scan'208";a="15177924" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 22 May 2018 05:24:12 -0700 Received: from localhost (10.10.76.4) by chn-sv-exch04.mchp-main.com (10.10.76.105) with Microsoft SMTP Server id 14.3.352.0; Tue, 22 May 2018 05:24:11 -0700 Date: Tue, 22 May 2018 14:23:19 +0200 From: Ludovic Desroches To: Eugen Hristev CC: , , , , , , , , , , Subject: Re: [PATCH v7 7/9] dt-bindings: iio: adc: at91-sama5d2_adc: add channel specific consumer info Message-ID: <20180522122319.GN22971@rfolt0960.corp.atmel.com> Mail-Followup-To: Eugen Hristev , jic23@kernel.org, alexandre.belloni@bootlin.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org, nicolas.ferre@microchip.com, dmitry.torokhov@gmail.com, robh@kernel.org References: <1526975559-18966-1-git-send-email-eugen.hristev@microchip.com> <1526975559-18966-8-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1526975559-18966-8-git-send-email-eugen.hristev@microchip.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 22, 2018 at 10:52:37AM +0300, Eugen Hristev wrote: > Added defines for channel consumer device-tree binding > > Signed-off-by: Eugen Hristev > Reviewed-by: Rob Herring Acked-by: Ludovic Desroches > --- > .../devicetree/bindings/iio/adc/at91-sama5d2_adc.txt | 9 +++++++++ > include/dt-bindings/iio/adc/at91-sama5d2_adc.h | 16 ++++++++++++++++ > 2 files changed, 25 insertions(+) > create mode 100644 include/dt-bindings/iio/adc/at91-sama5d2_adc.h > > diff --git a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt b/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt > index 6469a4c..4a3c1d4 100644 > --- a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt > +++ b/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt > @@ -21,6 +21,14 @@ Optional properties: > - dmas: Phandle to dma channel for the ADC. > - dma-names: Must be "rx" when dmas property is being used. > See ../../dma/dma.txt for details. > + - #io-channel-cells: in case consumer drivers are attached, this must be 1. > + See for details. > + > +Properties for consumer drivers: > + - Consumer drivers can be connected to this producer device, as specified > + in > + - Channels exposed are specified in: > + > > Example: > > @@ -38,4 +46,5 @@ adc: adc@fc030000 { > atmel,trigger-edge-type = ; > dmas = <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | AT91_XDMAC_DT_PERID(25))>; > dma-names = "rx"; > + #io-channel-cells = <1>; > } > diff --git a/include/dt-bindings/iio/adc/at91-sama5d2_adc.h b/include/dt-bindings/iio/adc/at91-sama5d2_adc.h > new file mode 100644 > index 0000000..70f99db > --- /dev/null > +++ b/include/dt-bindings/iio/adc/at91-sama5d2_adc.h > @@ -0,0 +1,16 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * This header provides constants for configuring the AT91 SAMA5D2 ADC > + */ > + > +#ifndef _DT_BINDINGS_IIO_ADC_AT91_SAMA5D2_ADC_H > +#define _DT_BINDINGS_IIO_ADC_AT91_SAMA5D2_ADC_H > + > +/* X relative position channel index */ > +#define AT91_SAMA5D2_ADC_X_CHANNEL 24 > +/* Y relative position channel index */ > +#define AT91_SAMA5D2_ADC_Y_CHANNEL 25 > +/* pressure channel index */ > +#define AT91_SAMA5D2_ADC_P_CHANNEL 26 > + > +#endif > -- > 2.7.4 >