From patchwork Sun Oct 11 17:07:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11830965 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 491BE15E6 for ; Sun, 11 Oct 2020 17:10:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 329012225F for ; Sun, 11 Oct 2020 17:10:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602436211; bh=aOLm+j5zTzEPH8yp4lgv+JZBORSE/gdSQXDfBjIRomY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Lt8lH+LzXaaPcCNOJe8QoU64X9zgtsZJ/ApR7qvwlScD/HmBp7T/Bz3Rl9L6CCs7+ SvyO46VmVLjsNB09jm0y+ILk4MFVqUxFft78+Ri7yOydv/eh1LO6K+GKjKMceOZEDj Flf8qAvUlKr6O6iGxcWM3/CVTeB8QH4+d3XU1WRg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730279AbgJKRKK (ORCPT ); Sun, 11 Oct 2020 13:10:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:51792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730277AbgJKRKK (ORCPT ); Sun, 11 Oct 2020 13:10:10 -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 0575A22258; Sun, 11 Oct 2020 17:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602436210; bh=aOLm+j5zTzEPH8yp4lgv+JZBORSE/gdSQXDfBjIRomY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sIuEql7sCCeoxxdzf/DwzZ+W+401Lf6ALkS/ynK0k9bBk9AE5zSJrAVsF/Vemit/W FoATM3GS6ifKRmM9tYExbDeqTOqjQP6Ubz6exFiy24xxcrkBcaXfWDZj2hQ94SFcpK dStVitR7uls/MefghE7MrYXvKgpnRSI0fbx2hEVs= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: Jonathan Cameron , Marek Vasut Subject: [PATCH 08/29] dt-bindings:iio:pressure:hoperf,hp03 yaml conversion Date: Sun, 11 Oct 2020 18:07:28 +0100 Message-Id: <20201011170749.243680-9-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 quirk in the txt file was that the xclr gpio was specified as gpio-xclr rather than gpios-xclr. I've fixed that in the yaml version. Signed-off-by: Jonathan Cameron Cc: Marek Vasut --- .../bindings/iio/pressure/hoperf,hp03.yaml | 47 +++++++++++++++++++ .../devicetree/bindings/iio/pressure/hp03.txt | 17 ------- 2 files changed, 47 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/pressure/hoperf,hp03.yaml b/Documentation/devicetree/bindings/iio/pressure/hoperf,hp03.yaml new file mode 100644 index 000000000000..69a3759e23db --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/hoperf,hp03.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/pressure/hoperf,hp03.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HopeRF HP03 digital pressure/temperature sensors + +maintainers: + - Marek Vasut + +description: | + Digital pressure and temperature sensor with an I2C interface. + +properties: + compatible: + const: hoperf,hp03 + + reg: + maxItems: 1 + + xclr-gpios: + description: + The XCLR pin is a reset of the ADC in the chip, it must be pulled + HI before the conversion and readout of the value from the ADC + registers and pulled LO afterward. + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pressure@77 { + compatible = "hoperf,hp03"; + reg = <0x77>; + xclr-gpios = <&portc 0 0x0>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/pressure/hp03.txt b/Documentation/devicetree/bindings/iio/pressure/hp03.txt deleted file mode 100644 index 831dbee7a5c3..000000000000 --- a/Documentation/devicetree/bindings/iio/pressure/hp03.txt +++ /dev/null @@ -1,17 +0,0 @@ -HopeRF HP03 digital pressure/temperature sensors - -Required properties: -- compatible: must be "hoperf,hp03" -- xclr-gpio: must be device tree identifier of the XCLR pin. - The XCLR pin is a reset of the ADC in the chip, - it must be pulled HI before the conversion and - readout of the value from the ADC registers and - pulled LO afterward. - -Example: - -hp03@77 { - compatible = "hoperf,hp03"; - reg = <0x77>; - xclr-gpio = <&portc 0 0x0>; -};