From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE7C3C4363D for ; Wed, 7 Oct 2020 01:17:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5F46920882 for ; Wed, 7 Oct 2020 01:17:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Cc/Ryzcf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbgJGBRi (ORCPT ); Tue, 6 Oct 2020 21:17:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbgJGBRh (ORCPT ); Tue, 6 Oct 2020 21:17:37 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE72BC0613D2 for ; Tue, 6 Oct 2020 18:17:37 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id y14so355257pfp.13 for ; Tue, 06 Oct 2020 18:17:37 -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=X3yYB0EHwEWrP2fjO5tTxpwU3iz+XBA/J7IzQ9l34LE=; b=Cc/RyzcfY7N1uH0NrbyKcMJoNSDvgRmLb4ILDISwzb64iioQGhMAbv8YatwVFE5zTe YSPAEHwvKxwVGjzBtJwLpnk6FONK/g/XmKF9PFUQQzbEHTmxaYOvg/NUdmlUp22HkPaN UXh07oheL9NP+kgJGHxFmdJOE1fxhxkm1R10o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=X3yYB0EHwEWrP2fjO5tTxpwU3iz+XBA/J7IzQ9l34LE=; b=TBi77VRc/JOe30SleXEmPhGw6tPCcob+palYQqRbfQNpZbyK2wl/zTb9i6TEvJFVjl mitc8lEk19HFdiIiJVgLXMkYiW1Bcz7Av7c1JZVTNUtIdsiRiNUagxM944oqv+eG3Yh4 d1zjoA1IJwEM4LgXmEDPENwKFXpFI5QizMefQ7b54bNtd7XntQBIyfwjGiJ2FAJmZF0G I48Nvg5mtRHfQKbiI5EqMfnqysQJ7yfOg2QeS3JBWHjHkMpGi27aF7+Hcc3ER3T5i4ZL FpRHr4pnaJdC5O0ZKqSYgD+ts4vJATzZYpz6vm4aE4rJ3poURiRRu/dDL+1pMjb+H4Vt TfiA== X-Gm-Message-State: AOAM533mW/Jocg2IkoSRLNyML4Kquw9Op86XJD1zaNf/Jn3R1Dq2uTUY /Ns3JfVqs0pJ3aMy9n8fxFl99Q== X-Google-Smtp-Source: ABdhPJyvkMM+fdSw7224IGBytnYwurIh8nkJhXgkqu8xpRZgB6wh8w67m8cQWGmwY99Y4NZoYt97QQ== X-Received: by 2002:a65:5a0d:: with SMTP id y13mr824246pgs.436.1602033457282; Tue, 06 Oct 2020 18:17:37 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id z190sm482654pfc.89.2020.10.06.18.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 18:17:36 -0700 (PDT) From: Stephen Boyd To: Jonathan Cameron Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Daniel Campello , Lars-Peter Clausen , Peter Meerwald-Stadler , Douglas Anderson , Gwendal Grignou , Evan Green , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v3 0/6] iio: sx9310: Support setting various settings Date: Tue, 6 Oct 2020 18:17:29 -0700 Message-Id: <20201007011735.1346994-1-swboyd@chromium.org> X-Mailer: git-send-email 2.28.0.806.g8561365e88-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org I need to configure various settings such as thresholds, gain factors, etc. on this device. Some settings matter at boot, while others can wait for userspace to configure things. This patch series adds support to set these various bits in the registers of this device. Changes from v2 (https://lore.kernel.org/r/20200930075728.2410327-1-swboyd@chromium.org) - Rolled in a fix from Gwendal on last patch to simplify if-else logic - Fixed binding and picked up Rob's reviewed-by tag Changes from v1 (https://lore.kernel.org/r/20200903221828.3657250-1-swboyd@chromium.org) - A bunch more patches for userspace settings - Removed body thresholds as they're probably not used - Removed compensate common as it probably doesn't matter - Moved thresholds, gain factor, hysteresis, debounce to userspace Stephen Boyd (6): iio: sx9310: Support hardware gain factor iio: sx9310: Support setting proximity thresholds iio: sx9310: Support setting hysteresis values iio: sx9310: Support setting debounce values dt-bindings: iio: sx9310: Add various settings as DT properties iio: sx9310: Set various settings from DT .../iio/proximity/semtech,sx9310.yaml | 63 +++ drivers/iio/proximity/sx9310.c | 508 +++++++++++++++++- 2 files changed, 565 insertions(+), 6 deletions(-) Cc: Daniel Campello Cc: Lars-Peter Clausen Cc: Peter Meerwald-Stadler Cc: Douglas Anderson Cc: Gwendal Grignou Cc: Evan Green Cc: Rob Herring Cc: base-commit: 1bebdcb928eba880f3a119bacb8149216206958a -- Sent by a computer, using git, on the internet