From patchwork Tue Mar 15 17:30:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 12781666 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 E1339C433F5 for ; Tue, 15 Mar 2022 17:30:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350612AbiCORcK (ORCPT ); Tue, 15 Mar 2022 13:32:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350597AbiCORcG (ORCPT ); Tue, 15 Mar 2022 13:32:06 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA9BC58807 for ; Tue, 15 Mar 2022 10:30:53 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id t22so5550473plo.0 for ; Tue, 15 Mar 2022 10:30:53 -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=e41VkECulosXHxpBrBKKLRxi/TtDKsUMJRhikN2D88Q=; b=gygMhPJD5ZO91/klazHb/8EEeJviSJaW6BS5aXYb6SkcG+Jns2X/Qzfyj+sMfaG5nN 4hoIuWb0EFO5UFO1lMgsxsQqnitheJTxpI+GNeWaxJyqFpZxac5UCEUg/RfhH4i9e06W 3I3Ntl047LMu9W7r3LWx8PRM1pywKVPpD1IuU= 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=e41VkECulosXHxpBrBKKLRxi/TtDKsUMJRhikN2D88Q=; b=BzmrjF7KqukY18xJifCGBfvEZeiLYR3FqY0w/GhSUk3lM+naNSnWja9Qo6GI+4DAsg WRPOJtYlwuutPqm1/LLdpo6WDliNGPbLMHGhcWZyXuzl7MjLA+GA4c53LbYVFRcB5ql8 kkwnaHn1c8vLJMYetuS8y9YvKJv/EiuIbF2nmumkS32XWr8K1e4+IWO8LawLjanX7Ptf JDRHWTosEYJK11cpRSkSRgWLdS48QfI6QcSJ2S2zB5kmY1ehM9w6b7CwYPI0/9rgJENb 1/HfmCnXL5zYF2scgqh/I2TGAg83gz4F+6vOuzexUNNgKhMXk3TJQNjY/xKFXG239ZxB IpTA== X-Gm-Message-State: AOAM531iUhefJexmBCUZxzh5LVR4bAj6366HahSDe/HiUE3kPaF0VE6G lrahoSWRQBru/TY9gRF+BnseRq24lz0DRg== X-Google-Smtp-Source: ABdhPJxSg8n8BI+iYFpFwXS9103V+QGFdMFntfi9kC7LTpt5YGXiM5zPdmVNw5zD8FjpT8Rks5zVXQ== X-Received: by 2002:a17:902:6a86:b0:151:f1c5:2fa3 with SMTP id n6-20020a1709026a8600b00151f1c52fa3mr28830883plk.77.1647365453118; Tue, 15 Mar 2022 10:30:53 -0700 (PDT) Received: from localhost ([2620:15c:202:201:53f9:5c35:428f:83a1]) by smtp.gmail.com with UTF8SMTPSA id g18-20020a62e312000000b004f6fe0f4cf2sm24029263pfh.102.2022.03.15.10.30.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Mar 2022 10:30:52 -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 0/7] Add settings for precharge and internal resistor Date: Tue, 15 Mar 2022 10:30:35 -0700 Message-Id: <20220315173042.1325858-1-gwendal@chromium.org> X-Mailer: git-send-email 2.35.1.723.g4982287a31-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org For Semtech sensors SX9324 and SX9360, allow confugration of the pre-charge resistor (9324/9360) and internal resistor (9324). Fix a register name spelling mistake first. The 9360 changes are independant from the 9324 changes, but they are very similar. Gwendal Grignou (7): 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 | 20 +++++++++ .../iio/proximity/semtech,sx9360.yaml | 9 ++++ drivers/iio/proximity/sx9324.c | 42 ++++++++++++++++--- drivers/iio/proximity/sx9360.c | 12 +++++- 4 files changed, 77 insertions(+), 6 deletions(-)