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, 2400, 3200, 4800, 9600 ]
86 V; Over-voltage protection limit.
87 This property is supported only for WLED3.
88 $ref: /schemas/types.yaml#/definitions/uint32
89 enum: [ 27, 29, 32, 35 ]
94 Over-voltage protection limit. This property is for WLED4 only.
95 $ref: /schemas/types.yaml#/definitions/uint32
96 enum: [ 18100, 19600, 29600, 31100 ]
101 number of led strings attached.
102 $ref: /schemas/types.yaml#/definitions/uint32
104 qcom,enabled-strings:
106 Array of the WLED strings numbered from 0 to 3. Each
107 string of leds are operated individually. Specify the
108 list of strings used by the device. Any combination of
109 led strings can be used.
110 $ref: /schemas/types.yaml#/definitions/uint32-array
116 Specify if external PFET control for short circuit
117 protection is used. This property is supported only
121 qcom,auto-string-detection:
123 Enables auto-detection of the WLED string configuration.
124 This feature is not supported for WLED3.
130 - description: over voltage protection interrupt.
131 - description: short circuit interrupt.
141 Selects the modulator used for brightness modulation.
145 This property is applicable only to WLED5 peripheral.
146 $ref: /schemas/types.yaml#/definitions/uint32
152 Selects the CABC pin signal used for brightness modulation.
157 3 - External signal (e.g. LPG) is used for dimming
158 This property is applicable only to WLED5 peripheral.
159 $ref: /schemas/types.yaml#/definitions/uint32
167 const: qcom,pm8941-wled
171 qcom,current-boost-limit:
172 enum: [ 105, 385, 525, 805, 980, 1260, 1400, 1680 ]
189 qcom,current-boost-limit:
190 enum: [ 105, 280, 450, 620, 970, 1150, 1300, 1500 ]
236 additionalProperties: false
241 compatible = "qcom,pm8941-wled";
242 reg = <0xd800 0x100>;
246 qcom,current-limit = <20>;
247 qcom,current-boost-limit = <805>;
248 qcom,switching-freq = <1600>;
250 qcom,num-strings = <2>;
251 qcom,enabled-strings = <0 1>;