d1: add new target
[openwrt/staging/mans0n.git] / target / linux / d1 / patches-6.1 / 0094-dt-bindings-display-sun6i-dsi-Fix-clock-conditional.patch
1 From d0f7ed9dc803e09fb6c1e895efbd1182c9212483 Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
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
7 The A64 case should have limited maxItems, instead of duplicating the
8 minItems value from the main binding. While here, simplify the binding
9 by making this an "else" case of the two-clock conditional block.
10
11 Fixes: fe5040f2843a ("dt-bindings: sun6i-dsi: Document A64 MIPI-DSI controller")
12 Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
13 Signed-off-by: Samuel Holland <samuel@sholland.org>
14 ---
15 .../bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml | 10 ++--------
16 1 file changed, 2 insertions(+), 8 deletions(-)
17
18 --- a/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml
19 +++ b/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml
20 @@ -78,16 +78,10 @@ allOf:
21 required:
22 - clock-names
23
24 - - if:
25 - properties:
26 - compatible:
27 - contains:
28 - const: allwinner,sun50i-a64-mipi-dsi
29 -
30 - then:
31 + else:
32 properties:
33 clocks:
34 - minItems: 1
35 + maxItems: 1
36
37 unevaluatedProperties: false
38