1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/leds/backlight/qcom-wled.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Binding for Qualcomm Technologies, Inc. WLED driver
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
11 - Kiran Gunda <kgunda@codeaurora.org>
14 WLED (White Light Emitting Diode) driver is used for controlling display
15 backlight that is part of PMIC on Qualcomm Technologies, Inc. reference
16 platforms. The PMIC is connected to the host processor via SPMI bus.
34 brightness value on boot.
40 Maximum brightness level.
44 enable current sink output.
45 This property is supported only for WLED3.
50 enable content adaptive backlight control.
55 use externally generated modulator signal to dim.
56 This property is supported only for WLED3.
61 mA; per-string current limit.
62 This property is supported only for WLED3.
63 $ref: /schemas/types.yaml#/definitions/uint32
68 qcom,current-limit-microamp:
70 uA; per-string current limit.
76 qcom,current-boost-limit:
78 mA; boost current limit.
79 $ref: /schemas/types.yaml#/definitions/uint32
83 kHz; switching frequency.
84 $ref: /schemas/types.yaml#/definitions/uint32
85 enum: [ 600, 640, 685, 738, 800, 872, 960, 1066, 1200, 1371, 1600, 1920,
86 2400, 3200, 4800, 9600 ]
90 V; Over-voltage protection limit.
91 This property is supported only for WLED3.
92 $ref: /schemas/types.yaml#/definitions/uint32
93 enum: [ 27, 29, 32, 35 ]
98 Over-voltage protection limit. This property is for WLED4 only.
99 $ref: /schemas/types.yaml#/definitions/uint32
100 enum: [ 18100, 19600, 29600, 31100 ]
105 number of led strings attached.
106 $ref: /schemas/types.yaml#/definitions/uint32
108 qcom,enabled-strings:
110 Array of the WLED strings numbered from 0 to 3. Each
111 string of leds are operated individually. Specify the
112 list of strings used by the device. Any combination of
113 led strings can be used.
114 $ref: /schemas/types.yaml#/definitions/uint32-array
120 Specify if external PFET control for short circuit
121 protection is used. This property is supported only
125 qcom,auto-string-detection:
127 Enables auto-detection of the WLED string configuration.
128 This feature is not supported for WLED3.
134 - description: over voltage protection interrupt.
135 - description: short circuit interrupt.
145 Selects the modulator used for brightness modulation.
149 This property is applicable only to WLED5 peripheral.
150 $ref: /schemas/types.yaml#/definitions/uint32
156 Selects the CABC pin signal used for brightness modulation.
161 3 - External signal (e.g. LPG) is used for dimming
162 This property is applicable only to WLED5 peripheral.
163 $ref: /schemas/types.yaml#/definitions/uint32
171 const: qcom,pm8941-wled
178 qcom,current-boost-limit:
179 enum: [ 105, 385, 525, 805, 980, 1260, 1400, 1680 ]
199 qcom,current-boost-limit:
200 enum: [ 105, 280, 450, 620, 970, 1150, 1300, 1500 ]
246 additionalProperties: false
251 compatible = "qcom,pm8941-wled";
252 reg = <0xd800 0x100>;
256 qcom,current-limit = <20>;
257 qcom,current-boost-limit = <805>;
258 qcom,switching-freq = <1600>;
260 qcom,num-strings = <2>;
261 qcom,enabled-strings = <0 1>;