From patchwork Sun Feb 7 15:46:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 378120 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp3991576jah; Sun, 7 Feb 2021 07:50:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/qcMPUFy4uiStQZnRnQF3Egl0JYfCd/uscOIU/3+sJrkANWBmVjvtxCfUc6vtjpmCrRY2 X-Received: by 2002:aa7:c58e:: with SMTP id g14mr12979701edq.362.1612713033324; Sun, 07 Feb 2021 07:50:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612713033; cv=none; d=google.com; s=arc-20160816; b=chIPJt67sprEMKjVmVDgWlw6/ll/r/ekj7VTELGqtCZJJbHno//Akr2cp/bxA8XPaF GUua5jtSoXN6LtA3BeTg9MIsqzW/t++99EYK5yPWILSBZb70Bah7hYg3KqlBjvoDdsa1 q887FLJFy7aknkNaDEzkMoCQAzlM4I9zyu4YJ2ZiHf+5VQjVKB/UnPVKLeoESfkUj4xc oLJIPQQb3thTw8zuXB2rOTlXrniKZKPIaaDwvuJXrzGszGyBWCtO5cLN0QstOAp5rysv tJKNZwrKsZZBPH6lNU0XaFFjPmWFJSvL7gIAsyBwkw84+K3vjGY1nDqtZkInnGREGVvv Ba/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XVyZz7e+oeaIhQWZ82E7V/RIxHQM8vTUJp1g2zHk8EI=; b=Eif4b9MJueta5c9mueqfm9QMaD68C3FUy6asMXVNhTTuV6r1g6NdualJBQ+uMTRxaN Lw1MZ0qN48hbZvfNDLdFL84s8ixKRdK5Gpxnejff2/sKS05y4ksRXcYgEnAcwM7m670T B8cGzcEewAxrbPwYf8MJEa/zEaNyLpKB/xC4h9VnwnBFrIcr9FIlvp7+att13A8vsbrz 6Wj5XQJYGrSUvPLFJfDa0a5iI+xZWmsLNAvPI4uWwHHtTm8pVS0KH5zY4v1ZKJXsvFEV K4FNSS24BCwJol2+dkDBfvvRbBWr2cAA48KGwXFd7qd1hSYrADVZkIvMJhzWN3xrJ9rF v+Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="X/7Fzrvr"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si4002692edj.181.2021.02.07.07.50.32; Sun, 07 Feb 2021 07:50:33 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=@kernel.org header.s=k20201202 header.b="X/7Fzrvr"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229681AbhBGPua (ORCPT + 6 others); Sun, 7 Feb 2021 10:50:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:34030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbhBGPu0 (ORCPT ); Sun, 7 Feb 2021 10:50:26 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D8A2A64E64; Sun, 7 Feb 2021 15:49:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612712955; bh=BNvWERF7kZIB0Y4RCSxZOcMeDmUk3d5+ItEOYMBWmnw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X/7FzrvrgHwobvr6KC+eQtFYdns4a4VNMsE67SK304yOWKPOmLwnZTBFPLdV86Wbk GlDXQQn4n4Ul9+Hdj4QBfBuF1Yz+9ufUIMU/4wtX4/9agW6DdmUgnzg422CvyIbq6Q 9RDiE9SnyHEeHMdhc7Tt4b0VmvhfQylLpu65SjuqSoNAjeUTY0mNXycRnq6t4gwjdu oJQQERc5h3WfpR8WXrv4lVQMBgXYJPSTC6/8MOA8Tp3kkNLFHhlWIx4uPWObCouJns bBVLGgpp8dPXPSFLzYmZ5rSoZS9Qa0T9ZD6MxkiJCALRTMhijWv5X+DLslwSzqZUqp XlWL9ssYUR3xw== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Lars-Peter Clausen , Michael Hennerich , song.bao.hua@hisilicon.com, robh+dt@kernel.org, Jonathan Cameron , Robh+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH 21/24] dt-bindings:iio:cdc:adi,ad7150 binding doc Date: Sun, 7 Feb 2021 15:46:20 +0000 Message-Id: <20210207154623.433442-22-jic23@kernel.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210207154623.433442-1-jic23@kernel.org> References: <20210207154623.433442-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Binding covering the ad7150, ad7151 and ad7156 capacitance to digital convertors. The only difference between these is how many channels they have (1 or 2) Signed-off-by: Jonathan Cameron Cc: Robh+dt@kernel.org Cc: devicetree@vger.kernel.org --- .../bindings/iio/cdc/adi,ad7150.yaml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) -- 2.30.0 diff --git a/Documentation/devicetree/bindings/iio/cdc/adi,ad7150.yaml b/Documentation/devicetree/bindings/iio/cdc/adi,ad7150.yaml new file mode 100644 index 000000000000..2155d3f5666c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/cdc/adi,ad7150.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/cdc/adi,ad7150.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog device AD7150 and similar capacitance to digital convertors. + +maintainers: + - Jonathan Cameron + +properties: + compatible: + enum: + - adi,ad7150 + - adi,ad7151 + - adi,ad7156 + + reg: + maxItems: 1 + + vdd-supply: true + + interrupts: true + +allOf: + - if: + properties: + compatible: + contains: + enum: + - adi,ad7150 + - adi,ad7156 + then: + properties: + interrupts: + minItems: 2 + maxItems: 2 + - if: + properties: + compatible: + contains: + const: adi,ad7151 + then: + properties: + interrupts: + minItems: 1 + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + cdc@48 { + compatible = "adi,ad7150"; + reg = <0x48>; + interrupts = <25 2>, <26 2>; + interrupt-parent = <&gpio>; + }; + }; +...