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 0E919C433FE for ; Tue, 3 May 2022 14:45:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237259AbiECOtI (ORCPT ); Tue, 3 May 2022 10:49:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233888AbiECOsi (ORCPT ); Tue, 3 May 2022 10:48:38 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70B8B39145; Tue, 3 May 2022 07:45:05 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: shreeya) with ESMTPSA id 0F2731F44139 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651589104; bh=/I6H16hNm7gAwn16uNo8eZZIr/zboi499kJmx5/AwaY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A7p49alo4NdNI69oba+CLXyPIxJ9Qd+YH+Pc2VXdCWsTu2haLmoCeniyXwGn1s4fu 4yKuRds7WX5SNROuuUXvGoxMgU2QMkiyEFXrHvNrFmgMpmbgkqBm0eugmP3/g8SPgU PVjFg2KeUyGTKxHwVYQGhsDfmfh8lSRUSvSMF+uEXFdPxSiljj977s7LooJafelYsB 0ExY00/Uf4pfAHd0YsbTbw9UoatAvinHOJHPnN9YZoGLzX3RJIMaHoE6S1kyp/h2wG AQ4rbbhzyy3cgtF9sbgmVze+lh5nnqzhCuBqJ6gwQ1SzLaETJ5Q0qcE33FZuHaUkvZ ocKoAqkwuog6Q== From: Shreeya Patel To: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, Zhigang.Shi@liteon.com, krzk@kernel.org, krisman@collabora.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, alvaro.soliverez@collabora.com, Shreeya Patel , Krzysztof Kozlowski Subject: [PATCH v3 2/3] dt-bindings: Document ltrf216a light sensor bindings Date: Tue, 3 May 2022 20:13:53 +0530 Message-Id: <20220503144354.75438-3-shreeya.patel@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220503144354.75438-1-shreeya.patel@collabora.com> References: <20220503144354.75438-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: Krzysztof Kozlowski Signed-off-by: Shreeya Patel --- 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 | 51 +++++++++++++++++++ 1 file changed, 51 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..1389639cd7fd --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltrf216a.yaml @@ -0,0 +1,51 @@ +# 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: + oneOf: + - const: liteon,ltrf216a + - const: ltr,ltrf216a + deprecated: true + 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