From patchwork Fri Mar 25 22:08:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 12792110 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 5E955C433EF for ; Fri, 25 Mar 2022 22:08:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233793AbiCYWKQ (ORCPT ); Fri, 25 Mar 2022 18:10:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233780AbiCYWKP (ORCPT ); Fri, 25 Mar 2022 18:10:15 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 237DB166677 for ; Fri, 25 Mar 2022 15:08:41 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id k6so9576222plg.12 for ; Fri, 25 Mar 2022 15:08:41 -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=4W66j1PiqzTVmN0Xwgko1VGmUJcMjfB92Rvx7H+XM00=; b=NJpCWVTPmpXSnZsqyE5HBpC5Saug4XwYsOBr5Wt2/qr31IQ3YRpj4gG/XploROplpX jDRhbTSqt4FedFQ6N/tVJjPGMCBNAlSMZ/WkaW+1s4DPSqpcpKlgeQgycuVLnA+EaahV 6i+7tDE9NCbOubQLZ2Owqub2B9q2ah7Xqej/M= 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=4W66j1PiqzTVmN0Xwgko1VGmUJcMjfB92Rvx7H+XM00=; b=zfLRQNpDjR9gp1adbiLXO7R8V1DyWRKrq7V/Sdb4dplaqofQJIgApesvFQSgFmMvgD wPy+TeemBKZYYIGxgWuxf1LCEpovXcpbzAAysMxTkAAz8ucpEB311H79Aub5Bxeo78i9 8lZ11aknfLuggAJPHjRP9iSC9Q/Uvhn9t/Wzz9mtWgqBrAjaOO+m9QD8ycrgpr0SpYXu F0g8UN/yjM6+NKg/2SDQA9/d7YMrDAfg9MQSErhL5U8qpakwJ4BpjuTFiqMzcImacyKK NMB/WqotBlOeOm6nlcO5WgpJhlgmgHDiw5jZL+Rd4zFIYRssS8tVIPjbwltRl/G6z2y3 GQ3Q== X-Gm-Message-State: AOAM531xLWlpMRtHDOtfNVeoz+k0gpOcn8ExGGGNDziKu1+Iv/lTG+eB 1ebKZwjkJw21/dqXeDo9TN/0ef8/8crKCw== X-Google-Smtp-Source: ABdhPJwJrTPzTKPCMjt8N60Aw/UfckmMriFxRF1FlGAhBsJSAiJzj3T/hcAZVn2V+eOJRpWBG0nfuQ== X-Received: by 2002:a17:902:ab43:b0:153:29c8:38da with SMTP id ij3-20020a170902ab4300b0015329c838damr13620718plb.11.1648246120674; Fri, 25 Mar 2022 15:08:40 -0700 (PDT) Received: from localhost ([2620:15c:202:201:f21c:980b:7d64:94f9]) by smtp.gmail.com with UTF8SMTPSA id b25-20020a637159000000b00381fda49d15sm6893142pgn.39.2022.03.25.15.08.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Mar 2022 15:08:40 -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 7/8] dt-bindings: iio: sx9360: Add precharge resistor setting Date: Fri, 25 Mar 2022 15:08:26 -0700 Message-Id: <20220325220827.3719273-8-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: linux-iio@vger.kernel.org Allow configure the resistance used during precharge. Signed-off-by: Gwendal Grignou Reviewed-by: Stephen Boyd --- Changes since v2: - Change kOhms into ohms. Changes since v1: - Suffix property with kOhms. .../bindings/iio/proximity/semtech,sx9360.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9360.yaml b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9360.yaml index 63e1a1fd00d4c..453d2f02abbb1 100644 --- a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9360.yaml +++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9360.yaml @@ -61,6 +61,14 @@ properties: UINT_MAX (4294967295) represents infinite. Other values represent 1-1/N. + semtech,input-precharge-resistor-ohms: + default: 0 + description: + Pre-charge input resistance in Ohm. + Rounded down to a 2000 Ohm multiple. + minimum: 0 + maximum: 30 + required: - compatible - reg @@ -85,5 +93,6 @@ examples: semtech,resolution = <256>; semtech,proxraw-strength = <2>; semtech,avg-pos-strength = <64>; + semtech,input-precharge-resistor-ohms = <4000>; }; };