Skip to content

Commit b76bc70

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

File tree

1 file changed

+133
-0
lines changed

1 file changed

+133
-0
lines changed
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
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/uint32
47+
description: Forces the Charge Pump Output to a specified multiplier
48+
enum:
49+
- 0 # none; device CPO multiplier acts on dropout signals
50+
- 1 # 1.5x
51+
- 2 # 2x
52+
53+
adi,disable-rgb-aux4-dropout:
54+
type: boolean
55+
description: Configures the RGB and AUX4 dropout signals to be disabled.
56+
57+
patternProperties:
58+
"^led@[0-7]$":
59+
type: object
60+
$ref: common.yaml#
61+
unevaluatedProperties: false
62+
properties:
63+
reg:
64+
description: LED Channel Number. each channel maps to a specific channel group
65+
enum:
66+
- 0 # Main Channel (8-bit brightness)
67+
- 1 # Sub Channel (8-bit brightness)
68+
- 2 # AUX Channel (4-bit brightness)
69+
- 3 # Camera Channel, Low-side byte (4-bit brightness)
70+
- 4 # Camera Channel, High-side byte (4-bit brightness)
71+
- 5 # Red Channel (4-bit brightness)
72+
- 6 # Blue Channel (4-bit brightness)
73+
- 7 # Green Channel (4-bit brightness)
74+
required:
75+
- reg
76+
77+
required:
78+
- compatible
79+
- reg
80+
81+
additionalProperties: false
82+
83+
examples:
84+
- |
85+
#include <dt-bindings/leds/common.h>
86+
87+
i2c {
88+
#address-cells = <1>;
89+
#size-cells = <0>;
90+
91+
led-controller@1b {
92+
compatible = "adi,ltc3208";
93+
reg = <0x1b>;
94+
#address-cells = <1>;
95+
#size-cells = <0>;
96+
adi,disable-camhl-pin;
97+
adi,select-rgb-sub-en;
98+
adi,force-cpo-level = <0>;
99+
adi,disable-rgb-aux4-dropout;
100+
101+
led@0 {
102+
reg = <0>;
103+
};
104+
105+
led@1 {
106+
reg = <1>;
107+
};
108+
109+
led@2 {
110+
reg = <2>;
111+
};
112+
113+
led@3 {
114+
reg = <3>;
115+
};
116+
117+
led@4 {
118+
reg = <4>;
119+
};
120+
121+
led@5 {
122+
reg = <5>;
123+
};
124+
125+
led@6 {
126+
reg = <6>;
127+
};
128+
129+
led@7 {
130+
reg = <7>;
131+
};
132+
};
133+
};

0 commit comments

Comments
 (0)