Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2972717yba; Tue, 16 Apr 2019 01:47:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxf/8vdGp++qZUNeGEnWPh3B0C3uOAL8aFF+AazysCIRB27/xRAPSsO5FhzTjpOJ40pUxyN X-Received: by 2002:a17:902:2a4b:: with SMTP id i69mr25240434plb.292.1555404423159; Tue, 16 Apr 2019 01:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555404423; cv=none; d=google.com; s=arc-20160816; b=hyG8r95ssnhKcLYsidZ3yCwp907NxfNqRc9wY+VSoFOLqDsJ50TgiAH4OiJdHVfb4m e8UkQYlt8X3yRRPtFs80FCCsWO2Qsm9Licll0SNDDykW032rlASQ8pVnLp/BCVf1PF1H PIhSKlgGv8xc0w2WOTV1QkHS6yA3aGjfF2geQyyDHYF9SX6wzOeqz8nLd/mwOnzfbUeA 378f0vvueoVu5Q+DARohN1m8L8JH/etg7Q1U4sSEWi/xwJ4wuPGnbLJRktOAeK3fApkF 7WT9q7Bz2zkC18dK9p7TTZtRY+iTpT557jizPQdbaWkvXYYI/WcZktH4KhyTU02IfW4G iMiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nlIolWxySMQOHx06Z7d4PUq3aCM4h0pXAgoipujEJY0=; b=kBMktNJzcFSkCp3O2CHnGpd8XtPpYxbwY8O20kgsEWYo3VOZFITlF3bMDLepDYN721 Oe8eYdV3YqOL1Lz9vSYZqN5DXD1IhI3o0eebl7zMA1+gLPICZ7/jIinCfwpbRj8FpqkR kkMkVAPqg6cAkkw8oyTca9JoQMhrj69AzSe4CZdeb7XeM8YTAce/9wtCoNjKknWxH1HQ H4ZT9Rl2iueqdVYlBal9eOiSRaOdRfFgBftYYa/0RmYuC6pQpljoguI5GFIR+5bHRwqe RL9DyaSR6gkh2H3n8agiZGJxQbcoEOODjunnVCD1nnfYlRddi6AylbGRsfqM/AihWiUv +PMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=uJRWc93W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m17si50236071pff.130.2019.04.16.01.46.47; Tue, 16 Apr 2019 01:47:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=uJRWc93W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728742AbfDPIqI (ORCPT + 99 others); Tue, 16 Apr 2019 04:46:08 -0400 Received: from onstation.org ([52.200.56.107]:36172 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726753AbfDPIqG (ORCPT ); Tue, 16 Apr 2019 04:46:06 -0400 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 7B9EB44712; Tue, 16 Apr 2019 08:46:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1555404364; bh=mRDsNvwbB9OqAR8Hx3W4TrRPH+8GNPF58Iz995Rkq4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uJRWc93WLsIlZzKubVe99lnLlkmE6u06WtcVVpK327NDNdswuggGJZDdOG0gx/izO lMcdlpDWNl9m1g6wIFHxqzghPtlJlZ2DandASxCFRwUrJ5LFhLnrW3wgAn5/h6jlVX LjymiIoC/VlwHK71pwALQnn6iQGKgReZlS1Z+ZKc= From: Brian Masney To: jic23@kernel.org, robh+dt@kernel.org Cc: lars@metafoo.de, pmeerw@pmeerw.net, mark.rutland@arm.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: iio: tsl2583: convert bindings to YAML format Date: Tue, 16 Apr 2019 04:45:52 -0400 Message-Id: <20190416084552.1538-2-masneyb@onstation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190416084552.1538-1-masneyb@onstation.org> References: <20190416084552.1538-1-masneyb@onstation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the tsl2583 device tree bindings to the new YAML format. Signed-off-by: Brian Masney --- I can no longer find the data sheet for this device linked on AMS's site. The datasheet is still on Digikey [1], however I didn't include it in the binding document since I assume that we should only link to the manufacturer's website. https://media.digikey.com/pdf/Data%20Sheets/Austriamicrosystems%20PDFs/TSL2581,83.pdf .../devicetree/bindings/iio/light/tsl2583.txt | 25 ---------- .../bindings/iio/light/tsl2583.yaml | 49 +++++++++++++++++++ 2 files changed, 49 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/light/tsl2583.txt create mode 100644 Documentation/devicetree/bindings/iio/light/tsl2583.yaml diff --git a/Documentation/devicetree/bindings/iio/light/tsl2583.txt b/Documentation/devicetree/bindings/iio/light/tsl2583.txt deleted file mode 100644 index 059dffa1829a..000000000000 --- a/Documentation/devicetree/bindings/iio/light/tsl2583.txt +++ /dev/null @@ -1,25 +0,0 @@ -* TAOS TSL 2580/2581/2583 ALS sensor - -Required properties: - - - compatible: Should be one of - "amstaos,tsl2580" - "amstaos,tsl2581" - "amstaos,tsl2583" - - reg: the I2C address of the device - -Optional properties: - - - interrupts: the sole interrupt generated by the device - - Refer to interrupt-controller/interrupts.txt for generic interrupt client - node bindings. - - - vcc-supply: phandle to the regulator that provides power to the sensor. - -Example: - -tsl2581@29 { - compatible = "amstaos,tsl2581"; - reg = <0x29>; -}; diff --git a/Documentation/devicetree/bindings/iio/light/tsl2583.yaml b/Documentation/devicetree/bindings/iio/light/tsl2583.yaml new file mode 100644 index 000000000000..c2d11b605963 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/tsl2583.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/tsl2583.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMS/TAOS Ambient Light Sensor (ALS) + +maintainers: + - Brian Masney + +description: | + Ambient light sensing with an i2c interface. + +properties: + compatible: + enum: + - amstaos,tsl2580 + - amstaos,tsl2581 + - amstaos,tsl2583 + + reg: + description: The I2C address of the device + maxItems: 1 + + interrupts: + description: Interrupt generated by the device + maxItems: 1 + + vcc-supply: + $ref: /schemas/types.yaml#/definitions/phandle + description: Regulator that provides power to the sensor + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tsl2581@29 { + compatible = "amstaos,tsl2581"; + reg = <0x29>; + }; + }; +... -- 2.20.1