Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3230166ybp; Sun, 6 Oct 2019 07:29:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1IGfguLFbq7sZgmBy5qp/QtCUU9HR6DWOlBGsUvhlbqJZggMzGynapXG8lxJe533LwK3h X-Received: by 2002:a05:6402:b13:: with SMTP id bm19mr1860455edb.152.1570372146648; Sun, 06 Oct 2019 07:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570372146; cv=none; d=google.com; s=arc-20160816; b=gIq+6s067Cn/ypCAl/FMyp2qb76DNLiDPJ7oaSoM5o9OMAwxLaP/R3iD3Xsq8lvWUm GFMThSaycHvxmpUuljNCcrcLXttd/PzPVxBVqTEkZmAg4UE8zNaTFrS3/+hOgTkpyplx fCQEesUbfZQBSlDMsPXB8X8FGjo+37ndORCumoRrn1sQ7RblgMj4KE5WUIkIaAJ/ybUU 4aw9QjWvbXMgAGxJA8UDVaUAryPtc0WI7OKHjxb4BlAIRlqVRtOQn2v9fOvap70os3dM hRg6B+z1BFZd1rBZ223fs2s5gOJjsD/F5iqcUjtUnHbgBcKVdIzhhK+5fKjgR9Z7cBzx 1rOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=uvDnZ4+n9fCJRj4X+SHp5w4Su7vqpt1B1YCfQa1fIGY=; b=WdQA3KHxHGRzbTSyDLxk16/szOF1k3AhgX06x7WeQXnVauMBQAoQXlPtvsTarSSb1w SXs5hsOpUYjVPGxtMnnYF9rY5M18D9rjXbxSUI2Em6SM58aQClzRlZLrI4UVkjqd1ZGl Sb2NpUTa96aqe/5G2G84z1NQiZe+Ontbu0x//WamDPkPdA1zQf4nhqvJxBXdeYPTULrU +ffgrGCNFo0J6pOh9QVTiLh4xQwrAfQTG1uW00R4481Oxifizc2qKTsue7P9TvRwy37F UlHRHCzrIVPDk6d3bZycviJSNYsnhN1bul0ydsHf01AaxII0qEsDAEUXUS6NZV1Rwv5H VGSg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g24si5862601ejo.355.2019.10.06.07.28.09; Sun, 06 Oct 2019 07:29:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726349AbfJFO1s (ORCPT + 99 others); Sun, 6 Oct 2019 10:27:48 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:35569 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbfJFO1s (ORCPT ); Sun, 6 Oct 2019 10:27:48 -0400 Received: from localhost ([89.204.130.45]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MGQWr-1iK5WR21YD-00Gt1q; Sun, 06 Oct 2019 16:27:30 +0200 Date: Sun, 6 Oct 2019 16:27:25 +0200 From: Andreas Klinger To: robh+dt@kernel.org, jic23@kernel.org Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, mark.rutland@arm.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dt-bindings: iio: maxbotix,mb1232.yaml: transform to yaml Message-ID: <20191006142715.45k64cgw7mzlekm5@arbad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline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n1v9+EZKEGgsMimKpEfwRd0CIuH3N8cP5okLauszvb/U3mU0KtNSqDc3m9qnIEJzP5S 8KC+0+GngRayMY7LCC1c5L/0lgNCQlQiu+MdTd3hBwp235C/cCApMVsOl9suiR/PIDUVktA8j NLB02+r1VrHmmuLnvnnw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org transform existing documentation of maxbotix,mb1232 ultrasonic ranger from text documentation format into yaml. Changes in v2: - removed description of reg property - added a line: additionalProperties: false Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/maxbotix,mb1232.txt | 29 ----------- .../bindings/iio/proximity/maxbotix,mb1232.yaml | 56 ++++++++++++++++++++++ 2 files changed, 56 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.txt create mode 100644 Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.yaml diff --git a/Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.txt b/Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.txt deleted file mode 100644 index dd1058fbe9c3..000000000000 --- a/Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.txt +++ /dev/null @@ -1,29 +0,0 @@ -* MaxBotix I2CXL-MaxSonar ultrasonic distance sensor of type mb1202, - mb1212, mb1222, mb1232, mb1242, mb7040 or mb7137 using the i2c interface - for ranging - -Required properties: - - compatible: "maxbotix,mb1202", - "maxbotix,mb1212", - "maxbotix,mb1222", - "maxbotix,mb1232", - "maxbotix,mb1242", - "maxbotix,mb7040" or - "maxbotix,mb7137" - - - reg: i2c address of the device, see also i2c/i2c.txt - -Optional properties: - - interrupts: Interrupt used to announce the preceding reading - request has finished and that data is available. - If no interrupt is specified the device driver - falls back to wait a fixed amount of time until - data can be retrieved. - -Example: -proximity@70 { - compatible = "maxbotix,mb1232"; - reg = <0x70>; - interrupt-parent = <&gpio2>; - interrupts = <2 IRQ_TYPE_EDGE_FALLING>; -}; diff --git a/Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.yaml b/Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.yaml new file mode 100644 index 000000000000..e2fb1f6d4dbe --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/proximity/maxbotix,mb1232.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MaxBotix I2CXL-MaxSonar ultrasonic distance sensor + +maintainers: + - Andreas Klinger + +description: | + MaxBotix I2CXL-MaxSonar ultrasonic distance sensor of type mb1202, + mb1212, mb1222, mb1232, mb1242, mb7040 or mb7137 using the i2c interface + for ranging + + Specifications about the devices can be found at: + https://www.maxbotix.com/documents/I2CXL-MaxSonar-EZ_Datasheet.pdf + +properties: + compatible: + enum: + - maxbotix,mb1202 + - maxbotix,mb1212 + - maxbotix,mb1222 + - maxbotix,mb1232 + - maxbotix,mb1242 + - maxbotix,mb7040 + - maxbotix,mb7137 + + reg: + maxItems: 1 + + interrupts: + description: + Interrupt used to announce the preceding reading request has finished + and that data is available. If no interrupt is specified the device + driver falls back to wait a fixed amount of time until data can be + retrieved. + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + proximity@70 { + compatible = "maxbotix,mb1232"; + reg = <0x70>; + interrupt-parent = <&gpio2>; + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; + }; -- 2.11.0