Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2086809pxf; Sat, 13 Mar 2021 07:17:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAK1BxowYqZsqtviNZqIACr+/hPRME0LThC1Af9kFqIytWSNLNhxIvKAcsrO1rEfAjz+Xm X-Received: by 2002:a50:9d0b:: with SMTP id v11mr20931258ede.308.1615648651296; Sat, 13 Mar 2021 07:17:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615648651; cv=none; d=google.com; s=arc-20160816; b=ZXIZk+zOc9OoObe9oFPRZ1L6ULgkv979hdngFGzXtVWRV1W8EQx4FFumZfw4ubUEC6 u2uHrTmmE0xyfCpOfwYFuGwwsLufMezSEr54eno+1OPTscsZa7zIvkLrx38FL1UDr1sk +q76GS1ADAIn1nuFsFSeiecLlYribnsN+geBlOelfy7w9Ucn4M3DzglsZNJuzJof8Wws wOfz1p/do4Ecaf5qsaHDyMluRNF+N9kNNPYGB+b5e8okc9wbZpc8yLIq6RunhknlC6H2 AlbnlHXZlMqCH4i6hG+/tie/nrCARMFbetQBvoz/gPDFZJbZSQWx8dSD4kSop6K4zM8g 8Qcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=3ssfGSp7wBxofNAabodxlpN3CmXjMUhF2dzT9kdtqEA=; b=AJcUeL/hVV0WRw6MEAFz1FVlW65o5YS8oK5MNrLlQbCx11hYnRxIhZ3k9ZIoqPV9A6 8+HRu/oLMWY3bkXl0GEJ5oYo01f0wWVMw00oIR3mGUqgb4BNklRA1koVf4IXWMUYrqfo +6jKs7c5ZZSZdap/I1zEov2Bm45d0ovfq7ApfX+bSlHnw2sXaWl0/LRTjkg0inORO54u GmiSxf3q1yx7lkfGdae3P43chMGUhQ0pwqoRkB9OL3StViz7dpM1LFYqqoxFs0Nz6b5P y1YkBWAyPE19AHVE75MUkLo1nCGpQ7PziFGdre1UVDhCLprEb24sDCAmlsvVDELDfKrl JtJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm7si7028060edb.188.2021.03.13.07.17.06; Sat, 13 Mar 2021 07:17:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230441AbhCMPP6 (ORCPT + 99 others); Sat, 13 Mar 2021 10:15:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:32844 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbhCMPPY (ORCPT ); Sat, 13 Mar 2021 10:15:24 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 10A9864F16; Sat, 13 Mar 2021 15:15:21 +0000 (UTC) Date: Sat, 13 Mar 2021 15:15:18 +0000 From: Jonathan Cameron To: Oleksij Rempel Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Pengutronix Kernel Team , David Jander , Robin van der Gracht , linux-iio@vger.kernel.org, Lars-Peter Clausen , Peter Meerwald-Stadler , Dmitry Torokhov Subject: Re: [PATCH v2 1/3] dt-bindings:iio:adc: add generic settling-time-us and average-samples channel properties Message-ID: <20210313151518.2681a59a@archlinux> In-Reply-To: <20210312105515.32055-2-o.rempel@pengutronix.de> References: <20210312105515.32055-1-o.rempel@pengutronix.de> <20210312105515.32055-2-o.rempel@pengutronix.de> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 12 Mar 2021 11:55:13 +0100 Oleksij Rempel wrote: > Settling time and over sampling is a typical challenge for different IIO ADC > devices. So, introduce channel specific settling-time-us and average-samples > properties to cover this use case. > > Signed-off-by: Oleksij Rempel > --- > Documentation/devicetree/bindings/iio/adc/adc.yaml | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Documentation/devicetree/bindings/iio/adc/adc.yaml > index 912a7635edc4..c748f6573027 100644 > --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml > @@ -39,4 +39,13 @@ properties: > The first value specifies the positive input pin, the second > specifies the negative input pin. > > + settling-time-us: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Time between enabling the channel and firs stable readings. first > + > + average-samples: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Number of data samples which are averaged for each read. So in IIO at least, we tend to refer to this as oversampling. Perhaps we should use that term here as well? It would also be good to give some hint as to why this might be a DT property rather than a userspace control. Thanks, Jonathan > + > additionalProperties: true