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=-15.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=ham 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 69E71C63697 for ; Sun, 22 Nov 2020 17:43:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 39641208FE for ; Sun, 22 Nov 2020 17:43:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727934AbgKVRm6 (ORCPT ); Sun, 22 Nov 2020 12:42:58 -0500 Received: from saturn.retrosnub.co.uk ([46.235.226.198]:39636 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727876AbgKVRm6 (ORCPT ); Sun, 22 Nov 2020 12:42:58 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) by saturn.retrosnub.co.uk (Postfix; Retrosnub mail submission) with ESMTPSA id B59609E0049; Sun, 22 Nov 2020 17:42:55 +0000 (GMT) Date: Sun, 22 Nov 2020 17:42:52 +0000 From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Kyungmin Park Subject: Re: [PATCH 16/46] dt-bindings:iio:light:sharp,gp2ap020a00f: txt to yaml conversion. Message-ID: <20201122174252.6f90d7a5@archlinux> In-Reply-To: <20201031184854.745828-17-jic23@kernel.org> References: <20201031184854.745828-1-jic23@kernel.org> <20201031184854.745828-17-jic23@kernel.org> X-Mailer: Claws Mail 3.17.8 (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 Sat, 31 Oct 2020 18:48:24 +0000 Jonathan Cameron wrote: > From: Jonathan Cameron > > Simple conversion. Maintainers as per original binding file authors, > but that was a long time back so as with others, if email addresses bounce > I'll switch this to me. > > Signed-off-by: Jonathan Cameron > Cc: Jacek Anaszewski Jacek's emails bouncing so dropped from maintainers. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to poke at it. Thanks, Jonathan > Cc: Kyungmin Park > --- > .../bindings/iio/light/gp2ap020a00f.txt | 21 -------- > .../iio/light/sharp,gp2ap020a00f.yaml | 49 +++++++++++++++++++ > 2 files changed, 49 insertions(+), 21 deletions(-) > > diff --git a/Documentation/devicetree/bindings/iio/light/gp2ap020a00f.txt b/Documentation/devicetree/bindings/iio/light/gp2ap020a00f.txt > deleted file mode 100644 > index 9231c82317ad..000000000000 > --- a/Documentation/devicetree/bindings/iio/light/gp2ap020a00f.txt > +++ /dev/null > @@ -1,21 +0,0 @@ > -* Sharp GP2AP020A00F I2C Proximity/ALS sensor > - > -The proximity detector sensor requires power supply > -for its built-in led. It is also defined by this binding. > - > -Required properties: > - > - - compatible : should be "sharp,gp2ap020a00f" > - - reg : the I2C slave address of the light sensor > - - interrupts : interrupt specifier for the sole interrupt generated > - by the device > - - vled-supply : VLED power supply, as covered in ../regulator/regulator.txt > - > -Example: > - > -gp2ap020a00f@39 { > - compatible = "sharp,gp2ap020a00f"; > - reg = <0x39>; > - interrupts = <2 0>; > - vled-supply = <...>; > -}; > diff --git a/Documentation/devicetree/bindings/iio/light/sharp,gp2ap020a00f.yaml b/Documentation/devicetree/bindings/iio/light/sharp,gp2ap020a00f.yaml > new file mode 100644 > index 000000000000..d6a4b47467f2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/light/sharp,gp2ap020a00f.yaml > @@ -0,0 +1,49 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/light/sharp,gp2ap020a00f.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sharp GP2AP020A00F I2C Proximity/ALS sensor > + > +maintainers: > + - Jacek Anaszewski > + - Kyungmin Park > + > +description: | > + The proximity detector sensor requires power supply for its built-in led. > + > +properties: > + compatible: > + const: sharp,gp2ap020a00f > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + vled-supply: true > + > +additionalProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + - vled-supply > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + light-sensor@39 { > + compatible = "sharp,gp2ap020a00f"; > + reg = <0x39>; > + interrupts = <2 0>; > + vled-supply = <&als_reg>; > + }; > + }; > +...