Merge "dt-bindings: leds: Add bindings for leds-qti-tri-led driver"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
c477a6a555
@@ -27,25 +27,33 @@ properties:
|
||||
nvmem:
|
||||
description: Phandle of the nvmem device name to access SDAM to do PBS
|
||||
trigger. This is required only for HR_LEDs.
|
||||
patternProperties:
|
||||
"^led@[0-9a-z]+$":
|
||||
type: object
|
||||
$ref: common.yaml#
|
||||
unevaluatedProperties: false
|
||||
|
||||
pwms:
|
||||
description: The PWM device (phandle) used for controlling LED.
|
||||
properties:
|
||||
pwms:
|
||||
description: The PWM device (phandle) used for controlling LED.
|
||||
|
||||
led-sources:
|
||||
description: see Documentation/devicetree/bindings/leds/common.txt;
|
||||
led-sources:
|
||||
description: see Documentation/devicetree/bindings/leds/common.txt;
|
||||
Device current output identifiers are 0 - LED1_EN,
|
||||
1 - LED2_EN, 2 - LED3_EN.
|
||||
label:
|
||||
description: see Documentation/devicetree/bindings/leds/common.txt;
|
||||
label:
|
||||
description: see Documentation/devicetree/bindings/leds/common.txt;
|
||||
|
||||
linux,default-trigger:
|
||||
description: see Documentation/devicetree/bindings/leds/common.txt;
|
||||
linux,default-trigger:
|
||||
description: see Documentation/devicetree/bindings/leds/common.txt;
|
||||
|
||||
required:
|
||||
- pwms
|
||||
- led-sources
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- pwms
|
||||
- led-sources
|
||||
|
||||
allOf:
|
||||
- $ref: common.yaml#
|
||||
@@ -54,21 +62,23 @@ additionalProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
pmi8998_rgb: tri-led@d000{
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
|
||||
pmi8998_rgb: tri-led@d000 {
|
||||
compatible = "qcom,tri-led";
|
||||
reg = <0xd000>;
|
||||
|
||||
red {
|
||||
led@1 {
|
||||
label = "red";
|
||||
pwms = <&pmi8998_lpg 4 1000000>;
|
||||
led-sources = <0>;
|
||||
};
|
||||
green {
|
||||
led@2 {
|
||||
label = "green";
|
||||
pwms = <&pmi8998_lpg 3 1000000>;
|
||||
led-sources = <1>;
|
||||
};
|
||||
blue {
|
||||
led@3 {
|
||||
label = "blue";
|
||||
pwms = <&pmi8998_lpg 2 1000000>;
|
||||
led-sources = <2>;
|
||||
|
Reference in New Issue
Block a user