From patchwork Sat Oct 31 18:48:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320134 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2451498ilc; Sat, 31 Oct 2020 11:51:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxapFOP/h8nqZbC+aKlOX02PdazxoXuYy5fYvFhQnBED1zTXXrriWISIm9cujXMbfOI5KHr X-Received: by 2002:a50:f316:: with SMTP id p22mr9018977edm.201.1604170308554; Sat, 31 Oct 2020 11:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604170308; cv=none; d=google.com; s=arc-20160816; b=D8TmNNQxuL1nBNNNJL1XHB8XTcijW8jyckdanqtRtzKdHq8X7eyWc1OTgTbQTjLKhk GSLKCrg4+GU+/pt6jPdM95xqrZNJ8i8MLM+p/1akJ2VrZ/gTfXkHebhZAuM5sLmNIi+5 CODKo35zYnmDLeShKP9U8zs05Hi9YTZpjiRYPP1Lb1HTazRBXVEIqWat2cY+Fg86gSoN S/G80b8jtvJiwIhApfb3tcVSiZ5FDsF5M7rdwwXN8anaw+xBVwPZoMU2bKXhNxE8VvmI rBrFJSJnMA9JyhRS64MffWRsTe3Z6XGgRumwJWp0K+k+iA2sUsmT2DfB1qPSif1UyLzT rDcg== 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=F0UL6ldpSWfGUaR2XsrlPhuZSBsTIPfuWrSwonMRvSQ=; b=lUb0iGmaMKTOokrt608Iu73Vmew5A2+a5HmtZKkqenXVEBZBoM2t7kkeGeAgcNVQBE S/PE2DJLJpRJ5KpNT5tm76BzWd7FV77QDDBHjiiuaOqSA/TnUwybCEOFzrYOCnPe13fb jAKu5J+AE+sL3bfn5chWniTmWgOeijCD7FdMAALFGnA5vi0dKngt0z8BVJ+PhuK4d8Ov Y6uHfcZVg0lQPyzrTIG1Vc0sQZ8e3EA3UnMhctsBXKqWj2p0e982X35iavRMPIcxdS7Y WvrWUSk+gbh6sxSHnCexdckg3c2LAX8gP9m5wtLuHa5ZYqXlTnw2Zn6tiVLplfL691gX 9U5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NsNwXQxb; 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.48; Sat, 31 Oct 2020 11:51:48 -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=NsNwXQxb; 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 S1728421AbgJaSvr (ORCPT + 6 others); Sat, 31 Oct 2020 14:51:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:34948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbgJaSvq (ORCPT ); Sat, 31 Oct 2020 14:51:46 -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 1B3472072C; Sat, 31 Oct 2020 18:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170306; bh=78147WRxiyxt7sN1gLHlmXA7ziYE9l/25sqw0GzfE2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NsNwXQxby4zp5/ZDPxXM5tEnmn0XIQyLvqrVBu/S4XnFgRPso4l/N23F6Taf9vcTH ZrY/nq5RSzgD/HGJ817S5wS4NoO1GVB6LApGKQG9Jk9c57YAqrtW0RfmHGHx6XZyu+ WnRHKLjVI/BH7UP8mBRa9c7RPrB1j/i39WJ5V+sk= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Oleksandr Kravchenko Subject: [PATCH 13/46] dt-bindings:iio:light:avago, apds9300: txt to yaml conversion. Date: Sat, 31 Oct 2020 18:48:21 +0000 Message-Id: <20201031184854.745828-14-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 This could have gone in trivial-devices.yaml, but there was a datasheet link so I've given it a minimal file of it's own. Very simple binding and so a very simple conversion. Signed-off-by: Jonathan Cameron Cc: Oleksandr Kravchenko --- .../bindings/iio/light/apds9300.txt | 21 --------- .../bindings/iio/light/avago,apds9300.yaml | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 21 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/light/apds9300.txt b/Documentation/devicetree/bindings/iio/light/apds9300.txt deleted file mode 100644 index 3aa6db3ee99d..000000000000 --- a/Documentation/devicetree/bindings/iio/light/apds9300.txt +++ /dev/null @@ -1,21 +0,0 @@ -* Avago APDS9300 ambient light sensor - -https://www.avagotech.com/docs/AV02-1077EN - -Required properties: - - - compatible : should be "avago,apds9300" - - reg : the I2C address of the sensor - -Optional properties: - - - interrupts : interrupt mapping for GPIO IRQ - -Example: - -apds9300@39 { - compatible = "avago,apds9300"; - reg = <0x39>; - interrupt-parent = <&gpio2>; - interrupts = <29 8>; -}; diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml new file mode 100644 index 000000000000..1cc026b9a62b --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/avago,apds9300.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Avago APDS9300 ambient light sensor + +maintainers: + - Oleksandr Kravchenko + +description: | + Datasheet at https://www.avagotech.com/docs/AV02-1077EN + +properties: + compatible: + const: avago,apds9300 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@39 { + compatible = "avago,apds9300"; + reg = <0x39>; + interrupt-parent = <&gpio2>; + interrupts = <29 8>; + }; + }; +...