From patchwork Sat Oct 31 13:40:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320076 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268440ilc; Sat, 31 Oct 2020 06:44:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLXfkoFWprsn/DHicaL3aM/xac7r9g+TVyE7KebUjhq8rJA1OivV87iSXc+H8SAFzRNKwg X-Received: by 2002:a50:ee95:: with SMTP id f21mr7599002edr.270.1604151846110; Sat, 31 Oct 2020 06:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151846; cv=none; d=google.com; s=arc-20160816; b=R8LHhM+Y2HLkzTJU5qxW01b7RLhaVhZEF1ZOxVCDZn+UkFb/IOxzH1YE81NcDzBGxP WVMxskjsaGjqPyW62cq1uUEJ2hx3iudyD4gdqu6QLLut05rDy6aDNJuKJQu/wA1P7r15 UUu3IVnPFabeFaKGTj9bIOVTFb4MDa2Q4sEiDR+Gt7nPnMRe0Qk9PXNS4D8WgXvBj5h4 g4v0tVFWVI3/7KM3A7vWD6mVqQz+kXC0NcLYZZbdcA/YaLJNp23uV0ZaYAC76BKQyvzJ 17zjtutS30z3v0FZbD+6BC3QfiRo9YGZlgCEiF+2M9rP2OY0Ty1xv3pK9hZ77+hmiJHf /3DQ== 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=ON4SYCqkZ9QXR8s4+GpHBDy9U4NONB4MSMdRH8UnRnI=; b=UVX2gdON/mlrmLohPGCSvu8lPx+KdxSxt1wCMzYoW3KsubpuO32kvqAL1UHGsWs2se PojmecxE0HS9vggGZTA4CViJg2qHw+e8F4DzT475eWBJXx2wsoQH4e2ikb7FMkxk5FG5 SfWxD4Owu8qq2630opHdzGrTroNpRGJ6YXeinyXzPnZJvRRZ6wnTV87sJ7cOtnfXdGEU x0jVsIEtSKx+ym32mNYHGAJ5AEnje3kzFAznaeXaxZXRRksgCFpzTgFWZjYhIHcl/csI eLg2Da6kggA6Q6O9IwNsBgkzFE4BaiT5NxVQ9x5GbnpeXPhYArbpTTkVC2SLsJHv4CQg BXrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dk16aIsF; 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.05; Sat, 31 Oct 2020 06:44:06 -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=dk16aIsF; 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 S1727701AbgJaNoF (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:43158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoE (ORCPT ); Sat, 31 Oct 2020 09:44:04 -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 B365820791; Sat, 31 Oct 2020 13:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151843; bh=ise7qoDYets/OyDtAWyWcXuIS/5Vl3f6IE759KxT3K8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dk16aIsFZ956DbKzTTYPSlmsjsmG1ReS7xdTT5cTLQluIjNR9te0OuhgAq8VWMO0c YJBrV5ZNiNupfNJ9fm8sXuFDn5MHfvq/Tlwi1GfFnkecbC+NIbp9FkLGXWTYncCfi7 KfaJkfjGMUOPKy5ueaNAvWSr4D7jUkH1Ugjb3JLQ= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Ricardo Ribalda Delgado Subject: [PATCH v2 15/29] dt-bindings:iio:dac:ti,dac7612 yaml conversion Date: Sat, 31 Oct 2020 13:40:56 +0000 Message-Id: <20201031134110.724233-16-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 Simple conversion from txt to yaml. No significant adjustments. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-by: Ricardo Ribalda Delgado --- .../bindings/iio/dac/ti,dac7612.txt | 28 ---------- .../bindings/iio/dac/ti,dac7612.yaml | 53 +++++++++++++++++++ 2 files changed, 53 insertions(+), 28 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt deleted file mode 100644 index 17af395b99d9..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt +++ /dev/null @@ -1,28 +0,0 @@ -* Texas Instruments Dual, 12-Bit Serial Input Digital-to-Analog Converter - -The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with guaranteed -12-bit monotonicity performance over the industrial temperature range. -Is is programmable through an SPI interface. - -The internal DACs are loaded when the LOADDACS pin is pulled down. - -https://www.ti.com/lit/ds/sbas106/sbas106.pdf - -Required Properties: -- compatible: Should be one of: - "ti,dac7612" - "ti,dac7612u" - "ti,dac7612ub" -- reg: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt - -Optional Properties: -- ti,loaddacs-gpios: GPIO descriptor for the LOADDACS pin. -- spi-*: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt - -Example: - - dac@1 { - compatible = "ti,dac7612"; - reg = <0x1>; - ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>; - }; diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml new file mode 100644 index 000000000000..d172b142f6ed --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/ti,dac7612.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DAC7612 family of DACs + +description: + The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with + guaranteed 12-bit monotonicity performance over the industrial temperature + range. Is is programmable through an SPI interface. + +maintainers: + - Ricardo Ribalda Delgado + +properties: + compatible: + enum: + - ti,dac7612 + - ti,dac7612u + - ti,dac7612ub + + reg: + maxItems: 1 + + ti,loaddacs-gpios: + description: + DACs are loaded when the pin connected to this GPIO is pulled low. + maxItems: 1 + + spi-max-frequency: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@1 { + compatible = "ti,dac7612"; + reg = <0x1>; + ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>; + }; + }; +...