Skip to content

Commit 9339608

Browse files
Lukas Timmermannlag-linaro
authored andcommitted
dt-bindings: leds: Add new as3668 support
The bindings are incomplete, as the GPIO/Audio Input pin is still undocumented. The hardware used for testing this patch series does not allow modification, so the mentioned pin has been omitted. Signed-off-by: Lukas Timmermann <linux@timmermann.space> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://patch.msgid.link/20260118165010.902086-2-linux@timmermann.space Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 444bb79 commit 9339608

2 files changed

Lines changed: 80 additions & 0 deletions

File tree

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/leds/ams,as3668.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Osram 4-channel i2c LED driver
8+
9+
maintainers:
10+
- Lukas Timmermann <linux@timmermann.space>
11+
12+
description:
13+
This IC can drive up to four separate LEDs.
14+
Having four channels suggests it could be used with a single RGBW LED.
15+
16+
properties:
17+
compatible:
18+
const: ams,as3668
19+
20+
reg:
21+
maxItems: 1
22+
23+
"#address-cells":
24+
const: 1
25+
26+
"#size-cells":
27+
const: 0
28+
29+
patternProperties:
30+
"^led@[0-3]$":
31+
type: object
32+
$ref: common.yaml#
33+
unevaluatedProperties: false
34+
35+
properties:
36+
reg:
37+
maxItems: 1
38+
39+
required:
40+
- compatible
41+
- reg
42+
- "#address-cells"
43+
- "#size-cells"
44+
45+
additionalProperties: false
46+
47+
examples:
48+
- |
49+
#include <dt-bindings/leds/common.h>
50+
51+
i2c {
52+
#address-cells = <1>;
53+
#size-cells = <0>;
54+
55+
led-controller@42 {
56+
compatible = "ams,as3668";
57+
reg = <0x42>;
58+
#address-cells = <1>;
59+
#size-cells = <0>;
60+
61+
led@0 {
62+
reg = <0x0>;
63+
function = LED_FUNCTION_STATUS;
64+
color = <LED_COLOR_ID_RED>;
65+
};
66+
67+
led@1 {
68+
reg = <0x1>;
69+
function = LED_FUNCTION_STATUS;
70+
color = <LED_COLOR_ID_GREEN>;
71+
};
72+
};
73+
};
74+

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3786,6 +3786,12 @@ L: linux-leds@vger.kernel.org
37863786
S: Maintained
37873787
F: drivers/leds/flash/leds-as3645a.c
37883788

3789+
AS3668 LED DRIVER
3790+
M: Lukas Timmermann <linux@timmermann.space>
3791+
L: linux-leds@vger.kernel.org
3792+
S: Maintained
3793+
F: Documentation/devicetree/bindings/leds/ams,as3668.yaml
3794+
37893795
ASAHI KASEI AK7375 LENS VOICE COIL DRIVER
37903796
M: Tianshu Qiu <tian.shu.qiu@intel.com>
37913797
L: linux-media@vger.kernel.org

0 commit comments

Comments
 (0)