Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp205618pxa; Fri, 31 Jul 2020 09:51:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxY6MxIfc9urtr/CX7Ldq9++/XNxZRQznQPuoopAtCe9EU2UoFeP0qUrM1FUDzKlBnnd/T3 X-Received: by 2002:a05:6402:17f6:: with SMTP id t22mr4746872edy.141.1596214313042; Fri, 31 Jul 2020 09:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596214313; cv=none; d=google.com; s=arc-20160816; b=DRl3RffSGKbs/p8u5dosSXe+lVsooZHkIJsLAEIvRtu1wg1ZKgHy2YKs8Vh7la2nwk qbK5bxDMIwKZtnwyyu2BSrHhMMpRtDZaYPLYPBflItBWbZQDqeeu6Yx+V+LpNdHdjq1o s427qKMD+NFvSOtoz6/z07/bf8a6nJqR1Q2P0s6UkZsRjcPsbpQhmGFr7Dlu8I0u+Orb E0HA72yp6E3zziv4UAkGAkUjx6q+FLe/6wvNAFJO5afa7ZzEvmuMQChvHflYiGeGXLSq UDVL9qciHnpZzs/zyNG3pka8O4weLg3oGJ3+n9Is0nccAHK/SYZUpEtBbt6P6xFMJKO+ vBIw== 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=GsrH317o9ZXCzgzy3uVli3vBl/8VqU/V+NLgYgRn16Y=; b=FhAEos3WMp0vC4s0YMJh5HvwTt2bch5fW+/BqrsqfJfNTFPa+EtrjyyNFbRFjCTGGe onONKdq+iTkr0ljJdejOKquuaMLp8ZgTx1WvyMsDTkwgYwJ7vRYV05EheAwHdR7bg2yd MwSYwSRdvuLG7bJAYy6puIjDmPP1tgZeRg9VbCzLGabPV4q+njO5KSa/qDs1Lqye28LL IMNNj8PF/RP3puHEoCj4YOiLlLT3yfwzsnkwaq/RJU+6gbcN7wsMDB55LJTHXss0pdWV 4OXiSoC94sCaxGiRVxnqT1IwkFi7NQaq1vSAyrG6LKDsag+DGsQrO7i70QX60rn2kLrQ WNmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="QE1/qz/Y"; 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 t17si5663563ejs.588.2020.07.31.09.51.30; Fri, 31 Jul 2020 09:51:53 -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="QE1/qz/Y"; 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 S1733090AbgGaQtD (ORCPT + 99 others); Fri, 31 Jul 2020 12:49:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732658AbgGaQs7 (ORCPT ); Fri, 31 Jul 2020 12:48:59 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A35AC06174A for ; Fri, 31 Jul 2020 09:48:59 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id w12so18673953iom.4 for ; Fri, 31 Jul 2020 09:48:59 -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=GsrH317o9ZXCzgzy3uVli3vBl/8VqU/V+NLgYgRn16Y=; b=QE1/qz/YlrUfA1R7HhCBY9mGH1JfX7uFKfSueFy09R1h0SAlO/7Ex7dmLiMeD1+U1G 8UTq/wnJwQ8moxqOLjOY9JlfLOUx3lU/TyxNp312R8ddsUq4n4kySIOngY7Z1N8n6O3y wgdJt5FzMtUAWYKzT35a+ImqlNM5SwiVsHK+I= 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=GsrH317o9ZXCzgzy3uVli3vBl/8VqU/V+NLgYgRn16Y=; b=BVMEfMgaEDyB1nQp7qoDIWtk9ND1uSKsGAVtRADqg12ecAB+vP7khUeZVLxVzzu+k6 xluTLM7M/GJz72yZLxMrl6keAzLPM5MxU5ZXh16Y6qRadx2i5Z04ir6cqePM2G/Z7bQJ ztISXXmdzTA3xtw5zop32oPe6c1cAdpnXUlXgiaSJF+GjvzwZI5/kxJWX8295OTcfJbF miXyfSQV1AKVLFY+phGG/uMPnC8FJHMQId9JQ0SXdIPzReiEEAL5oEB9cU6N+LA8QY/a kOa0HL6Y0rAr0fRys4WRvM4aum+Y4vaS11Vfp/AoOvD41138C2K5h09JLSJ6dmnxuRgX 4yzQ== X-Gm-Message-State: AOAM53129ghZ1x1yp49EK3uW1oVrm/6EO694BbzluFYtnYAnjp72YtUN xX4VSuXhoTkNGQ6mH1OH06g6fQ== X-Received: by 2002:a6b:bb43:: with SMTP id l64mr4404849iof.191.1596214138272; Fri, 31 Jul 2020 09:48:58 -0700 (PDT) Received: from derch.Home (97-122-92-59.hlrn.qwest.net. [97.122.92.59]) by smtp.gmail.com with ESMTPSA id e84sm5122083ill.60.2020.07.31.09.48.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 09:48:57 -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 , linux-iio@vger.kernel.org Subject: [PATCH v3 01/15] dt-bindings: iio: Add bindings for sx9310 sensor Date: Fri, 31 Jul 2020 10:48:38 -0600 Message-Id: <20200731104555.v3.1.I0925046377211b8b6f06764857f03b4ab592bddb@changeid> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog In-Reply-To: <20200731164853.3020946-1-campello@chromium.org> References: <20200731164853.3020946-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 bandings 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 --- 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