Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp883539pxb; Fri, 22 Apr 2022 13:22:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOtv12ppHC5zkG2wP7w7rrXFKy9KKkqe8GH3ve4Knn/iIzcjUwBZmuTuUu3FjGLFTm/TVP X-Received: by 2002:a05:6a00:1385:b0:50a:9768:9eca with SMTP id t5-20020a056a00138500b0050a97689ecamr6508056pfg.43.1650658972038; Fri, 22 Apr 2022 13:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650658972; cv=none; d=google.com; s=arc-20160816; b=H32zNZmQhwQE8N+ifqw2PBzknEhUTaBK0qEhH2V0r1XNNrXQutp0nONcS8PrfTsGmo mBfuZWMseLBJebcJRfYCM5aJOK6yLBEOagbno4x57WTcV1zLh2MbLiEn1wyJJMVRKcXE ZaqYvL8oRok0Ze+Clp1VL/j/yxrG4HAIajzkOPjKicvS5MORQy7PZACCyvh2wZksJMr3 0quPY6Pf83sX73/pumVsyelokaH4MmhuyduEKLr7R2v03bXfl8wBazJHvvv/toPnBIsd jdX5Q2HInHsrCjdEWAP7E0F/6SPwGvR7gzyY645SSa93MrTte9kXUdqhukN/QsK4TpWB wu2Q== 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=uv33n8hD0JOLqJJFQQDjza3+oRRK5CmFDeo6trCwNVA=; b=HDqiOk+HD0N9+NDbulRBhM5BvTCnqIXdUnXvb2X63a9EB4+z3NOkOmu4s528gOTRDa WyJgzEygshdonSt3FJyfx0lLIXfOGUFrwC2m85V03LEZIxiZsfyzzY94fRRHIpJzAGMe IDpte13ZE4xVy5HgdQu1LoWWKoik5O+Enm6Z786S+PcrFcrakctxsdAAhvouiQaRYOP6 LmHZZWmgPQPG54ORZEvsEccDamm1B1b+f4QxRfqzo0ONd8KWV/d42pQUvYOpEB8jY9vf uC2WoTkJKR0KbHlX3pu/RhHIp2ECoUsvtdP1hlgnySz3lXqxmfIdrwPxrf5Ju6rNwSMY jRLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=E9dM1kX+; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id a6-20020a170902900600b00158e3eb8f5bsi8912749plp.73.2022.04.22.13.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:22:52 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=E9dM1kX+; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 BFAB2260A93; Fri, 22 Apr 2022 12:09:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387950AbiDUOGX (ORCPT + 99 others); Thu, 21 Apr 2022 10:06:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387094AbiDUOGN (ORCPT ); Thu, 21 Apr 2022 10:06:13 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A08D63B54C; Thu, 21 Apr 2022 07:03:05 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: shreeya) with ESMTPSA id CC8D81F45A49 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1650549776; bh=KobM/YFW6qteihzgQdGfGwxjmqXEnE6MKH2uFqLZGwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E9dM1kX+AH8Lm+1VoU/JwvMvyv/43aRbTsEa3rmcMoMbNLkHpsFR/GHzto4acWYOF c4uB4iqq4KaF+u/uN68AkwSUvs1lY8OpV/go3rfkNP87vuJsdJeVFbRJ7YSlApMc2M 9u3Zv94nLhAr2HgLUJfzFnk3XfiJhOBc9xkItX5yYObE5LmKMki4q/CT9+1bymk0YP eY89JuYMIagA6do3njYZR3seXw7KO3LwsTw6stndZJw50iupK5GvGenZ2DHryYsmyw f7DLCm6oXp5gfxQk1D+66wTmZsEpnmvKGwHOqrGzzD2uV/oJu4VBRtxN6/l/5gFGHH X0r+o8EbaRNng== 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 Subject: [PATCH v2 2/3] dt-bindings: Document ltrf216a light sensor bindings Date: Thu, 21 Apr 2022 19:31:32 +0530 Message-Id: <20220421140133.354498-3-shreeya.patel@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220421140133.354498-1-shreeya.patel@collabora.com> References: <20220421140133.354498-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,UNPARSEABLE_RELAY 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 v2 - Take over the maintainership for the bindings - Add interrupt and power supply property in DT bindings .../bindings/iio/light/liteon,ltrf216a.yaml | 52 +++++++++++++++++++ 1 file changed, 52 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..61008bcc6b88 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltrf216a.yaml @@ -0,0 +1,52 @@ +# 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