Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2452212pxa; Mon, 3 Aug 2020 16:58:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZYAo4umTsOot0mzMei49cQR4VCIT2lLzzc6F/A06gyUY5w7jDZI/OtI7HElHBkBZJFcm3 X-Received: by 2002:aa7:cdc4:: with SMTP id h4mr9948987edw.252.1596499134097; Mon, 03 Aug 2020 16:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596499134; cv=none; d=google.com; s=arc-20160816; b=dj8Lz+uuv4N2s8p6oBHlz9Jnjs+P3PnyMgt2DZnV7SJcWdaAuPE1P+Vu1Jdu2av9oK eNCI3Ynd2LHSsmp+smr5zu44B1sVFnBOkK/0IUjphaLPFat1/XRrKjWmG8ij3aubSWAd 6q2zhUafftEr7EMsYpokEwgVC6TWQmv/zXw29jx6jx5r9vhcr0rZ9FDZzKZjLAUU/TuG qHBv/QOzp4Ff0Bh2Q30sW9EId0Wfq+Pna+SYIEFdyx4AGYL+e8gYFtROwQihZGkv12zk iJ8B42ETeYBMdZAXR30623Q7B3YetV4y3MQIX1ROV8cY1GxAnOtbx1PLsckCd6eNX4Eu m+1Q== 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=fv9PibqwgV1MjdyCrH+1lNbL+7w+KLmAdvqrt5iuuUg=; b=Q4MIB9W1D9rQaJg6CTP3Uu910y8BLRkRCusJcG8qpP81xXpJYJEk9lasO+PSzsvB0J kNXa8jqji8kK62q0F+vOpTB240cCfAzQJkbf1GUNnat9fvfEYxKS8Z2++hGhlSCXgN01 Y2S3/VFsuRfhl+kiejv+MCUD3E64tXce+YachKnwAPIMc7OhSJD7B4q1csvXPIwnyUEL BaiZ8Di0yquRvlcNYb3l3weoaIRMdFsle5SkWSTB7DeBOrZ5cnbWRRpT5l1o9C35W2IL kdDt9q+7EQIZQ7fj/oXS23IyQdzh6CDmOjkDuOyyfaBrci2THBm03g5xcv7QDdAgUXEE KnZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=B2IkoKAw; 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 f2si2118548ejr.18.2020.08.03.16.58.28; Mon, 03 Aug 2020 16:58:54 -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=B2IkoKAw; 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 S1729062AbgHCX6T (ORCPT + 99 others); Mon, 3 Aug 2020 19:58:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728928AbgHCX6T (ORCPT ); Mon, 3 Aug 2020 19:58:19 -0400 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F0D8C061756 for ; Mon, 3 Aug 2020 16:58:19 -0700 (PDT) Received: by mail-il1-x12b.google.com with SMTP id f68so10791765ilh.12 for ; Mon, 03 Aug 2020 16:58:19 -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=fv9PibqwgV1MjdyCrH+1lNbL+7w+KLmAdvqrt5iuuUg=; b=B2IkoKAw3rHxQpDM1yTGP4MlW3lpnAq6GJVq/kz2BN1ZjLfVf64Tf9CRO89X/taM9E wcMafJb09Ag4+xK4wztasHaUJY3d6bLgUng05df9X+sxXSji80gXcRBUXGwBsE7V5IHF f/kyr9JFcfZjZ6cGT8lOJJTR1tLzon0Bwh5/c= 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=fv9PibqwgV1MjdyCrH+1lNbL+7w+KLmAdvqrt5iuuUg=; b=pY85avnN3MFSVBvHVgy/22mqyfIkz9JgPZfsutjSri98Vg5KVUvt4zdt0TLak+b2LH itW1JGrOGuxG3i0uQjMgsYw/BTHJsuuy0nPtHZuMr3IFeKfE6rf2C3E8ru5qb/lGaTXz Zlzev47+0LiNe5t3bHzay2mAWpGlgNR6DZjP5U4VAJhpYy1O6z0BPerU8ZTfn8KHWyWw U1EoEPOWDGYhQAueKRd6zftNAs6eeQDQa9uDH/GxJ2RR1vlPsMdMlJwXwKEqLXQMZOFP LPk4bWKpSTMgmUQ37vRr5G2rDijM+xLcx4DUthp7wd56tJn2fF+usgUlEdVNuBvNtZvJ Ck+A== X-Gm-Message-State: AOAM532wcGnQIpfSUsGEfDMitUcL4QsXkGHjqGmITtxQ9sJiVkjqfUTA LmJvEfjXrDTk0nubeAV8pFIFHQ== X-Received: by 2002:a92:84d2:: with SMTP id y79mr2096912ilk.50.1596499098453; Mon, 03 Aug 2020 16:58:18 -0700 (PDT) Received: from derch.Home (97-122-92-59.hlrn.qwest.net. [97.122.92.59]) by smtp.gmail.com with ESMTPSA id x185sm11075992iof.41.2020.08.03.16.58.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 16:58:17 -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 v5 00/15] sx9310 iio driver updates Date: Mon, 3 Aug 2020 17:58:00 -0600 Message-Id: <20200803235815.778997-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 v5: - Added #include - Really use a pointer to buffer struct on iio_push_to_buffers_with_timestamp(). 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 | 424 +++++++++--------- 2 files changed, 278 insertions(+), 211 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml -- 2.28.0.163.g6104cc2f0b6-goog