From patchwork Wed Apr 6 16:50:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 12803956 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 ABA30C433EF for ; Wed, 6 Apr 2022 18:11:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240084AbiDFSNO (ORCPT ); Wed, 6 Apr 2022 14:13:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240149AbiDFSNK (ORCPT ); Wed, 6 Apr 2022 14:13:10 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 159201255BF for ; Wed, 6 Apr 2022 09:50:29 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id b15so2987194pfm.5 for ; Wed, 06 Apr 2022 09:50:29 -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=ElIDyEfWm0NLb325CUldpOG/323/DcoKYpxnTGj9mDg=; b=DEFU0XCJJrDs1lpYQRMwMGHIlnlCltDlhl3XinTZomSnJMaldQqEubd+hRUW2+3wBB IiRFx5+LmXw9yer02zZBmXZx86VWpf31r/b4V40bAWnEdwia+DXAL727nrnhLwO4wKa0 W/MxrmRV9VK0W3sncI6gbuo60vgTrTg/tpf6I= 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=ElIDyEfWm0NLb325CUldpOG/323/DcoKYpxnTGj9mDg=; b=NC7525iL8HSBwgK/w6BjW9dnrF3RkFJFYmglWXBJDLCcj0RarkajWUBk8xwKjjUPmp AEneq3Bu192eTTOuL40viu3IAyBWz94EQkNyAlS4OC+8iY9vKaS0+rWMKQPnpjHSIqch ZYQZoPUyowHO1k12fbGzq1H1h/iL/g5SKlFa47Xp7ALrl7gZInB06Ey1Vll8lyukmdXC jpxsxZJ8RaADoU6Gq1XiJ3drSEQa7qR4LyquumKx7XGimXwQ3ETRIyyjx49ZwQpgJ/R3 338NXCwMNVkjdwgpxnLzxX1iiqF9rW0+XrniHI2qNfusvybisDrigWy2RcoS9+e6+Djh 1NGA== X-Gm-Message-State: AOAM532G6A4rgPiWcZjMy+r0DixBzgyHEAWqv5RjSy4VS0g470BMoB4H u5UHrbbt8MWL3BjfIqHCcdcBbo9vLSpXgw== X-Google-Smtp-Source: ABdhPJxZFbRGDK/wziWpEehlgBfHtsEl3sLXu9a2TNNouZl/yalMWJb8Ujf3sKYCSCrlTpWoLsxeVQ== X-Received: by 2002:a05:6a00:1828:b0:4fd:e0e5:6115 with SMTP id y40-20020a056a00182800b004fde0e56115mr9845652pfa.52.1649263829402; Wed, 06 Apr 2022 09:50:29 -0700 (PDT) Received: from localhost ([2620:15c:202:201:c9d3:469f:91e4:c022]) by smtp.gmail.com with UTF8SMTPSA id x6-20020a17090aa38600b001ca2f87d271sm6286474pjp.15.2022.04.06.09.50.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Apr 2022 09:50:28 -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 v4 0/8] Add settings for precharge and internal resistor Date: Wed, 6 Apr 2022 09:50:03 -0700 Message-Id: <20220406165011.10202-1-gwendal@chromium.org> X-Mailer: git-send-email 2.35.1.1094.g7c7d902a7c-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 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 v3: - Rename reserved field as _RESERVED_ - Fix invalid string matching with match_string() - Fix cut and paste error in device tree bindings. 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 | 41 ++++++++++++++++--- drivers/iio/proximity/sx9360.c | 12 +++++- 4 files changed, 75 insertions(+), 6 deletions(-)