Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1465552pxf; Fri, 19 Mar 2021 07:46:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp9wlg/UO1WUkADC/IwgrD7v1nmaPGifH97Yi3KS2Ip8PUZmHyoc6IYY+tlm820J11Zet2 X-Received: by 2002:a17:907:2bf6:: with SMTP id gv54mr4847999ejc.514.1616165213120; Fri, 19 Mar 2021 07:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616165213; cv=none; d=google.com; s=arc-20160816; b=yDA89JYZWgZbMQcP+8M1xVX98A4q0U26G/g+CFA9OSonlBcZCYcwQyRE1Cgi7pi5Sa I3W5LIDiULqpxw8D+n2+q2i7iFXpRTW1KzqrfUu9ZT47xE3MurM2Jsd6p2B+LVv2ffkC YpJb9Uhe63qDbgzIrZ7GdNTR0+OtduFQRbYxrBT99mkNaTC9iMq4g+sl9AB3NDoXlF9Y qXPcc5LILwe1VvQNUaXVQRU8pRQr5N3yLVog0KclLL011lcP0whrCSo7LTalR7uUG+7L WwIbeOnQq0FrXT72iOS8RPAiMi4BuO6A+ooa4h88CNgpD6bwv9lFD9kovTx/KSReZm4/ fOSw== 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=N8Q4yc53aO4ynGcklg/vzxJpKwnF14nuJtq8ns+5fIc=; b=VIbCIcMMh/SmI935n5LPsjk2I07GUzNwp0YVJM1Tbga51qCgI4hG/bAnaLGCYDNJ9s HTOFkIo1s549r8M+xrNUhgRS6A6uDPUB9vqZ0gMQNcOuXibhdamk+IDOUp63RfqCRPlE LvNAdBaPVUW7YUGQqp9Kt2sZi+2WjOsCp+HeoRHxIU2rspSnhhYkm5ffQyVhJwVTQs0G l8ZVj8HgLcLCV8kJSho10ugrzaH1QHMbKP2uKhLO6AT8LFDNtcnd/ofyyed1IvlRdSSX VoZsOjboaMPFTgwllMjBAzaoDQlPkQu76rITdGYUKpKFf5ELjf3oMnHmF3Ml9obVOm8H 5M8A== 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 l4si4175737eje.225.2021.03.19.07.46.30; Fri, 19 Mar 2021 07:46:53 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230365AbhCSOpf (ORCPT + 99 others); Fri, 19 Mar 2021 10:45:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbhCSOpT (ORCPT ); Fri, 19 Mar 2021 10:45:19 -0400 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 90FEDC061761 for ; Fri, 19 Mar 2021 07:45:19 -0700 (PDT) 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 1lNGND-0008Fj-V4; Fri, 19 Mar 2021 15:45:11 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lNGNC-00020f-BC; Fri, 19 Mar 2021 15:45:10 +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 v3 1/3] dt-bindings:iio:adc: add generic settling-time-us and oversampling-ratio channel properties Date: Fri, 19 Mar 2021 15:45:07 +0100 Message-Id: <20210319144509.7627-2-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210319144509.7627-1-o.rempel@pengutronix.de> References: <20210319144509.7627-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 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 + 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