Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2438838iof; Wed, 8 Jun 2022 05:07:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtQFS1/AK7Y3SMbpvk7X3EZt+QQMKBXERMjydPgZuz0d1O3+uJawNC6QnZSUprqyA84SDq X-Received: by 2002:a65:6e05:0:b0:3da:eb74:ef9c with SMTP id bd5-20020a656e05000000b003daeb74ef9cmr30318037pgb.563.1654690045168; Wed, 08 Jun 2022 05:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654690045; cv=none; d=google.com; s=arc-20160816; b=IuS0YiZ4ZtURTsiglB0Hwwjlmnj6XlRS7ZarH3WxOnyclOR/YQvN7632Cf25ZYJYDL YWTwPnDyc+T7pnBXQQAUDGQ/lICYSg3kl7GMx8F5kS7Ysd9g+YYhX2E2EQ4cJIgAXBj0 0gUG2UcF9r96c1l1X2eXAl2UtuY/suxuZJu2pToJifatB8B5yW4nfZXE8Oq281zPV/Yn FC5mtX+/xPSA0EFceCCpryI4M3ziGaivW+fxdGeWGV7NT69OASOPJta+/40Uv7M2kfny mB5WJf7ftxfwqdzOygHFx63tlBaZkOARl4J+Q9IbsqkW1kDon8BI+0X/ok9vesnYCqOz fPbA== 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=9gKJno3nHO3Aabsw1WFq9QOrePDhkNmh6fU1q9StmHM=; b=PMcGH70/xVf3hymXGw+YVnoZUG4hCJvQo8D2RPRjJLn8R8WGVskKQzn0XOrYeEegFq GQetejoZBIAgOThreS0wSYHdt1PUn+zOy5rejqtzNt/oCMw8BxoiPBrbruLbfifyiY9Z 5ztoFopbKp17WfjiwphXlm3Oqgjc8BUUByjsawJnTAG+1iJJYTEwlYRZ+vCGEVhALrPJ Eroty9ufeUJWuOI9yvbeHfM+cAbLKzcLzvoncoXh+myhJjBXlo3/MCTw82k8ds2nXPtk /Xs0MRg8q06skKUCtunrlWHie5htfrHBPq8mLk9RZoWv6gHBeiLvUgJO1DfEmZ0SrI3h 1zLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aierp09t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h6-20020a63e146000000b003c5e4be54bbsi27005631pgk.240.2022.06.08.05.07.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 05:07:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aierp09t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 078151D64C8; Wed, 8 Jun 2022 04:37:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238266AbiFHLhX (ORCPT + 99 others); Wed, 8 Jun 2022 07:37:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238102AbiFHLhT (ORCPT ); Wed, 8 Jun 2022 07:37:19 -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 EBC601248C6; Wed, 8 Jun 2022 04:37:18 -0700 (PDT) Received: from localhost.localdomain (unknown [103.15.253.108]) (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 8030C66017E6; Wed, 8 Jun 2022 12:37:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1654688237; bh=QUTXABH3CkTe9Tc4dfSRbwc2hLqrKcMp56oypcCi9Ec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aierp09t2zSR4EmepAz+mbciCTaE7nNoSQQvNC32LiwumeyhiBbP8ZLJYKD6BiiQL YJHKM/L2Q2rDqbIOyXEQI/pjFbhuTb93ndHo8ALE4emTcM55dCLICbeh4u7oJ3HrMZ I+n3hEEMV6x+V7iAroGCFYGDzs/m1bbrQiyXVA8ewdom0TJiEH69Y9IIBBoL2qrg33 d/pWbteC9Olim6mvcmKIf/BOEXuYF94bAZPwJ8zCuuUzzxQ+cCVbRwY3uT2DqVZQUm nOjJxZ/C+M8caUycAu21pOHUhsGH+TX0TnAnpeLIZnP/C6aSZ4BV4IwOkebKhisyXY 3AoL5ivupPShw== 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, andy.shevchenko@gmail.com, digetx@gmail.com, Shreeya Patel Subject: [PATCH v5 1/2] dt-bindings: Document ltrf216a light sensor bindings Date: Wed, 8 Jun 2022 17:05:52 +0530 Message-Id: <20220608113553.32083-2-shreeya.patel@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220608113553.32083-1-shreeya.patel@collabora.com> References: <20220608113553.32083-1-shreeya.patel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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 | 50 +++++++++++++++++++ 1 file changed, 50 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..f256ff2e744c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltrf216a.yaml @@ -0,0 +1,50 @@ +# 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