Skip to content

Commit 8b3e145

Browse files
committed
dt-bindings: leds: LTC3208: Document LTC3208 Multidisplay LED Driver
Add Documentation for LTC3208 Multidisplay LED Driver. Signed-off-by: Jan Carlo Roleda <jancarlo.roleda@analog.com>
1 parent 42c449f commit 8b3e145

File tree

1 file changed

+182
-0
lines changed

1 file changed

+182
-0
lines changed
Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
# Copyright (c) 2025 Analog Devices, Inc.
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/leds/leds-ltc3208.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: LTC3208 Multidisplay LED Controller from Linear Technologies (Now Analog Devices).
9+
10+
maintainers:
11+
- Jan Carlo Roleda <jancarlo.roleda@analog.com>
12+
13+
description:
14+
The LTC3208 is a multidisplay LED controller that can support up to 1A to all
15+
connected LEDs.
16+
17+
The datasheet for this device can be found in
18+
https://www.analog.com/en/products/ltc3208.html
19+
20+
21+
properties:
22+
compatible:
23+
const: adi,ltc3208
24+
25+
reg:
26+
maxItems: 1
27+
28+
'#address-cells':
29+
const: 1
30+
31+
'#size-cells':
32+
const: 0
33+
34+
enrgbs-gpios:
35+
$ref: /schemas/types.yaml#/definitions/phandle-array
36+
description:
37+
GPIO pin to control the ENRGBS (Enable RGB/SUB) pin of the device.
38+
When driven high, it enables the RGB channel. When driven low, it enables
39+
the SUB channel (if adi,cfg-enrgbs-pin is set).
40+
41+
camhl-gpios:
42+
$ref: /schemas/types.yaml#/definitions/phandle-array
43+
description:
44+
GPIO pin to control the CAMHL (Camera High/Low) pin of the device.
45+
Controls which camera output register (high or low byte) is active.
46+
47+
adi,disable-camhl-pin:
48+
type: boolean
49+
description: Configures whether the external CAMHL pin is disabled.
50+
if disabled then the output pins associated with CAM will always select
51+
the CAM register's high half-byte brightness.
52+
53+
adi,cfg-enrgbs-pin:
54+
type: boolean
55+
description:
56+
Configures which channel the ENRGBS pin toggles when it receives a signal.
57+
ENRGBS pin controls the SUB channel's output pins if this is set,
58+
or RGB channel's output pins if this is unset.
59+
60+
adi,force-cpo-level:
61+
$ref: /schemas/types.yaml#/definitions/string
62+
description: Forces the Charge Pump Output to a specified multiplier
63+
enum:
64+
- "1" # none; device CPO multiplier acts on dropout signals
65+
- "1.5"
66+
- "2"
67+
default:
68+
- "1"
69+
70+
adi,disable-rgb-aux4-dropout:
71+
type: boolean
72+
description: Configures the RGB and AUX4 dropout signals to be disabled.
73+
74+
adi,aux1-channel:
75+
$ref: /schemas/types.yaml#/definitions/string
76+
description:
77+
LED Channel that the AUX1 output pin mirrors its brightness level from.
78+
enum: [aux, main, sub, cam]
79+
default: aux
80+
81+
adi,aux2-channel:
82+
$ref: /schemas/types.yaml#/definitions/string
83+
description:
84+
LED Channel that the AUX2 output pin mirrors its brightness level from.
85+
enum: [aux, main, sub, cam]
86+
default: aux
87+
88+
adi,aux3-channel:
89+
$ref: /schemas/types.yaml#/definitions/string
90+
description:
91+
LED Channel that the AUX3 output pin mirrors its brightness level from.
92+
enum: [aux, main, sub, cam]
93+
default: aux
94+
95+
adi,aux4-channel:
96+
$ref: /schemas/types.yaml#/definitions/string
97+
description:
98+
LED Channel that the AUX4 output pin mirrors its brightness level from.
99+
enum: [aux, main, sub, cam]
100+
default: aux
101+
102+
patternProperties:
103+
"^led@[0-7]$":
104+
type: object
105+
unevaluatedProperties: false
106+
properties:
107+
reg:
108+
description:
109+
LED Channel Number. each channel maps to a specific channel group used
110+
to configure the brightness level of the output pins corresponding to
111+
the channel.
112+
enum:
113+
- 0 # Main Channel (8-bit brightness)
114+
- 1 # Sub Channel (8-bit brightness)
115+
- 2 # AUX Channel (4-bit brightness)
116+
- 3 # Camera Channel, Low-side byte (4-bit brightness)
117+
- 4 # Camera Channel, High-side byte (4-bit brightness)
118+
- 5 # Red Channel (4-bit brightness)
119+
- 6 # Blue Channel (4-bit brightness)
120+
- 7 # Green Channel (4-bit brightness)
121+
required:
122+
- reg
123+
124+
required:
125+
- compatible
126+
- reg
127+
128+
additionalProperties: false
129+
130+
examples:
131+
- |
132+
#include <dt-bindings/gpio/gpio.h>
133+
i2c {
134+
#address-cells = <1>;
135+
#size-cells = <0>;
136+
137+
led-controller@1b {
138+
compatible = "adi,ltc3208";
139+
reg = <0x1b>;
140+
#address-cells = <1>;
141+
#size-cells = <0>;
142+
adi,force-cpo-level = "1";
143+
adi,disable-camhl-pin;
144+
adi,cfg-enrgbs-pin;
145+
adi,disable-rgb-aux4-dropout;
146+
147+
enrgbs-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
148+
camhl-gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
149+
150+
led@0 {
151+
reg = <0>;
152+
};
153+
154+
led@1 {
155+
reg = <1>;
156+
};
157+
158+
led@2 {
159+
reg = <2>;
160+
};
161+
162+
led@3 {
163+
reg = <3>;
164+
};
165+
166+
led@4 {
167+
reg = <4>;
168+
};
169+
170+
led@5 {
171+
reg = <5>;
172+
};
173+
174+
led@6 {
175+
reg = <6>;
176+
};
177+
178+
led@7 {
179+
reg = <7>;
180+
};
181+
};
182+
};

0 commit comments

Comments
 (0)