Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2473905pxa; Mon, 24 Aug 2020 15:31:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVsqdaRux28oG2UXImEjtsa495TuI307vjaYJdLl3uwic/8sBu0mUCTh+NRB2Tkl9E0kF6 X-Received: by 2002:a50:d80b:: with SMTP id o11mr7428444edj.148.1598308303381; Mon, 24 Aug 2020 15:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598308303; cv=none; d=google.com; s=arc-20160816; b=nk5Lf/eSPv6HcX9ekWS66fAC2+RoyBp8l51w8dxnZfvlVr56ehMCe35kaiZ0ZAns6u Y4m+PBjIhZeFKAXOhE/wgEr4SryJR99MMPTWzVP3lWQ1DU7c3i9m2HDz/e/8knMg+5/D lRheRCgqZESYUZ97JS2HfWHOEfCfv9WH4KYn8bFq0bVzLdvvGnLYEkTtHVwj3ee/r05X w8W2lOpjhPE1Dsuod9XiiFC2LvAeurTadRg2WO+mr/oBmfUTOJVmQG/EJUN0yT62Am3U OwiQ0MjgLTfEjoeZk+uIDK3LqrZhyOmW8H24siH5t8MqMjcVGgyhEdkFHTS71chJZuS5 +9Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mMtzY08cZ8u+FHK8W3N8sHuEUgQPT0fIhJ9j+SFDNCA=; b=XrVFycpnJG9eRtRpKebxftRyHEul03cuVYSC0qtQX5I4Nd32/8JAfgUbVnt9tMXxw9 UimZQYdHpPIZwtFOMR94hwymHqHojVpRek9qN+auBzqfOvTb4dgYH9hu01CxbkVpkeS+ 4pfsm13bg+Yc4kScSVCVNTOE6yXWasqxDbJ0R28awlqpoS/DT3v5HxgwVV8unFLNe+vt TLmZp3QYCyeg1aB/QOEG2ljFNrwesaWdJwmYs1fWgnH71F0oPF1Rmc3tWWak9rWYyTxU bTvS38XdKdizWptQIEDI7t5nPPppldWcf75nDsE4/qYADw8fMlc3RcDvKyE4u23Lj1AU 3aGA== 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; 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 r7si6951432edb.20.2020.08.24.15.31.20; Mon, 24 Aug 2020 15:31:43 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728008AbgHXW2Y (ORCPT + 99 others); Mon, 24 Aug 2020 18:28:24 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:42727 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726531AbgHXW2W (ORCPT ); Mon, 24 Aug 2020 18:28:22 -0400 Received: by mail-il1-f193.google.com with SMTP id t13so8718159ile.9; Mon, 24 Aug 2020 15:28:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=mMtzY08cZ8u+FHK8W3N8sHuEUgQPT0fIhJ9j+SFDNCA=; b=H83NCtLdjkthrpA3Yq9K5YWHnx3wGyNUqlyMA2HoRrqRcDudBDANUrUcDlIvS2ZVm6 YDp8Qao2isk6W2+RZAFXkL0eY80otff9piju1YkfABB/P/gQoAbU1OvNsEq9GOyz2HTV lec5L5MXL0EhANQh2AsZ+8mgmeGhR2SU54gI5QfuuNl9WxmLjCnBgb3+DvdYVi/lUsBK j6y84UzlT2xs5aZonfb3ezRql6kMqXA8k9m3g0mXVDX03XKJ94fj3ZPgihkildvcUWJp WPcNBYQxVYddbEjQCGdIBgC6edjpEWuRE9GAYgNulcW/YZlZaBhNIktCWalpFoeugu4S Urbg== X-Gm-Message-State: AOAM531fH8RiDHh1CwtE3KrIUzttWn1bN43cHTOiirY9r4pw5OfTI3ah DnhuSoNI86dFkUkwr1JZnH0yAESl4w== X-Received: by 2002:a92:c74e:: with SMTP id y14mr6915239ilp.251.1598308100532; Mon, 24 Aug 2020 15:28:20 -0700 (PDT) Received: from xps15 ([64.188.179.249]) by smtp.gmail.com with ESMTPSA id f128sm7938824ilh.71.2020.08.24.15.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 15:28:19 -0700 (PDT) Received: (nullmailer pid 3433283 invoked by uid 1000); Mon, 24 Aug 2020 22:28:15 -0000 Date: Mon, 24 Aug 2020 16:28:15 -0600 From: Rob Herring To: Jonathan Cameron Cc: Chris Ruehl , devicetree@vger.kernel.org, Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Michael Hennerich , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio/dac: convert ltc2632.txt to lltc,ltc2632.yaml Message-ID: <20200824222815.GA3430564@bogus> References: <20200810033806.15503-1-chris.ruehl@gtsys.com.hk> <20200816102733.7fa1d3ce@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200816102733.7fa1d3ce@archlinux> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 16, 2020 at 10:27:33AM +0100, Jonathan Cameron wrote: > On Mon, 10 Aug 2020 11:37:52 +0800 > Chris Ruehl wrote: > > Hi Chris, > > This will need a dt-binding maintainer review, but in the meantime... > > Look at the title for dt-bindings patches and match that format. > > One question for Rob inline. A quick grep suggests we are > very inconsistent on whether we use the multiline block > thing for description fields or not. > > Is it needed? > > > 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: > Does this need a | ? No. Only needed if you want to preserve line breaks and other formatting. > > + 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 */ > > - }; > > - }; >