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.
31 brightness value on boot.
37 Maximum brightness level.
41 enable current sink output.
42 This property is supported only for WLED3.
47 enable content adaptive backlight control.
52 use externally generated modulator signal to dim.
53 This property is supported only for WLED3.
58 mA; per-string current limit.
59 This property is supported only for WLED3.
60 $ref: /schemas/types.yaml#/definitions/uint32
65 qcom,current-limit-microamp:
67 uA; per-string current limit.
73 qcom,current-boost-limit:
75 mA; boost current limit.
76 $ref: /schemas/types.yaml#/definitions/uint32
80 kHz; switching frequency.
81 $ref: /schemas/types.yaml#/definitions/uint32
82 enum: [ 600, 640, 685, 738, 800, 872, 960, 1066, 1200, 1371, 1600, 1920,
83 2400, 3200, 4800, 9600 ]
87 V; Over-voltage protection limit.
88 This property is supported only for WLED3.
89 $ref: /schemas/types.yaml#/definitions/uint32
90 enum: [ 27, 29, 32, 35 ]
95 Over-voltage protection limit. This property is for WLED4 only.
96 $ref: /schemas/types.yaml#/definitions/uint32
97 enum: [ 18100, 19600, 29600, 31100 ]
102 number of led strings attached.
103 $ref: /schemas/types.yaml#/definitions/uint32
105 qcom,enabled-strings:
107 Array of the WLED strings numbered from 0 to 3. Each
108 string of leds are operated individually. Specify the
109 list of strings used by the device. Any combination of
110 led strings can be used.
111 $ref: /schemas/types.yaml#/definitions/uint32-array
117 Specify if external PFET control for short circuit
118 protection is used. This property is supported only
122 qcom,auto-string-detection:
124 Enables auto-detection of the WLED string configuration.
125 This feature is not supported for WLED3.
131 - description: over voltage protection interrupt.
132 - description: short circuit interrupt.
142 Selects the modulator used for brightness modulation.
146 This property is applicable only to WLED5 peripheral.
147 $ref: /schemas/types.yaml#/definitions/uint32
153 Selects the CABC pin signal used for brightness modulation.
158 3 - External signal (e.g. LPG) is used for dimming
159 This property is applicable only to WLED5 peripheral.
160 $ref: /schemas/types.yaml#/definitions/uint32
168 const: qcom,pm8941-wled
172 qcom,current-boost-limit:
173 enum: [ 105, 385, 525, 805, 980, 1260, 1400, 1680 ]
190 qcom,current-boost-limit:
191 enum: [ 105, 280, 450, 620, 970, 1150, 1300, 1500 ]
237 additionalProperties: false
242 compatible = "qcom,pm8941-wled";
243 reg = <0xd800 0x100>;
247 qcom,current-limit = <20>;
248 qcom,current-boost-limit = <805>;
249 qcom,switching-freq = <1600>;
251 qcom,num-strings = <2>;
252 qcom,enabled-strings = <0 1>;