From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEDB5EB64DD for ; Fri, 23 Jun 2023 11:33:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230125AbjFWLdg (ORCPT ); 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-Google-Smtp-Source: ACHHUZ7BUw7tqddVi82XfXFElJrN5r7xeUFrxWqsoaePUeB6rPEEAmG8j++sT6mIUJmh/Jah5qMZEw== 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 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