Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2446406pxa; Mon, 3 Aug 2020 16:46:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ3z3hJunTWZ8skGA6Ea/vwEP9wgGsDqaeBQpN/Atbf77ALqYaFid0BlqCgtKCmqyI8DI9 X-Received: by 2002:a17:906:e289:: with SMTP id gg9mr19916033ejb.448.1596498389829; Mon, 03 Aug 2020 16:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596498389; cv=none; d=google.com; s=arc-20160816; b=LRBmyLN9yxXDsuGCgEtQegLA2pVZeHxyPLgB72GZA8k/iEtyTkYXCXWnCKLCxuZsKx j4RtoNF83OpkUTb+aAOBLiBs/w+3NV6N0L5ebFfMCJKJuW3KRjKxogXfUo7uFBz0edvc ZNF4PhLkhu2FZnTnG31wu3HXIinaie2FDQtL/ZaIi/g0tI01ZNsRz4lc4KN26OrrlrmA gzwn0A+Dtb7qYYOYsYMl/buRoTvLY1cESpIL1GFWWWt8we8xc18VBP1QV2l6VNS5oetV 8czn0pL8oHgbz25+tOTwSWMzD77a1FHjgHMYmapJtvBlpJIxdUYfKj6W8NLg1RP1q0Bd fBjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=REBhfBv0y9iheUmDMAD5SkNTWPE8KTprJ/7qrn9ga3c=; b=v7e/Jec4//sYyNMn7QPgWD8tGKnjJqlSW6j1AFMgkLZsGGSqdojHBB8Xs+YkgyJmlP Ir/cJgDtf+wW5vRDKRWlFAZAvc+u457SVws4rkWfVeSlf+TmkVnGGSk8Xu10W3esiMOG r8FrDRR6BWQvEq5gpJ5lHq2IWJvMSVnvVmldLKb/vTXH/xPOHu79iOTgv2fSD316yuer w8+4qUUELz6TWFmofhwEbWIxe1la8+vBrNIG+/E+QdXs9fdOozsAJklN7AI+OQ4kBPWk gx8j1QGWYrWa4dhII5VHEn5CxJWNKDqQoh5ofl+GSrnGxAE5qbbYignWzTVMQe/QZHxF Z58A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BwL27FbF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si12297219eja.174.2020.08.03.16.46.07; Mon, 03 Aug 2020 16:46:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BwL27FbF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728431AbgHCXmB (ORCPT + 99 others); Mon, 3 Aug 2020 19:42:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbgHCXmA (ORCPT ); Mon, 3 Aug 2020 19:42:00 -0400 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C345C06174A for ; Mon, 3 Aug 2020 16:42:00 -0700 (PDT) Received: by mail-il1-x12a.google.com with SMTP id l17so22432365ilq.13 for ; Mon, 03 Aug 2020 16:42:00 -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=REBhfBv0y9iheUmDMAD5SkNTWPE8KTprJ/7qrn9ga3c=; b=BwL27FbFizHtr8CZDR3cITVgiP+qWBE5wP5lYLn5rgwHEns8KBZg/OK6bN4uOe2Hj/ toKEV82gKnsOULOibiH6turbMrtUIpvAqaHN8hbV/newGCaAg0PrYsIqNA8BHuad2EUX mY0h1crzvcOz14F6VfjDSBtJlMJ3JiobWv7Ck= 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=REBhfBv0y9iheUmDMAD5SkNTWPE8KTprJ/7qrn9ga3c=; b=c2zOWQcSNxyV5chTR5Rfk+bah54tw1B4BzhJfXntVdKOuXdsROUa7AkFtpnh0WaZBJ IqhQQTcmFIizATcxQ9y8UfSFXGJFktt23nunUZkeplCnFKmY/YlLN/Tqn/UYR1Glk9H0 AVSWqL6gc07xROj8OKx07n4vCd/T6gRt6p6EUMfTnQMlhs4MccNtQi3OH5rpNk+4TTFw /4YszUv5O5xhlZ0nixggwpBtMICH1djx9V3L33RgjNSgKdz5hgXDqLlXcSa6QuHLF/ac NSJxG6aNochvN5syRWdwSeU8yS/DsvKdbihWnjHIVPAbxYcPYqWQn+kuEC8q56tJlKjo m5iQ== X-Gm-Message-State: AOAM5333qDpPBwmEPPeHsBMo+kMZd6Y30tBdCtt/2R7sxhWj+QTnP/AG bAd0QkOtVphmnYiuK+ndluTfNA== X-Received: by 2002:a05:6e02:cac:: with SMTP id 12mr1972194ilg.175.1596498119359; Mon, 03 Aug 2020 16:41:59 -0700 (PDT) Received: from derch.Home (97-122-92-59.hlrn.qwest.net. [97.122.92.59]) by smtp.gmail.com with ESMTPSA id g2sm5468435ioe.4.2020.08.03.16.41.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 16:41:58 -0700 (PDT) From: Daniel Campello To: LKML , LKML Cc: Jonathan Cameron , Daniel Campello , Andy Shevchenko , Douglas Anderson , Enrico Granata , Gwendal Grignou , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Stephen Boyd , linux-iio@vger.kernel.org Subject: [PATCH v4 00/15] sx9310 iio driver updates Date: Mon, 3 Aug 2020 17:41:39 -0600 Message-Id: <20200803234154.320400-1-campello@chromium.org> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first patch resends the DT binding for the driver that was merged in v5.8-rc1 with a small change to update for proper regulators. The second through the eleventh patch fixes several issues dropped from v8 to v9 when the initial patch was merged. The twelveth patch drops channel_users because it's unused. The thirteenth patch adds support to enable the svdd and vdd supplies so that this driver can work on a board where the svdd supply isn't enabled at boot and needs to be turned on before this driver starts to communicate with the chip. The final patch updates irq trigger flags. Changes in v4: - Updated macro SX9310_REG_STAT1_COMPSTAT_MASK at call site. - Use FIELD_GET/FIELD_PREP instead of manual shift. - Reverted condition check logic on enable/disable_irq methods. - Use pointer to buffer struct on iio_push_to_buffers_with_timestamp(). Changes in v3: - Moved irq presence check down to lower methods - Changed buffer to struct type to align timestamp memory properly. - Added static assert for number of channels. - Added irq trigger flags commit to the series. Changes in v2: - Added #io-channel-cells as a required property - Reordered error handling on sx9310_resume() - Added #include - Added '\n' to dev_err() - Fixed commit message from "iio: sx9310: Align memory" - Changed prox_stat to chan_prox_stat bitmap. - Fixed dev_err() message - Added '\n' to dev_err() Daniel Campello (12): dt-bindings: iio: Add bindings for sx9310 sensor iio: sx9310: Update macros declarations iio: sx9310: Fix irq handling iio: sx9310: Remove acpi and of table macros iio: sx9310: Change from .probe to .probe_new iio: sx9310: Fixes various memory handling iio: sx9310: Use long instead of int for channel bitmaps iio: sx9310: Use regmap_read_poll_timeout() for compensation iio: sx9310: Update copyright iio: sx9310: Simplify error return handling iio: sx9310: Use variable to hold &client->dev iio: sx9310: Miscellaneous format fixes Stephen Boyd (3): iio: sx9310: Drop channel_users[] iio: sx9310: Enable vdd and svdd regulators at probe iio: sx9310: Use irq trigger flags from firmware .../iio/proximity/semtech,sx9310.yaml | 65 +++ drivers/iio/proximity/sx9310.c | 421 +++++++++--------- 2 files changed, 276 insertions(+), 210 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml -- 2.28.0.163.g6104cc2f0b6-goog