From patchwork Mon Dec 16 22:55:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikael Gonella-Bolduc via B4 Relay X-Patchwork-Id: 13910657 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 763891D5CD1; Mon, 16 Dec 2024 22:55:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734389752; cv=none; b=X7zOQNUU4m7WHPZzOauf0T7mXafQLpbl1bCfEq7vyVkfD9y8x86LgNhLNf2qij+qIrqIQ/y8AtIRmL/2FmpWLQKzUj4x+jeZ+he2XMpl+4/dS4xClrk7yflH+3SZp0umhSYk+o1ep6mgldcpSdcN2+LCrxJ6fhYOSYKPap50XP8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734389752; c=relaxed/simple; bh=8PKII3hiZZfij3s95wkBgSX6t/s/VFVx4oorFBXFqTk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BbczGo+nWSJlt+J10tIIZGV559ag40FNJbkErr6Le7Ew2iYT/6pG1o+R72xdpiiwn6q91eidwb9yMScD6AZ4cgMZF37s1g10ocGFZqfKmtq9zyNDpJPE7ocbyEWHxblrR0P/iXe4fdur+nZ3qyYBNuTiUXd212iEddKqmCPNvmc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aZX0HLKZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aZX0HLKZ" Received: by smtp.kernel.org (Postfix) with ESMTPS id 2853AC4CED7; Mon, 16 Dec 2024 22:55:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734389752; bh=8PKII3hiZZfij3s95wkBgSX6t/s/VFVx4oorFBXFqTk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=aZX0HLKZn/WmqkiYAaThgCTrncCwhipwY48XkUN4G4pFplnaIyLw8NDR09XfkBbuI U90Ik0k8d2Vzkq4sDSKmjymqJ8hzpCB+5u4UjXDqyl68qghPqaXF6gTbu9pkJH4l/P RaLtbvbLIVhIj6fgWBDoDYEdHrwzwnOHjSoa19WGpi/gVMSyMWJSYwKhS+0U9osI6Z kWv361oTD8W2/2Z0mXvBWyKX65hGLzoeHqDy8opNfmGYFpESzBxbzNE23DBXRiHo3K Xvmm4qBjriW7QXJtEr3PKzGxIz9oyh2SBXeojQD3Rhe6F3Osj7fS8/nWNK2KkcuGjD u7Pi073QEBVWg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E936E77183; Mon, 16 Dec 2024 22:55:52 +0000 (UTC) From: Mikael Gonella-Bolduc via B4 Relay Date: Mon, 16 Dec 2024 17:55:40 -0500 Subject: [PATCH v3 1/2] dt-bindings: iio: light: Add APDS9160 binding Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241216-apds9160-driver-v3-1-c29f6c670bdb@dimonoff.com> References: <20241216-apds9160-driver-v3-0-c29f6c670bdb@dimonoff.com> In-Reply-To: <20241216-apds9160-driver-v3-0-c29f6c670bdb@dimonoff.com> To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt Cc: Mikael Gonella-Bolduc , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Mikael Gonella-Bolduc , Hugo Villeneuve , Matti Vaittinen X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734389751; l=1743; i=mgonellabolduc@dimonoff.com; s=20241119; h=from:subject:message-id; bh=z+T/dCJyhuoD5A4B8Hhqb+eAjQn23VEvoZX4TORdNlk=; b=m0D2X9j7KFF4K/Incs8HGvfLVjGhJdN/5rF5J5/j44hUQSwsQUx4EiBOYy+0Pqzs6MKb+/+rg xQx1ln4JmsHBVbmgqQTMJOcEhyPxXZOYQJPwrF2hIyC0CUubxyJsA3x X-Developer-Key: i=mgonellabolduc@dimonoff.com; a=ed25519; pk=p4tvPfGPfXRyChsgHc6s7HwB6YBl2JqqcP3BXtoDitE= X-Endpoint-Received: by B4 Relay for mgonellabolduc@dimonoff.com/20241119 with auth_id=279 X-Original-From: Mikael Gonella-Bolduc Reply-To: mgonellabolduc@dimonoff.com From: Mikael Gonella-Bolduc Add device tree bindings for APDS9160 Note: Using alternate email for maintainer Signed-off-by: Mikael Gonella-Bolduc Reviewed-by: Conor Dooley --- .../bindings/iio/light/brcm,apds9160.yaml | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml b/Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml new file mode 100644 index 0000000000000000000000000000000000000000..525fba52f156df3b78e24d7d0d445fe9d882eaa7 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/brcm,apds9160.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Combined Proximity & Ambient light sensor + +maintainers: + - Mikael Gonella-Bolduc + +description: | + Datasheet: https://docs.broadcom.com/docs/APDS-9160-003-DS + +properties: + compatible: + enum: + - brcm,apds9160 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdd-supply: true + +required: + - compatible + - reg + - vdd-supply + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@53 { + compatible = "brcm,apds9160"; + reg = <0x53>; + vdd-supply = <&vdd_reg>; + interrupts = <29 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&pinctrl>; + }; + }; +...