Message ID | 20230623113327.1062170-1-linux@rasmusvillemoes.dk |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5708440vqr; Fri, 23 Jun 2023 04:47:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5e2VdFRsTjgorB0ll/kZ94tInfjnfeSRaK7zYMjLk9imlsdVOdXnZV9Mr1G9fb74FUKdIU X-Received: by 2002:a05:6808:188f:b0:3a0:59e7:bedc with SMTP id bi15-20020a056808188f00b003a059e7bedcmr5724061oib.31.1687520827955; Fri, 23 Jun 2023 04:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687520827; cv=none; d=google.com; s=arc-20160816; b=JjyrQ6Q+eM/FseRO4IrPkcv8xdAN+E66lRAWh/HzUvCNQ2r1ERUvZJzHzkUML1zgD6 xjhIDBj9UGCW3WeUlZ/EGOhQHfQHuJHYD+xIQwSRA1KpiDf2FSDIynZSOuI5Ti/xOk1J Ple1CdohMiDB1XTYsVKkAeIX+el4S4hwfPcKO0bGRTszh0gzSg36Agx3w32obmqADkGI OnAQcuWOqwrQtzekMQ/nvbpRMgqhgOhL/NUjm+XIO+CRbnMGNh8MbDzaWJtkPwGKT6Yf Gsa5yjzdK8r3pvqTu8C9AmdGMiFV8m8guCFPyo6nuaUOsHKRcdAEQhXgG29DG+PI2NNG J9sQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=KL5Es5yoKODcRM+6rC2Tw/Cdo+3M+IOhet0H/IGNQNk=; fh=DKkfVvhTqgOqPXjTUBp+U4lMqviVxOvhOnuLk8auddY=; b=vbyeu9zrjpqK9lRYP+WScDNFVdnQHgbLf/NuxScThUG8yjrEPvmtKg5xAeg1R9uXyl EA4az8mTkV426OGKy2tFXHzTFMWFmU4qWL3niE6bGbzhc7zKxlBZdvRKMwXAdQym80MD xQkPGw1e2YG8srM9XZ8MowVFhzFuldL/4AEs65tESgSYse4WEr+lAwaXLy8mzk+U7TMu G+3xgA1J4QVHk0kX3sRGfSp3CCfqILooh565pzzccxsXXNJVR71sYTjZu/fsiGLT3crX 77PwbvBWc3Ecf4jun49/eRjelqJhc6vin8V8aN/Kh5TxK5Nw5x0T7sFyaq4xYNp+Gtoe 33wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b="Q/qy0dXy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh9-20020a17090b4ac900b00250d10c6fe7si1989429pjb.67.2023.06.23.04.46.52; Fri, 23 Jun 2023 04:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b="Q/qy0dXy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231249AbjFWLdg (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Fri, 23 Jun 2023 07:33:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbjFWLde (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 23 Jun 2023 07:33:34 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 906A2AC for <linux-kernel@vger.kernel.org>; Fri, 23 Jun 2023 04:33:33 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b46f5d236dso9292531fa.2 for <linux-kernel@vger.kernel.org>; Fri, 23 Jun 2023 04:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; t=1687520012; x=1690112012; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KL5Es5yoKODcRM+6rC2Tw/Cdo+3M+IOhet0H/IGNQNk=; b=Q/qy0dXyCmDSnYgzmdOwO5Rps42C2f9Dvp3GrgNQJfFcyu3WWQ/1KOPZoLZLKfy87s iWPasAdoPG4K/dz8/jA/OqpXCK+uAdOyykRWtxx7T8MtcALA7E9U8kL4kkk8qIw81pet iKISr4gQQXEevNoLmM185WwvtmZDRMGD8TfpI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687520012; x=1690112012; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KL5Es5yoKODcRM+6rC2Tw/Cdo+3M+IOhet0H/IGNQNk=; b=WqIDlWx8w22WPHup7gDQx258h2GQVUcR7CZBVf4LDCDb8HmvKOBjDRQnsisfwTuvGM Otmyiax1f0gvAGi9JXMj181Z9+YfVFrORqfSz/a5FtnOPAWMd+uFIRmLFqhl9yh660T3 TK+EMSX4Y+Q5arypfZR+coNdIbcx720a6IRSCVa4by+DQMIZA5eBoQ0ppnyUms7niVJZ mvbm3DmusmIzIVn4j0usPJqg8wNsUFQg2Cx6t4Zf1UEEMWYJUQwIP6wLrUnl64f3+EIw tFDFCeuWJjoI64CHSiesfveefc8aQYors9FTM/5Dlm6NbMuMy1UqK5nVNmE1TvuZz9Bh I7VQ== X-Gm-Message-State: AC+VfDzT7K3yfLAcjp6EE00E33LmVD9fQmUJh7Kpe79FYwE3Fg954CPU sVgngMLfpkwbxSvgp88D9VeppQ== X-Received: by 2002:a2e:9e44:0:b0:2b3:4cff:60ce with SMTP id g4-20020a2e9e44000000b002b34cff60cemr12557049ljk.0.1687520011672; Fri, 23 Jun 2023 04:33:31 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id n10-20020a2e720a000000b002b471efb253sm1711605ljc.46.2023.06.23.04.33.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 04:33:31 -0700 (PDT) From: Rasmus Villemoes <linux@rasmusvillemoes.dk> To: Cosmin Tanislav <cosmin.tanislav@analog.com>, Lars-Peter Clausen <lars@metafoo.de>, Michael Hennerich <Michael.Hennerich@analog.com>, Jonathan Cameron <jic23@kernel.org>, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Rob Herring <robh+dt@kernel.org>, Rasmus Villemoes <linux@rasmusvillemoes.dk> Subject: [PATCH 0/2] iio: ad74413r: allow configuring digital input threshold Date: Fri, 23 Jun 2023 13:33:24 +0200 Message-Id: <20230623113327.1062170-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769493840011752700?= X-GMAIL-MSGID: =?utf-8?q?1769493840011752700?= |
Series |
iio: ad74413r: allow configuring digital input threshold
|
|
Message
Rasmus Villemoes
June 23, 2023, 11:33 a.m. UTC
The reset default value of the DIN_THRESH register is 0x0, meaning that the threshold for the digital input channels is 1/60 of AVDD. In most applications, that value is way too low and susceptible to noise. These patches introduce a new DT property, digital-input-threshold-microvolt, which if present will be used as the threshold in "16V" mode, i.e. as an absolute threshold, not proportional to AVDD. If someone needs the threshold to be proportional to AVDD, but being say 15/60, another DT property (mutually exclusive with this one) could be introduced. But since I don't need that and can't come up with a good name ('digital-input-threshold-60ths-avdd' ?) I punt that problem to whoever needs it. Rasmus Villemoes (2): dt-bindings: iio: ad74413r: add binding for digital input threshold iio: addac: ad74413r: wire up digital-input-threshold-microvolt DT property .../bindings/iio/addac/adi,ad74413r.yaml | 10 ++++++++++ drivers/iio/addac/ad74413r.c | 20 +++++++++++++++++++ 2 files changed, 30 insertions(+)