Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1960604ybz; Thu, 30 Apr 2020 08:26:24 -0700 (PDT) X-Google-Smtp-Source: APiQypK/6BskITNI7zB+dXGGclMbYf3WLFqTQ5z8h8EKi3GWq3GrZ/X2MHeEaIKBy1j1AKdn1gfa X-Received: by 2002:a17:906:adb:: with SMTP id z27mr3204475ejf.263.1588260384033; Thu, 30 Apr 2020 08:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588260384; cv=none; d=google.com; s=arc-20160816; b=tX5BVu9Aoq8l5hLcnyJegslW950TYPQfX00RCcYvD6kzkihABpdR5RVVkOWipgCKho Zk5Fe7qQOHztzYoGxDuzgfEVEg3DHmWizgIt/+AxYkHTdVt0At8wbNmK9SraSGV+XYiA qeylQv5o3ab/5X7MdD5kiF/CnVGvH+cA6uaOgdryNiaaM6uiCxi7r2dLlCMbMn6Ytpx9 5uoKRiBZftRQpEGbXILgOfi4Cpbp5e24eQtdCNx0nJJazLxcGcXJuDFGOBuWTEK+sZkv CSTEauQ/wu5nmaabDQAu9dQwiuWfHV2RD1NeblC276DBZVycsQpkdWgdmpv29ATWcafw J13g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=u4g24e3GzwdiYIpTDMkHlnY+SwtLlwI/g7Kc4NqV3FM=; b=SvXaIRl3uYvqEbrtCdU1IjngbGn72Pf3yXOzYoif/dLJhBj0vseqH1tnu/7p5a3DZA F/kFe0o0fkpafv6y0/K54yufwq+IEI7bvZAIBcrxkqao8nMjaqjRyqOPw1s8APSj3VUa RuECE0EQ1bOvnOcYW9U8S0K3U4CfYWnpRO09ECf+X00A23O529biobv5W/LTOI3FFppa pFm1aVhmV2cZ72odROjhKzo2LqkMQW4Vg8xAof4cl8odQuDa6KGJbF+FwnDBgcK+7cSO WmuZbTcynEcKUPEMFjWoGMh8x0aukOiYO/9MX03IUENYPMBb9oAx8AbedFJNXVpTw/c+ c7VQ== 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 qh13si6180210ejb.438.2020.04.30.08.26.00; Thu, 30 Apr 2020 08:26:24 -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 S1726736AbgD3PYS (ORCPT + 99 others); Thu, 30 Apr 2020 11:24:18 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:33199 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbgD3PYR (ORCPT ); Thu, 30 Apr 2020 11:24:17 -0400 Received: by mail-ot1-f66.google.com with SMTP id j26so5234128ots.0; Thu, 30 Apr 2020 08:24:16 -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:user-agent; bh=u4g24e3GzwdiYIpTDMkHlnY+SwtLlwI/g7Kc4NqV3FM=; b=TdHtPfPiDpFSjQ7rAknghIRiOPwnYwMDbSJxTqoatwenKBTZehrcoYJLi7fEMPKydJ 74h3rE+EVVIcCXwhYVtxJ/nGMlBSHbziBG1pVbzsLv+hZM7dGVN24mdDhA3IOdB06p8x Th27exzb+fTIiwdNyavEMWXwY/WcOyydF1ovQuzmJ2i/L1U4kgXOpx9Qu4uhle8TCNW5 yXBPvXGzuBsJ4PmYIwPBYgIuMdcNMNwTKU+93CyfrR3DXmZjD9a+cHj57xACQ0zzda7j mRy9nCbTCujJPOi6PnIbtQpPqi6Z9cEf/6Bjz+VonPHDu+5XTMGbcWHa+2QBMB7Lb06p bnGg== X-Gm-Message-State: AGi0PuY4CVKlXrc2vz1e5myFhhRTlpesK3PzbvSVD1NW7saCwbf3WKvg vpoKWIOJGN2IgIY6Zr0nGw== X-Received: by 2002:a9d:7b55:: with SMTP id f21mr2114497oto.31.1588260256120; Thu, 30 Apr 2020 08:24:16 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id t20sm49738ott.51.2020.04.30.08.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 08:24:15 -0700 (PDT) Received: (nullmailer pid 30190 invoked by uid 1000); Thu, 30 Apr 2020 15:24:14 -0000 Date: Thu, 30 Apr 2020 10:24:14 -0500 From: Rob Herring To: Chris Ruehl Cc: devicetree@vger.kernel.org, Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Alexios Zavras , Steve Winslow , Thomas Gleixner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/3] iio/dac: convert ltc2632.txt to lltc,ltc2632.yaml Message-ID: <20200430152414.GA19887@bogus> References: <20200420042612.27752-1-chris.ruehl@gtsys.com.hk> <20200420042612.27752-4-chris.ruehl@gtsys.com.hk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200420042612.27752-4-chris.ruehl@gtsys.com.hk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 20, 2020 at 12:26:08PM +0800, Chris Ruehl wrote: > 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 There's a tab here which the yaml parser isn't going to like. Not sure why my checker didn't run on this, but make sure 'make dt_binding_check' passes. > + 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 { spi { > + #address-cells = <1>; > + #size-cells = <0>; > + > + dac: ltc2632@0 { dac@0 And drop the unused label. > + 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 >