From patchwork Sat Oct 31 18:48:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320136 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2451517ilc; Sat, 31 Oct 2020 11:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqyPwiTFWD4y1TljRU88A9RLeOcl94QCtJd6DmW3cpFdns2iVmTslbsQIDIJASAryhL4HH X-Received: by 2002:a50:bb06:: with SMTP id y6mr8924322ede.278.1604170311329; Sat, 31 Oct 2020 11:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604170311; cv=none; d=google.com; s=arc-20160816; b=UVHpweZUWGqYevNL6Psl70/wBD4e9Rtfwkq/glgyU8FUomK7+iLXBcjuYF9nbZNn67 4ghR8etoa+4YHF0BrEdeY8FZo5aJuPF/PLLf8CgSOa9uDWdxra70F3YYqJwEnkSpmHsB JyRk0dx9pK/lrUVJpXWL542hDVOiKPWeLf/5Er/X3l0EbiXxQP7rOn9gxY59U00HbUEI XTrPgTzJsLdOJAjatnoh+W3kbGy1PRT1mBAfufjTWOffX1utKEyxpBEMyx47Opznnrr2 nb13Z+8K1ZmaWiwLkqG4y/z/LXxyQ7a2jT7uBBVGFZtbGyFEVd/0Y4cMWFDIID6XbmC4 bF+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ixgWOrBKk6UFhtIW7yv0Z8nGSf8PnHifYieL21VjC0Y=; b=ahjiiQ2LUdPfTbPMdGkq1dxG0DpQeakT8eMZF6uDAitKXuXjCpqM5flbm5b7u8r9sD PrIlEnMp/If2eWGfDhIa98Dv8NJnkfheMwtcQhY5Iyf7HcOIXqeA/RXIanoxPySB7PqX LDFFYbZMf7joOuaWMuych/Zz00lUswHJhdWxoZ2pxYMGOrKuM7/v4KIiwthiZMKXZLpw UMum1TncjFaOn9YTEhoL1QkMy4lGhRS2psfdDD7r1q/uRsimEh8eQHOH6g+mYg+VOK3d PzD12GcLAcN0/PjO71URy4WUITBUfe/6C5WY+Q+64rPkbPuZi2AKDQZlxrG6p6KVA6mX Wv5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EmbrdeW9; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si7081562ejc.542.2020.10.31.11.51.51; Sat, 31 Oct 2020 11:51:51 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EmbrdeW9; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728426AbgJaSvu (ORCPT + 6 others); 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 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(-) -- 2.28.0 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>; - }; - - /* ... */ - };