0094-dt-bindings-display-sun6i-dsi-Fix-clock-conditional.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From d0f7ed9dc803e09fb6c1e895efbd1182c9212483 Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  3. Date: Sun, 7 Aug 2022 10:49:30 -0500
  4. Subject: [PATCH 094/117] dt-bindings: display: sun6i-dsi: Fix clock
  5. conditional
  6. The A64 case should have limited maxItems, instead of duplicating the
  7. minItems value from the main binding. While here, simplify the binding
  8. by making this an "else" case of the two-clock conditional block.
  9. Fixes: fe5040f2843a ("dt-bindings: sun6i-dsi: Document A64 MIPI-DSI controller")
  10. Acked-by: Krzysztof Kozlowski <[email protected]>
  11. Signed-off-by: Samuel Holland <[email protected]>
  12. ---
  13. .../bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml | 10 ++--------
  14. 1 file changed, 2 insertions(+), 8 deletions(-)
  15. --- a/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml
  16. +++ b/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml
  17. @@ -78,16 +78,10 @@ allOf:
  18. required:
  19. - clock-names
  20. - - if:
  21. - properties:
  22. - compatible:
  23. - contains:
  24. - const: allwinner,sun50i-a64-mipi-dsi
  25. -
  26. - then:
  27. + else:
  28. properties:
  29. clocks:
  30. - minItems: 1
  31. + maxItems: 1
  32. unevaluatedProperties: false