Skip to content

Commit efd435a

Browse files
ccpalexlag-linaro
authored andcommitted
dt-bindings: leds: Convert LP8860 into YAML format
Convert Texas Instruments' LP8860 LED driver bindings into YAML format. Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com> Acked-by: Andrew Davis <afd@ti.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20241218210631.72997-1-alexander.sverdlin@siemens.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 939757a commit efd435a

File tree

2 files changed

+90
-50
lines changed

2 files changed

+90
-50
lines changed

Documentation/devicetree/bindings/leds/leds-lp8860.txt

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/leds/ti,lp8860.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Texas Instruments - lp8860 4-Channel LED Driver
8+
9+
maintainers:
10+
- Andrew Davis <afd@ti.com>
11+
12+
description: |
13+
The LP8860-Q1 is an high-efficiency LED driver with boost controller.
14+
It has 4 high-precision current sinks that can be controlled by a PWM input
15+
signal, a SPI/I2C master, or both.
16+
17+
For more product information please see the link below:
18+
https://www.ti.com/product/lp8860-q1
19+
20+
properties:
21+
compatible:
22+
const: ti,lp8860
23+
24+
reg:
25+
maxItems: 1
26+
description: I2C slave address
27+
28+
"#address-cells":
29+
const: 1
30+
31+
"#size-cells":
32+
const: 0
33+
34+
enable-gpios:
35+
maxItems: 1
36+
description: GPIO pin to enable (active high) / disable the device
37+
38+
vled-supply:
39+
description: LED supply
40+
41+
patternProperties:
42+
"^led(@[0-3])?$":
43+
type: object
44+
$ref: common.yaml#
45+
unevaluatedProperties: false
46+
47+
properties:
48+
reg:
49+
description:
50+
Index of the LED.
51+
maxItems: 1
52+
53+
function: true
54+
color: true
55+
label: true
56+
linux,default-trigger: true
57+
58+
required:
59+
- compatible
60+
- reg
61+
62+
additionalProperties: false
63+
64+
examples:
65+
- |
66+
#include <dt-bindings/gpio/gpio.h>
67+
#include <dt-bindings/leds/common.h>
68+
69+
i2c {
70+
#address-cells = <1>;
71+
#size-cells = <0>;
72+
73+
led-controller@2d {
74+
compatible = "ti,lp8860";
75+
#address-cells = <1>;
76+
#size-cells = <0>;
77+
reg = <0x2d>;
78+
enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
79+
vled-supply = <&vbatt>;
80+
81+
led@0 {
82+
reg = <0>;
83+
function = LED_FUNCTION_BACKLIGHT;
84+
color = <LED_COLOR_ID_WHITE>;
85+
linux,default-trigger = "backlight";
86+
};
87+
};
88+
};
89+
90+
...

0 commit comments

Comments
 (0)