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=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 A2D17C43466 for ; Sat, 19 Sep 2020 14:25:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5B78220874 for ; Sat, 19 Sep 2020 14:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600525555; bh=zVE0oLDDDmXmGhtnm366PTl705lYbU40PpsCSN2m1OI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=jk0Yxi7YKP6szCpKNnzkul2/v7aWABKysLqcsxLyzOr5vdwOM7GmDL9EmD+cX/uX6 0e3DAhES0o1utijL/M+sngvYFvTAVrqIkAmjp7E/g7SYoHLLmtTYyH3k83Coeu0ayJ 0PEv1SnQnpb8Jn3qPHWTX9q1f/tPm5n7j2qv1UC4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726458AbgISOZy (ORCPT ); Sat, 19 Sep 2020 10:25:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:58094 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726411AbgISOZy (ORCPT ); Sat, 19 Sep 2020 10:25:54 -0400 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 B6DAE20771; Sat, 19 Sep 2020 14:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600525553; bh=zVE0oLDDDmXmGhtnm366PTl705lYbU40PpsCSN2m1OI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WUiJBIOsqZ7z8Xekr2UO5sjwj2IyGei/j/FKY4wtBPFDawHZIHLWlJ+nYVjrxkk9b nHpQyxaC9DRz3QLvZFFtt6KU/+WHK038avV37SvCbF7zLNP7Qt2x+2cgiX5xv9JlGN a88J/0lLD4PZP4Gc/d0ScJcJx14pKQlwdEZZVR5k= Date: Sat, 19 Sep 2020 15:25:49 +0100 From: Jonathan Cameron To: Rob Herring Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Jonathan Cameron , Tony Lindgren Subject: Re: [PATCH v2 11/20] dt-bindings:iio:adc:motorola,cpcap-adc yaml conversion Message-ID: <20200919152549.3ea68f26@archlinux> In-Reply-To: <20200915191101.GA2327664@bogus> References: <20200909175946.395313-1-jic23@kernel.org> <20200909175946.395313-12-jic23@kernel.org> <20200915191101.GA2327664@bogus> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, 15 Sep 2020 13:11:01 -0600 Rob Herring wrote: > On Wed, Sep 09, 2020 at 06:59:37PM +0100, Jonathan Cameron wrote: > > From: Jonathan Cameron > > > > Conversion from txt to yaml. > > Slightly expanded example to give a bit more context. > > Description lifted from the original driver commit. > > > > Signed-off-by: Jonathan Cameron > > Cc: Tony Lindgren > > --- > > .../devicetree/bindings/iio/adc/cpcap-adc.txt | 17 ------- > > .../bindings/iio/adc/motorola,cpcap-adc.yaml | 51 +++++++++++++++++++ > > 2 files changed, 51 insertions(+), 17 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/iio/adc/cpcap-adc.txt b/Documentation/devicetree/bindings/iio/adc/cpcap-adc.txt > > deleted file mode 100644 > > index ec04008e8f4f..000000000000 > > --- a/Documentation/devicetree/bindings/iio/adc/cpcap-adc.txt > > +++ /dev/null > > @@ -1,17 +0,0 @@ > > -Motorola CPCAP PMIC ADC binding > > - > > -Required properties: > > -- compatible: Should be "motorola,cpcap-adc" or "motorola,mapphone-cpcap-adc" > > -- interrupts: The interrupt number for the ADC device > > -- interrupt-names: Should be "adcdone" > > -- #io-channel-cells: Number of cells in an IIO specifier > > - > > -Example: > > - > > -cpcap_adc: adc { > > - compatible = "motorola,mapphone-cpcap-adc"; > > - interrupt-parent = <&cpcap>; > > - interrupts = <8 IRQ_TYPE_NONE>; > > - interrupt-names = "adcdone"; > > - #io-channel-cells = <1>; > > -}; > > diff --git a/Documentation/devicetree/bindings/iio/adc/motorola,cpcap-adc.yaml b/Documentation/devicetree/bindings/iio/adc/motorola,cpcap-adc.yaml > > new file mode 100644 > > index 000000000000..7811c0abd5d0 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/adc/motorola,cpcap-adc.yaml > > @@ -0,0 +1,51 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/iio/adc/motorola,cpcap-adc.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Motorola CPCAP PMIC ADC binding > > + > > +maintainers: > > + - Tony Lindgren > > + > > +description: > > + On Motorola phones like droid 4 there is a custom CPCAP PMIC. This PMIC > > + has ADCs that are used for battery charging and USB PHY VBUS and ID pin > > + detection. > > + > > +properties: > > + compatible: > > + enum: > > + - motorola,cpcap-adc > > + - motorola,mapphone-cpcap-adc > > + > > + interrupts: > > + maxItems: 1 > > + > > + interrupt-names: > > + const: adcdone > > + > > + "#io-channel-cells": > > + const: 1 > > + > > +required: > > + - compatible > > + - interrupts > > + - "#io-channel-cells" > > additionalProperties: false Done > > With that, > > Reviewed-by: Rob Herring Applied. Thanks Jonathan