Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2408057yba; Thu, 25 Apr 2019 16:14:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxP/RW5DU8aaMG1i4XnXxs+akO6pnqHBX7Anum3yE1apP1fxN6Kvj5y6MVFQ2OJ6Zl3dXSH X-Received: by 2002:a62:ae13:: with SMTP id q19mr24632540pff.152.1556234076393; Thu, 25 Apr 2019 16:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556234076; cv=none; d=google.com; s=arc-20160816; b=tk8vvo3aSLO76nJHmIL74PwDKl3Ry/Nzb9m9Lag3umrcIj/Jgg8crj4CS28LfUC9aq veMMN8bduzFZDrA3eLYyNtSCXSHnB48LQpjGVPAVQZHb4fCFYUvykfp6fU3N+P5/MIAa lumrP3B3zazQMcmoQ3gWptrKAzwWcLm0pQ4k8fxO8tB6M/HKYYBUJ6c2cpYgk7Hf19y1 ECioLBsmkmXDXyPUyoDMnwupqkAXMAUIweBAB9I+cb7KBaANmSeijXk9RrwuNkH8T9wx BHRSQFDaP4tyQiIs7tnB+gPXzSHmv7F1owWqyrqDRUN6BrmWm/q2lzjSMk6DLo9aIQRv F/Ww== 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=JDhfCTT/PNiVqrL3lBPc/Ptgvopmcm6573/CgCYOq7Q=; b=XOXw6MQe4+mEw1M8EPmp1znUlHdltYUhrLu7hUbYtKldOGloSfTxv2+NwBcX+L9zmp NE3+NC/OkiysiKd5ypnO0TN4yU+vI9+fAKUv/3BuCdWsmquK7H4fz/sGsb3d9KfYiHZW SDQE+fe2J4YLQwqrUDWFzh3cL0JxO9c57kEgc9H97oQkagZjUZyRvXCvmes0cX13xly8 imHkZYWRDZziM0OpjJLttu9TrXNe5dnmeXHhxKIJcFL6KVcCWP+cmkQmFD1oVALu4E+8 IW1Aj/BDM2YTH4/yOAm6FpwFuof4hrEaSujIRLCiRgMKvsBWUNRv6Yl/QwDei2IXDGN0 APwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b="hZiH+1Q/"; 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 l32si23130770pgm.130.2019.04.25.16.14.21; Thu, 25 Apr 2019 16:14:36 -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="hZiH+1Q/"; 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 S1729498AbfDYXDa (ORCPT + 99 others); Thu, 25 Apr 2019 19:03:30 -0400 Received: from onstation.org ([52.200.56.107]:46074 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387593AbfDYXD2 (ORCPT ); Thu, 25 Apr 2019 19:03:28 -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 F1AEB44712; Thu, 25 Apr 2019 23:03:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1556233407; bh=l0hNYROoQZIuSkxXic67oWtBxfgpPJUOZ0tFtrlMkdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hZiH+1Q/f+OXg3CUxDTISlOwLQSs5CWR2NrMuxAf1LzwP9CnzQ1EQZApcVyVDjtxT 7m66HnSVM8lc/K+BcJ3Kpg+njtio9Ow+dUhwBO4txAfXgLtrWCso9c/72gjJ8NO16S vP6bokPuIniF+rLRrMjOGtaQw+jcvvUsB2PhZ7wE= 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, Rob Herring Subject: [PATCH v3 2/2] dt-bindings: iio: tsl2583: convert bindings to YAML format Date: Thu, 25 Apr 2019 19:03:14 -0400 Message-Id: <20190425230314.26000-2-masneyb@onstation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190425230314.26000-1-masneyb@onstation.org> References: <20190425230314.26000-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 Reviewed-by: Rob Herring --- Changes since v2: - Changed 'als-sensor@29' in example to 'light-sensor@29' Changes since v1: - Dropped description from reg and interrupts properties. - Dropped $ref from vcc-supply property. - Changed 'tsl2581@29' in example to 'als-sensor@29' .../devicetree/bindings/iio/light/tsl2583.txt | 25 ---------- .../bindings/iio/light/tsl2583.yaml | 46 +++++++++++++++++++ 2 files changed, 46 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..e86ef64ecf03 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/tsl2583.yaml @@ -0,0 +1,46 @@ +# 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: + maxItems: 1 + + interrupts: + maxItems: 1 + + vcc-supply: + description: Regulator that provides power to the sensor + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@29 { + compatible = "amstaos,tsl2581"; + reg = <0x29>; + }; + }; +... -- 2.20.1