Skip to content

Commit 5da8b49

Browse files
thierryredingrobherring
authored andcommitted
dt-bindings: display: bridge: lvds-codec: Fix duplicate key
In order to validate multiple "if" conditionals, they must be part of an "allOf:" list, otherwise they will cause a failure in parsing the schema because of the duplicated "if" property. Fixes: d7df394 ("dt-bindings: display: bridge: lvds-codec: Document pixel data sampling edge select") Signed-off-by: Thierry Reding <[email protected]> Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 58fa0d9 commit 5da8b49

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -94,31 +94,32 @@ properties:
9494

9595
power-supply: true
9696

97-
if:
98-
not:
99-
properties:
100-
compatible:
101-
contains:
102-
const: lvds-decoder
103-
then:
104-
properties:
105-
ports:
97+
allOf:
98+
- if:
99+
not:
100+
properties:
101+
compatible:
102+
contains:
103+
const: lvds-decoder
104+
then:
106105
properties:
107-
port@0:
106+
ports:
108107
properties:
109-
endpoint:
108+
port@0:
110109
properties:
111-
data-mapping: false
110+
endpoint:
111+
properties:
112+
data-mapping: false
112113

113-
if:
114-
not:
115-
properties:
116-
compatible:
117-
contains:
118-
const: lvds-encoder
119-
then:
120-
properties:
121-
pclk-sample: false
114+
- if:
115+
not:
116+
properties:
117+
compatible:
118+
contains:
119+
const: lvds-encoder
120+
then:
121+
properties:
122+
pclk-sample: false
122123

123124
required:
124125
- compatible

0 commit comments

Comments
 (0)