From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F098C43215 for ; Sun, 1 Dec 2019 21:09:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D78EB21774 for ; Sun, 1 Dec 2019 21:09:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575234594; bh=KnH1X21TpcbK4yvu0f9o3XBV5xnJ8tgrWxBrMATOpqY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=xA5uCVC2Etxge4kTbLWuw11uJ59Y2maXuxoMvbSy8IVkr4LTGMq5O3/YzMnzqswoE yxTh6DhPFjtrq89sGVIeAH/e71HuxuwRKQoY1gqk7/8BALQt09vpRNnYOdnKD0xeyO pFp1ahfTcVH/Or1PFeleqFsw7Mquzz1vkfVD7ouw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727040AbfLAVJy (ORCPT ); Sun, 1 Dec 2019 16:09:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:51522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726965AbfLAVJy (ORCPT ); Sun, 1 Dec 2019 16:09:54 -0500 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 928BC20865; Sun, 1 Dec 2019 21:09:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575234592; bh=KnH1X21TpcbK4yvu0f9o3XBV5xnJ8tgrWxBrMATOpqY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=xkMKfWxmIFHT2jP3YWh5y9FyReZPVvHXMRN/F6W0K7K3ibQV8dDj4o5J96EY7KOiH wgZi8+QW3EwBzkmLtnOtMLQSi2ZfcAesaav0PBaPjbrGsn0seq2UkjRv+QYNEtxg8M dcRElyuuGVvawxSyN3ekfim/AE6/15uGEcAQZxYM= Date: Sun, 1 Dec 2019 21:09:47 +0000 From: Jonathan Cameron To: Olivier Moysan Cc: , , , , , , , , , , , Subject: Re: [PATCH] dt-bindings: iio: adc: convert sd modulator to json-schema Message-ID: <20191201210947.75b79f55@archlinux> In-Reply-To: <20191127171642.6014-1-olivier.moysan@st.com> References: <20191127171642.6014-1-olivier.moysan@st.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed, 27 Nov 2019 18:16:42 +0100 Olivier Moysan wrote: > Convert the sigma delta modulator bindings > to DT schema format using json-schema. > > Signed-off-by: Olivier Moysan Looks fine to me, but I'd like to give plenty of time for others to have a chance to take a look. If it looks like I've lost it in a week or two feel free to ping me. Thanks, Jonathan > --- > .../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' > + > +examples: > + - | > + ads1202: adc@0 { > + compatible = "sd-modulator"; > + #io-channel-cells = <0>; > + }; > + > +...