diff mbox series

dt-bindings: media: adv7180: Add missing video-interfaces.yaml reference

Message ID 20210623164256.2569839-1-robh@kernel.org
State Accepted
Headers show
Series dt-bindings: media: adv7180: Add missing video-interfaces.yaml reference | expand

Checks

Context Check Description
robh/checkpatch warning total: 0 errors, 2 warnings, 14 lines checked
robh/dt-meta-schema success
robh/dtbs-check fail build log

Commit Message

Rob Herring June 23, 2021, 4:42 p.m. UTC
The adv7180 binding is using 'bus-width' property, but doesn't document it.
Add a reference to the video-interfaces.yaml schema to properly document it.

Fixes: 066a94e28a23 ("media: dt-bindings: media: Use graph and video-interfaces schemas")
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/media/i2c/adv7180.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comments

Rob Herring July 1, 2021, 2:05 p.m. UTC | #1
On Wed, 23 Jun 2021 10:42:56 -0600, Rob Herring wrote:
> The adv7180 binding is using 'bus-width' property, but doesn't document it.
> Add a reference to the video-interfaces.yaml schema to properly document it.
> 
> Fixes: 066a94e28a23 ("media: dt-bindings: media: Use graph and video-interfaces schemas")
> Cc: Lars-Peter Clausen <lars@metafoo.de>
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> Cc: linux-media@vger.kernel.org
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  Documentation/devicetree/bindings/media/i2c/adv7180.yaml | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 

Applied, thanks!
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/media/i2c/adv7180.yaml b/Documentation/devicetree/bindings/media/i2c/adv7180.yaml
index bcfd93739b4f..3ce4af143a3a 100644
--- a/Documentation/devicetree/bindings/media/i2c/adv7180.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/adv7180.yaml
@@ -36,7 +36,13 @@  properties:
     maxItems: 1
 
   port:
-    $ref: /schemas/graph.yaml#/properties/port
+    $ref: /schemas/graph.yaml#/$defs/port-base
+    unevaluatedProperties: false
+
+    properties:
+      endpoint:
+        $ref: /schemas/media/video-interfaces.yaml#
+        unevaluatedProperties: false
 
   ports: true