Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3232700ybz; Sun, 19 Apr 2020 21:31:37 -0700 (PDT) X-Google-Smtp-Source: APiQypISnFZu5wOvPWhqfCVSTlK/9Du3eZ/2HWxaGfa5y0appXTiKqfRrA1f+bnE8Oal9LOP05aW X-Received: by 2002:a50:f699:: with SMTP id d25mr12499923edn.244.1587357097514; Sun, 19 Apr 2020 21:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587357097; cv=none; d=google.com; s=arc-20160816; b=P3ec1U49pdl72R5h6c6UBzEpb/qJEsDaHiCWDIApdrQ5HrIKM4eMUCxJ8KSHjtjhKx XixchQEcBuRWk45OLzF0TK73m188DbAB317YffTKWYsYZK2/76XRzvjOyDKBSE5AKku8 YwK3lEky9s8wcN2QD5BaVeejfKLfAykAleq9lEQm0yN/F2ZN9ljF8/8z59KxXE9KreFk ANM9HZcry62jtrgVkhfeHiUcjAqTbGmuhBIQZ57vgDZygSrJ+dsVsBe7G5g03NOi26HM C2wXJpUz0SMUuwKxm078tHps1Xt7D/QH/3KcDU7SnmNO8hztaC/BR4yp4iqS4J5dvHom ZmXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jntRLqaAHFTfQ+SkKYg4Eg24RF3QXCO8xldDUHtJwKc=; b=TFfCAdkHlgoCzDhnNwAXkWPWXZZuPpyrwkeHXw+j/MkXeqiPU4qiEa6q5B1z0eono0 wG4iOpiQ+3l4p0iHXnW/10qxHyVVARL+oB98VSb5n8IbEFXs4C3ri3e1zWmPREPHMmLC /pEZxLvijzoIoo8ky431zIixE29M4SqDa0QOLOiEO12z9cSXPur1r7mLpQJII2lnLVZE i6brrU8+gXXCasg26/09CnW6GG+tBhdIfx/udtIJkAmJmdQQFpc5zNYQI0cyNVX2Mxp3 8wNrhUVbP1Hq3jTqwbdij7Ip1VopFOusK6Qro3LQ6nzhadYzmZ6QXFUdouil6OEcUnq+ 5xpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si19659955ejt.479.2020.04.19.21.31.14; Sun, 19 Apr 2020 21:31:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726321AbgDTE1X (ORCPT + 99 others); Mon, 20 Apr 2020 00:27:23 -0400 Received: from server-x.ipv4.hkg02.ds.network ([27.111.83.178]:55108 "EHLO mail.gtsys.com.hk" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1725815AbgDTE1X (ORCPT ); Mon, 20 Apr 2020 00:27:23 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.gtsys.com.hk (Postfix) with ESMTP id A29FE2027885; Mon, 20 Apr 2020 12:27:20 +0800 (HKT) X-Virus-Scanned: Debian amavisd-new at gtsys.com.hk Received: from mail.gtsys.com.hk ([127.0.0.1]) by localhost (mail.gtsys.com.hk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gEj8tLI4wYQ1; Mon, 20 Apr 2020 12:27:20 +0800 (HKT) Received: from s01.gtsys.com.hk (unknown [10.128.4.2]) by mail.gtsys.com.hk (Postfix) with ESMTP id 863572027883; Mon, 20 Apr 2020 12:27:20 +0800 (HKT) Received: from armhf2.gtsys.com.hk (unknown [10.128.4.15]) by s01.gtsys.com.hk (Postfix) with ESMTP id 802C6C01F9E; Mon, 20 Apr 2020 12:27:20 +0800 (HKT) Received: by armhf2.gtsys.com.hk (Postfix, from userid 1000) id 7A4E0201602; Mon, 20 Apr 2020 12:27:20 +0800 (HKT) From: Chris Ruehl To: Chris Ruehl Cc: devicetree@vger.kernel.org, Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Alexios Zavras , Steve Winslow , Thomas Gleixner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 3/3] iio/dac: convert ltc2632.txt to lltc,ltc2632.yaml Date: Mon, 20 Apr 2020 12:26:08 +0800 Message-Id: <20200420042612.27752-4-chris.ruehl@gtsys.com.hk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200420042612.27752-1-chris.ruehl@gtsys.com.hk> References: <20200420042612.27752-1-chris.ruehl@gtsys.com.hk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Conversion of the ltc2632 to yaml format and name the file 'lltc,ltc2632.yaml'. Signed-off-by: Chris Ruehl --- v5: correct require section set maintainer of analog.com v4..v2: no change .../bindings/iio/dac/lltc,ltc2632.yaml | 76 +++++++++++++++++++ .../devicetree/bindings/iio/dac/ltc2632.txt | 49 ------------ 2 files changed, 76 insertions(+), 49 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/dac/lltc,ltc2632.yaml delete mode 100644 Documentation/devicetree/bindings/iio/dac/ltc2632.txt diff --git a/Documentation/devicetree/bindings/iio/dac/lltc,ltc2632.yaml b/Documentation/devicetree/bindings/iio/dac/lltc,ltc2632.yaml new file mode 100644 index 000000000000..b0043144fbc4 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/lltc,ltc2632.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/iio/dac/lltc,ltc2632.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Linear Technology LTC263x 12-/10-/8-Bit Rail-to-Rail DAC + +maintainers: + - Michael Hennerich + +description: | + Bindings for the Linear Technology LTC2632/2634/2636 DAC + Datasheet can be found here: https://www.analog.com/media/en/technical-documentation/data-sheets/LTC263[246].pdf + +properties: + compatible: + enum: + - lltc,ltc2632-l12 + - lltc,ltc2632-l10 + - lltc,ltc2632-l8 + - lltc,ltc2632-h12 + - lltc,ltc2632-h10 + - lltc,ltc2632-h8 + - lltc,ltc2634-l12 + - lltc,ltc2634-l10 + - lltc,ltc2634-l8 + - lltc,ltc2634-h12 + - lltc,ltc2634-h10 + - lltc,ltc2634-h8 + - lltc,ltc2636-l12 + - lltc,ltc2636-l10 + - lltc,ltc2636-l8 + - lltc,ltc2636-h12 + - lltc,ltc2636-h10 + - lltc,ltc2636-h8 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 2000000 + + vref-supply: + description: + Phandle to the external reference voltage supply. This should + only be set if there is an external reference voltage connected to the VREF + pin. If the property is not set the internal reference is used. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + vref: regulator-vref { + compatible = "regulator-fixed"; + regulator-name = "vref-ltc2632"; + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <1250000>; + regulator-always-on; + }; + + spi_master { + #address-cells = <1>; + #size-cells = <0>; + + dac: ltc2632@0 { + compatible = "lltc,ltc2632"; + reg = <0>; /* CS0 */ + spi-max-frequency = <1000000>; + vref-supply = <&vref>; + }; + }; diff --git a/Documentation/devicetree/bindings/iio/dac/ltc2632.txt b/Documentation/devicetree/bindings/iio/dac/ltc2632.txt deleted file mode 100644 index 1ab9570cf219..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ltc2632.txt +++ /dev/null @@ -1,49 +0,0 @@ -Linear Technology LTC2632/2634/2636 DAC - -Required properties: - - compatible: Has to contain one of the following: - lltc,ltc2632-l12 - lltc,ltc2632-l10 - lltc,ltc2632-l8 - lltc,ltc2632-h12 - lltc,ltc2632-h10 - lltc,ltc2632-h8 - lltc,ltc2634-l12 - lltc,ltc2634-l10 - lltc,ltc2634-l8 - lltc,ltc2634-h12 - lltc,ltc2634-h10 - lltc,ltc2634-h8 - lltc,ltc2636-l12 - lltc,ltc2636-l10 - lltc,ltc2636-l8 - lltc,ltc2636-h12 - lltc,ltc2636-h10 - lltc,ltc2636-h8 - -Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt -apply. In particular, "reg" and "spi-max-frequency" properties must be given. - -Optional properties: - - vref-supply: Phandle to the external reference voltage supply. This should - only be set if there is an external reference voltage connected to the VREF - pin. If the property is not set the internal reference is used. - -Example: - - vref: regulator-vref { - compatible = "regulator-fixed"; - regulator-name = "vref-ltc2632"; - regulator-min-microvolt = <1250000>; - regulator-max-microvolt = <1250000>; - regulator-always-on; - }; - - spi_master { - dac: ltc2632@0 { - compatible = "lltc,ltc2632-l12"; - reg = <0>; /* CS0 */ - spi-max-frequency = <1000000>; - vref-supply = <&vref>; /* optional */ - }; - }; -- 2.20.1