mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-01 03:26:51 +00:00
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
|
From d0f7ed9dc803e09fb6c1e895efbd1182c9212483 Mon Sep 17 00:00:00 2001
|
||
|
From: Samuel Holland <samuel@sholland.org>
|
||
|
Date: Sun, 7 Aug 2022 10:49:30 -0500
|
||
|
Subject: [PATCH 094/117] dt-bindings: display: sun6i-dsi: Fix clock
|
||
|
conditional
|
||
|
|
||
|
The A64 case should have limited maxItems, instead of duplicating the
|
||
|
minItems value from the main binding. While here, simplify the binding
|
||
|
by making this an "else" case of the two-clock conditional block.
|
||
|
|
||
|
Fixes: fe5040f2843a ("dt-bindings: sun6i-dsi: Document A64 MIPI-DSI controller")
|
||
|
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
|
||
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
||
|
---
|
||
|
.../bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml | 10 ++--------
|
||
|
1 file changed, 2 insertions(+), 8 deletions(-)
|
||
|
|
||
|
--- a/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml
|
||
|
+++ b/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml
|
||
|
@@ -78,16 +78,10 @@ allOf:
|
||
|
required:
|
||
|
- clock-names
|
||
|
|
||
|
- - if:
|
||
|
- properties:
|
||
|
- compatible:
|
||
|
- contains:
|
||
|
- const: allwinner,sun50i-a64-mipi-dsi
|
||
|
-
|
||
|
- then:
|
||
|
+ else:
|
||
|
properties:
|
||
|
clocks:
|
||
|
- minItems: 1
|
||
|
+ maxItems: 1
|
||
|
|
||
|
unevaluatedProperties: false
|
||
|
|