Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1761701pxf; Fri, 26 Mar 2021 14:21:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+RbyU2aBqA3zhgFREz05liqVoda5ctlY7pgh8F60PVcZl/LskE5bbbIW14outF3wBnEzl X-Received: by 2002:a17:906:74c4:: with SMTP id z4mr17538543ejl.512.1616793668025; Fri, 26 Mar 2021 14:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616793668; cv=none; d=google.com; s=arc-20160816; b=Bw+ehi8+b+xquM3Dxig10CwD5DDMie5H/GeTOnkqBcyTOQLga+yJf/U0L6illWDdZr W+hyLt679pQY2O7QjdwD2oK1mdlaggewBXdn5lRqIZStJi7kulG1JNq9s2wehHECqZt8 Tr1TqDJY4ywW5CDQVyJki1pHD9X3tVJwroIg9wABdRlgrchWbXBiduFibiyUExS+loLC ty0HabttJ6eaNYgnH2HS8oxeFLiK9P6Il3r2nR3NjNSpA0Fpe3POcxOKA6SNq4rVITFg B0qBVUc3n9+8JnfkoOlhaM3mtd/MBWuG3vhrnjSUeZek7dwkOw6pcPUZH+oa/Hn8KQyJ s6hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bRKC7X28obsRcnB5q96IoDTtBZOoyADsH3nuaftswgE=; b=gFi/yhuixUf4nK+9O5fe6LzZrJe5F5sQSRlwIT3uhF+g5l2/7rXlJQLm60RMIJw5xe gcnm2fyUiRyIdmu3TD24RN1wiqOXcKGsd/EGklq1Q0xM/j5n40n9ovxQgsFyX2JIsGJ2 JhXoFOR2tGS1lLW5zxHUKm9xOvax6INCfpsfR8zHOWKxoo3J5DXZGhfvMzECqkuqCBHU sKOCaaIQV97vn1F8Nqht5hICJEg1hDLJGuhBjIqpmLZNBgrWnlDlSWsobAbB8OVTTuE+ 0lHXqo2BrTkX1XYcAhBrwUq9BXcDZQ8SX7EsQsUkacUGZVriCDnFdr4nevkgnLf7uzaB 3Tcg== 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 gs37si7933034ejc.198.2021.03.26.14.20.45; Fri, 26 Mar 2021 14:21:08 -0700 (PDT) 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 S229986AbhCZVTf (ORCPT + 99 others); Fri, 26 Mar 2021 17:19:35 -0400 Received: from mail-il1-f174.google.com ([209.85.166.174]:46880 "EHLO mail-il1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbhCZVTM (ORCPT ); Fri, 26 Mar 2021 17:19:12 -0400 Received: by mail-il1-f174.google.com with SMTP id j11so6128655ilu.13; Fri, 26 Mar 2021 14:19:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bRKC7X28obsRcnB5q96IoDTtBZOoyADsH3nuaftswgE=; b=aTfkLzadFx7rDYVIEo51mZFhufMzWwNf2afrhMCf7DKZO6yjhKYXQ5p2lsZQ90Nouz eySYjUn+ETAuAiF2p3vaUHxYqkw9aW5HQXkaaxoYfia6EjWkFI5jNe13ZCyQFx4S4MbE 7ZHbwIPWMglxsig25MowCB1d7TDQM2sQSwRiGzf/8wAU8QkPPVGnwxpG6A5InCy2qUj9 su5AIuvPqFNmu2TxcSdGzAQtAYlPXppenCdCXpgjZXDSYFy2ffOJMSzUIreb0MQ9GxWF pHzfoz//HYhCqKGfncWTkt0xdC/kRJFzmlQp2RVJHbTypcMOJ6ubYZg24/Zo3W8k29Mg 7FIA== X-Gm-Message-State: AOAM531xWoqaLTBGe710GQzdyx0W+DCE9zAZJU0vAf2qwHv3zAj3eNPx QVk641vU5FI4573Ob3p8ig== X-Received: by 2002:a92:c549:: with SMTP id a9mr12221004ilj.300.1616793551531; Fri, 26 Mar 2021 14:19:11 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id w1sm4860831iom.53.2021.03.26.14.19.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 14:19:10 -0700 (PDT) Received: (nullmailer pid 3878058 invoked by uid 1000); Fri, 26 Mar 2021 21:19:08 -0000 Date: Fri, 26 Mar 2021 15:19:08 -0600 From: Rob Herring To: Oleksij Rempel Cc: Jonathan Cameron , 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 v4 1/3] dt-bindings:iio:adc: add generic settling-time-us and oversampling-ratio channel properties Message-ID: <20210326211908.GA3876801@robh.at.kernel.org> References: <20210322150608.14347-1-o.rempel@pengutronix.de> <20210322150608.14347-2-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210322150608.14347-2-o.rempel@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 22, 2021 at 04:06:06PM +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 oversampling-ratio > 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..66fd4b45f097 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 Don't need a type for properties with a standard unit suffix. > + description: > + Time between enabling the channel and firs stable readings. > + > + oversampling-ratio: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Number of data samples which are averaged for each read. > + > additionalProperties: true > -- > 2.29.2 >