Skip to content

Commit 2a5699b

Browse files
committed
Merge tag 'leds-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds
Pull LED updates from Pavel Machek: "Most significant here is the driver for Qualcomm LPG. Apparently it drives backlight on some boards, so it is quite important for some people" * tag 'leds-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds: leds: qcom-lpg: Require pattern to follow documentation leds: lp50xx: Remove duplicated error reporting in .remove() leds: qcom-lpg: add missing PWM dependency leds: ktd2692: Make aux-gpios optional dt-bindings: leds: convert ktd2692 bindings to yaml leds: ktd2692: Avoid duplicate error messages on probe deferral leds: is31fl32xx: Improve error reporting in .remove() leds: Move pwm-multicolor driver into rgb directory leds: Add PWM multicolor driver dt-bindings: leds: Add multicolor PWM LED bindings dt-bindings: leds: Optional multi-led unit address leds: regulator: Make probeable from device tree leds: regulator: Add dev helper variable dt-bindings: leds: Add regulator-led binding leds: pca9532: Make pca9532_destroy_devices() return void leds: Add pm8350c support to Qualcomm LPG driver dt-bindings: leds: Add pm8350c pmic support leds: Add driver for Qualcomm LPG dt-bindings: leds: Add Qualcomm Light Pulse Generator binding
2 parents f8a52af + e98a860 commit 2a5699b

18 files changed

+2193
-93
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/leds/kinetic,ktd2692.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: KTD2692 Flash LED Driver from Kinetic Technologies
8+
9+
maintainers:
10+
- Markuss Broks <[email protected]>
11+
12+
description: |
13+
KTD2692 is the ideal power solution for high-power flash LEDs.
14+
It uses ExpressWire single-wire programming for maximum flexibility.
15+
16+
The ExpressWire interface through CTRL pin can control LED on/off and
17+
enable/disable the IC, Movie(max 1/3 of Flash current) / Flash mode current,
18+
Flash timeout, LVP(low voltage protection).
19+
20+
Also, When the AUX pin is pulled high while CTRL pin is high,
21+
LED current will be ramped up to the flash-mode current level.
22+
23+
properties:
24+
compatible:
25+
const: kinetic,ktd2692
26+
27+
ctrl-gpios:
28+
maxItems: 1
29+
description: Specifier of the GPIO connected to CTRL pin.
30+
31+
aux-gpios:
32+
maxItems: 1
33+
description: Specifier of the GPIO connected to CTRL pin.
34+
35+
vin-supply:
36+
description: LED supply (2.7V to 5.5V).
37+
38+
led:
39+
type: object
40+
$ref: common.yaml#
41+
description: Properties for the LED.
42+
properties:
43+
function: true
44+
color: true
45+
flash-max-timeout-us:
46+
description: Flash LED maximum timeout.
47+
48+
led-max-microamp:
49+
maximum: 300000
50+
description: Minimum Threshold for Timer protection
51+
is defined internally (Maximum 300mA).
52+
53+
flash-max-microamp:
54+
maximum: 300000
55+
description: Flash LED maximum current
56+
Formula - I(uA) = 15000000 / Rset.
57+
58+
additionalProperties: false
59+
60+
required:
61+
- compatible
62+
- ctrl-gpios
63+
- led
64+
65+
additionalProperties: false
66+
67+
examples:
68+
- |
69+
#include <dt-bindings/gpio/gpio.h>
70+
#include <dt-bindings/leds/common.h>
71+
72+
ktd2692 {
73+
compatible = "kinetic,ktd2692";
74+
ctrl-gpios = <&gpc0 1 0>;
75+
aux-gpios = <&gpc0 2 0>;
76+
vin-supply = <&vbat>;
77+
78+
led {
79+
function = LED_FUNCTION_FLASH;
80+
color = <LED_COLOR_ID_WHITE>;
81+
flash-max-timeout-us = <250000>;
82+
flash-max-microamp = <150000>;
83+
led-max-microamp = <25000>;
84+
};
85+
};
86+
87+
...

Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ description: |
2020
within this documentation directory.
2121
2222
patternProperties:
23-
"^multi-led@([0-9a-f])$":
23+
"^multi-led(@[0-9a-f])?$":
2424
type: object
2525
description: Represents the LEDs that are to be grouped.
2626
properties:

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

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/leds/leds-pwm-multicolor.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Multi-color LEDs connected to PWM
8+
9+
maintainers:
10+
- Sven Schwermer <[email protected]>
11+
12+
description: |
13+
This driver combines several monochrome PWM LEDs into one multi-color
14+
LED using the multicolor LED class.
15+
16+
properties:
17+
compatible:
18+
const: pwm-leds-multicolor
19+
20+
multi-led:
21+
type: object
22+
23+
patternProperties:
24+
"^led-[0-9a-z]+$":
25+
type: object
26+
$ref: common.yaml#
27+
28+
additionalProperties: false
29+
30+
properties:
31+
pwms:
32+
maxItems: 1
33+
34+
pwm-names: true
35+
36+
color: true
37+
38+
required:
39+
- pwms
40+
- color
41+
42+
required:
43+
- compatible
44+
45+
allOf:
46+
- $ref: leds-class-multicolor.yaml#
47+
48+
additionalProperties: false
49+
50+
examples:
51+
- |
52+
#include <dt-bindings/leds/common.h>
53+
54+
led-controller {
55+
compatible = "pwm-leds-multicolor";
56+
57+
multi-led {
58+
color = <LED_COLOR_ID_RGB>;
59+
function = LED_FUNCTION_INDICATOR;
60+
max-brightness = <65535>;
61+
62+
led-red {
63+
pwms = <&pwm1 0 1000000>;
64+
color = <LED_COLOR_ID_RED>;
65+
};
66+
67+
led-green {
68+
pwms = <&pwm2 0 1000000>;
69+
color = <LED_COLOR_ID_GREEN>;
70+
};
71+
72+
led-blue {
73+
pwms = <&pwm3 0 1000000>;
74+
color = <LED_COLOR_ID_BLUE>;
75+
};
76+
};
77+
};
78+
79+
...

0 commit comments

Comments
 (0)