Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp126391pxy; Wed, 28 Apr 2021 00:33:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdH2Q69N9Rp8nhDycDb/BzDQNvtMbPEpU6XcGNwpsuHpGsRg1ZLBnhEIWSO07Yl7m3NH4A X-Received: by 2002:a17:906:c40f:: with SMTP id u15mr11462590ejz.11.1619595220039; Wed, 28 Apr 2021 00:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619595220; cv=none; d=google.com; s=arc-20160816; b=RIgFRg1CP666Kbop8Uz+BQLWeATv+BvT1ABJvzm+cWhHZKIR1IAAcL2XhV8zhlzSze fhxUn+hujw9hSM0FuBNyfgMFauUMqljsP4T6NQOE3+7KWBbRUDmghu9FEdgtvSa1OkRs wBKnG8CnoBq2dprKHvcLxfKp7H2x06mKpNTfnsMcUOPPrDtICLQQv1/QPeASNEp8sj+w fUmXm+LuIb2TEnRs708kBRlMXQB1szy4tBYf4Oto9/YkvnetZDZbS/l0Byc+YDMkaqSJ 9Hj9V7r3yeQm+5fPVHyNgrVOU42jHWyO9zCrqkIh6yC5k/zmdoTBxTsm/U6WWJtJE8Tb sqpw== 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=Wdg54dZPwH/ciMEInZjfOOqDoNoC3bEDTunBnxSudnE=; b=OlHS+a4wBJs5aCt2aUum/nTlCTliVFZvt+mGmStg+CtEDS0HmcC7l1Rr1uwdibHDB2 RyigIU4ifSUmRBTUPq49lbq0lgs6AaumPbzkWeD2xrPwk3vzkbMqjKjmHBcwge2z2Jyg Oe+KhCC70mNYvUlIMygO1DrDtY1Jky48cJgaWXyT3t4h9KxQxvRFJ3INbBXpxq64xbCZ KvEcyUqxPcKmfygU1tCaBsYfrhwlVW6Bvol7G1N+5mgOogMZfRyCXde9vcie0LiYGMl6 CqypEQDd1jPMAWx6KgeV5h/GPexqJ+nYbpZH2CdrPxphKYFK71MMFbPGQqfvcAcTj9CD XYsw== 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 d2si2212080ejm.291.2021.04.28.00.33.16; Wed, 28 Apr 2021 00:33:40 -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 S236821AbhD1HdF (ORCPT + 99 others); Wed, 28 Apr 2021 03:33:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236430AbhD1HdD (ORCPT ); Wed, 28 Apr 2021 03:33:03 -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 6206AC061763 for ; Wed, 28 Apr 2021 00:32: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 1lbeg7-00034J-1j; Wed, 28 Apr 2021 09:32:11 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lbeg5-00056h-CU; Wed, 28 Apr 2021 09:32:09 +0200 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 v6 1/3] dt-bindings:iio:adc: add generic settling-time-us and oversampling-ratio channel properties Date: Wed, 28 Apr 2021 09:32:06 +0200 Message-Id: <20210428073208.19570-2-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210428073208.19570-1-o.rempel@pengutronix.de> References: <20210428073208.19570-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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Documentation/devicetree/bindings/iio/adc/adc.yaml index 912a7635edc4..db348fcbb52c 100644 --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml @@ -39,4 +39,16 @@ properties: The first value specifies the positive input pin, the second specifies the negative input pin. + settling-time-us: + description: + Time between enabling the channel and first stable readings. + + oversampling-ratio: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Oversampling is used as replacement of or addition to the low-pass filter. + In some cases, the desired filtering characteristics are a function the + device design and can interact with other characteristics such as + settling time. + additionalProperties: true -- 2.29.2