Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4015729pxa; Sun, 9 Aug 2020 20:39:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8FpDdmjaA0VmzJU49vYo4tODIrP4nnd6/+wh0KD3ELvwFM/J5Xdx+gH31xE0ytSt0SwYc X-Received: by 2002:aa7:c604:: with SMTP id h4mr16870735edq.336.1597030746971; Sun, 09 Aug 2020 20:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597030746; cv=none; d=google.com; s=arc-20160816; b=CGtBh8EdxlJzPx8+nVt38XR1lvUqCHqEICN8xppeFBc2ildLbf44NI03JwrLzc7B5y Sk9+Vh0IiVqJc/RojW2C3nTWnf3XXkrYPjC1PUsSiQOCfiAJ9lKEVCX4qJoaqb+XMre/ GE+20Q9xwqPgX4so1tl8edo4aqVrIK//eQ+IX554TCMtToJW0j4dMe/XsB+R+LSVUces QTgHhTfudBlE3+4COiMWKWRjfsa2dyEHH4TI0qQH+B4QkoN5j+yM7k8YCtt1te9CHxp9 eSdo9JyzvSpbvtQutQRUQqqaLCQ/P0oe6rNm9TRbG4nTamEd2HwpFT5YKNpTgA4Fvt94 Xw+g== 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 :message-id:date:subject:cc:to:from; bh=9wBb7BPQd/0Qa07nl6xRfdcMM5yrfT8PIVmP49PEbpY=; b=kYPKUydzTqDP3VPehhIO0tREnm1Wa1P2sL/iCZUOcxBA1pUd+WnKK1PihRErNXKacD tLQQLHbMPpVcp79KcFSGx7TZhNdDVhoJlb82kzH2cJ7gCKfiYB5bg+i8pR7L4ivoKOsZ sC9K3zNE8ZSTIcZjN8/uk5YJfS+PKymZ3mPH7NzcZe/gId0OjdP/egVU5k6fNjKzdCP2 Ae+DVbZiLO/TZg0OuIf59O/UcBcemw6Clt62VILvCkNkysZIxpSbibENLWWI41t/r/Lu MR565US6oqJnacIuhNiDBMSUaacHyj8fiICSEbPMlnTlh9cl/agYkXNhwZe5f5pZBMJn xjcQ== 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 91si12256582edy.18.2020.08.09.20.38.41; Sun, 09 Aug 2020 20:39:06 -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 S1726415AbgHJDiN (ORCPT + 99 others); Sun, 9 Aug 2020 23:38:13 -0400 Received: from server-x.ipv4.hkg02.ds.network ([27.111.83.178]:45644 "EHLO mail.gtsys.com.hk" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1726335AbgHJDiN (ORCPT ); Sun, 9 Aug 2020 23:38:13 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.gtsys.com.hk (Postfix) with ESMTP id 129E7201456A; Mon, 10 Aug 2020 11:38:11 +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 fJPFDeA36cwq; Mon, 10 Aug 2020 11:38:10 +0800 (HKT) Received: from s01.gtsys.com.hk (unknown [10.128.4.2]) by mail.gtsys.com.hk (Postfix) with ESMTP id E03E720156E6; Mon, 10 Aug 2020 11:38:10 +0800 (HKT) Received: from armhf2.gtsys.com.hk (unknown [10.128.4.15]) by s01.gtsys.com.hk (Postfix) with ESMTP id D1B5AC019F4; Mon, 10 Aug 2020 11:38:10 +0800 (HKT) Received: by armhf2.gtsys.com.hk (Postfix, from userid 1000) id 92CBA20046C; Mon, 10 Aug 2020 11:38:10 +0800 (HKT) From: Chris Ruehl To: Chris Ruehl Cc: devicetree@vger.kernel.org, Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Michael Hennerich , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio/dac: convert ltc2632.txt to lltc,ltc2632.yaml Date: Mon, 10 Aug 2020 11:37:52 +0800 Message-Id: <20200810033806.15503-1-chris.ruehl@gtsys.com.hk> X-Mailer: git-send-email 2.20.1 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 to 'lltc,ltc2632.yaml'. Signed-off-by: Chris Ruehl --- v6: Remove tab and drop unused label Related patches already in linux-next. [PATCH v5 1/3] iio: documentation ltc2632_chip_info add num_channels linux-next commit: 6f1c9e0da9aae51177457731357ae8a2c8af27cd PATCH v5 2/3] iio: DAC extension for ltc2634-12/10/8 linux-next commit: aefa5bc87c808dd08db2fc79ebdbf19ed4af7be2 .../bindings/iio/dac/lltc,ltc2632.yaml | 77 +++++++++++++++++++ .../devicetree/bindings/iio/dac/ltc2632.txt | 49 ------------ 2 files changed, 77 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..edf804d0aca2 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/lltc,ltc2632.yaml @@ -0,0 +1,77 @@ +# 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 { + #address-cells = <1>; + #size-cells = <0>; + + dac@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