From patchwork Sat Oct 31 18:48:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320142 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2451599ilc; Sat, 31 Oct 2020 11:51:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0ETZizKJOEeFFFnGne4BF99T8CmbUZfHzq8zZ/1B1yMr1dfZwEFhuzIG/ZiYqYHd9BfGE X-Received: by 2002:a17:907:c23:: with SMTP id ga35mr8027367ejc.36.1604170319805; Sat, 31 Oct 2020 11:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604170319; cv=none; d=google.com; s=arc-20160816; b=yJG23xtDKUL1hZ1hxZTH2aI+JG1UmryxL2XBO2mo7WTNjRmz3K5M33oSIdTLJzakh2 RR2Q5o9kFwR4zq4mZgd1ykRM8CJSeImOcuXULBAHpUeaaySj8o7M8mu3G23Br66Agz2R CkH4BlymmN/UQ0pNR2+wS5pXL25bzUpaTAi3zp0horJDqmeZ390gDihXfi2d9z5ra5DC egxwxwG3qKsLpjWNIhP4lpEh8XH+HGW8g0FSrgtPFLno+o8shXBBbLW+A/oitJqjpqE1 LB7mvEYmQBqtpaFsOUNpJkF7+sFnbylcDP8R2juo2ExCxME2MdSmTNXjAjh7rFzZpNGJ 1q4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aDUY093FGrn+a83TgPZjxk/O8fneaWzR46ziW3cyw0U=; b=C6ayHtFjfcAgFGn2rDD02sqrd21Hp5RlL6H/+XIOFJC+P6xlPM5W10w/xTVN3oqj+c WAyn9YfW1R0dCvz49PaBnt1wys7Mu6nn+DtqVuvnba7rIflMnjUlsi+1tZ49cgB3k1iN fjvhqIc5Ch91Pf4aS2eJWl5Aynp9gb8CYy85twYt+UDwqSNQSt3r6HixtVpsmL+lEKo4 tVay1LQ4CKe818MDivdCzrmYBgxMz4E42iSYNhOniCkwa4VJnTa0hm6E4YtAU3GqYIdT U4Ul00QPsRAjNxuoKkUW9j8F2dK2qRVG8+QjuJAX2QWjH6RXTqoU3+S7DPjCgWLzMem+ GbUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P7j4qujy; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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. [23.128.96.18]) by mx.google.com with ESMTP id f2si7081562ejc.542.2020.10.31.11.51.59; Sat, 31 Oct 2020 11:51:59 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P7j4qujy; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728439AbgJaSv6 (ORCPT + 6 others); Sat, 31 Oct 2020 14:51:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:35216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbgJaSv6 (ORCPT ); Sat, 31 Oct 2020 14:51:58 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (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 0A41220720; Sat, 31 Oct 2020 18:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170318; bh=8szzC/jL0BENPAx1vuAE9Kiv9H7uUJBWVNZ6zb2rL1k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P7j4qujyuVml6scetbqEBb4QF2xgNJX3SxBpXtQ28v5NdGvql6GBY+Qwdpujz/leM tdeGMv7Dj3TCZ44P8pzF2Wc7qZ1/SU8jHWgg7xAHQKnAtFovIoxSe/a3llbnDmVF7D Ta0uiwTg+xgcKjQIKMJaMVlYs86QeCNvWKs/VtTU= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Parthiban Nallathambi Subject: [PATCH 21/46] dt-bindings:iio:light:vishay, vcnl4035: txt to yaml conversion Date: Sat, 31 Oct 2020 18:48:29 +0000 Message-Id: <20201031184854.745828-22-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031184854.745828-1-jic23@kernel.org> References: <20201031184854.745828-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Only significant change in here was dropping the statement that the i2c address should be 60. The datasheet suggests there are variants available with several different addresses. Signed-off-by: Jonathan Cameron Cc: Parthiban Nallathambi --- .../bindings/iio/light/vcnl4035.txt | 18 -------- .../bindings/iio/light/vishay,vcnl4035.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 18 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/light/vcnl4035.txt b/Documentation/devicetree/bindings/iio/light/vcnl4035.txt deleted file mode 100644 index c07c7f052556..000000000000 --- a/Documentation/devicetree/bindings/iio/light/vcnl4035.txt +++ /dev/null @@ -1,18 +0,0 @@ -VISHAY VCNL4035 - Ambient Light and proximity sensor - -Link to datasheet: https://www.vishay.com/docs/84251/vcnl4035x01.pdf - -Required properties: - - -compatible: should be "vishay,vcnl4035" - -reg: I2C address of the sensor, should be 0x60 - -interrupts: interrupt mapping for GPIO IRQ (level active low) - -Example: - -light-sensor@60 { - compatible = "vishay,vcnl4035"; - reg = <0x60>; - interrupt-parent = <&gpio4>; - interrupts = <11 IRQ_TYPE_LEVEL_LOW>; -}; diff --git a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4035.yaml b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4035.yaml new file mode 100644 index 000000000000..e41c25817dd8 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4035.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,vcnl4035.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: VISHAY VCNL4035 ambient Light and proximity sensor + +maintainers: + - Parthiban Nallathambi + +description: | + Datasheet at https://www.vishay.com/docs/84251/vcnl4035x01.pdf + +properties: + compatible: + const: vishay,vcnl4035 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@60 { + compatible = "vishay,vcnl4035"; + reg = <0x60>; + interrupt-parent = <&gpio4>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + }; + }; +...