Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1139067pxf; Fri, 12 Mar 2021 02:57:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJYDH1Lw2ojD6HHS5+Fqfb97etFW+2JXujLu40NQFrw4ewPOxZbDyt4G+p2t4wMJ58c9Jp X-Received: by 2002:a05:6402:8d7:: with SMTP id d23mr13734090edz.256.1615546636675; Fri, 12 Mar 2021 02:57:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615546636; cv=none; d=google.com; s=arc-20160816; b=n/H3uudx/43kg3qBfQ8Wsi8EjqAneibxj+AUqwtb0nCl5IbeE02nO8MS33RWMGGe9a WevAACMmeji6bUdK2p3Ozt5VfKmtV642YS7KYSYWBSG/fMYbPmD/5bdAGhqagx/xPiCL jO9nZnMRIgYL6WkY0/Bf1dpiQZTuttmrSp5wx09qjSBqccvjiY5fFxPGi/p3/iTmre3G fnPGaKGd7xWjcStoWAYrbuHHDI5RFCLKvtJEJBh/Fy/RmU8e+4MRVV7QZ3/P8uoV6l6C o5gy0kjKCucPu2+7fSuO9fxLnqh7aquoELr41rPnDnQRa0mirOn1Bm8MVqs0zUtuVzjY ovtA== 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:date:subject:cc:to:from; bh=O3wrosAJOlly6Q5UvIiGPXb+zo0Apq4n2E4sUpr+Lp8=; b=P/lpuk5MK1klAVbXF82be0OpT7A0wD/viKG5JiNYX7K0zQmvrJL7QZx54NBSGZ/xZb 0psjCIl12vDLiJMJK4gostC2XyaodSWc1HfmDOVoFCoOT7NZ9duO5fr1qG/+QD0mXEXw a7csRbSJrivCb7hQy1wktwBeBXVB7G7wJifOVc0CRBIIVPb8Fzpkf1RXr9fttRs0r35i ieCp7kstnsONUYXY0GFquhb1/fCK6j7jT2X7UPHanlw023nuFLAkTPf6SZSJr/Zasoi2 kjpgi4gnfXjTsyUUlxPqJVoMMsKpzQv3CqpR7gv/Q7ZfCYJA0hURARwXDLxQ/m5ZdX2W ZYOA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si3933674edp.151.2021.03.12.02.56.53; Fri, 12 Mar 2021 02:57:16 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233704AbhCLKz5 (ORCPT + 99 others); Fri, 12 Mar 2021 05:55:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233265AbhCLKzY (ORCPT ); Fri, 12 Mar 2021 05:55:24 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B609C061763 for ; Fri, 12 Mar 2021 02:55:23 -0800 (PST) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKfRt-0006gJ-CH; Fri, 12 Mar 2021 11:55:17 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lKfRs-0008MB-DV; Fri, 12 Mar 2021 11:55:16 +0100 From: Oleksij Rempel To: Rob Herring , Jonathan Cameron Cc: Oleksij Rempel , 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: [PATCH v2 1/3] dt-bindings:iio:adc: add generic settling-time-us and average-samples channel properties Date: Fri, 12 Mar 2021 11:55:13 +0100 Message-Id: <20210312105515.32055-2-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210312105515.32055-1-o.rempel@pengutronix.de> References: <20210312105515.32055-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. + + average-samples: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Number of data samples which are averaged for each read. + additionalProperties: true -- 2.29.2