Skip to content

Commit 0edf7b1

Browse files
krzklumag
authored andcommitted
dt-bindings: display/msm: dsi-controller-main: Combine if:then: entries
Several devices have the same clock inputs, thus they can be in the same if:then: clause, making everything smaller. No functional impact. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/638749/ Link: https://lore.kernel.org/r/20250221-b4-sm8750-display-v3-1-3ea95b1630ea@linaro.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
1 parent 375f1de commit 0edf7b1

File tree

1 file changed

+5
-59
lines changed

1 file changed

+5
-59
lines changed

Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml

Lines changed: 5 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -248,24 +248,6 @@ allOf:
248248
contains:
249249
enum:
250250
- qcom,msm8916-dsi-ctrl
251-
then:
252-
properties:
253-
clocks:
254-
maxItems: 6
255-
clock-names:
256-
items:
257-
- const: mdp_core
258-
- const: iface
259-
- const: bus
260-
- const: byte
261-
- const: pixel
262-
- const: core
263-
264-
- if:
265-
properties:
266-
compatible:
267-
contains:
268-
enum:
269251
- qcom,msm8953-dsi-ctrl
270252
- qcom,msm8976-dsi-ctrl
271253
then:
@@ -328,28 +310,13 @@ allOf:
328310
contains:
329311
enum:
330312
- qcom,msm8998-dsi-ctrl
331-
- qcom,sm6125-dsi-ctrl
332-
- qcom,sm6350-dsi-ctrl
333-
then:
334-
properties:
335-
clocks:
336-
maxItems: 6
337-
clock-names:
338-
items:
339-
- const: byte
340-
- const: byte_intf
341-
- const: pixel
342-
- const: core
343-
- const: iface
344-
- const: bus
345-
346-
- if:
347-
properties:
348-
compatible:
349-
contains:
350-
enum:
351313
- qcom,sc7180-dsi-ctrl
352314
- qcom,sc7280-dsi-ctrl
315+
- qcom,sdm845-dsi-ctrl
316+
- qcom,sm6115-dsi-ctrl
317+
- qcom,sm6125-dsi-ctrl
318+
- qcom,sm6350-dsi-ctrl
319+
- qcom,sm6375-dsi-ctrl
353320
- qcom,sm6150-dsi-ctrl
354321
- qcom,sm7150-dsi-ctrl
355322
- qcom,sm8150-dsi-ctrl
@@ -393,27 +360,6 @@ allOf:
393360
- const: pixel
394361
- const: core
395362

396-
- if:
397-
properties:
398-
compatible:
399-
contains:
400-
enum:
401-
- qcom,sdm845-dsi-ctrl
402-
- qcom,sm6115-dsi-ctrl
403-
- qcom,sm6375-dsi-ctrl
404-
then:
405-
properties:
406-
clocks:
407-
maxItems: 6
408-
clock-names:
409-
items:
410-
- const: byte
411-
- const: byte_intf
412-
- const: pixel
413-
- const: core
414-
- const: iface
415-
- const: bus
416-
417363
unevaluatedProperties: false
418364

419365
examples:

0 commit comments

Comments
 (0)