Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1016210iob; Thu, 12 May 2022 09:18:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4ht3OyhlR3erTZC8kAa7IvTMUZXnOLH/FNYUj6UJ1XiVykEe+YSggOCpuqlp6iP6pI3l9 X-Received: by 2002:a17:906:3fd1:b0:6ef:606f:e5c5 with SMTP id k17-20020a1709063fd100b006ef606fe5c5mr559309ejj.441.1652372287548; Thu, 12 May 2022 09:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652372287; cv=none; d=google.com; s=arc-20160816; b=jMCYtjMo5NTo9ix+tObTZb1hdlW/aOHlL8LJQQGgAXYWnxtk8dd9B9mzcrX1H7TRIr tnIX7fhBkC8kTsqFXp6mh3JmYe1uRagxfW6mqPTikFTZA0whOtcAK7UyAMbWr3FF6Usy ZhUTTbiBycwKwRCVHsNM/AdRMbMEczuzVpAKsjLJZUA/zhjy5TRBfOUMEQrSy2ui8DIb rA2UuFUifOkxFmkgZv+mCpxpM/AYt43l7HEDDpsHFbooQjlpHTuF4l9Xp2cpNG/Ee6Qf AVJiZQLbxWIFHIkEM8Etkc7Ueq1Wmo6AiipwH4vpUVIHC33wEYqmFdsXNF2poSs8sQ/w gjjg== 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=a5mVfLgw137XYgqlwBcdgA5UARSnCVCr9W9sY6W1yeg=; b=KMhO6W8SHRyRazGBHAT5tWAOwUumjzQnYoReUKLX/Foi6NBWXZZnk5SAioMm1Gpw7i Cq7NKoAaj3tyy7Dxzj5YThsVuWuOaf5UxIjT9mvvFXGtT2l24kmdA3eQ9oiFJgQxVc31 05RbxDFr/5NTOHSWss2qljfeMztkqs99BGuBkw5X9Sn03jvMJak4LKEq3Y93Or7a55TK fluRuE/gFJmYi6Zq9cRRhEDApuNlXGhgK9U6BNqnvsi+aA28nG3tOUO9p1Xui7ECp38U SALDvq7EYx22E+W6DYs5spoXiO++UKKTcJ6vL+vwPkNXXcQC+ke8smpLTpiXoxcCJ9XI bdYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Cz8pEFlC; 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 nd10-20020a170907628a00b006f47903d559si6767699ejc.953.2022.05.12.09.17.39; Thu, 12 May 2022 09:18:07 -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=Cz8pEFlC; 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 S241000AbiEKJol (ORCPT + 99 others); Wed, 11 May 2022 05:44:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233903AbiEKJmN (ORCPT ); Wed, 11 May 2022 05:42:13 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 000DFB7F0; Wed, 11 May 2022 02:41:24 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: shreeya) with ESMTPSA id 60F9E1F4411E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652262082; bh=efQV6wOQ/+4sLk2YyItzck+550O5spxUnUdwhl8aHLc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cz8pEFlCI2uILd21k+6Mc+/GVk3PUXTQ2f6u/3yc25pGdeCpU1XKJ2tMMbA0UBZuR F97jAu3ihGkCNx+ohIRsTEFB5WF514XVKu4rS3XEHslzQzDXjH/r8fg0gcHNde72eC c8LKgUbOZTEAt9ZNxMdOUI9I+rspx9bihUhsqeKRRUvKhF5CIzgTBinGhUXpkf01BY fgxBqABbd8i8iL8EAausTb65T5HmTTsJVS8xnZtzyQ/8Hedfgwl60hvlN+Gp9tBUxk 2R4kegYykdHI/q2f+zfBmqnh2Onymiwjlqf9winN4T0v0hDLGMS2KAZJ8AcqSw8vA0 IIDtZOMaeK+PA== From: Shreeya Patel To: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, Zhigang.Shi@liteon.com, 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 Subject: [PATCH v4 2/3] dt-bindings: Document ltrf216a light sensor bindings Date: Wed, 11 May 2022 15:10:23 +0530 Message-Id: <20220511094024.175994-3-shreeya.patel@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220511094024.175994-1-shreeya.patel@collabora.com> References: <20220511094024.175994-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,URIBL_BLOCKED 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 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