Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1733852yba; Sat, 27 Apr 2019 06:04:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqymOC1+AC/9e6+tjpi1KY1kntQoxSlalQc3eTQe5aSBSHQSvgQXTjDvz1/zZTJoULzokV7O X-Received: by 2002:a65:60c7:: with SMTP id r7mr43635053pgv.191.1556370298011; Sat, 27 Apr 2019 06:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556370298; cv=none; d=google.com; s=arc-20160816; b=CwpQja/zJfq0M1J5qIMscGzN5NMCSa6VL+WKrwzsY1xf+whZqLLBKNpywW7AgAF5Bl yr0EmQF/r2isyWqcS5Aslq25/kwRCQnaqI+I3KJmxkO9+agS+XneinA1qhw8jV+R0tJ5 HPtcI93ZII+s8t5lMKrwWeGMED9Vy38Y14W+vW0Ls15/0iK2ptcDa9lnCjX2XPUi2h3A IxjHGYdEUFC3kTip/fWRiJfd2jzlKXlnfVMoEly7nqR24JXKzFShKCrNfNOB65f/P49D QHu4gAU9bWVAMk2ReS1BlgDbv78DdleBnWDphKyzfV2TdrmcFcBgHQuRVMotRxGBeE/5 zcOg== 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:subject:cc:to:from:date :dkim-signature; bh=BIAlcUZWp5uHNW9FBuUEyK+JzV3SZPDRuvYHOVNZ/Oo=; b=jjkCtpoUOwOMbZjietnjQR/Ov/vidLpwG9FIr2gbZ/qokYeceqcvd9zNcJUQqrnwVG /gHKjHoWR1Vde/RK6a3nNHslq9SEU+ahD56KrALIjNx9mmi/8jhehR3fzwpM+lOp0kIJ +xBNdx4Q20nU6lzgevu8c/Ysd4o/awgX6Au0iBANFoWi97yHBWypWCbfD6l6OlpXI+FN /GcCBrVJi4b2LcgWgLFAK1y71zwyhw/YAZ+wNgvkbhwtiGBnJeTlsE4NVSC/Eu5U/e+H x6I2/ByG9KAkNhvj9w/x0UpM8uckOYnQlw0PjeTwVTHY3Mu+yZ+iVq/XHCEnf34VdZBI lfhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HPIZzh1t; 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 d25si26705223pgb.229.2019.04.27.06.04.40; Sat, 27 Apr 2019 06:04:57 -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=HPIZzh1t; 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 S1726536AbfD0NDq (ORCPT + 99 others); Sat, 27 Apr 2019 09:03:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:59334 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbfD0NDp (ORCPT ); Sat, 27 Apr 2019 09:03:45 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1A23A2087C; Sat, 27 Apr 2019 13:03:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556370225; bh=fdvNXF+mbSukBjCcHZUOhaoYLDsFYgos9tSZnL69ZG0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HPIZzh1t24BlFFQWBl9qIsbNFlCtxyyg8aNoOSTpSGay/TyUPcUgmk5UMeVmJauaK 9IfGicosdelTf2BQwk53OMvet5cnLzQWYSn1mnpuJo5PMMDwfM7CRINu5td/6m3XJ0 +jYJz/xRVJ/hQ8PvDfvLEAh2c4h1KHnJwBWZpExU= Date: Sat, 27 Apr 2019 14:03:39 +0100 From: Jonathan Cameron To: Brian Masney Cc: robh+dt@kernel.org, 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: Re: [PATCH v3 2/2] dt-bindings: iio: tsl2583: convert bindings to YAML format Message-ID: <20190427140339.7fbfa1e9@archlinux> In-Reply-To: <20190425230314.26000-2-masneyb@onstation.org> References: <20190425230314.26000-1-masneyb@onstation.org> <20190425230314.26000-2-masneyb@onstation.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 25 Apr 2019 19:03:14 -0400 Brian Masney wrote: > Convert the tsl2583 device tree bindings to the new YAML format. > > Signed-off-by: Brian Masney > Reviewed-by: Rob Herring Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > 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>; > + }; > + }; > +...