From patchwork Sun Oct 11 17:07:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11830963 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D625C109B for ; Sun, 11 Oct 2020 17:10:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BEE982222C for ; Sun, 11 Oct 2020 17:10:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602436209; bh=mFbBZ4byiIh0GuI9I5InFawRw+D+0nS2jLNxcRRpHZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=NXaAy4gomGwClt44TSVjzFdDJBTOh24ivYH+Jyj7hjDiHuRVLfMLmyzECm6C90Jy7 fQajWi95ySCGW9NueDC87AGvU9uDJjXIEB7Lpv/xdY+vTuSqFTFIRQki1YazHmpby5 VP2J4D8YDy6cX5EzPM4amWxHAnmy5elj6V58+tTE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730275AbgJKRKJ (ORCPT ); Sun, 11 Oct 2020 13:10:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:51780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729634AbgJKRKJ (ORCPT ); Sun, 11 Oct 2020 13:10:09 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 72C792224A; Sun, 11 Oct 2020 17:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602436208; bh=mFbBZ4byiIh0GuI9I5InFawRw+D+0nS2jLNxcRRpHZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jRtBfGSmvnG0jQ+/0VRaknoKg5uuRVTqR0NO1zxtkvjOCczJPQkZeZqz4nANpXwfi hdf7K4rCfjFi60y5crZinFjpKkOkdVEIs8gxbuiCFtMXWYFMFHZezdVzAmfPf92Eeu TrYJ7EntTfpcy/C1AjpbQ/l0v/vMjAJP34FrLSe0= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: Jonathan Cameron , Tomasz Duszynski Subject: [PATCH 07/29] dt-bindings:iio:pressure:meas,ms5611 yaml conversion. Date: Sun, 11 Oct 2020 18:07:27 +0100 Message-Id: <20201011170749.243680-8-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201011170749.243680-1-jic23@kernel.org> References: <20201011170749.243680-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron One addition here was to put in a 20MHz maximum for the SPI bus as specified in the datasheets of both support parts. Signed-off-by: Jonathan Cameron Cc: Tomasz Duszynski --- .../bindings/iio/pressure/meas,ms5611.yaml | 57 +++++++++++++++++++ .../bindings/iio/pressure/ms5611.txt | 19 ------- 2 files changed, 57 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml new file mode 100644 index 000000000000..4f06707450bf --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/pressure/meas,ms5611.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Measurement Specialities ms5611 and similar pressure sensors + +maintainers: + - Tomasz Duszynski + +description: | + Pressure sensors from MEAS Switzerland with SPI and I2C bus interfaces. + +properties: + compatible: + enum: + - meas,ms5607 + - meas,ms5611 + + reg: + maxItems: 1 + + vdd-supply: true + + spi-max-frequency: + maximum: 20000000 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pressure@77 { + compatible = "meas,ms5607"; + reg = <0x77>; + vdd-supply = <&ldo_3v3_gnss>; + }; + }; + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + pressure@0 { + compatible = "meas,ms5611"; + reg = <0>; + vdd-supply = <&ldo_3v3_gnss>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/pressure/ms5611.txt b/Documentation/devicetree/bindings/iio/pressure/ms5611.txt deleted file mode 100644 index 17bca866c084..000000000000 --- a/Documentation/devicetree/bindings/iio/pressure/ms5611.txt +++ /dev/null @@ -1,19 +0,0 @@ -MEAS ms5611 family pressure sensors - -Pressure sensors from MEAS Switzerland with SPI and I2C bus interfaces. - -Required properties: -- compatible: "meas,ms5611" or "meas,ms5607" -- reg: the I2C address or SPI chip select the device will respond to - -Optional properties: -- vdd-supply: an optional regulator that needs to be on to provide VDD - power to the sensor. - -Example: - -ms5607@77 { - compatible = "meas,ms5607"; - reg = <0x77>; - vdd-supply = <&ldo_3v3_gnss>; -};