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=-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=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 2569AC55178 for ; Sat, 31 Oct 2020 18:51:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E4EFF2072C for ; Sat, 31 Oct 2020 18:51:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170310; bh=qfobvL+xm68LRQrtL991IA3t1PNEVyCflIA+rDZs1YE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=vtP2eiyVZtyzP7As9moeDDYhNoED7+ARFVnBdvI8xgMsSawFU1XfxRYWESAa3p/Zq E81GmYwFbYW2N/YGVo9eSZX88wi0bSENxqL2EfX4PAFkZdH5VoyBo5SqP4SSqddmKX ckQu3cmmMfMapCYyqbDcsp9Oo8qMmcG3pPdHZYkg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728426AbgJaSvu (ORCPT ); Sat, 31 Oct 2020 14:51:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:35038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbgJaSvu (ORCPT ); Sat, 31 Oct 2020 14:51:50 -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 5137A20702; Sat, 31 Oct 2020 18:51:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170309; bh=qfobvL+xm68LRQrtL991IA3t1PNEVyCflIA+rDZs1YE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EmbrdeW9q5kLLyBvc6zjJzPnfGO4yS2obD43kgPO8BeYWlvCFd1N5y1ahx5xYlV3Y GqEuglx8Y8guV/Km0QcdQa0nwJmHn/rFk1AXLUwJBv6AAq61bfHhLgNzGOJ/uGs2oD zkn3g73KcBM/Wqt9i6lKiF4VGLWWaRqjDlICl2XI= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Beomho Seo Subject: [PATCH 15/46] dt-bindings:iio:light:capella,cm36651: txt to yaml conversion. Date: Sat, 31 Oct 2020 18:48:23 +0000 Message-Id: <20201031184854.745828-16-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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Straight forward conversion with no changes beyond the node name in the example Signed-off-by: Jonathan Cameron Cc: Beomho Seo --- .../bindings/iio/light/capella,cm36651.yaml | 48 +++++++++++++++++++ .../devicetree/bindings/iio/light/cm36651.txt | 26 ---------- 2 files changed, 48 insertions(+), 26 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/light/capella,cm36651.yaml b/Documentation/devicetree/bindings/iio/light/capella,cm36651.yaml new file mode 100644 index 000000000000..446d94f3a89f --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/capella,cm36651.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/capella,cm36651.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Capella CM36651 I2C Proximity and Color Light sensor + +maintainers: + - Beomho Seo + +properties: + compatible: + const: capella,cm36651 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vled-supply: + description: | + Supply for the IR_LED which is part of the cm36651 for proximity detection. + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - vled-supply + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@18 { + compatible = "capella,cm36651"; + reg = <0x18>; + interrupt-parent = <&gpx0>; + interrupts = <2 0>; + vled-supply = <&ps_als_reg>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/light/cm36651.txt b/Documentation/devicetree/bindings/iio/light/cm36651.txt deleted file mode 100644 index c03e19db4550..000000000000 --- a/Documentation/devicetree/bindings/iio/light/cm36651.txt +++ /dev/null @@ -1,26 +0,0 @@ -* Capella CM36651 I2C Proximity and Color Light sensor - -Required properties: -- compatible: must be "capella,cm36651" -- reg: the I2C address of the device -- interrupts: interrupt-specifier for the sole interrupt - generated by the device -- vled-supply: regulator for the IR LED. IR_LED is a part - of the cm36651 for proximity detection. - As covered in ../../regulator/regulator.txt - -Example: - - i2c_cm36651: i2c-gpio { - /* ... */ - - cm36651@18 { - compatible = "capella,cm36651"; - reg = <0x18>; - interrupt-parent = <&gpx0>; - interrupts = <2 0>; - vled-supply = <&ps_als_reg>; - }; - - /* ... */ - }; -- 2.28.0