Skip to content

Commit 68ba0cd

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 68ba0cd

File tree

1 file changed

+163
-0
lines changed

1 file changed

+163
-0
lines changed
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
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+
adi,disable-camhl-pin:
35+
type: boolean
36+
description: Configures whether the external CAMHL pin is disabled.
37+
if disabled then CAM will always select its high register.
38+
39+
adi,select-rgb-sub-en:
40+
type: boolean
41+
description:
42+
Selects whether the ENRGBS pin controls the SUB channel if set,
43+
or RGB channel if unset.
44+
45+
adi,force-cpo-level:
46+
$ref: /schemas/types.yaml#/definitions/string
47+
description: Forces the Charge Pump Output to a specified multiplier
48+
enum:
49+
- "1" # none; device CPO multiplier acts on dropout signals
50+
- "1.5"
51+
- "2"
52+
default:
53+
- "1"
54+
55+
adi,disable-rgb-aux4-dropout:
56+
type: boolean
57+
description: Configures the RGB and AUX4 dropout signals to be disabled.
58+
59+
adi,aux1-channel:
60+
$ref: /schemas/types.yaml#/definitions/string
61+
description: LED Channel to mirror brightness level from.
62+
enum: [aux, main, sub, cam]
63+
default: aux
64+
65+
adi,aux2-channel:
66+
$ref: /schemas/types.yaml#/definitions/string
67+
description: LED Channel to mirror brightness level from.
68+
enum: [aux, main, sub, cam]
69+
default: aux
70+
71+
adi,aux3-channel:
72+
$ref: /schemas/types.yaml#/definitions/string
73+
description: LED Channel to mirror brightness level from.
74+
enum: [aux, main, sub, cam]
75+
default: aux
76+
77+
adi,aux4-channel:
78+
$ref: /schemas/types.yaml#/definitions/string
79+
description: LED Channel to mirror brightness level from.
80+
enum: [aux, main, sub, cam]
81+
default: aux
82+
83+
patternProperties:
84+
"^led@[0-7]$":
85+
type: object
86+
$ref: common.yaml#
87+
unevaluatedProperties: false
88+
properties:
89+
reg:
90+
description: LED Channel Number. each channel maps to a specific channel group
91+
enum:
92+
- 0 # Main Channel (8-bit brightness)
93+
- 1 # Sub Channel (8-bit brightness)
94+
- 2 # AUX Channel (4-bit brightness)
95+
- 3 # Camera Channel, Low-side byte (4-bit brightness)
96+
- 4 # Camera Channel, High-side byte (4-bit brightness)
97+
- 5 # Red Channel (4-bit brightness)
98+
- 6 # Blue Channel (4-bit brightness)
99+
- 7 # Green Channel (4-bit brightness)
100+
required:
101+
- reg
102+
103+
required:
104+
- compatible
105+
- reg
106+
107+
additionalProperties: false
108+
109+
examples:
110+
- |
111+
#include <dt-bindings/leds/common.h>
112+
113+
i2c {
114+
#address-cells = <1>;
115+
#size-cells = <0>;
116+
117+
led-controller@1b {
118+
compatible = "adi,ltc3208";
119+
reg = <0x1b>;
120+
#address-cells = <1>;
121+
#size-cells = <0>;
122+
adi,disable-camhl-pin;
123+
adi,select-rgb-sub-en;
124+
adi,force-cpo-level = "1";
125+
adi,disable-rgb-aux4-dropout;
126+
127+
adi,aux1-channel = "main";
128+
adi,aux2-channel = "sub";
129+
adi,aux3-channel = "cam";
130+
131+
led@0 {
132+
reg = <0>;
133+
};
134+
135+
led@1 {
136+
reg = <1>;
137+
};
138+
139+
led@2 {
140+
reg = <2>;
141+
};
142+
143+
led@3 {
144+
reg = <3>;
145+
};
146+
147+
led@4 {
148+
reg = <4>;
149+
};
150+
151+
led@5 {
152+
reg = <5>;
153+
};
154+
155+
led@6 {
156+
reg = <6>;
157+
};
158+
159+
led@7 {
160+
reg = <7>;
161+
};
162+
};
163+
};

0 commit comments

Comments
 (0)