Skip to content

Commit b85083d

Browse files
I-n-o-kLee Jones
authored andcommitted
dt-bindings: backlight: qcom-wled: Add WLED5 bindings
Add WLED5 specific bindings. Signed-off-by: Kiran Gunda <[email protected]> Signed-off-by: Subbaraman Narayanamurthy <[email protected]> Acked-by: Daniel Thompson <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Lee Jones <[email protected]>
1 parent f16899a commit b85083d

File tree

1 file changed

+56
-3
lines changed

1 file changed

+56
-3
lines changed

Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,21 @@ properties:
2121
- qcom,pm8941-wled
2222
- qcom,pmi8998-wled
2323
- qcom,pm660l-wled
24+
- qcom,pm8150l-wled
2425

2526
reg:
2627
maxItems: 1
2728

2829
default-brightness:
2930
description: |
3031
brightness value on boot.
31-
minimum: 0
32-
maximum: 4095
33-
default: 2048
3432
3533
label: true
3634

35+
max-brightness:
36+
description: |
37+
Maximum brightness level.
38+
3739
qcom,cs-out:
3840
description: |
3941
enable current sink output.
@@ -141,6 +143,31 @@ properties:
141143
- const: ovp
142144
- const: short
143145

146+
qcom,modulator-sel:
147+
description: |
148+
Selects the modulator used for brightness modulation.
149+
Allowed values are,
150+
0 - Modulator A
151+
1 - Modulator B
152+
This property is applicable only to WLED5 peripheral.
153+
allOf:
154+
- $ref: /schemas/types.yaml#/definitions/uint32
155+
- enum: [ 0, 1 ]
156+
- default: 0
157+
158+
qcom,cabc-sel:
159+
description: |
160+
Selects the CABC pin signal used for brightness modulation.
161+
Allowed values are,
162+
0 - CABC disabled
163+
1 - CABC 1
164+
2 - CABC 2
165+
3 - External signal (e.g. LPG) is used for dimming
166+
This property is applicable only to WLED5 peripheral.
167+
allOf:
168+
- $ref: /schemas/types.yaml#/definitions/uint32
169+
- enum: [ 0, 1, 2, 3 ]
170+
144171
allOf:
145172
- if:
146173
properties:
@@ -183,6 +210,32 @@ allOf:
183210

184211
interrupt-names:
185212
minItems: 2
213+
- if:
214+
properties:
215+
compatible:
216+
contains:
217+
enum:
218+
- qcom,pm8150l-wled
219+
220+
then:
221+
properties:
222+
default-brightness:
223+
minimum: 0
224+
maximum: 32767
225+
226+
max-brightness:
227+
minimum: 0
228+
maximum: 32767
229+
230+
else:
231+
properties:
232+
default-brightness:
233+
minimum: 0
234+
maximum: 4095
235+
236+
max-brightness:
237+
minimum: 0
238+
maximum: 4095
186239

187240
required:
188241
- compatible

0 commit comments

Comments
 (0)