Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2230081ybb; Thu, 2 Apr 2020 16:04:13 -0700 (PDT) X-Google-Smtp-Source: APiQypIYS9DH9BTTEmlG8zk5bXWS5x5ZBSzSy5qt/Ty4M9Uz6wNNFHakTJbT3E8C966/egQVi2/T X-Received: by 2002:aca:782:: with SMTP id 124mr1017698oih.164.1585868653128; Thu, 02 Apr 2020 16:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585868653; cv=none; d=google.com; s=arc-20160816; b=eJOCk3vkFg19HTS+gJBrbSAPgYpSXEcml7pP6DmUnkFoucNm6Xr+2NxjcMVe2dHuYr c3eCEs0+kGNGAwXZ5NVnX5r41VZk4XuAOX20BFiAfXr5BpwGGVhyPOxVDeA+LVa+kyW5 mnJsWa03f/bsAxUbSUPiBV0HKygtN9RBcTPq9/SHdD7uq+M2lCRgyPIkzmFCmfF3EEeQ kcLDvHExUjHSB2MwCm/6LZ5qwyNTCRQzWRBaGg7WJGmSgVbCT3cNg53y7eAWkA0h2p3t rlFFEWD840r4cRxHiJJ4qocw05DR3gJOEQHchnhLC1CEynPVaog2l4pOC5swPZgIfGY6 mp/g== 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=8h9TNvv6CZ2PKXPL953qS4ZWG+3/jrimtqMPT6Mv1pU=; b=ZCcbLDJuRtGoEM4trJXN48EhqcMBDo71KQzPDtL5dsGE5/Mbh9wPvUSBYL1jGDoXlH I1WBTSNROoPyYWyrmO2/u37A/Nd63aTTyCgTA+Rr8SW7bx0PZ2hshvaY2R6fgFaEOAnP ZqyQYp/XMF4lVUBP0KIjMRYEOKbvlg/Ba8hQ0W22bfEcpRptesOOXlcPqGvzruddTh9O bCc880SbJrzmKHY0YBpBuafTFnACL3rxbW1B1cXIS1ZAtKyGlghK/F96daj7oNOtQE6i RU0+ogzhN/nrcMBl7fzbhXoBAQWnEnEMf/N2rK8O2Ap3Btfi+3q66iiPvhPtarmDuY96 Sqqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QomA5Njt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id t8si2748929ood.64.2020.04.02.16.03.51; Thu, 02 Apr 2020 16:04:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QomA5Njt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2389733AbgDBXCG (ORCPT + 99 others); Thu, 2 Apr 2020 19:02:06 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:36120 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388951AbgDBXCG (ORCPT ); Thu, 2 Apr 2020 19:02:06 -0400 Received: by mail-il1-f196.google.com with SMTP id p13so5395765ilp.3 for ; Thu, 02 Apr 2020 16:02:06 -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=8h9TNvv6CZ2PKXPL953qS4ZWG+3/jrimtqMPT6Mv1pU=; b=QomA5NjtFvJQErByC8wHcdpBoa4FleTSJNfY747f268VshMlihtHC6OviHbjhlZBM6 yc3Nxmlb3GRhGQ5nmF22Xfy46volL/Us88RKVifpWoYcayJ1q5Hd4XZyOeh8E8knn4u9 g2KKzgTI5UZAYJxVUTae7wN3FCUs8sT3zy3k8= 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=8h9TNvv6CZ2PKXPL953qS4ZWG+3/jrimtqMPT6Mv1pU=; b=raG4yE9PALPNij6zVL8QWHpVx0GL2ls/80ogoz65VFU/P2UXdaibkVgbjeZ1cFyCso Fd98KvIC7qr3l+wOMGuTj3ZsPNPjO5iGybIwoNRE7QyfOguEtJLYwu679dKBuXISL6bn o53f1pZcBKDQ8wEEJpKNLxNghAoi8GlWg5Ydrsgt36Ea31aSXu/mfL4UVCzFVurgnaYQ KrkgkYuMIJoIIOEygD/tdcguVve4oFCSJjnw4DUDhMwnXRTWhzV9aYvCjeLe6gCKA9Kn qY+/XgBreS9iuF2zWUoTRfr5vfSOwbhXhQ+GN2uDWPsdjB8+TAxY4nhRJ7fV89ZZWZDe e2GA== X-Gm-Message-State: AGi0PuYFmppPtOwBDNrLo+fLW51OzpcuT+c4LKTcLDf2CPKv/deE8BrY bex+IhZvYCOMNMScS70SnQpNNg== X-Received: by 2002:a92:d490:: with SMTP id p16mr5940369ilg.300.1585868525477; Thu, 02 Apr 2020 16:02:05 -0700 (PDT) Received: from derch.Home (75-166-136-192.hlrn.qwest.net. [75.166.136.192]) by smtp.gmail.com with ESMTPSA id v24sm1808461iob.0.2020.04.02.16.02.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 16:02:04 -0700 (PDT) From: Daniel Campello To: LKML , LKML Cc: Jonathan Cameron , Daniel Campello , Rob Herring , Hartmut Knaack , Lars-Peter Clausen , Mark Rutland , Peter Meerwald-Stadler , Rob Herring , linux-iio@vger.kernel.org Subject: [PATCH 1/2 v2] dt-bindings: iio: Add bindings for sx9310 sensor Date: Thu, 2 Apr 2020 17:01:29 -0600 Message-Id: <20200402165720.1.I6ed779cd21abf3e70f21c1562bbda81f590976ab@changeid> X-Mailer: git-send-email 2.26.0.292.g33ef6b2f38-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 Adds device tree bandings for sx9310 sensor. Signed-off-by: Daniel Campello Reviewed-by: Rob Herring --- v2 changes: - Added power-supply - Changed to dual license .../iio/proximity/semtech,sx9310.yaml | 56 +++++++++++++++++++ 1 file changed, 56 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..b52ffdac678b54 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml @@ -0,0 +1,56 @@ +# 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 + + power-supply: true + +required: + - compatible + - reg + - power-supply + +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>; + power-supply = <...>; + }; + }; -- 2.26.0.292.g33ef6b2f38-goog