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