From patchwork Sat Oct 31 13:40:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320074 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268409ilc; Sat, 31 Oct 2020 06:44:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPoUor+PiK3D3RulfTJX1SLfFGRZ3Sbl02BlqM6AuqlESLKiPHDbddJW35GNX4qOr/knIo X-Received: by 2002:a17:906:280a:: with SMTP id r10mr7148423ejc.58.1604151843209; Sat, 31 Oct 2020 06:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151843; cv=none; d=google.com; s=arc-20160816; b=meoFAvisf30ZBx4w5gRLk2bY6llg+wEZC9MjzmAMvgx1MNaY+ZocHO7ATArjFBnDVC nNNSsR6PKlrP/lZmuwO1RqQMjhNidBh9vgm2X2stAx1vbvpGSF+bpJbWXASHdvijc8Wu nIm3zxrOYfmWvzA7ex1sOYVqEi+eMCFRNQQ5N6/InCSfArdTt8S7a8xiblJAdw/xN8bR m59AtYkkJdxwV7VteCyd4hvvA6NeqfXhodDaUDhdOPLkU8ron9qmdse/4caujM5Fp+D1 fuSAETzL3LEvR+kMAA3jSX1y2IzT5Ks//DFQb3LkF9Wjs6GZnROJU9V5hA9fmrnLwXz4 qRMw== 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=gyNBf1knryPM1JSy6kdQzT03LppEvP28KAoyj76N+5U=; b=XpBqHhd42irIFDs+ikggkMn2Cvib9HktnpuIZFHGn87gRkKhEQM+Ny0kWrxcnNGJ8/ Cddf5FYv0aKxK1aENhFsGUbp2LpH5udkst+R8NTcdgkSimpPCOEPij9QpfMrN+eAR5hU ciVkbnh5qysefvbbCY2DJPkAzjJjzp8jdv17ACQs4psOlDhn4ImQ9GHUYRbd/f0YAD/Z /5QA0YQPRsNSbUbifG2aRSDThBOsQ87kP9O25RxBpn5+vVcUD5L7MtWS6YBj4H2Q/J6+ OpzoF1TtJrTxojceZMIW+xjySBrd4Vp9EPkAeuk0Xbq+coJJFVxFGf7YiSue2kiZo/zQ c/3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pontkMC5; 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.44.03; Sat, 31 Oct 2020 06:44:03 -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=pontkMC5; 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 S1727669AbgJaNoC (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:43090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoB (ORCPT ); Sat, 31 Oct 2020 09:44:01 -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 AE94320723; Sat, 31 Oct 2020 13:43:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151840; bh=h8jmvAkXUDEug6/omVnWMW1SRAWXoJkdcbmOBiyC3t0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pontkMC5xkA12CqxwNA0iG5G7tGIlB+pt3mi5bCTZXok44WYOt1s/1ac0UjATz/Jk VT/HixMsFu32CuqIDeXLSKlNSJCn1w5TMsg4lXZcMoz7mc+q+TPwCEintoqIIRudIC MgEI/GHUxjilfMBHM87hblEBsYE4+p1kXCEl471g= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Charles-Antoine Couret Subject: [PATCH v2 13/29] dt-bindings:iio:dac:ti,dac7311 yaml conversion Date: Sat, 31 Oct 2020 13:40:54 +0000 Message-Id: <20201031134110.724233-14-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 Very simple conversion of this binding from txt to yaml. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Charles-Antoine Couret --- .../bindings/iio/dac/ti,dac7311.txt | 23 --------- .../bindings/iio/dac/ti,dac7311.yaml | 49 +++++++++++++++++++ 2 files changed, 49 insertions(+), 23 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt deleted file mode 100644 index e5a507db5e01..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt +++ /dev/null @@ -1,23 +0,0 @@ -TI DAC7311 device tree bindings - -Required properties: -- compatible: must be set to: - * "ti,dac7311" - * "ti,dac6311" - * "ti,dac5311" -- reg: spi chip select number for the device -- vref-supply: The regulator supply for ADC reference voltage - -Optional properties: -- spi-max-frequency: Max SPI frequency to use - -Example: - - spi_master { - dac@0 { - compatible = "ti,dac7311"; - reg = <0>; /* CS0 */ - spi-max-frequency = <1000000>; - vref-supply = <&vdd_supply>; - }; - }; diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7311.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.yaml new file mode 100644 index 000000000000..10be98d1f19c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/ti,dac7311.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DAC5311 and similar SPI DACs + +maintainers: + - Charles-Antoine Couret + +properties: + compatible: + enum: + - ti,dac7311 + - ti,dac6311 + - ti,dac5311 + + reg: + maxItems: 1 + + vref-supply: + description: + Reference voltage must be supplied to establish the scaling of the + output voltage. + + spi-max-frequency: true + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "ti,dac7311"; + reg = <0>; /* CS0 */ + spi-max-frequency = <1000000>; + vref-supply = <&vdd_supply>; + }; + }; +...