From patchwork Sat Oct 31 18:48:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320138 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2451552ilc; Sat, 31 Oct 2020 11:51:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQcPOKEBG8nHr8Iou/8rkMBaXThnzE9ZYi4Y0ZQsQvtc8HWSqap65OXg80EAFXft+BR/fQ X-Received: by 2002:a50:950e:: with SMTP id u14mr8784267eda.260.1604170314206; Sat, 31 Oct 2020 11:51:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604170314; cv=none; d=google.com; s=arc-20160816; b=iMs1H5QHqR//zU39usjc57pbLYxTxh5aj2JIrXgfMWP0UwS39OiX3uzBfWp9Sdl22Y 15NeeHjblhOYO6Q/UgdTPee+sKIrkCJmWR1939kL7Mi1hrptr3V/ds+uKCUZf68pAMZE DfFJV/WCe5K7Hk24nkZWZJjM0hVliCJN2eTJ+6+RBXVmcCeF3qLrpVd6nbbFyvJuAmXy Bns0Pfh0kPvQ3HifrHOVbaP7Ne5TaxQtPr6EddpT85MA7LxAVIgEdMW+agkLsZ/yFLKN 668SOm1EE2oxSsbp0pT+wPPU4INFeqhxvoTzvismzpHItjUHFukimLQOQAcLbSOvOjiq SNUw== 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=sTY15/rgOt6kgTuPNCFk8r9rg1EtEKRMFFiWRmkT+6Y=; b=GQ36HfG+0gmFrfO7lZuhlOFxrC3eb67nD9t8/5+JDC2a9iEXowTkkZaGQwpgAy4fAS stIrKq7CSArqrpwuC9RMZpTMt7MXCDcwfrJEuouYHvqUS4umFeHxuOXcXJH7M4UWa06T 3wzGjUILQb3kbyIq9Y6S5OqBr11xQVj+HmrtzcK6trylNxH7ed5Aph96TxHcGoq/bNjY Ap01MZS66lfNtQvGoh3WdN4VJN6PfO+uXBPmdILAR3x6ZXsxrkutA5iC7lqT4xj8twlD ZnGDGEmHNbLfpelVq8uXk73kX0SqaHCp2P1nfThEqs/FajXQkPmxVtF4UqP4cIiT1KvL yMIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GdENXmvM; 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.54; Sat, 31 Oct 2020 11:51:54 -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=GdENXmvM; 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 S1728431AbgJaSvx (ORCPT + 6 others); Sat, 31 Oct 2020 14:51:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:35086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbgJaSvx (ORCPT ); Sat, 31 Oct 2020 14:51:53 -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 629AE2071A; Sat, 31 Oct 2020 18:51:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170312; bh=dyozSHBidbCpE68HDPMTN5188ZmV/mBciN/Dv709ZRU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GdENXmvMx/J/PeKGH2T0a8lsao9nVsDjKQPyen76ssNu9NrxMlAsU1FANd4E80d4g rDoZgVhQPJsOF/smBi2FDBAgJKhs1S4yWnhvQVm5LBNuEcCFH8wb18T/v/IW2mHU0O /r2fJzRCd5lN4PgXeHP9vns7lQ3SnG0JRmEO1Jds= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Robert Eshleman Subject: [PATCH 17/46] dt-bindings:iio:light:maxim, max44009: txt to yaml conversion. Date: Sat, 31 Oct 2020 18:48:25 +0000 Message-Id: <20201031184854.745828-18-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 format conversion. Signed-off-by: Jonathan Cameron Cc: Robert Eshleman --- .../bindings/iio/light/max44009.txt | 24 ---------- .../bindings/iio/light/maxim,max44009.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 24 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/light/max44009.txt b/Documentation/devicetree/bindings/iio/light/max44009.txt deleted file mode 100644 index 4a98848e35c0..000000000000 --- a/Documentation/devicetree/bindings/iio/light/max44009.txt +++ /dev/null @@ -1,24 +0,0 @@ -* MAX44009 Ambient Light Sensor - -Required properties: - -- compatible: should be "maxim,max44009" -- reg: the I2C address of the device (default is <0x4a>) - -Optional properties: - -- interrupts: interrupt mapping for GPIO IRQ. Should be configured with - IRQ_TYPE_EDGE_FALLING. - -Refer to interrupt-controller/interrupts.txt for generic interrupt client -node bindings. - -Example: - -light-sensor@4a { - compatible = "maxim,max44009"; - reg = <0x4a>; - - interrupt-parent = <&gpio1>; - interrupts = <17 IRQ_TYPE_EDGE_FALLING>; -}; diff --git a/Documentation/devicetree/bindings/iio/light/maxim,max44009.yaml b/Documentation/devicetree/bindings/iio/light/maxim,max44009.yaml new file mode 100644 index 000000000000..5911bd93bcb1 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/maxim,max44009.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/maxim,max44009.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAX44009 Ambient Light Sensor + +maintainers: + - Robert Eshleman + +properties: + compatible: + const: maxim,max44009 + + reg: + maxItems: 1 + description: Default address is 0x4a + + interrupts: + maxItems: 1 + description: Should be configured with type IRQ_TYPE_EDGE_FALLING + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@4a { + compatible = "maxim,max44009"; + reg = <0x4a>; + + interrupt-parent = <&gpio1>; + interrupts = <17 IRQ_TYPE_EDGE_FALLING>; + }; + }; +...