From patchwork Sat Oct 31 18:48:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320157 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2451802ilc; Sat, 31 Oct 2020 11:52:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv7MVQ/AFveuWPNcNznMQDyBYzzNOpJ/smqJUAD4tYui8/0sPSsA4aB1C0suiYVQAR3jm5 X-Received: by 2002:a17:906:f752:: with SMTP id jp18mr6629336ejb.331.1604170345801; Sat, 31 Oct 2020 11:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604170345; cv=none; d=google.com; s=arc-20160816; b=Jhu6lc9yZSbE4m3DGESzMdYDUwDI19YezMJb8GJoigkylZmSBCa/xpfYqF+9FSDSjs aBj1vtW4qg6ZRMBDAkxnQTL8Vh+QzJIFPOWF4udGoNvQaNsExpXPmeVwLQBYiVUx+aYB Nd8VWO25TgOZNoV7HDXsvqEymiPmIxQEbixRn1wxigM0VGAVTJa83wtgRFsB1fGEFGeN VjfmFRBLeHtt4gdP4TSwWwBpDEqzNZHdkhPeFvGdP4bFNOIl+9dmR0miaLJM61Xh/JsD bQ7RYcvqa6Yj+7wY5Kcwu1B1A7JEMHLBAiTk7BdZmylBXBtB0yQes61/2cA/i4L5Mm69 vv5w== 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=odRCQMgeu904JdN/dw8lxiKd7Cs+fPRcu0ZxFGP1Ke8=; b=jh1q90vzhl97fTQ4/C/0ps9HqgGzWEFufJkEBjAJblTp9aT/s7pZ+7owts4DhX9hW6 u3mKKXjebT79Vwb2AuTBXeg6XPyXKOm/ZuHgPOrwv/fyh8+Nj+LzrXacICm+AFJMwnDg oNortdLihCh+trFBO2piiTCLQJoAdpOcbv7/2vm91+XDBj0QEIruHLCBPtQatjhwE6Mh sNp2hSs/F1ZvUFKzgiKu1o/hUaV45LkmhgvtK5yxhFZ1ZeC42NVfYRGBBYsbicLGBNxP cteE3Tu3cAivczzRrViS/gqaJlCh/OGSmgcA8vaQ+Ynq0zFNf531wNtGz4g/73DS9tVN a/4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PPA1W63L; 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 a6si6987899ejp.422.2020.10.31.11.52.25; Sat, 31 Oct 2020 11:52:25 -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=PPA1W63L; 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 S1728490AbgJaSwX (ORCPT + 6 others); Sat, 31 Oct 2020 14:52:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:35878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728487AbgJaSwW (ORCPT ); Sat, 31 Oct 2020 14:52:22 -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 BEDF020720; Sat, 31 Oct 2020 18:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170341; bh=iHy3qiKeE26nqQxdj2SbGtb4ptFCdtFFFG/BnMSMSc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PPA1W63LH8K1ePeMW9h9fQ30TK7lJtTQgLNOnCDbNYnHvgSc35rYRPq0Q6roTu4Gd DunoxfdnLz8h04sv6Rdt2xliPlOVMeoM7999cfXxtx8kAj8T+dHzWTINxMGJ5zxRJ0 hG7+TCyDxBldEifPufVzj/XHW4mNTj2pf4tjbwe0= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Dan Murphy Subject: [PATCH 37/46] dt-binding:iio:adc:ti, ads124s08: txt to yaml format conversion. Date: Sat, 31 Oct 2020 18:48:45 +0000 Message-Id: <20201031184854.745828-38-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031184854.745828-1-jic23@kernel.org> References: <20201031184854.745828-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple binding so straight forward format conversion. Signed-off-by: Jonathan Cameron Cc: Dan Murphy --- .../bindings/iio/adc/ti,ads124s08.yaml | 52 +++++++++++++++++++ .../bindings/iio/adc/ti-ads124s08.txt | 25 --------- 2 files changed, 52 insertions(+), 25 deletions(-) -- 2.28.0 Reviewed-by: Dan Murphy diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads124s08.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads124s08.yaml new file mode 100644 index 000000000000..5912a52953fa --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads124s08.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,ads124s08.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments' ads124s08 and ads124s06 ADC chip + +maintainers: + - Dan Murphy + +properties: + compatible: + enum: + - ti,ads124s06 + - ti,ads124s08 + + reg: + maxItems: 1 + + spi-max-frequency: true + + spi-cpha: true + + reset-gpios: + maxItems: 1 + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,ads124s08"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpha; + reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-ads124s08.txt b/Documentation/devicetree/bindings/iio/adc/ti-ads124s08.txt deleted file mode 100644 index ecf807bb32f7..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-ads124s08.txt +++ /dev/null @@ -1,25 +0,0 @@ -* Texas Instruments' ads124s08 and ads124s06 ADC chip - -Required properties: - - compatible : - "ti,ads124s08" - "ti,ads124s06" - - reg : spi chip select number for the device - -Recommended properties: - - spi-max-frequency : Definition as per - Documentation/devicetree/bindings/spi/spi-bus.txt - - spi-cpha : Definition as per - Documentation/devicetree/bindings/spi/spi-bus.txt - -Optional properties: - - reset-gpios : GPIO pin used to reset the device. - -Example: -adc@0 { - compatible = "ti,ads124s08"; - reg = <0>; - spi-max-frequency = <1000000>; - spi-cpha; - reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; -};