Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp352632imw; Fri, 15 Jul 2022 04:44:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vIxBAMREdKdd0xWRsP2sw3rj2uhuk3hE23O/nwaIO0iMnrq0l2lhhqsgln9gnQRNm+dIfR X-Received: by 2002:a65:6944:0:b0:408:aa65:9464 with SMTP id w4-20020a656944000000b00408aa659464mr11621361pgq.160.1657885452528; Fri, 15 Jul 2022 04:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657885452; cv=none; d=google.com; s=arc-20160816; b=W3rZUicRFpHJGB59FO5GMkR5opNmrsey6/N34DfzgE6kJnQ/vUm12fgc3m6SD6We4U vBiN7eOzuGcMdoFjSy4AH7VM6SAoUJR47DG01YnXvUBzSWa5eLBLsE6nZt87OK/lVgqg JLfDKBh/S6yfhtQWmhN+lyxGtMXpZCpg23cs2xfmPLfmSy8kTeaVOr1WKYlddNTMubGq Zf95Z+37W3+Atkf9koQeIJONZW4ywFmvJFBXbBhgMw6kGkIvuq3JX0bWq4tSjneX1vCc VVFrFfxLV4w0t0NwrM047g8YX3tHynFSDmDIjVRNXwtIHTsYgAVdOLR2ZNJjI/CFz1Iq fFVQ== 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=LIKUW9csZN/HYqj6189DKm0v/YL7tCZnI8rv11leoN8=; b=GMrCq0Rygz9l3fgOVDNstfOK0lCPm+vxHKb+ygcOM9JCuZPLu5eZ9uxIelPhys2UvY GXNiS9zwC4M2WNOxSXxZBU5ZPxWvOhx5f8tA2PzGqFDdJULz9Hx4ZElrK6qJBenGvqKD SnPzpxGmIUFYNEJwfZcBPJ6zxdNa4kyNOWZoo3PBRI7tOexO2XV1JJrEbmJNbGWiU+HV yY+Ze80RiUUg0uoM26kKEMrEKKQCEj/P4Zx5xWBY8yIgs/Lsp5dO6P8s1M5ZutYNouUP vzla13YjPEd/yRmKVETIkNWAJOX9I932CPcUYD5S8aKl5RmOOwoNx7CvmPW3a/Qb6Lrc Ghkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lgAbBGu+; 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 f19-20020a635553000000b0040c99b681a2si5228251pgm.31.2022.07.15.04.43.56; Fri, 15 Jul 2022 04:44:12 -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=lgAbBGu+; 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 S232645AbiGOLRV (ORCPT + 99 others); Fri, 15 Jul 2022 07:17:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbiGOLRT (ORCPT ); Fri, 15 Jul 2022 07:17:19 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07E5B8736E; Fri, 15 Jul 2022 04:17:18 -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 110A76601A54; Fri, 15 Jul 2022 12:17:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1657883837; bh=shAU8e2R4WyLaEoC6EL3iDMxLiC1YqU5jesFwjQfPDk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lgAbBGu+aw0/WoT0FpNTxYZm9DeEdtzgpmfMcB1Lp5ts03MVbF3cabpRoG5tyXaIY MUcEA6NzQGWjxB5lo70Qss9YmlOXq2CNxEUQf6w3YaoHm7mh3mDr5LtLtOclN7jEjf CukNNpI75vLRS6LhmHwUWrub/9tU9cwWf23MmuQvs7tbSRGcL3SHGM1YWPP2r5ByjP Lga6P6Fqs6nFWUMXai9M+c1LS/pVN7pEk9VfkkYmLpy/g22//9x1Ynpy7S1daJjMCH IfObxlPWm7MAo3M8SSct8VCq/hYW2titTjxVvBm7a1XzE0xsmgW2CpbJ5ahcaQRXKi iuNK/HsPQOZlg== 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 v9 1/2] dt-bindings: Document ltrf216a light sensor bindings Date: Fri, 15 Jul 2022 16:46:25 +0530 Message-Id: <20220715111626.1066513-2-shreeya.patel@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220715111626.1066513-1-shreeya.patel@collabora.com> References: <20220715111626.1066513-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 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