Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp751278yba; Wed, 24 Apr 2019 09:02:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1VNVO0AyCH8LVHooxYLW49+fk6K7GQBB9S9GZwxU7UGAmySmQDtTpmFHHXPtGUgbIZuWR X-Received: by 2002:a63:6cc7:: with SMTP id h190mr30768141pgc.350.1556121740381; Wed, 24 Apr 2019 09:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556121740; cv=none; d=google.com; s=arc-20160816; b=FHRCCCwxpVhOuctuqCUdkSkY1xsbqtaJ2vfQtsYMMAXPv5QAp0a+osC7DRKfrmZaeh bqzHchRAKqm583rXiKNCS119P5v0RH++CRena93ZicqSqJVUNKUzJESwNuqgOD9MXePh P17JMAPmrOsqx6f8XcFSJdp7QvFePVq6INmgO1hMhHSd52jzQu0mupwT5tlcmNtqrYNz 3Y8qpIq4RXsYntmjXgz0g0E6nifkgwP5hCjLfZ1il6PcGapS62r3PxEXnF4MdVq2WBcH LVgOlh1vAYpn9/94HazNUPZ4eNB2NOsxs3IJfa5cXtBtXZnIaQVnwp54yMl3lSGPrT8j hdIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uoDRPoQ7eV1UGcVzzXZ/xRVCPvhEQpVjzXRk69D+6B4=; b=qW32JcU4hJaRsSo4zFRkPrq3AUgB55Pm3ICgcvPkqql4w0A6HB1hfKuLxVoy2F9WIm TPOJgk6ngU1JVlwZgBMuks2mMsKFIDH6jkaLPr8hmJ+DVZ8fbOCls1TPYk3pPfqWvHYx C4DOtkhJkTWifz8rCcnKp5EH+/8woYuhuHWnR906xlkSrKcba80iTm4hdYW0u9QOO3PH eple6AHRxbrgg3UDEFuO5MY17IeGrR+TAJMFSox+0sjhh305SzQGfjdT5hDscJV2b0jq d2qHanXXaPB1aaxtUV0kjado6+hjG8c+FR3ouVPO38QZlAkiP+aJiqlVP2zgt6xWD/JB P4iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="1/GYxoe4"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7si18335903pgl.261.2019.04.24.09.02.00; Wed, 24 Apr 2019 09:02:20 -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 header.i=@kernel.org header.s=default header.b="1/GYxoe4"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732091AbfDXQAU (ORCPT + 99 others); Wed, 24 Apr 2019 12:00:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:60692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730620AbfDXQAU (ORCPT ); Wed, 24 Apr 2019 12:00:20 -0400 Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (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 8993A21901; Wed, 24 Apr 2019 16:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556121618; bh=oji+Wi53ymhYmIKY89XzMnHdg2QBdDr51Mdt9eRMP7U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=1/GYxoe4iEmHpvXmeu4J05Ia+SqyPoduXCWSWhvMb3H2DvvlYi9aBZVLfmLrc8BMc UHwC89RKmeKf+AQGysdw4S5ZHm9jUDAzss9qvstDrS5jnumt8PWxREPHnQiM4yV/yr 1WgdJRRRrT82ElJHjIh+p3ZnLfFQzrM98xD56Dwo= Received: by mail-qt1-f180.google.com with SMTP id c35so6133489qtk.3; Wed, 24 Apr 2019 09:00:18 -0700 (PDT) X-Gm-Message-State: APjAAAVGYT34PF5on5pYU1qCjqV8wEsxczVNuJbYncwnUsf7jpMKmxR7 sHn6fE6XiDrLl4rPL+xZgiE/rF+dFhdH6hYXuQ== X-Received: by 2002:ac8:7647:: with SMTP id i7mr25685276qtr.38.1556121617776; Wed, 24 Apr 2019 09:00:17 -0700 (PDT) MIME-Version: 1.0 References: <20190424092238.6381-1-masneyb@onstation.org> <20190424092238.6381-2-masneyb@onstation.org> In-Reply-To: <20190424092238.6381-2-masneyb@onstation.org> From: Rob Herring Date: Wed, 24 Apr 2019 11:00:06 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/2] dt-bindings: iio: tsl2583: convert bindings to YAML format To: Brian Masney Cc: Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald , Mark Rutland , "open list:IIO SUBSYSTEM AND DRIVERS" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 4:22 AM Brian Masney wrote: > > Convert the tsl2583 device tree bindings to the new YAML format. > > Signed-off-by: Brian Masney > --- > 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' > > 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 | 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..6989a8a54c5c > --- /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>; > + > + als-sensor@29 { light-sensor@29 With that, Reviewed-by: Rob Herring