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.
36 - const: qcom,pm8350c-pwm
48 $ref: /schemas/types.yaml#/definitions/uint32
50 power-source used to drive the output, as defined in the datasheet.
51 Should be specified if the TRILED block is present
55 $ref: /schemas/types.yaml#/definitions/uint32-matrix
57 A list of integer pairs, where each pair represent the dtest line the
58 particular channel should be connected to and the flags denoting how the
59 value should be outputted, as defined in the datasheet. The number of
60 pairs should be the same as the number of channels.
63 - description: dtest line to attach
64 - description: flags for the attachment
68 $ref: leds-class-multicolor.yaml#
69 unevaluatedProperties: false
82 unevaluatedProperties: false
95 unevaluatedProperties: false
107 additionalProperties: false
111 #include <dt-bindings/leds/common.h>
114 compatible = "qcom,pmi8994-lpg";
116 #address-cells = <1>;
119 qcom,power-source = <1>;
128 color = <LED_COLOR_ID_GREEN>;
129 function = LED_FUNCTION_INDICATOR;
130 function-enumerator = <1>;
135 color = <LED_COLOR_ID_GREEN>;
136 function = LED_FUNCTION_INDICATOR;
137 function-enumerator = <0>;
138 default-state = "on";
143 color = <LED_COLOR_ID_GREEN>;
144 function = LED_FUNCTION_INDICATOR;
145 function-enumerator = <2>;
150 color = <LED_COLOR_ID_GREEN>;
151 function = LED_FUNCTION_INDICATOR;
152 function-enumerator = <3>;
156 #include <dt-bindings/leds/common.h>
159 compatible = "qcom,pmi8994-lpg";
161 #address-cells = <1>;
164 qcom,power-source = <1>;
167 color = <LED_COLOR_ID_RGB>;
168 function = LED_FUNCTION_STATUS;
170 #address-cells = <1>;
175 color = <LED_COLOR_ID_RED>;
180 color = <LED_COLOR_ID_GREEN>;
185 color = <LED_COLOR_ID_BLUE>;
191 compatible = "qcom,pm8916-pwm";