@@ -28,12 +28,12 @@ properties:
const: ldb
reg:
+ minItems: 1
maxItems: 2
reg-names:
- items:
- - const: ldb
- - const: lvds
+ minItems: 1
+ maxItems: 2
ports:
$ref: /schemas/graph.yaml#/properties/ports
@@ -74,6 +74,28 @@ allOf:
properties:
port@2: false
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - fsl,imx6sx-ldb
+ then:
+ properties:
+ reg:
+ maxItems: 1
+ reg-names:
+ items:
+ - const: ldb
+ else:
+ properties:
+ reg:
+ minItems: 2
+ reg-names:
+ items:
+ - const: ldb
+ - const: lvds
+
additionalProperties: false
examples: