Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2944666ybb; Sun, 22 Mar 2020 11:24:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuUB8Lfe3UIITjKfFal7vPaQfsCI6eY2FckfSVlLyyvIc3OV+lqagMhkZu4wYz4ZPcNy+BG X-Received: by 2002:a9d:70d0:: with SMTP id w16mr1872795otj.9.1584901496861; Sun, 22 Mar 2020 11:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584901496; cv=none; d=google.com; s=arc-20160816; b=g8eMQJDYch2FcJyxHatLrpl4CLAKhVoNMY4X7++HcIB2EpkobrKGRLnLDy7Zmdw1RF K9o0j1+xo02qJv6NuUPaGP3+iV/8s1gur0X/Xwt48g9omO+xz/6TbbOtcwHnoQ5ZsZPL E81ygUTA5S9qkUtrScnfYuOb0luWIh/ioWGrW7Cam5Tojxog976Zs/aZrQ/4USSbFgH9 FqxYkb1Nf+nrQSyRGAJdub9s+CSkJcgbJsOv2yCGPl125QXmA5q4TmrN0Dvyt1uB2K9e 9Ijo+n6KRYnbr0mSFVPATedDA33QnbYjTSRXh+7V9pyD01+5DoTUMS7dtPqzxpPt4XKU cjOg== 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=Z9trEcBSezROhijmuG0DsYbFwgzxmR21ZL20JzjVDhs=; b=ZYnryCo/wPXSuhhaqC0BOsAgLxl4yHgYvWTV0YXen+map7SP40ScSQBlxTr01ww0ai KJKxZ+MmC2oPWY8Vn0tKXUWmO30DMuSJCwOHV7LjsaNk4ErOmHHcxwqAmFr9LDlcN0Dk 5iQ8USfOJoigPP4jIAsFB3i8anXap8CaeCtxOfM+iVjpLFn25Q4FwMmj9hN7lBWc1fkq j7w8zg77wdNWQXDVuqDlB/tHDrxcJnLW8BWnzzgI9JKsJg1WZHLLjLtO19CIh1SaZHdX a3bqs0HqeYvhn4bLtb27XnmC66RSpLCCQWzgEX2lMFREC9vIYkxkxybN5gy8nLF23mKc 8rgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0AfrCZTh; 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 a7si6026694oia.120.2020.03.22.11.24.43; Sun, 22 Mar 2020 11:24:56 -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=0AfrCZTh; 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 S1726783AbgCVSYY (ORCPT + 99 others); Sun, 22 Mar 2020 14:24:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:44820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbgCVSYX (ORCPT ); Sun, 22 Mar 2020 14:24:23 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (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 16EAB206F9; Sun, 22 Mar 2020 18:24:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584901462; bh=yCz/ZT341lKLDKklGLVfKp6Q+x33rLv+tIrcibyvKJ0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=0AfrCZThU/qf/WRxw+8nyxnzHig5IhoLfg2M1gD/6LwD6K3zDgO9Fa0JRZE/GZnI9 mhSK6+zutycPn7AJuRr8JQfKtVriZG2Y5U/rkOVjUiiBQcZERn55lyVdeKlhE9HzVf DYKR0488Q5VkdbT7Dqgd1lzqo68OmqsWwJmi8nGk= Date: Sun, 22 Mar 2020 18:24:16 +0000 From: Jonathan Cameron To: Nishant Malpani Cc: Guido =?UTF-8?B?R8O8bnRoZXI=?= , Tomas Novotny , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , "Angus Ainslie (Purism)" , Marco Felsch , Thomas Gleixner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring Subject: Re: [PATCH v2 1/4] dt-bindings: iio: vcnl4000: convert bindings to YAML format Message-ID: <20200322182416.079dc992@archlinux> In-Reply-To: References: <6182053bb8c442e0b4d72b34c83c7f1565f4a258.1584380360.git.agx@sigxcpu.org> <20200322172910.51456fe4@archlinux> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 22 Mar 2020 23:07:00 +0530 Nishant Malpani wrote: > On 22/03/20 10:59 pm, Jonathan Cameron wrote: > > On Mon, 16 Mar 2020 18:46:17 +0100 > > Guido G=C3=BCnther wrote: > > =20 > >> Convert the vcnl4000 device tree bindings to the new YAML format. > >> > >> Signed-off-by: Guido G=C3=BCnther =20 > > Looks good to me. However, I've made far too many mistakes in > > DT binding review recently, so will definitely be waiting for Rob to > > get a chance to look at it! > >=20 > > Jonathan > > =20 > >> --- > >> .../bindings/iio/light/vcnl4000.txt | 24 ---------- > >> .../bindings/iio/light/vcnl4000.yaml | 45 +++++++++++++++++= ++ > >> 2 files changed, 45 insertions(+), 24 deletions(-) > >> delete mode 100644 Documentation/devicetree/bindings/iio/light/vcnl4= 000.txt > >> create mode 100644 Documentation/devicetree/bindings/iio/light/vcnl4= 000.yaml > >> > >> diff --git a/Documentation/devicetree/bindings/iio/light/vcnl4000.txt = b/Documentation/devicetree/bindings/iio/light/vcnl4000.txt > >> deleted file mode 100644 > >> index 955af4555c90..000000000000 > >> --- a/Documentation/devicetree/bindings/iio/light/vcnl4000.txt > >> +++ /dev/null > >> @@ -1,24 +0,0 @@ > >> -VISHAY VCNL4000 - Ambient Light and proximity sensor > >> - > >> -This driver supports the VCNL4000/10/20/40 and VCNL4200 chips > >> - > >> -Required properties: > >> - > >> - -compatible: must be one of : > >> - vishay,vcnl4000 > >> - vishay,vcnl4010 > >> - vishay,vcnl4020 > >> - vishay,vcnl4040 > >> - vishay,vcnl4200 > >> - > >> - -reg: I2C address of the sensor, should be one from below based on t= he model: > >> - 0x13 > >> - 0x51 > >> - 0x60 > >> - > >> -Example: > >> - > >> -light-sensor@51 { > >> - compatible =3D "vishay,vcnl4200"; > >> - reg =3D <0x51>; > >> -}; > >> diff --git a/Documentation/devicetree/bindings/iio/light/vcnl4000.yaml= b/Documentation/devicetree/bindings/iio/light/vcnl4000.yaml > >> new file mode 100644 > >> index 000000000000..74d53cfbeb85 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/iio/light/vcnl4000.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/vcnl4000.yaml# =20 > Shouldn't the devicetree binding document be named with the manufacturer= =20 > part as well? Yup. Good spot. Told you I kept missing things ;) Jonathan >=20 > With regards, > Nishant >=20 > >> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >> + > >> +title: VISHAY VCNL4000 ambient light and proximity sensor > >> + > >> +maintainers: > >> + - Peter Meerwald > >> + > >> +description: | > >> + Ambient light sensing with proximity detection over an i2c > >> + interface. > >> + > >> +properties: > >> + compatible: > >> + enum: > >> + - vishay,vcnl4000 > >> + - vishay,vcnl4010 > >> + - vishay,vcnl4020 > >> + - vishay,vcnl4040 > >> + - vishay,vcnl4200 > >> + > >> + reg: > >> + maxItems: 1 > >> + > >> +required: > >> + - compatible > >> + - reg > >> + > >> +additionalProperties: false > >> + > >> +examples: > >> +- | > >> + i2c { > >> + #address-cells =3D <1>; > >> + #size-cells =3D <0>; > >> + > >> + light-sensor@51 { > >> + compatible =3D "vishay,vcnl4200"; > >> + reg =3D <0x51>; > >> + }; > >> + }; > >> +... =20 > > =20