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: 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.
35 brightness value on boot.
41 Maximum brightness level.
45 enable current sink output.
46 This property is supported only for WLED3.
51 enable content adaptive backlight control.
56 use externally generated modulator signal to dim.
57 This property is supported only for WLED3.
62 mA; per-string current limit.
63 This property is supported only for WLED3.
64 $ref: /schemas/types.yaml#/definitions/uint32
69 qcom,current-limit-microamp:
71 uA; per-string current limit.
77 qcom,current-boost-limit:
79 mA; boost current limit.
80 $ref: /schemas/types.yaml#/definitions/uint32
84 kHz; switching frequency.
85 $ref: /schemas/types.yaml#/definitions/uint32
86 enum: [ 600, 640, 685, 738, 800, 872, 960, 1066, 1200, 1371, 1600, 1920,
87 2400, 3200, 4800, 9600 ]
91 V; Over-voltage protection limit.
92 This property is supported only for WLED3.
93 $ref: /schemas/types.yaml#/definitions/uint32
94 enum: [ 27, 29, 32, 35 ]
99 Over-voltage protection limit. This property is for WLED4 only.
100 $ref: /schemas/types.yaml#/definitions/uint32
101 enum: [ 18100, 19600, 29600, 31100 ]
106 number of led strings attached.
107 $ref: /schemas/types.yaml#/definitions/uint32
109 qcom,enabled-strings:
111 Array of the WLED strings numbered from 0 to 3. Each
112 string of leds are operated individually. Specify the
113 list of strings used by the device. Any combination of
114 led strings can be used.
115 $ref: /schemas/types.yaml#/definitions/uint32-array
121 Specify if external PFET control for short circuit
122 protection is used. This property is supported only
126 qcom,auto-string-detection:
128 Enables auto-detection of the WLED string configuration.
129 This feature is not supported for WLED3.
135 - description: over voltage protection interrupt.
136 - description: short circuit interrupt.
146 Selects the modulator used for brightness modulation.
150 This property is applicable only to WLED5 peripheral.
151 $ref: /schemas/types.yaml#/definitions/uint32
157 Selects the CABC pin signal used for brightness modulation.
162 3 - External signal (e.g. LPG) is used for dimming
163 This property is applicable only to WLED5 peripheral.
164 $ref: /schemas/types.yaml#/definitions/uint32
172 const: qcom,pm8941-wled
179 qcom,current-boost-limit:
180 enum: [ 105, 385, 525, 805, 980, 1260, 1400, 1680 ]
200 qcom,current-boost-limit:
201 enum: [ 105, 280, 450, 620, 970, 1150, 1300, 1500 ]
247 additionalProperties: false
252 compatible = "qcom,pm8941-wled";
253 reg = <0xd800 0x100>;
257 qcom,current-limit = <20>;
258 qcom,current-boost-limit = <805>;
259 qcom,switching-freq = <1600>;
261 qcom,num-strings = <2>;
262 qcom,enabled-strings = <0 1>;