Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp348017imw; Thu, 14 Jul 2022 02:26:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tcEGHoGhxuolIje3aAe+Ut3sBAv3MdcuJ/OnRsHVBByc92poPIYrMi5ko3SluGaNQp19ZF X-Received: by 2002:a17:906:f51:b0:6fe:cf1c:cdbf with SMTP id h17-20020a1709060f5100b006fecf1ccdbfmr7578064ejj.695.1657790765100; Thu, 14 Jul 2022 02:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657790765; cv=none; d=google.com; s=arc-20160816; b=G/H47nBZkdfs/u4I16ED/5A6K0Mp9aMUbAjx0uDpXbC8KVPsYkR9pqzrUw8Zv8HoZn LRKTePrHUsPWmM/IznReNXZHmRfuuCsk1KQGlBtq9mkgwtlfOak7/3ugcrykD4z5sIKj ipxChIoPO2lmG8JBUtx1W1WZzFuDBZhKmA7e8jYtzL7smfvibk+8ocumGi0Z3Mdcl0Y+ rT8pOFOouuCAs30u9OiB9h5JnLsmYif5+Udi2+nmDcIdgJ14mgcwCEMUHaFGdvbNnoe0 MDEZx5fnYD/CwWyoBnq+VyFzaP5m2HGFg5yfx9i7SY2bvceuwWhaMkxulEZ4mu4OVdnl 5SEg== 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=f/TVVoNOj/NdYRdrK+I6jsMHrthc5VL4w9hasr0JmjM=; b=BYxPauQNuqGz/WwcXeh4vZvNgoCTFJ5uZeqKtRtJPsQ5SAxdCzHZvZBZ9prEPUI4z6 BDUG8iXjTNuHugqYRknwHYrGGUlQWwpn+fvS/WvejdAkYsFPx4yLlKVtCrFZSIN1lKjT zJdhEQehXUB4/U94l/d7ja1ZfH8iHj6ogZVF8Hfg/ysGV+8d7t+5GggqPWlOU4/SLsgv HrBDjRFzdpk5ImtsWAd49Mh6oKE95xQ0nE5xWfX6jB17+/OHFYaxufFeS1LeV2beFYTB o3qZm2Hy+fJ/9SdN+oEyIGC9HuPuRYtFgG7NuqnZPeoXvAUb0otNQxghr2ZMnRSPbeQN vdzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=e3nEIFNR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g19-20020a1709065d1300b0072dec358d16si1551834ejt.524.2022.07.14.02.25.39; Thu, 14 Jul 2022 02:26:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=e3nEIFNR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237794AbiGNJOe (ORCPT + 99 others); Thu, 14 Jul 2022 05:14:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237898AbiGNJOJ (ORCPT ); Thu, 14 Jul 2022 05:14:09 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B112413E20; Thu, 14 Jul 2022 02:13:58 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2405:201:10:3153:7fbd:8a7b:29b6:89fb]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: shreeya) by madras.collabora.co.uk (Postfix) with ESMTPSA id 09B996601A34; Thu, 14 Jul 2022 10:13:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1657790036; bh=LCp2np4oUNr3udCtCqa3Cgr4gEdFfLoRcjf1mCnppwE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e3nEIFNRJYqjXffSsU03ikRg8Puzoku7oex9P7Vnr/iet86qMKGl+OXvlNGZlvzXQ RE7XW7l2KXeiJgCfovrXnxhn2gA8bhmzb7eTD4fEWZLaBxPxzySy3CpfKfxy5XTHTG vPHBEynjJguF2QCMIEORvRVcP2yKjTCCzjiOTT2PIIv1zvACXwNPpP8PqnCX7dWa69 lVRl7muX0yuAMRnB1zKp1npZXfgg5eB8OSO+K62+K4qPJMkMGSWDk6XIPDV59J+HvW jgHL51H4afWWUvQs9FdMkoIWOtX7jbPrlIh8US76krYrm1QLz+XFBHdy6Dl32LVJAZ MqRSVQB3MSJVQ== From: Shreeya Patel To: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, dmitry.osipenko@collabora.com, Zhigang.Shi@liteon.com Cc: krisman@collabora.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, alvaro.soliverez@collabora.com, andy.shevchenko@gmail.com, Shreeya Patel Subject: [PATCH v8 1/2] dt-bindings: Document ltrf216a light sensor bindings Date: Thu, 14 Jul 2022 14:43:11 +0530 Message-Id: <20220714091312.838152-2-shreeya.patel@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220714091312.838152-1-shreeya.patel@collabora.com> References: <20220714091312.838152-1-shreeya.patel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree bindings for ltrf216a ambient light sensor. Signed-off-by: Shreeya Patel --- Changes in v7 - Fix the error reported by kernel test robot. Changes in v5 - Remove deprecated string 'ltr' from the bindings. Changes in v3 - Fix indentation in the example section Changes in v2 - Take over the maintainership for the bindings - Add interrupt and power supply property in DT bindings .../bindings/iio/light/liteon,ltrf216a.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/liteon,ltrf216a.yaml diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltrf216a.yaml b/Documentation/devicetree/bindings/iio/light/liteon,ltrf216a.yaml new file mode 100644 index 000000000000..7de1b0e721ca --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltrf216a.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/liteon,ltrf216a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LTRF216A Ambient Light Sensor + +maintainers: + - Shreeya Patel + +description: + Ambient light sensing with an i2c interface. + +properties: + compatible: + const: liteon,ltrf216a + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdd-supply: + description: Regulator that provides power to the sensor. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@53 { + compatible = "liteon,ltrf216a"; + reg = <0x53>; + vdd-supply = <&vdd_regulator>; + interrupt-parent = <&gpio0>; + interrupts = <5 IRQ_TYPE_LEVEL_LOW>; + }; + }; -- 2.30.2