From patchwork Tue Apr 4 09:07:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Windfeldt-Prytz X-Patchwork-Id: 13199347 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDC0AC761AF for ; Tue, 4 Apr 2023 09:08:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234296AbjDDJIY (ORCPT ); Tue, 4 Apr 2023 05:08:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234299AbjDDJIJ (ORCPT ); Tue, 4 Apr 2023 05:08:09 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9FD610FE; Tue, 4 Apr 2023 02:07:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1680599275; x=1712135275; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=fNrxb0gre3K1/rCpJnrO6aVwVZ4lDyijajG5g1A/1Ao=; b=QtrIrDzawQcSqZhbeqj94cJa+/Bp+tb45QSnvUzXLd4vVVtbOYkW5LzL c4munYKvoGqwtWEJdJJRXDXVQlmPGFQg2O1sf08YkuodrwS0aDgRXjJJx h1kP2Za+YfmXmxVIVDBIIhWyFh4E/OVXz85hlPY9zGQp10LqTELy3m12Y EBxtJiZmV3x1wqYyM4gyiA83CJp1NecmnU+wJHBeQHX/Pig0tJfl3Ve/z /gif9mHaO+iEAuw7xFzgw6a0xiSumiXGNM6378hK4SRuYwL30fVlOhk4F 3PGg5O1/VxwatBenpE0Pt0ssuDBjKkIOhwrm78g5nN2hMo0Tt+xTQ7bhB w==; From: Stefan Windfeldt-Prytz Date: Tue, 4 Apr 2023 11:07:42 +0200 Subject: [PATCH 1/2] dt-bindings: Document TI OPT4001 light sensor bindings MIME-Version: 1.0 Message-ID: <20230323-add-opt4001-driver-v1-1-1451dcc1bc8a@axis.com> References: <20230323-add-opt4001-driver-v1-0-1451dcc1bc8a@axis.com> In-Reply-To: <20230323-add-opt4001-driver-v1-0-1451dcc1bc8a@axis.com> To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski CC: , , , Stefan Windfeldt-Prytz , X-Mailer: b4 0.12.2 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add devicetree bindings for opt4001 ambient light sensor. Signed-off-by: Stefan Windfeldt-Prytz --- .../devicetree/bindings/iio/light/ti,opt4001.yaml | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/light/ti,opt4001.yaml b/Documentation/devicetree/bindings/iio/light/ti,opt4001.yaml new file mode 100644 index 000000000000..cfd6b8b92c17 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/ti,opt4001.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/ti,opt4001.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments OPT4001 Ambient Light Sensor + +maintainers: + - Stefan Windfeldt-Prytz + +description: | + Ambient light sensor with an i2c interface. + https://www.ti.com/lit/gpn/opt4001 + +properties: + compatible: + enum: + - ti,opt4001-picostar + - ti,opt4001-sot-5x3 + + reg: + maxItems: 1 + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@44 { + compatible = "ti,opt4001-picostar"; + reg = <0x44>; + }; + }; +...