From patchwork Sat Oct 31 18:48:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314632 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=-13.1 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_GIT 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 19F2AC55179 for ; Sat, 31 Oct 2020 18:51:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DBFD520724 for ; Sat, 31 Oct 2020 18:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170312; bh=O5f3jidJR7i/UOt0KKH563VuD2QIarTgrn6pmkRfU2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=C4qtd3bNWLgS0YOjPN5L21R284D2J0OkbZSPuZUT5kY1M0pioSmSEw7A4kWLLWu6N G4v7AC6nVnj99M9L0GrvMGeQVPkTSl/7usgmU5wk9o53bEB+auKLezC2QIGNrI4YcM naODg5KJNZQV9G16n1WsksK7wSIo4dip3NUyyHes= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728427AbgJaSvw (ORCPT ); Sat, 31 Oct 2020 14:51:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:35070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbgJaSvv (ORCPT ); Sat, 31 Oct 2020 14:51:51 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C016320720; Sat, 31 Oct 2020 18:51:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170311; bh=O5f3jidJR7i/UOt0KKH563VuD2QIarTgrn6pmkRfU2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u53l/HiY6JgFd7EOBq28TBH2nany3TyjulFBXFEDFptpLHGdiWHE4UxQxkeyFVnmA rYfzKGBNIB63gMIX1SmrtKyMS7ZUsFZKsS3Y4qg2mtrKVvRIvDTcNdZ5D6Wj7yr8bl wuTsPiJrkpCtIC2/YYiE6qbSqA0Wgfqlz/hVRi9w= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Jacek Anaszewski , Kyungmin Park Subject: [PATCH 16/46] dt-bindings:iio:light:sharp, gp2ap020a00f: txt to yaml conversion. Date: Sat, 31 Oct 2020 18:48:24 +0000 Message-Id: <20201031184854.745828-17-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031184854.745828-1-jic23@kernel.org> References: <20201031184854.745828-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 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>; + }; + }; +...