Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12324688rwd; Fri, 23 Jun 2023 04:45:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ65gafvLIrSuylQKLC6b8ApWqChjlEiPW0n6FbJmGqiOPXOuB9P+EnMV1dovLx8jM7KBk16 X-Received: by 2002:a17:902:6a85:b0:1b5:2fdf:5bd8 with SMTP id n5-20020a1709026a8500b001b52fdf5bd8mr19205109plk.8.1687520739731; Fri, 23 Jun 2023 04:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687520739; cv=none; d=google.com; s=arc-20160816; b=zhsaqJPbb6ir+yh4reX76BW6cUjFkJUHc3J1Gpok1zoR458VAeAzQeqpdHE2vZI0F4 j/i6iCuLqcMqAcZw3eiWcaxIdZzgDr/kvW9uVrVW6J0WQEt6OZukQOuERYaoF5w3WMcF TJcPzS3r70APkAFfNJgxtdri+ajOiTVNUniDgEnTFGoXKVc3gDBf5Zw2ENFm1udyYQ0v gBvaMCf8iFL55JhthXmdq6ruO6SE5bhC/ULn09bQ/rgdsd20TwbmV3FcUFQqy907vKyC O5OTw0A7cVFQV+5CAyEpvqiOCMRPmevXqrGbq7J7AP19WCGymBHYf5e4+5zO1YKxlVBx uEpg== 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=; b=cl/1dntmxIeea1IrUU7Adjs6mjQ7yUAdb4JTrb1VLqeJD5VSlbBrrNTz30HqVgsRjX y9ur/mP2Kht5LdRKcGzo/eqQRWOpHV8gWrbMubKXERl2QVGXyQ0j+vgYAYnkfwDtX9Ge aT/rLSaXAHDSNBZiN14HZ2jZ/Tdv24XRDftHo3+7BDSc5oYDuWfPKr6XxDx/ZW1cFs26 mekuKeR9H+jZtB+Z+TDBU5RgQRE0XUFYeO9iVW5x9tAZ66vn444ov77MvM29IgK3HyM+ 4wq52sGEz8LlQLISkGvyPeXQxwJuB8+8Fc9Nzm92V24nLnZpmXsCE5biUuSE5ke9X4bs dT2w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q20-20020a170902bd9400b001b526e9bb43si8177505pls.249.2023.06.23.04.45.25; Fri, 23 Jun 2023 04:45:39 -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 S231145AbjFWLdg (ORCPT + 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 ); 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 ; Fri, 23 Jun 2023 04:33:33 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b46f5d236dso9292531fa.2 for ; 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 To: Cosmin Tanislav , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , Rasmus Villemoes 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: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.37.2