From patchwork Tue Mar 22 06:25:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 12788110 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 371FCC433FE for ; Tue, 22 Mar 2022 06:25:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237047AbiCVG04 (ORCPT ); Tue, 22 Mar 2022 02:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237184AbiCVG0r (ORCPT ); Tue, 22 Mar 2022 02:26:47 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 403313AA7C for ; Mon, 21 Mar 2022 23:25:15 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id mp6-20020a17090b190600b001c6841b8a52so1563528pjb.5 for ; Mon, 21 Mar 2022 23:25:15 -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=8H64PmBRnHx7HLvB9XS+QfSLLMLBzRrCI6hoIn6XP3o=; b=MbQ6bBh4t5fdIq3qRYHFOcqgL1Hm1v5FEe3MWsPZCABh0DMC8vPphvQNOZUbURnR6J ew0qmjdnQbKMsVHCatDdxdd8epVwGupewdoRCJxURYg+ykFrUMqeVS6Y3b1S1+BSamAG BAIocFlM1CNaE3SE3iPFOhlpxV7gyOUqHw2qc= 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=8H64PmBRnHx7HLvB9XS+QfSLLMLBzRrCI6hoIn6XP3o=; b=KhpIn1ZZOp4cemYPwIkHbodTfU4SrDXwlsyxL9a8kR/VJGNVicGV7UiaMpM98ZI571 qGVXcg2shbalXWVyy+S3XR4DRqkTE++QmY/f5bRiDWjjvaYmeJCNBdA7V+8lRb+pdsMN Bhvaqyq9rsyyL841J1ZlBYjdywC16sPYJQsDaeTCspVYOsqU1L3tEPGdPyzMAR6DwFwZ HAKJUhfuAW7y55g9WMlyO9FWkEh/TluOPf8bFak6y4fprv67nQh4NtWW9I/msjb0+EAU gEQdtE/7aREe8T87P2kWi4MTq71qHJcj/nWmTKFWyZ2mw6rL98yAhBD1k5TI98BNcM8W hfow== X-Gm-Message-State: AOAM532ukYyWxVdx8/eqkfZPgGSNhlODB8EfJMQIWFOLw9LYtiJOSLVi hKGcm81iSMo6TmsZI4YJlvRAcg== X-Google-Smtp-Source: ABdhPJxqzCVP2ehVp3HGjvMfTUvuBhZn3b2o5B+ARRnP9/Gw/WkywbmYrisBwjjaQtegd0JdsM9+RQ== X-Received: by 2002:a17:902:6a89:b0:153:7213:3841 with SMTP id n9-20020a1709026a8900b0015372133841mr16615072plk.74.1647930314583; Mon, 21 Mar 2022 23:25:14 -0700 (PDT) Received: from localhost ([2620:15c:202:201:c016:a147:e7e:6836]) by smtp.gmail.com with UTF8SMTPSA id y16-20020a637d10000000b00381268f2c6fsm16582428pgc.4.2022.03.21.23.25.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Mar 2022 23:25:14 -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 v2 5/8] dt-bindings: iio: sx9324: Add internal compensation resistor setting Date: Mon, 21 Mar 2022 23:25:01 -0700 Message-Id: <20220322062504.1019504-6-gwendal@chromium.org> X-Mailer: git-send-email 2.35.1.894.gb6a874cedc-goog In-Reply-To: <20220322062504.1019504-1-gwendal@chromium.org> References: <20220322062504.1019504-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 --- Changes since v1: - Suffix field with kOhms unit. .../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 8fbea71823e76..b5f59038f9dd7 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-kohms: $ref: /schemas/types.yaml#/definitions/uint32 default: 4 @@ -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-kohms = <2>; }; };