From patchwork Fri Mar 25 22:08:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 554107 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 138BEC433EF for ; Fri, 25 Mar 2022 22:08:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233772AbiCYWKL (ORCPT ); Fri, 25 Mar 2022 18:10:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233786AbiCYWKK (ORCPT ); Fri, 25 Mar 2022 18:10:10 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DAD516667C for ; Fri, 25 Mar 2022 15:08:35 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id t4so4428389pgc.1 for ; Fri, 25 Mar 2022 15:08:35 -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=7X00LqhqpHZwyipr6lc2MdAmx6U5RnTCI92rZftagtM=; b=gXJHx4dLHRJikCj225JFWBmmSWee37txjmAmNWdkAzDDlvXeKtymxRcA00Wd+e1XVE qwox4q1txrq8DlN41edYX/LcHQ4JiJfWL398SbPHA2fTX4QeJbjFDM8kaYXDq2Irqto0 /HD+VjfSw8GotSM1iEKao+3yiLw9M0ZLWS+10= 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=7X00LqhqpHZwyipr6lc2MdAmx6U5RnTCI92rZftagtM=; b=o0n6briH6YqvEkh6gbHU7yMJ7L0fDFAGkZlbDS1uJ+TD9a+btpgqW17KKc8ZYn2P62 uad9g3yVOOPFIO4ehta8nLdcALH2YvolNpuFwYnqdmweFKcIcXLcTWH8wxXiKcLNXrBG rZRU8UR4c4FKxs6VAa2Wjezeow7RdHukn7RLK45ymq+h3Z7LYY5rgfm1KDLcp0GRWFd1 jGlmKIp/5fHV5lLfz52OgPn6xgOUPPQET0fNBAD5rd0foYCY3P1RIcoiDKFDs2m+WkD3 rlxSDYY+meyGI3KuW8nZOGtPrbwqkeCS6xjC0NLQVfpK2moypcyZwKq5S1S1tEDjFrTT GyaQ== X-Gm-Message-State: AOAM531G4lJnFsQdp7Aa3EO6I9Ow0jEbqi1DEum1+LzvtwR/eh1rUmdL t9H23rtpbMygWYsrTYQCPA6cPtSIjCCA7w== X-Google-Smtp-Source: ABdhPJxPDIqqXOV9F3il3MjQ7S/3nUpNfNPxzUMM6Rf6wfFQMXHkG39ihCVSBfhWCXHzwx8n6z9Xog== X-Received: by 2002:a05:6a00:2402:b0:4e1:46ca:68bd with SMTP id z2-20020a056a00240200b004e146ca68bdmr12135342pfh.70.1648246114996; Fri, 25 Mar 2022 15:08:34 -0700 (PDT) Received: from localhost ([2620:15c:202:201:f21c:980b:7d64:94f9]) by smtp.gmail.com with UTF8SMTPSA id w9-20020a056a0014c900b004fb2ca5f6d7sm174253pfu.136.2022.03.25.15.08.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Mar 2022 15:08:34 -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 Subject: [PATCH v3 3/8] dt-bindings: iio: sx9324: Add precharge resistor setting Date: Fri, 25 Mar 2022 15:08:22 -0700 Message-Id: <20220325220827.3719273-4-gwendal@chromium.org> X-Mailer: git-send-email 2.35.1.1021.g381101b075-goog In-Reply-To: <20220325220827.3719273-1-gwendal@chromium.org> References: <20220325220827.3719273-1-gwendal@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Allow configure the resistance used during precharge. Signed-off-by: Gwendal Grignou Reviewed-by: Stephen Boyd Acked-by: Rob Herring --- Changes since v2: - Change kOhms into ohms. Changes since v1: - Suffix field with kOhms unit. .../bindings/iio/proximity/semtech,sx9324.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml index b8a6ee16854ff..a22cad1507b6b 100644 --- a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml +++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml @@ -126,6 +126,14 @@ properties: UINT_MAX (4294967295) represents infinite. Other values represent 1-1/N. + semtech,input-precharge-resistor-ohms: + default: 4000 + description: + Pre-charge input resistance in Ohm. + Rounded down to a 2000 Ohm multiple. + minimum: 0 + maximum: 30000 + required: - compatible - reg @@ -157,5 +165,6 @@ examples: semtech,ph01-proxraw-strength = <2>; semtech,ph23-proxraw-strength = <2>; semtech,avg-pos-strength = <64>; + semtech,input-precharge-resistor-ohms = <2000>; }; };