Commit 5da8b49d authored by Thierry Reding's avatar Thierry Reding Committed by Rob Herring

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: d7df3948 ("dt-bindings: display: bridge: lvds-codec: Document pixel data sampling edge select")
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20211220125147.519880-1-thierry.reding@gmail.com
parent 58fa0d90
...@@ -94,31 +94,32 @@ properties: ...@@ -94,31 +94,32 @@ properties:
power-supply: true power-supply: true
if: allOf:
not: - if:
properties: not:
compatible: properties:
contains: compatible:
const: lvds-decoder contains:
then: const: lvds-decoder
properties: then:
ports:
properties: properties:
port@0: ports:
properties: properties:
endpoint: port@0:
properties: properties:
data-mapping: false endpoint:
properties:
data-mapping: false
if: - if:
not: not:
properties: properties:
compatible: compatible:
contains: contains:
const: lvds-encoder const: lvds-encoder
then: then:
properties: properties:
pclk-sample: false pclk-sample: false
required: required:
- compatible - compatible
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment