Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3227780imw; Mon, 11 Jul 2022 04:45:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sAGPricP4K9zrIw86/4KA5PZrrlFRRgMAg6Ow3yLV+Iv2+ruIh2U8bzt+ku/MRnr3LZ2fP X-Received: by 2002:a17:902:934c:b0:167:80c6:aedd with SMTP id g12-20020a170902934c00b0016780c6aeddmr18537075plp.97.1657539937800; Mon, 11 Jul 2022 04:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657539937; cv=none; d=google.com; s=arc-20160816; b=AQGKop33sa+vzRkV2aEbcJ3HalNRkMB757oj8kVIna9PxDPQUDwA5VWJsHBAiE/ZqM 4uqzgYhfets+9oJU++zIcwbleLWDzOFsEWL3GzcCGZZGGSlaUF08DMSconn1QvyK+Xt9 M2K1keLghMNFKGiJ1j6ntI9EL8Oyjl33xyQlX1HFgfeiZaEH4iuxNA8NbGCHUrpHANyW yJxLCVwIeJy/7eYLp8USSosPhDqFpqQnB+gcQfzkLrLnjWZAZc7hBL0MakxBSWZ3SIcN JAhFRVrK64Vfz6FKbLy7yLg/VgvrrMRXraHP6UTFPoDh14Cso4GMIhCBE6RDIjRrPTaO DY9g== 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=a7Vf5uHy1klIatEhF6SYV4da1GMjpVHcTpFOMngM+PcuMB7l2GdlOHoM6Q8JP6+4EZ QzPSqnn1+XAlg0fqIMEwTbbmBoX3yzCQ2Of2mEQ3nHY8pm9DTsSZfHWSfnOJoRGzK64B wU0Fu+jZ+zC3/0Y12j5L3XvNmwy4HZfhPXV8LEjEYwckx7FE7cSFj/aE+9yi+JbL7+Fx 1quFFR6pmInYmLantC3d1L3dWWBERclrwEUm+10bFLP/h840qjh/Pn8Yrdx3v8ZEVHj3 k7PQzrAYyLTRqxnhC9LTGKjJynvCLs9IqW/1Q66TqGmkFtzgxi6nsoc9iM3UGLj8WO7a xWNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iUHMje1I; 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 196-20020a6218cd000000b00528c09bb548si8295416pfy.167.2022.07.11.04.45.24; Mon, 11 Jul 2022 04:45:37 -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=iUHMje1I; 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 S231197AbiGKLl7 (ORCPT + 99 others); Mon, 11 Jul 2022 07:41:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbiGKLlc (ORCPT ); Mon, 11 Jul 2022 07:41:32 -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 ECBDB4D809; Mon, 11 Jul 2022 04:30:10 -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 F2F3F66019F9; Mon, 11 Jul 2022 12:29:58 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1657539009; bh=shAU8e2R4WyLaEoC6EL3iDMxLiC1YqU5jesFwjQfPDk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iUHMje1IShgzfshHxno4YYDslPAmZKiYMkutsKlGU38xbrwQFZ21xEDzjY08gPjlF QOg41NEuzqbt7FVOhz6vBhpdm/LPofvHc2wpgGbLs/+jL2YVxnFZsUZOxbdiAZ1mBZ RwbvnVrYuF+Nj1mwh8rAjwmreN64eT+FPyaw3ZG9HrOklOulPdPbv6v93V6KUMFg9v 7u2hOpvoQeoz7Pds7Y45XbWFL45nzjgN2IsUnQOAXKlZnLicfUsiTMi9w2w3gfls2Q 2FBZ2A9mQC81AmUbrgEHZb0ToGIeQXFknV6mSHowr5xXKEpswUB/cvXj260QVbl06D UrHDQQLj/VKJQ== From: Shreeya Patel To: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, 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, dmitry.osipenko@collabora.com, andy.shevchenko@gmail.com, Shreeya Patel Subject: [PATCH v7 1/2] dt-bindings: Document ltrf216a light sensor bindings Date: Mon, 11 Jul 2022 16:58:59 +0530 Message-Id: <20220711112900.61363-2-shreeya.patel@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220711112900.61363-1-shreeya.patel@collabora.com> References: <20220711112900.61363-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, T_SCC_BODY_TEXT_LINE 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