From patchwork Sat Oct 31 13:40:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320068 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268343ilc; Sat, 31 Oct 2020 06:43:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2dNzDVSLgc6GHrTeYgEulzArFHOeP5YmL9IE4iy5Xz+7ZsrKPaFovyoz7IbR1LmFq855O X-Received: by 2002:a05:6402:c8d:: with SMTP id cm13mr5746738edb.340.1604151838455; Sat, 31 Oct 2020 06:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151838; cv=none; d=google.com; s=arc-20160816; b=xv/r6wGL3SrGhcShP3NbJud25ShmFi4bErIHI4I+yklXR3K3opoiLdL5lTkx2TRs/w 7nEB03qJWEbgfKjnweMJUOiva8pISC2Z6vJqT32HpKrWbHe1c/GwiL6aqs8a39b3XqCr piFXlgXj5G0T3K0PaIHug+B+jRo8YICUY4GzxvLTJdE62YTKFC6rQbL3DTLJoTk9zFzF L/5IXP2meJekmyGffzslGikHDsrVqhfyFNFLxQii1MP4gq5MbCMya63FC9Q91HvPTwhU kXSsd5wZizEhywLL7rdIpRAjcPOswCPw96GKdH0VJJHuJ3GcLSD5pQFCIBnErAyVuguW 6YKg== 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=mCZKuvee7NqkXs3gP66d5PIkrqF+9y1PFMZgkekNh4o=; b=wE7CKxE3V/rQzB2v8E02o9QI9qPiD6gbCd5m/CFjfGba//cIch0P3chFomeVB3aBvr 00CAYNHT1fyDWEHGwH8u5gc+UwyEMsdTBXSbIieWX0KMSGt5EMa5g8lqexhc+thL2z2Q /VQBNd7kr6OOyWj48bOkIvLFFz2FQqdgo1FnEdhDO9uPPidqCjK6xPO5AFMEOK1jB3gW UgxXoqBsGBBlNqCDzeX75rSTndnOkyAyri5c3aUToAcpVojW5DZpQEBb33XNlwrXb6Bg QF8e166Nl0fAQoUiZH1sCiLTZc5MaK1JMMdkZm6SwCFxHPYgBvTFEh8ETgc+TMdG9H4E muWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GobSoA8M; 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 h25si6243872ejc.209.2020.10.31.06.43.58; Sat, 31 Oct 2020 06:43:58 -0700 (PDT) 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=default header.b=GobSoA8M; 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 S1727591AbgJaNnw (ORCPT + 6 others); Sat, 31 Oct 2020 09:43:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:42802 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727589AbgJaNnw (ORCPT ); Sat, 31 Oct 2020 09:43:52 -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 3F83D2087E; Sat, 31 Oct 2020 13:43:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151831; bh=WnaIZ8/8M/vrdA7BhuoUczOSHHHuTx+iPZJLssvNnsk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GobSoA8M+fGBM0D7fFtlHNJFcXSbQnyUHE4f6UVPpUzTD6r/6ogS3os6hxoYZyV5B RbV6ZGh5B2YfDYPAwnR0GoHIFPkzneum35/qC5EhxFWKUT4jUhrTFvXY6niR5MGexY 6zdjJe6cLqcHZmQ/2MFIYaB14fyT0A5rrtdd8xjY= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Tomasz Duszynski Subject: [PATCH v2 07/29] dt-bindings:iio:pressure:meas, ms5611 yaml conversion. Date: Sat, 31 Oct 2020 13:40:48 +0000 Message-Id: <20201031134110.724233-8-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Reviewed-by: Rob Herring Cc: Tomasz Duszynski --- .../bindings/iio/pressure/meas,ms5611.yaml | 57 +++++++++++++++++++ .../bindings/iio/pressure/ms5611.txt | 19 ------- 2 files changed, 57 insertions(+), 19 deletions(-) -- 2.28.0 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>; -};