From patchwork Fri Mar 25 22:08:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 554106 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 B60C5C433EF for ; Fri, 25 Mar 2022 22:08:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233788AbiCYWKN (ORCPT ); Fri, 25 Mar 2022 18:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233782AbiCYWKN (ORCPT ); Fri, 25 Mar 2022 18:10:13 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 637C7166671 for ; Fri, 25 Mar 2022 15:08:38 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id c2so7479280pga.10 for ; Fri, 25 Mar 2022 15:08:38 -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=J75R2mMWF+az1P2ih4+x2IsyXN2geBWtCz9aNcOKaxw=; b=ghnQ+axF4TfKN/r4BClayoJ7umXeJR8NdKsDPb8+HwFX26PE59UJcLsCvNRgaOgCS1 PW57qG6c1CklfBb4XRfvvz8rXDB1obEkyOzvkRG5mD8URLoJxK/SdukTbAyZ1rIu2W5a 590i2AQzAJJrUmj9bW4K/Lla51o5reYmKADPg= 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=J75R2mMWF+az1P2ih4+x2IsyXN2geBWtCz9aNcOKaxw=; b=xGUsvjeltQPXTy197koQ8jINSE0pxlSlUo8IMqzHEr6L1m9ErDKRfBbsfTKBCHoPvQ gv4rlJp/eb2/gCldAhc0ZHEB0hPJBxw/aNjzdjHoteXbAMEmT7x88Rx/MG5DW4aH959F TWwgD+cAY9r0ZDKEbA8vjfB47eUMALVWKnVSu54j19za5wb7vhE61zmxuwQnLD+mQO4p HaKQ8g5lE7boKXrvbrL7M6hw00OKeZh37Uv+Nq7nBad++RH9Ln9EJ6E7IT55tlAugLKP 9nUsgTZCI/vKa2+celiMHnVa995z4XOSXzmEejtLf5l3Z89kWB9asmDYwGT1iEKj9aEY RkhQ== X-Gm-Message-State: AOAM5333VrNrcZr7He66hfyolxsRPxOc27OQcaZ34c33yhm6AP4uxVbB LR/ECL0/sbQG6WN9d/bLHADaSg== X-Google-Smtp-Source: ABdhPJwZSnZde78UWv/gJ1OrMqQ2vOL0kb970ASV7h4I0DGIonxpOZG6gAjD1zCWi9IouGycrb2Q8g== X-Received: by 2002:a63:d13:0:b0:381:f043:c627 with SMTP id c19-20020a630d13000000b00381f043c627mr1301911pgl.168.1648246117890; Fri, 25 Mar 2022 15:08:37 -0700 (PDT) Received: from localhost ([2620:15c:202:201:f21c:980b:7d64:94f9]) by smtp.gmail.com with UTF8SMTPSA id cd20-20020a056a00421400b004fa7d1b35b6sm7575899pfb.80.2022.03.25.15.08.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Mar 2022 15:08:37 -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 5/8] dt-bindings: iio: sx9324: Add internal compensation resistor setting Date: Fri, 25 Mar 2022 15:08:24 -0700 Message-Id: <20220325220827.3719273-6-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 setting the internal resistor used for compensation. Signed-off-by: Gwendal Grignou Reviewed-by: Stephen Boyd --- 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 a22cad1507b6b..f99b2c1cd3ac2 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 description: @@ -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>; }; };