Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp681416yba; Sun, 31 Mar 2019 09:49:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJHNdqJTSZqqSOXEaLIJTXXsM6O5S8gqRPmYjmu+IHzTc01Levnr5t9O6IyaCTH97rDwy4 X-Received: by 2002:a17:902:9a43:: with SMTP id x3mr59141153plv.173.1554050993255; Sun, 31 Mar 2019 09:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554050993; cv=none; d=google.com; s=arc-20160816; b=nz5dsgOmDlvinEH8OhVT4ls0/a9us5exqwSdc4ScdbMVwxecyLJdWRh2+swb3OIQH8 ZcvV4VJzLo5hN9XvaT+LvkE0B5piE2sAfaBIf6Tkox9MynwCMAJPMxLJrz2Veez2uT5f PcTD9ygBargsI2KkewaRlUtpDhKepFmMnH3yTYDuCw+x1Uhjk4syEtUIiDrnqDeY+Vea K8loqC9GCHsMPsujIswrIHPGas2bvIg8ukrFji5jutPTEkBNDNkUMayKZnr9fX/WQMnT CZFFR55DrkMmUGu6cWwXEDQHGdZCp3O4Hmw7TMGLro8J7fIHBe/CK0zVm1Y+wyANTKdp h+ZQ== 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=tk+f484AY47DNY8JVz10IgjkD1P/eRZJjkLBKUJxO5Q=; b=Kowzj7ibRzPNKjn381Mk3rUNJzHHi6iLq1RpGyqtUcZB6Wip38vdxu9UpNPFr3eqI2 NrthsfP5Aybb2AxfrpHYgP8nkiCjIei+LwaQMYXkB8u4rfMsnqSXbdwY3qkyue4Qzh/z pTqUpUjlJBc7fDIIt3YkLlgoFsf3r2RTJWt8k/YWxloE1ieCdEQr153kf1L1iZdn+T+S 1tRbnHMC9lRq8NvfXd396Et5nrTeRutBvt1uU45fO8K6Li3pt05wwYHH26ou0s+Z/bxC FVfmm1d6AJEe6nPdqAKBW6yMq55tDTSlhkhurnIdiCl3+Ppc1ntz3pndHHQyPDXfgX99 zVcA== 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 s5si6792425plr.307.2019.03.31.09.49.26; Sun, 31 Mar 2019 09:49:53 -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 S1731341AbfCaQsY (ORCPT + 99 others); Sun, 31 Mar 2019 12:48:24 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:47837 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731231AbfCaQsY (ORCPT ); Sun, 31 Mar 2019 12:48:24 -0400 Received: from localhost ([46.183.103.17]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1My2pz-1h1MKf3SZD-00zVQB; Sun, 31 Mar 2019 18:47:59 +0200 Date: Sun, 31 Mar 2019 18:47:56 +0200 From: Andreas Klinger To: jic23@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, masneyb@onstation.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] bmp085.yaml: transform DT documentation of iio sensor into YAML Message-ID: <20190331164753.xifw6kkiwdg4xpzo@arbad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-Provags-ID: V03:K1:o5hHlLfo4Vhe5StMsrjxDDrbkijgYfhiSS5BdSANv6Nehq72DTo pM0SOxCeDRAIAbDipMHo2oIhHgPeDKsIhdj8vbHJob2oS0B/IwHAjNMJUjjMV7UD3JWudEr wxQiYYgBbpDgWq+UsXsBQvYfipRbiW2oUZuMu+xEw6Mtnvd3/uWxHZfBjYmM1bu5WRpuXRO i+vUMdbVyoWMfEgtt4Y4g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:hxXyqtuNJ3E=:xCegxalvBYAtEB6NrDeq5I WTl+2wljvqYUE08zBqFiY1mKMaQWIbrBzDH+88KQzyhl1OZX6uPhwuwEekoy+woCEvfLujyJd 5dyvEBk8A3DwEVQzoXvkV6diCbvxT77biycbT1wcsu5ohgrvc1pdGL0PkuGq3jZSc1KRH7Lhb xT1QgK0yxbpiFfm13x70hFqAl3ZtU+fXZyPPoLZ48YyObMP+ZXmqx696CkTTtIOfRVWaw7225 IA91uOLOS0z534ZKbAyaiL0pYmc79BJk3xK5kU4rDwDyzL5eBlcKd2ztm2JNOCQpjN617hxur Dfc9AaK+GY00pGpS1y4Tp79g0JuIsdgFTI/s7TU6pcHu7Oznz33BLhkZGl4sKYvURIBh7C/6/ /RlWgHhfkskPX1k340zJKi08Xd7hh7hdOAe2CarbC6MAJvjkCzsdfTJWZJZYfZHfnesaXv5JV EqwQjNgCwfLu5jpqPFwycJ3Mpsq3o3lDwQ9xKaYjW5KY3+0hDvGa0Dxu2VljQ072z91PXHARw DgvwVL5fuO7uBOJTQSGbEeqpeQd3PcBMknomtQNpFGHi/5VY+0HTPEDk5CXaCLBcZKg9HG2Kd QKBkB1NtL7UcoKMVM5ate447hzZxwDqZYFpA194H9Vvtaxuhhq1vBlpbU3DHc+vusoDxYosnr DAyvKNiq92wwyW7zZLvEwbWUMRpwLPjgOzME2WYr7WKppafShkRakFB8wNs9F7X7CpON9orOk BLCNpp5q1DGTIM1Pz4W0veomuJcPa21U3guimTjEukp1ElwKiJd1QHJ5ElE= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org use bmp085.txt and change it into yaml format fix links to datasheets in replaced documentation Signed-off-by: Andreas Klinger --- .../devicetree/bindings/iio/pressure/bmp085.txt | 27 -------- .../devicetree/bindings/iio/pressure/bmp085.yaml | 71 ++++++++++++++++++++++ 2 files changed, 71 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/pressure/bmp085.txt create mode 100644 Documentation/devicetree/bindings/iio/pressure/bmp085.yaml diff --git a/Documentation/devicetree/bindings/iio/pressure/bmp085.txt b/Documentation/devicetree/bindings/iio/pressure/bmp085.txt deleted file mode 100644 index 61c72e63c584..000000000000 --- a/Documentation/devicetree/bindings/iio/pressure/bmp085.txt +++ /dev/null @@ -1,27 +0,0 @@ -BMP085/BMP18x/BMP28x digital pressure sensors - -Required properties: -- compatible: must be one of: - "bosch,bmp085" - "bosch,bmp180" - "bosch,bmp280" - "bosch,bme280" - -Optional properties: -- interrupts: interrupt mapping for IRQ -- reset-gpios: a GPIO line handling reset of the sensor: as the line is - active low, it should be marked GPIO_ACTIVE_LOW (see gpio/gpio.txt) -- vddd-supply: digital voltage regulator (see regulator/regulator.txt) -- vdda-supply: analog voltage regulator (see regulator/regulator.txt) - -Example: - -pressure@77 { - compatible = "bosch,bmp085"; - reg = <0x77>; - interrupt-parent = <&gpio0>; - interrupts = <25 IRQ_TYPE_EDGE_RISING>; - reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; - vddd-supply = <&foo>; - vdda-supply = <&bar>; -}; diff --git a/Documentation/devicetree/bindings/iio/pressure/bmp085.yaml b/Documentation/devicetree/bindings/iio/pressure/bmp085.yaml new file mode 100644 index 000000000000..884f889c1ca5 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/bmp085.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/pressure/bmp085.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: BMP085/BMP180/BMP280/BME280 pressure iio sensors + +maintainers: + - Andreas Klinger + +description: | + Pressure, temperature and humidity iio sensors with i2c and spi interfaces + + Specifications about the sensor can be found at: + https://www.bosch-sensortec.com/bst/products/all_products/bmp180 + https://www.bosch-sensortec.com/bst/products/all_products/bmp280 + https://www.bosch-sensortec.com/bst/products/all_products/bme280 + +properties: + compatible: + oneOf: + - items: + - enum: + - bosch,bmp085 + - bosch,bmp180 + - bosch,bmp280 + - bosch,bme280 + + vddd-supply: + description: + digital voltage regulator (see regulator/regulator.txt) + maxItems: 1 + + vdda-supply: + description: + analog voltage regulator (see regulator/regulator.txt) + maxItems: 1 + + reset-gpios: + description: + A GPIO line handling reset of the sensor. As the line is active low, + it should be marked GPIO_ACTIVE_LOW (see gpio/gpio.txt) + maxItems: 1 + + interrupts: + description: + interrupt mapping for IRQ (BMP085 only) + +required: + - compatible + - vddd-supply + - vdda-supply + +examples: + - | + #include + #include + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + pressure@77 { + compatible = "bosch,bmp085"; + reg = <0x77>; + interrupt-parent = <&gpio0>; + interrupts = <25 IRQ_TYPE_EDGE_RISING>; + reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; + vddd-supply = <&foo>; + vdda-supply = <&bar>; + }; + }; -- 2.11.0