Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp501617yba; Mon, 1 Apr 2019 10:34:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFGSPo3fH3ekS48dBgSnHwZJjP2ADDPMdy/XWo2NGnmu6CgnpSFTkyOc9UapqJV2us0EkO X-Received: by 2002:a63:9a4a:: with SMTP id e10mr59761870pgo.366.1554140050141; Mon, 01 Apr 2019 10:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554140050; cv=none; d=google.com; s=arc-20160816; b=lWO8uFk2FbLxTccfTVqFiP0jBheUNHs1s3qH6DEA5sVj1HLPHtYBZaEuP4U0GpgkDc 7PUkUc6XIUGYx4/s12SJHK1kgUBnux3o48rjVQNaWYOPf2y+PQcF9EdCUrZVsC7aF9D6 pZe5VFO6uZP5Bb6CNSjusjbaKQyv4PtjAQ3wbQB+dsvMtuSFyrLrSComzybgOi8/YLgp F7sn5hD7wfQiUd6QIm/PlqwYBFIV5Ff6gS5R7ufLuioy6EK9j0Os+j4uR1GeMIxG6APG aaC8d1xnyFe5bd2ikrVTGK1hOGn7NLEZpaEHwHfzmLilNMxT+j0K1Gfx8pi8nwB+eky8 e8zA== 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=+Ioc1vf1+DA6R8pxk0Kxqx5CQSWC1bvBKwdsVO4BRwk=; b=rbeo4pTkRqD2Lj1GJK1qdrFvWOmh5QOxWiYDzw8H27pVzcGWIghou2N0NNI/TmQzAb RPEChdu8FBZDlZ6HSS/6Oymxk32N2kBdLtnnfOYn6pZZiDTsBgeQERNFtS6L4VI4WP4K hf8EGQ7Jz0lBuUgYwQ12NWKdQpwBo9OuDupvSV/6KKxE8nZL3I84CXPrQ/cvehcj12ew Dqqk+9gCQDgF++81xzQmj/bnq+VncFZN5QAFP3t9vWNpQI5gcEYhWOULF8W7+QF5wU/R 9TlkDeGTYAPFwwgnZN4iKswf9Oto1/Bdk/IBladvws9kXDynR9BKC3FphxdALkCFMlNj 5G2g== 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 v131si9367478pgb.452.2019.04.01.10.33.54; Mon, 01 Apr 2019 10:34:10 -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 S2387460AbfDARcM (ORCPT + 99 others); Mon, 1 Apr 2019 13:32:12 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:37919 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733164AbfDARcL (ORCPT ); Mon, 1 Apr 2019 13:32:11 -0400 Received: from localhost ([88.128.82.80]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MFsdD-1h9gHm1VFf-00HPJQ; Mon, 01 Apr 2019 19:31:45 +0200 Date: Mon, 1 Apr 2019 19:31:44 +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 v2] bmp085.yaml: transform DT documentation of iio sensor into YAML Message-ID: <20190401173142.cunj5iwz2ox454qx@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:pvuH7a1rABTg+UcpM29SaGBhBzWTUniAVX3J0NWk4KDHOji2emU zuPaCxl6tvndrwGP8tQh0Z50rqLzMEMQdzlY9C1j9y+ykVq+UtqB/7AGuC/GzbNOD+UH96v EKerkKl+3VxDSwEVBg5+Oq2NChoiMgL8p9YMOczR+2NPmxKKhkQ/9nTBbgmaAYGUzyYy0h0 kV1dZN28cXFFXjElvtAww== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:sWwWGXihVE8=:LLm4vyhY7o0ihTONyD48v6 anBckATTRSSS/HbLXDcCE+eKLJgzhHW4S8+mblHbM6sp0Ivsz28fxU3aCUaBTMdhPNy12XusV +mSGqIGfBemEjpHw2lfrGfya2+ubLQh/byWJTTTAwysvlvy4qOwtt5SCrqjDeuRgzHeHK4xzU SPRvmkmpcf8ruW+IQHFZWG6q7ufXY15WcPRte+DxoC2hYgfWsH+xYmfxK6MOVAwYjx9JRgHic 0EnUIHaEKTO8n8Ak6VSQaYCgb71WNEHCuprTsOrq0UghcejPzyUUGoV8/sxT/zUrnbOd6EIvq UbqDms5iKysY2g77d4vw41moAGtrH23IbOWDN3IKepGjD5A5oY+37Ag2XuOCMqSpKgiCVry9d QEbw3Xuy5az1pcWiW1X4nz//SfFz7WEuEEb5Z42o74HlyKm4rpYs2TOkgOShL0Z08YO1/M7Kz lELGjoZHyMMjpWLEVnStFXeJIcvYvKyrW63C1wza15117IPO+PkwS44+VPBgoioRImuJdzo1S A2El8rFrYfwbpn5njA+l2i0Cw7b+vq4mHRm01rxGGe1f0cxPhjNkbuGk2U6aGGodSQs+OZB/z yuBZP6xPohc1Ku/DbgmNemaDPU0s2TfPm+w94sSjCFPgXnBHqCyrGYVoiY8mJ4095jf5MKBko uPqpYrUQNCUqQ1UXjButkecFplfQo01BLacVocryv182fbGHFR3d6iMDyraiklNb5s4gcZz12 doj8UdPqdpf7r3QtObMZ61pfehGva4drbIn8Vg== 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 | 70 ++++++++++++++++++++++ 2 files changed, 70 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..c6721a7e8938 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/bmp085.yaml @@ -0,0 +1,70 @@ +# 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: + 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) + maxItems: 1 + +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