Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2444413pxa; Mon, 3 Aug 2020 16:42:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpMM2XfBI9VJgSWoZwauKFyQz6KwmvscQMSApr43ZW8t2gvuLbDKMbRRWnR9CE3hEgL8n0 X-Received: by 2002:a05:6402:31a3:: with SMTP id dj3mr18254352edb.73.1596498157199; Mon, 03 Aug 2020 16:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596498157; cv=none; d=google.com; s=arc-20160816; b=sP5IFEk+W4Z+/TfVo7+Ox32BFvPqlmAOSh2gJtLj33YjnLJrRyEos2LLDv0ovilW91 61tiIPm3TEra4f9QhDS87HoM2EYB1ewApJYjxq47xXPeu8IfA7el5kJjSTaYl1UeWvs3 fz8lpSmUF728L1Km1M1mhpmhXODcjnfIb2T8lIdI6c2G7jCHcIJzR/oLJjB3+D/OLmAB ZjHSvVrTw8vngkxmVfuZvT7lnAzth7h0/QRbC0qEVXGhGa3ZgTMAL7HVN7e0jZdhIuKX 4wV0nPB6UuqIuy07G/D7dlvG1f4ncyV+8bzBHJ69cqrjPBmqhsfZdT47N+ecoyjUrpsw yyrg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ySLfczwfPCSsE/wIMdBijYsg19z6IEGg8VtkjJac6SY=; b=qOqMRoO6y6ID6i8HI+CabY4G2H03BCJkZroNbgKXqtWHzBDnEuWICAX1fKN4tE9nAR xVhlLCfyly2CV7w3Jw83+31OhZfrjLVeyWIarJvctR/JOc9HSCjvEIWVULwx6kShtxsy yv4ViYDaqqcIqPb+TiatC3Eux8pfuehO8rZ3CxhV2+2c+AAKfBd/q9VLLgyyz5NiYLlh GZ1Wp2uU0Lfp0dyLLp8AxDnPZPirl0OCWjpYR8hs17B8U/uppqw2e63crrx5CRIqbzpZ l/GGALlpxFG1d+08kviUvRinX0n7vfIKM3srDSmbRjxSiqcU1y52m+prk2O9/0JzFxK3 5pAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DcZwLeIU; 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 be25si11239563edb.124.2020.08.03.16.42.14; Mon, 03 Aug 2020 16:42:37 -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=DcZwLeIU; 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 S1728753AbgHCXmC (ORCPT + 99 others); Mon, 3 Aug 2020 19:42:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728298AbgHCXmB (ORCPT ); Mon, 3 Aug 2020 19:42:01 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 082CEC061757 for ; Mon, 3 Aug 2020 16:42:00 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id u126so3079970iod.12 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:in-reply-to:references :mime-version:content-transfer-encoding; bh=ySLfczwfPCSsE/wIMdBijYsg19z6IEGg8VtkjJac6SY=; b=DcZwLeIUcR1SxjgrjtGSRF0f2IaIwkE2cwYwmc4Wow/SeAyV4MiPpWcMB8TJ4eauEY vECMqzmfNeED0nATqni3SI8pI3puiGdsNq1GVvTO0Bj7MHYIgfiCJ8ddluTfnIG1OdBq 1T+YRqoNReDpWeeUGSo52zs2v/cybiX1wnn14= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ySLfczwfPCSsE/wIMdBijYsg19z6IEGg8VtkjJac6SY=; b=tyd3r8X7AiSkycnwpDKMegospoW2bLSHuglIW1yOfPrhcKn1NicUy4dVTm5mUH8h+C 0u9cVQU+nVa1Wvs0nlR6lFogQwlJPT/Aa/CZAIbepIhQ1kpVvnq4VsJBmV4CyRynA14i /pa0YMStNgAbuuuYsqwT6IQukQ5UFB9OguYwtaTSw2+IAp9TQq+TEJH/BsUXnJ21MCpR R0ZywiyUz7lzqAenzbGGzCQsMwJ24+bcf/XdOBDb94TIrhH0OXJZZq6RGFKa44XK0C1E xJKG9j1RuAkIH187C4iv0XQWvhAOsv1MADVw9AOBIC1aGtxxV/snn2me/YTkv090XYFs CfNQ== X-Gm-Message-State: AOAM532jrPfPk4twFrZLhPKdyQopt+GKFx46TDRkxRgZaFjIGiGXm5yY WV5uVyPNkWvJWbUdPIkJyMKbhA== X-Received: by 2002:a05:6638:2689:: with SMTP id o9mr2591145jat.37.1596498120365; Mon, 03 Aug 2020 16:42:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 16:42:00 -0700 (PDT) From: Daniel Campello To: LKML , LKML Cc: Jonathan Cameron , Daniel Campello , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Douglas Anderson , Stephen Boyd , Rob Herring , linux-iio@vger.kernel.org Subject: [PATCH v4 01/15] dt-bindings: iio: Add bindings for sx9310 sensor Date: Mon, 3 Aug 2020 17:41:40 -0600 Message-Id: <20200803131544.v4.1.I0925046377211b8b6f06764857f03b4ab592bddb@changeid> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog In-Reply-To: <20200803234154.320400-1-campello@chromium.org> References: <20200803234154.320400-1-campello@chromium.org> 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 Adds device tree bindings for sx9310 sensor. Signed-off-by: Daniel Campello Cc: Hartmut Knaack Cc: Lars-Peter Clausen Cc: Peter Meerwald-Stadler Cc: Rob Herring Reviewed-by: Douglas Anderson [swboyd@chromium.org: Add both regulators and make them optional] Signed-off-by: Stephen Boyd Reviewed-by: Rob Herring --- Changes in v4: None Changes in v3: None Changes in v2: - Added #io-channel-cells as a required property .../iio/proximity/semtech,sx9310.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml diff --git a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml new file mode 100644 index 00000000000000..5739074d3592fe --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/proximity/semtech,sx9310.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Semtech's SX9310 capacitive proximity sensor + +maintainers: + - Daniel Campello + +description: | + Semtech's SX9310/SX9311 capacitive proximity/button solution. + + Specifications about the devices can be found at: + https://www.semtech.com/products/smart-sensing/sar-sensors/sx9310 + +properties: + compatible: + enum: + - semtech,sx9310 + - semtech,sx9311 + + reg: + maxItems: 1 + + interrupts: + description: + The sole interrupt generated by the device used to announce the + preceding reading request has finished and that data is + available or that a close/far proximity event has happened. + maxItems: 1 + + vdd-supply: + description: Main power supply + + svdd-supply: + description: Host interface power supply + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - "#io-channel-cells" + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + proximity@28 { + compatible = "semtech,sx9310"; + reg = <0x28>; + interrupt-parent = <&pio>; + interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>; + vdd-supply = <&pp3300_a>; + svdd-supply = <&pp1800_prox>; + #io-channel-cells = <1>; + }; + }; -- 2.28.0.163.g6104cc2f0b6-goog