summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/media/i2c/adv7604.yaml
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2020-11-17 04:39:47 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-12-02 18:16:33 +0300
commitf61eb7bc9256aeb173d2d730f59cdd569d261c52 (patch)
tree52a9c4a076f7d3f64f4729d92f6dc0821309fd6a /Documentation/devicetree/bindings/media/i2c/adv7604.yaml
parent7fe1d4453fb6bf103d668a19d957a7b2fc21887c (diff)
downloadlinux-f61eb7bc9256aeb173d2d730f59cdd569d261c52.tar.xz
media: dt-bindings: media: Use OF graph schema
Now that we have a graph schema, rework the media related schemas to use it. Mostly this is adding a reference to graph.yaml and dropping duplicate parts from schemas. Cc: Maxime Ripard <mripard@kernel.org> Cc: Jacopo Mondi <jacopo@jmondi.org> Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/media/i2c/adv7604.yaml')
-rw-r--r--Documentation/devicetree/bindings/media/i2c/adv7604.yaml32
1 files changed, 6 insertions, 26 deletions
diff --git a/Documentation/devicetree/bindings/media/i2c/adv7604.yaml b/Documentation/devicetree/bindings/media/i2c/adv7604.yaml
index 3897af540ddd..81f17e719d87 100644
--- a/Documentation/devicetree/bindings/media/i2c/adv7604.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/adv7604.yaml
@@ -64,16 +64,12 @@ properties:
description:
Select which input is selected after reset.
- ports:
- type: object
- description:
- A node containing input and output port nodes with endpoint definitions
- as documented in
- Documentation/devicetree/bindings/media/video-interfaces.txt
+ ports: true
required:
- compatible
- reg
+ - ports
additionalProperties: false
@@ -86,25 +82,17 @@ allOf:
then:
properties:
ports:
+ $ref: /schemas/graph.yaml#/properties/ports
properties:
- '#address-cells':
- const: 1
- '#size-cells':
- const: 0
port@0:
- type: object
description: Input port
port@1:
- type: object
description: Output port
required:
- port@1
- additionalProperties: false
-
- required:
- - ports
+ unevaluatedProperties: false
- if:
properties:
@@ -114,27 +102,19 @@ allOf:
then:
properties:
ports:
+ $ref: /schemas/graph.yaml#/properties/ports
properties:
- '#address-cells':
- const: 1
- '#size-cells':
- const: 0
port@2:
- type: object
description: Output port
patternProperties:
"^port@[0-1]$":
- type: object
description: Input port
required:
- port@2
- additionalProperties: false
-
- required:
- - ports
+ unevaluatedProperties: false
examples:
- |