From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3C8DCCA48E for ; Mon, 25 Jul 2022 10:41:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234711AbiGYKla (ORCPT ); Mon, 25 Jul 2022 06:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229694AbiGYKl2 (ORCPT ); Mon, 25 Jul 2022 06:41:28 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B67E17AA6; Mon, 25 Jul 2022 03:41:28 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2405:201:10:389d:42df:ae4c:c047:294c]) (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 E08446601AA6; Mon, 25 Jul 2022 11:41:23 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1658745687; bh=MbchJBdpADrjm2Rb7rQAgOTkDWjdLRDRmWdSibT0a9g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YhNr28A6inSVJu+6ontMNdDdsbIKlPyrx83K6WuWrcJIET/7mBVa5mZAJYkwhpoS5 txM549K40A3H6n7iBck2hHuZGrBDTzhoIaQkY08GpMawRfkj8HJ8oNMwJLjEydm0YN Qlq5b94uhJUUHyBmzYCswiGECkPEtu8+Oc2J+DBWDSwmOzYVkyCgCy2hVWwfrQvS1i nGpsbI89wC/TedYHubKoF2mztXSrvFpGXK7H9PE52uJ3wOcpeBavoC/wUCvktuENl8 Hgwigce5u/LZq7bt1ZK4UDjnR/Vlj17nERytc2RPEeM9EkezW2UmlQDGOtmiLesv1Y GdQp9ry0DX5EA== From: Shreeya Patel To: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, Zhigang.Shi@liteon.com, dmitry.osipenko@collabora.com Cc: krisman@collabora.com, andy.shevchenko@gmail.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, alvaro.soliverez@collabora.com, Shreeya Patel , Rob Herring Subject: [PATCH v10 1/2] dt-bindings: Document ltrf216a light sensor bindings Date: Mon, 25 Jul 2022 16:10:49 +0530 Message-Id: <20220725104050.491396-2-shreeya.patel@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220725104050.491396-1-shreeya.patel@collabora.com> References: <20220725104050.491396-1-shreeya.patel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add devicetree bindings for ltrf216a ambient light sensor. Reviewed-by: Rob Herring Signed-off-by: Shreeya Patel --- Changes in v10 - Add Rob Herring's Reviewed-by. 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