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.
40 $ref: /schemas/types.yaml#/definitions/uint32
42 power-source used to drive the output, as defined in the datasheet.
43 Should be specified if the TRILED block is present
47 $ref: /schemas/types.yaml#/definitions/uint32-matrix
49 A list of integer pairs, where each pair represent the dtest line the
50 particular channel should be connected to and the flags denoting how the
51 value should be outputed, as defined in the datasheet. The number of
52 pairs should be the same as the number of channels.
55 - description: dtest line to attach
56 - description: flags for the attachment
60 $ref: leds-class-multicolor.yaml#
87 additionalProperties: false
91 #include <dt-bindings/leds/common.h>
94 compatible = "qcom,pmi8994-lpg";
99 qcom,power-source = <1>;
108 color = <LED_COLOR_ID_GREEN>;
109 function = LED_FUNCTION_INDICATOR;
110 function-enumerator = <1>;
115 color = <LED_COLOR_ID_GREEN>;
116 function = LED_FUNCTION_INDICATOR;
117 function-enumerator = <0>;
118 default-state = "on";
123 color = <LED_COLOR_ID_GREEN>;
124 function = LED_FUNCTION_INDICATOR;
125 function-enumerator = <2>;
130 color = <LED_COLOR_ID_GREEN>;
131 function = LED_FUNCTION_INDICATOR;
132 function-enumerator = <3>;
136 #include <dt-bindings/leds/common.h>
139 compatible = "qcom,pmi8994-lpg";
141 #address-cells = <1>;
144 qcom,power-source = <1>;
147 color = <LED_COLOR_ID_RGB>;
148 function = LED_FUNCTION_STATUS;
150 #address-cells = <1>;
155 color = <LED_COLOR_ID_RED>;
160 color = <LED_COLOR_ID_GREEN>;
165 color = <LED_COLOR_ID_BLUE>;
171 compatible = "qcom,pm8916-pwm";