From patchwork Fri Apr 29 22:01:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 12832914 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 02A71C43219 for ; Fri, 29 Apr 2022 22:02:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381090AbiD2WFX (ORCPT ); Fri, 29 Apr 2022 18:05:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381112AbiD2WFS (ORCPT ); Fri, 29 Apr 2022 18:05:18 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB38FDBD39 for ; Fri, 29 Apr 2022 15:01:57 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id q12so7443744pgj.13 for ; Fri, 29 Apr 2022 15:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lg0znp4tIzr67FKK1Nhhf6wji0iF5bdxtTn8hwgkzcM=; b=PApcp8VKwX5Zz2rWVsrA+CkK8EbZ7rIO/US6xOyPYS1t+CX1yUSSyJYw9RnFAejAr+ cJFo7Bm9w8Jh0ayAXUOzH5qBQhUe5YTe6uQq5XqDOWKgSzg3I0Npcd2qWJ3GNL9TIm5S qdrsZwq5D/1V5RWTFS5G1H4MRFMVIhsU1QwhA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Lg0znp4tIzr67FKK1Nhhf6wji0iF5bdxtTn8hwgkzcM=; b=n3gdbOqEU9PiU692X96YNsmWaYiSlAD2wLeOShWiAHREwQr1JeO5e4+Fs3NLXzpDT1 ptj1GdgKLcKecnm3p36u33ya5U7SLJfd5msYFLb+fiTkDMZtqV2ePbdRMiNH/Jxmjhei Iik1g9cI82DFDDjkiuJoxsT5Q1dGzoAY7TBDTjwsAAIyu9HfZxB6E6sVkA5Dr/++F1LM TIUyccIPkkAeJCv3iVb56L8m4qT+2EnDmTj6egJWmDdDiqvRmUbOgs10Z6Py/GmK818A 2NbuM9GWQ081e+SrvsUor1576YB1fGNCUmrngZFfU2KA6ozX8iCwszKExyJeIHakMAZQ ZXTg== X-Gm-Message-State: AOAM530vAZBuEbkZAyVFfzPVEN16mjX0BSfO9orf9P6Wjtd2IljsJbOD l2NZk6TNJg3AhbbF0TXURD4pSQ== X-Google-Smtp-Source: ABdhPJwoWIkCPaMSZloKTmVAXZFnTRu0zx6P5Dq7wIo4+nbmMxMvhctIdqMFKjdGQ0IdnMdcPYLbAQ== X-Received: by 2002:a63:7e4b:0:b0:3a5:6636:5b94 with SMTP id o11-20020a637e4b000000b003a566365b94mr1042491pgn.173.1651269716871; Fri, 29 Apr 2022 15:01:56 -0700 (PDT) Received: from localhost ([2620:15c:202:201:6161:73ca:10a5:5383]) by smtp.gmail.com with UTF8SMTPSA id n9-20020aa79049000000b0050dc762813bsm167755pfo.21.2022.04.29.15.01.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Apr 2022 15:01:56 -0700 (PDT) From: Gwendal Grignou To: jic23@kernel.org, robh+dt@kernel.org, swboyd@chromium.org Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Gwendal Grignou , Rob Herring Subject: [PATCH v5 05/10] dt-bindings: iio: sx9324: Add internal compensation resistor setting Date: Fri, 29 Apr 2022 15:01:39 -0700 Message-Id: <20220429220144.1476049-6-gwendal@chromium.org> X-Mailer: git-send-email 2.36.0.464.gb9c8b46e94-goog In-Reply-To: <20220429220144.1476049-1-gwendal@chromium.org> References: <20220429220144.1476049-1-gwendal@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Allow setting the internal resistor used for compensation. Signed-off-by: Gwendal Grignou Reviewed-by: Stephen Boyd Acked-by: Rob Herring --- Changes since v4: - no changes Changes since v3: - Added Review tags. Changes since v2: - no changes Changes since v1: - no changes .../bindings/iio/proximity/semtech,sx9324.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml index d689b2bab71b4..0be87ac05b97a 100644 --- a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml +++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml @@ -126,6 +126,15 @@ properties: UINT_MAX (4294967295) represents infinite. Other values represent 1-1/N. + semtech,int-comp-resistor: + description: + Internal resistor setting for compensation. + enum: + - lowest + - low + - high + - highest + semtech,input-precharge-resistor-ohms: default: 4000 multipleOf: 2000 @@ -165,6 +174,7 @@ examples: semtech,ph01-proxraw-strength = <2>; semtech,ph23-proxraw-strength = <2>; semtech,avg-pos-strength = <64>; + semtech,int-comp-resistor = "lowest"; semtech,input-precharge-resistor-ohms = <2000>; }; };