Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp325375iob; Tue, 3 May 2022 18:49:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuyasrAGsXY8/SztEhm0zHwORvKt1eCOVZvLtzaEj3qyUtytA5xqE/cYH7Y1nMs4zKdgPU X-Received: by 2002:a17:906:cf84:b0:6f3:a3d8:365f with SMTP id um4-20020a170906cf8400b006f3a3d8365fmr18249359ejb.242.1651628997818; Tue, 03 May 2022 18:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651628997; cv=none; d=google.com; s=arc-20160816; b=SaooHI0AbLjm4kUnOKQyIIv5Cpbu5G+5StBWzO3l6SlLOcFwqhbNgdtRJdUt7IqBeG r4UipV54zgdnxjjeWb6Y5+zNdwL1g+rwBQ3sJM9qQUnMMUDl84rOCL1NzBS2TGkCGwEj fuFmpfbYMI465Y7ebmqy00928ERDyRyy2xyDjBKya0bkFlS68qKhb+yOiMrEW9KpEYPc bLkkFY1iczO/A3oHHXzCcieBjDSpFmO0oBMmMeY+znpJaXhTKd5+npErLA0mQ4XWElP7 J34PkCXbLP9juGxT2Snni5esXf6+U1Hg8/gyeqMEb8/jS8s4eXvcq8NTQv36y1lYtj+I m4HA== 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=FdoCMoBqoQmrKdu5ahIERWFspK7UcLdlzl1lu5/CMQ8=; b=ooZIK5mUlDR9BLyRfbEkHlnkbxD9Q/czts3ONgR35cHCIxb1vhTSC+Bjv9/OBfoElL t0Zlv8IOlxon/g6A027cusr5bCQix6sMQicQgMBxLSmEI1hoy44M3fyI7rsu7VLp83YL v4B3YfCaRp1VIRSQDTeEnPin/3ZLbAkQWCR8FCokofdOB+zPv4bnmAP5jtswwsTATfge tqaDRZWzw1QXxHeRIzaoyAsxlLhEyfh4jjXL3qZpwJ/L4Jvmr6OeoGpKqvs+cZdhAcv2 ej92mgKJGSL52XpVQJ5UfvtStl4j4sjNU5YL/Zl1JQTL75NST6b/X0TSBO9IZCMRdUsG dt4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=A7p49alo; 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-20020a170906199300b006dfc3945326si15371727ejd.152.2022.05.03.18.49.35; Tue, 03 May 2022 18:49:57 -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=A7p49alo; 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 S237326AbiECOtJ (ORCPT + 99 others); Tue, 3 May 2022 10:49:09 -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 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_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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. 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