Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp24148ybl; Thu, 5 Dec 2019 14:28:09 -0800 (PST) X-Google-Smtp-Source: APXvYqz2Nbf6w8I6p1YqOg3ZFRfnH1AJGWgkWEurma2zSD4wnwss4jYQbEi9n89rNL6zN/sCn4mZ X-Received: by 2002:aca:2112:: with SMTP id 18mr3624083oiz.155.1575584888875; Thu, 05 Dec 2019 14:28:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575584888; cv=none; d=google.com; s=arc-20160816; b=vH6cT0YQvxsICASGBusw8EYEGz00cOjVaHP1dg2xs+D1sJg9ArcVhEGdZLgBYSJ/kO gICKgZkxAPQm6fQ33www2J8HauB+oIjd6/MwUMISdnP78ayxHPtzpWW/4sVNIB8NznbY eo0JcYcRi2yCdCGZubHGbEV4RgaZqWHshLpVcJFgO8/Ij96U/FhogNBnkOiy8XMH6tvf WTYUX8Vfl4mqeKTUsyJkT4Q1+Cz9kqIXySm/6g6ZomOQ9sO6zjLaDpnaxDAXg+FXXSz6 QS8mrAPsU+m2PkKx/xbWUqlF2pGu7FKf/7e1LUTg92/pkMkJAGW7MteoUwZXbFjMoXPd 0UHQ== 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=651QbfFxHbn+gIg6TglJPaA7sVi2egQeAs/aiyii6jY=; b=csw8fyVls1NOdZXKtOZVPXEejc17HJ4Hy7u7AoXJq3wFFHdzSxHLC6HK1AkYrbKPH2 hq8pPOW0RM/x+Y7aCxLJ0R/Or/MyUHeESXBgnAT9fwKdbJCoroqPN10zxvUwAECb3aEf s4aDGuf6JUp7TXjh+UuWzncc81SGK7bpdBDJubdV0zEEfj1iYZlDjxTaQrXk7oWlJ4n7 IGALmHbGBjJj2J+ExqOkI9CtKzMxTNn1NlQu+Lk0PgHzn9Ln+8Q1Qj+XcT84iYSUs52u +ZDFNQG38CH8vs38kA3vl/PbS8jiuhyKFlqTFE8bf4Ah9aZT9XOvXUS+hLGnfibazyJk AYJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si7471038otk.73.2019.12.05.14.27.55; Thu, 05 Dec 2019 14:28:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729739AbfLEW12 (ORCPT + 99 others); Thu, 5 Dec 2019 17:27:28 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:41126 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729187AbfLEW11 (ORCPT ); Thu, 5 Dec 2019 17:27:27 -0500 Received: by mail-ot1-f66.google.com with SMTP id r27so4073284otc.8; Thu, 05 Dec 2019 14:27:27 -0800 (PST) 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=651QbfFxHbn+gIg6TglJPaA7sVi2egQeAs/aiyii6jY=; b=syRlrXzudyJkSG4wXS1Nmz0qb679dLeZHPbzCfWHBIj76SIBorwJLjxTS08pXRuBws nXoAUWHjKy4C2qxW16fWPRnr/3I3ftg1QE0xnuAPOn9Y5GaAmXl0lN37d6eKpLdM9lLp JUvwZuO3VItaZNAZ2r5TlgEg66VAr4gDZKpM5OaadqxqzU5njN8NJ4fjl9eHwxLD7uMY LIuHHffxK0bfem7bgJKxPUo9FjvMRtm/f6cTDuwIvqenFT/ZNEvM/BVwBVWqBke/y13i xXrHn11DP2KZROWwMb33OWr67oYOca72IZNix+UoEcPyj+KlG4I+KnlKMOCea0xZLYe5 a2XA== X-Gm-Message-State: APjAAAVw/m3eGhUlcdjKJKSV0c1VZMZ2ZPKWDndQMIeXQgCjDxy3vWh4 D/r8GjAH7j16iRReao0z0g== X-Received: by 2002:a05:6830:16c6:: with SMTP id l6mr8879987otr.186.1575584846734; Thu, 05 Dec 2019 14:27:26 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id w203sm2009701oia.12.2019.12.05.14.27.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 14:27:25 -0800 (PST) Date: Thu, 5 Dec 2019 16:27:25 -0600 From: Rob Herring To: Olivier Moysan Cc: jic23@kernel.org, mark.rutland@arm.com, mcoquelin.stm32@gmail.com, lars@metafoo.de, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, pmeerw@pmeerw.net, knaack.h@gmx.de, fabrice.gasnier@st.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] dt-bindings: iio: adc: convert sd modulator to json-schema Message-ID: <20191205222725.GA7547@bogus> References: <20191127171642.6014-1-olivier.moysan@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191127171642.6014-1-olivier.moysan@st.com> 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 Wed, Nov 27, 2019 at 06:16:42PM +0100, Olivier Moysan wrote: > Convert the sigma delta modulator bindings > to DT schema format using json-schema. > > Signed-off-by: Olivier Moysan > --- > .../iio/adc/sigma-delta-modulator.txt | 13 ------- > .../iio/adc/sigma-delta-modulator.yaml | 35 +++++++++++++++++++ > 2 files changed, 35 insertions(+), 13 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/iio/adc/sigma-delta-modulator.txt > create mode 100644 Documentation/devicetree/bindings/iio/adc/sigma-delta-modulator.yaml > > diff --git a/Documentation/devicetree/bindings/iio/adc/sigma-delta-modulator.txt b/Documentation/devicetree/bindings/iio/adc/sigma-delta-modulator.txt > deleted file mode 100644 > index 59b92cd32552..000000000000 > --- a/Documentation/devicetree/bindings/iio/adc/sigma-delta-modulator.txt > +++ /dev/null > @@ -1,13 +0,0 @@ > -Device-Tree bindings for sigma delta modulator > - > -Required properties: > -- compatible: should be "ads1201", "sd-modulator". "sd-modulator" can be use > - as a generic SD modulator if modulator not specified in compatible list. > -- #io-channel-cells = <0>: See the IIO bindings section "IIO consumers". > - > -Example node: > - > - ads1202: adc { > - compatible = "sd-modulator"; > - #io-channel-cells = <0>; > - }; > diff --git a/Documentation/devicetree/bindings/iio/adc/sigma-delta-modulator.yaml b/Documentation/devicetree/bindings/iio/adc/sigma-delta-modulator.yaml > new file mode 100644 > index 000000000000..8967c6f06d9d > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/sigma-delta-modulator.yaml > @@ -0,0 +1,35 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/sigma-delta-modulator.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Device-Tree bindings for sigma delta modulator > + > +maintainers: > + - Arnaud Pouliquen > + > +properties: > + compatible: > + description: | > + "sd-modulator" can be used as a generic SD modulator, > + if the modulator is not specified in the compatible list. > + enum: > + - sd-modulator > + - ads1201 > + > + '#io-channel-cells': > + const: 0 > + > +required: > + - compatible > + - '#io-channel-cells' Add: additionalProperties: false > + > +examples: > + - | > + ads1202: adc@0 { No reg, so drop the unit-address. > + compatible = "sd-modulator"; > + #io-channel-cells = <0>; > + }; > + > +... > -- > 2.17.1 >