Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2410976ybb; Sun, 5 Apr 2020 06:55:55 -0700 (PDT) X-Google-Smtp-Source: APiQypK/VUK5TmLwYaqF4RQCvM26D0RBlhPxIdZTVz++TstPMl78gKNIR5ixSFW8wUf/l03yxcy9 X-Received: by 2002:a05:6830:3151:: with SMTP id c17mr14715862ots.310.1586094955236; Sun, 05 Apr 2020 06:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586094955; cv=none; d=google.com; s=arc-20160816; b=SDIufdxnAV8sJaFCCQ0mwsOlaVqPOZlm/VPrLnCKeFfzfcGOPZ2a+duLi4faIt5oQ/ zQm/aWVOz9JaYSabJfCIFz6Cqwt+BRr0rerTfqoUkgn6BTphiwjnvM6katTicJPDLbLP wRGfGmRxOtKhUCFOYU0vfL8u/vFDbVbQ86H66yQoZPHErP9SUU8vX5iqyXNk7Hw0jhsN wIMjiPCa5BRjn8DUh7jnrzYuGNGNut8Cau2GKXwWV95ZXzQR/noVf6ZV+d76rCvpqE0J dm7Yx/35h08Un74GfnzTYjqRPe5OEO58su130LXCIWJrHxpLNbyZxQ8CV/gYGIcmVED3 zpuA== 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:to:from; bh=4lCwNqwd81NBkTO4OdGG+DnlYg75KV6fnI/876npaVU=; b=a2eMNM0bBUGzgthETwlQWDdOnuh179YZeoNVUzDJSS3qjkLM7FUzaHrEQ58TD4mSsR s2A5JBc0fccx5x484Dh9QD+z+7om4E3MOchvToJiEYJc2uBi4ElbgJvwxWp92m9cjBYt 7NjooCp4Qzoajf7KGMtydNnu6/IEmg84RwCvSKdOeWk8E1clh5eXhoaNiPar4xLprd0e 51N7p8/bE2Q6GOrL32EV7JJOa/puamZQVIhNyEtxsglH0Qa5Z1KTpljs66mBKdyEr4U4 TrWVSr6HRGP8iSCgNoiYR7jBC67qd/P8ln1iHRFiefC3RwQdK9bjkOGtHhUjirRGCpHK rFgg== ARC-Authentication-Results: i=1; mx.google.com; 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 w1si7007275otl.238.2020.04.05.06.55.42; Sun, 05 Apr 2020 06:55:55 -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; 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 S1727368AbgDENuo (ORCPT + 99 others); Sun, 5 Apr 2020 09:50:44 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:44838 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727199AbgDENun (ORCPT ); Sun, 5 Apr 2020 09:50:43 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 7CA19FB04; Sun, 5 Apr 2020 15:50:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Sg_tHY6aIAbQ; Sun, 5 Apr 2020 15:50:37 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id EF26C414C6; Sun, 5 Apr 2020 15:50:32 +0200 (CEST) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Tomas Novotny , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , "Angus Ainslie (Purism)" , =?UTF-8?q?Guido=20G=C3=BCnther?= , Marco Felsch , Thomas Gleixner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Andy Shevchenko , Nishant Malpani Subject: [PATCH v4 1/5] dt-bindings: iio: vcnl4000: convert bindings to YAML format Date: Sun, 5 Apr 2020 15:50:28 +0200 Message-Id: X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 vcnl4000 device tree bindings to the new YAML format. Signed-off-by: Guido Günther Reviewed-by: Rob Herring --- .../bindings/iio/light/vcnl4000.txt | 24 ---------- .../bindings/iio/light/vishay,vcnl4000.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/light/vcnl4000.txt create mode 100644 Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.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 the model: - 0x13 - 0x51 - 0x60 - -Example: - -light-sensor@51 { - compatible = "vishay,vcnl4200"; - reg = <0x51>; -}; diff --git a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml new file mode 100644 index 000000000000..21ef2eb7a205 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/vishay,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/vishay,vcnl4000.yaml# +$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 = <1>; + #size-cells = <0>; + + light-sensor@51 { + compatible = "vishay,vcnl4200"; + reg = <0x51>; + }; + }; +... -- 2.23.0