From patchwork Fri Mar 25 22:08:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 554478 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 216F6C433F5 for ; Fri, 25 Mar 2022 22:08:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233742AbiCYWKG (ORCPT ); Fri, 25 Mar 2022 18:10:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233764AbiCYWKG (ORCPT ); Fri, 25 Mar 2022 18:10:06 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C71166666 for ; Fri, 25 Mar 2022 15:08:31 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id w8so9599022pll.10 for ; Fri, 25 Mar 2022 15:08:31 -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:mime-version :content-transfer-encoding; bh=YVQ2cd6RhgGyXtG8hwUr1nalR3TuoVbpI8pb2EoHGMo=; b=ZlVLMeIku+sL4PdX2xPEQmcRwGXJucVk+5prldiWKUXYGd4bQqGxIbl1vbGMhbftF1 BLJPbEn6Myw495gkLwSNh+CdGmgFMOVLQM+t3fCBOxx1mfLIzK1SCPD/8AIxJznipZtB hDRwAJl02ETefuu8QtzSHXrQ/uXeXe9jhcC5Y= 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:mime-version :content-transfer-encoding; bh=YVQ2cd6RhgGyXtG8hwUr1nalR3TuoVbpI8pb2EoHGMo=; b=PjJsaxvb/je6NPtja4J+Q86pYumz40KIzJjss1Ehl3AUy2o35Nno1j1IHVKP72gVeC nh7/3UnMXwbvkCudvJ54X2jUnF8Spp4g71q2a/40QdksSEP+qUJXZTLnxDjes+hOb6wd sPrd1sQ/RjD6IzQeUrIhYfz+xtUqV3WvZ9vQkRzjOX98Btgb5LoRMyAyx/0Hk9nUaFhC iEst2+o5BFb16FTdljTtT4A7mGZd3ZfjALeH1GJ4E+/WvlKXpmZ+YnamplUDCvJvfn3S MLjXFqSb6ZR7lZKY30fbHzqmwvGICvEEJyO30UO+v3wNKsPvu8b8JN79GgNaZF7zL6dP 9lWQ== X-Gm-Message-State: AOAM530ol2FvvanI+QlH3w6DMKlJTT6K3IRKbHE6hQZwWM7vyiggFLJG BqId9xKZyPKyXTqaWp0KTfUZsw== X-Google-Smtp-Source: ABdhPJz+r0L+5tKLlfgUBAfgwIAItzIR4kxuGo3+4GJQy0s4F1ckP9ctioAb4m+Hwkpp34pDddGCDw== X-Received: by 2002:a17:90b:3e8b:b0:1c7:852d:e843 with SMTP id rj11-20020a17090b3e8b00b001c7852de843mr15145111pjb.244.1648246110870; Fri, 25 Mar 2022 15:08:30 -0700 (PDT) Received: from localhost ([2620:15c:202:201:f21c:980b:7d64:94f9]) by smtp.gmail.com with UTF8SMTPSA id a38-20020a056a001d2600b004f70d5e92basm7896704pfx.34.2022.03.25.15.08.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Mar 2022 15:08:30 -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 0/8] Add settings for precharge and internal resistor Date: Fri, 25 Mar 2022 15:08:19 -0700 Message-Id: <20220325220827.3719273-1-gwendal@chromium.org> X-Mailer: git-send-email 2.35.1.1021.g381101b075-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org For Semtech sensors SX9324 and SX9360, allow confugration of the pre-charge resistor (9324/9360) and internal resistor (9324). Fix register name spelling mistakes first and set default value properly for sx9324 internal resistor register. The 9360 changes are independent from the 9324 changes, but they are very similar. Changes since v2: - use -ohms instead of -kohms, as ohms is a defined unit in dt-schema.git dtschema/schemas/property-units.yaml Changes sinve v1: - Add kOhm Unit, add a new patch to fix invalid register setting. Gwendal Grignou (8): iio: sx9324: Fix default precharge internal resistance register iio: sx9324: Fix register field spelling dt-bindings: iio: sx9324: Add precharge resistor setting iio: sx9324: Add precharge internal resistance setting dt-bindings: iio: sx9324: Add internal compensation resistor setting iio: sx9324: Add Setting for internal compensation resistor dt-bindings: iio: sx9360: Add precharge resistor setting iio: sx9360: Add pre-charge resistor setting .../iio/proximity/semtech,sx9324.yaml | 19 ++++++++ .../iio/proximity/semtech,sx9360.yaml | 9 ++++ drivers/iio/proximity/sx9324.c | 44 ++++++++++++++++--- drivers/iio/proximity/sx9360.c | 12 ++++- 4 files changed, 78 insertions(+), 6 deletions(-)