From patchwork Sat May 31 12:07:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Timmermann X-Patchwork-Id: 894340 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (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 67EF67260A; Sat, 31 May 2025 12:11:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.152 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748693515; cv=none; b=TcHFdaowweSePCyFRaBK4DpNguM8Va22V/5B3OC9x8a0odMFbcJ6cDuCw6i1v4PquIy+AJcOozVzoVDuCX6EhfeorlLVaW5HsZVe4si2FnA0qK+wOQTJ9PQaDTiq9C5pFBJw374V11JtY/K8zxc3Sd5tjurMMjaxQbPiE2DpNuk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748693515; c=relaxed/simple; bh=FVicUJnc7YWRCxGtgjPXOJI/+lxgKLgQ1bMJFFVcxSw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZHvwMTfpLG3eDpSLLkGeCg8XyxmX257DOi/Bg7Pl9+OMUFG4KFojn5w43qHH/5Bs2B/rGSN8L2bbgLVrsWXxB5Ig/reZvsRCXvQmAMFy+aFgs/28Ia9hhjxIs1pbHziVICE1tZc1wMZoEgO/4L9k0dpgSLffumbn2McL4A55VjM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=timmermann.space; spf=pass smtp.mailfrom=timmermann.space; arc=none smtp.client-ip=80.241.56.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=timmermann.space Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=timmermann.space Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (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) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4b8f9B3tj7z9sbm; Sat, 31 May 2025 14:11:42 +0200 (CEST) From: Lukas Timmermann To: lee@kernel.org, pavel@kernel.org Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Timmermann Subject: [PATCH v2 2/2] dt-bindings: leds: Add new as3668 support Date: Sat, 31 May 2025 14:07:20 +0200 Message-ID: <20250531120715.302870-8-linux@timmermann.space> In-Reply-To: <20250531120715.302870-4-linux@timmermann.space> References: <20250531120715.302870-4-linux@timmermann.space> Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Queue-Id: 4b8f9B3tj7z9sbm From: Lukas Timmermann Document Osram as3668 LED driver devicetree bindings. --- .../devicetree/bindings/leds/leds-as3668.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-as3668.yaml diff --git a/Documentation/devicetree/bindings/leds/leds-as3668.yaml b/Documentation/devicetree/bindings/leds/leds-as3668.yaml new file mode 100644 index 000000000000..aae6248f5712 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-as3668.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/leds-as3668.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Osram 4-channel i2c LED driver. + +maintainers: + - Lukas Timmermann + +description: | + This IC can drive up to four separate LEDs. + Having four channels suggests it could be used with a single RGBW LED. + +properties: + compatible: + const: ams,as3668 + + reg: + maxItems: 1 + description: + I2C slave address + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^led@[0-3]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + maxItems: 1 + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@42 { + compatible = "ams,as3668"; + reg = <0x42>; + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0x0>; + function = LED_FUNCTION_STATUS; + color = ; + }; + + led@1 { + reg = <0x1>; + function = LED_FUNCTION_STATUS; + color = ; + }; + }; + }; +