1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/leds/leds-qcom-lpg.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Light Pulse Generator
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
13 The Qualcomm Light Pulse Generator consists of three different hardware blocks;
14 a ramp generator with lookup table, the light pulse generator and a three
15 channel current sink. These blocks are found in a wide range of Qualcomm PMICs.
41 $ref: /schemas/types.yaml#/definitions/uint32
43 power-source used to drive the output, as defined in the datasheet.
44 Should be specified if the TRILED block is present
48 $ref: /schemas/types.yaml#/definitions/uint32-matrix
50 A list of integer pairs, where each pair represent the dtest line the
51 particular channel should be connected to and the flags denoting how the
52 value should be outputed, as defined in the datasheet. The number of
53 pairs should be the same as the number of channels.
56 - description: dtest line to attach
57 - description: flags for the attachment
61 $ref: leds-class-multicolor.yaml#
62 unevaluatedProperties: false
90 additionalProperties: false
94 #include <dt-bindings/leds/common.h>
97 compatible = "qcom,pmi8994-lpg";
102 qcom,power-source = <1>;
111 color = <LED_COLOR_ID_GREEN>;
112 function = LED_FUNCTION_INDICATOR;
113 function-enumerator = <1>;
118 color = <LED_COLOR_ID_GREEN>;
119 function = LED_FUNCTION_INDICATOR;
120 function-enumerator = <0>;
121 default-state = "on";
126 color = <LED_COLOR_ID_GREEN>;
127 function = LED_FUNCTION_INDICATOR;
128 function-enumerator = <2>;
133 color = <LED_COLOR_ID_GREEN>;
134 function = LED_FUNCTION_INDICATOR;
135 function-enumerator = <3>;
139 #include <dt-bindings/leds/common.h>
142 compatible = "qcom,pmi8994-lpg";
144 #address-cells = <1>;
147 qcom,power-source = <1>;
150 color = <LED_COLOR_ID_RGB>;
151 function = LED_FUNCTION_STATUS;
153 #address-cells = <1>;
158 color = <LED_COLOR_ID_RED>;
163 color = <LED_COLOR_ID_GREEN>;
168 color = <LED_COLOR_ID_BLUE>;
174 compatible = "qcom,pm8916-pwm";