diff mbox series

[v3,2/3] dt-bindings: usb-connector: Add reference to graph schema

Message ID 20201102203656.220187-3-robh@kernel.org (mailing list archive)
State New, archived
Headers show
Series dt-bindings: Convert graph bindings to json-schema | expand

Commit Message

Rob Herring (Arm) Nov. 2, 2020, 8:36 p.m. UTC
Now that we have a graph schema, reference it from the usb-connector
schema.

Signed-off-by: Rob Herring <robh@kernel.org>
---
v3: new patch

 .../devicetree/bindings/connector/usb-connector.yaml   | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

--
2.25.1

Comments

Laurent Pinchart Nov. 11, 2020, 2:01 p.m. UTC | #1
Hi Rob,

Thank you for the patch.

On Mon, Nov 02, 2020 at 02:36:55PM -0600, Rob Herring wrote:
> Now that we have a graph schema, reference it from the usb-connector
> schema.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
> v3: new patch
> 
>  .../devicetree/bindings/connector/usb-connector.yaml   | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml
> index 728f82db073d..64f2e1246ddb 100644
> --- a/Documentation/devicetree/bindings/connector/usb-connector.yaml
> +++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml
> @@ -125,11 +125,13 @@ properties:
>        power dual role.
> 
>    ports:
> -    description: OF graph bindings (specified in bindings/graph.txt) that model
> -      any data bus to the connector unless the bus is between parent node and
> -      the connector. Since a single connector can have multiple data buses every
> -      bus has an assigned OF graph port number as described below.
> +    $ref: /schemas/graph.yaml#/properties/ports
>      type: object
> +    description: OF graph bindings modeling any data bus to the connector
> +      unless the bus is between parent node and the connector. Since a single
> +      connector can have multiple data buses every bus has an assigned OF graph
> +      port number as described below.
> +
>      properties:
>        port@0:
>          type: object
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml
index 728f82db073d..64f2e1246ddb 100644
--- a/Documentation/devicetree/bindings/connector/usb-connector.yaml
+++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml
@@ -125,11 +125,13 @@  properties:
       power dual role.

   ports:
-    description: OF graph bindings (specified in bindings/graph.txt) that model
-      any data bus to the connector unless the bus is between parent node and
-      the connector. Since a single connector can have multiple data buses every
-      bus has an assigned OF graph port number as described below.
+    $ref: /schemas/graph.yaml#/properties/ports
     type: object
+    description: OF graph bindings modeling any data bus to the connector
+      unless the bus is between parent node and the connector. Since a single
+      connector can have multiple data buses every bus has an assigned OF graph
+      port number as described below.
+
     properties:
       port@0:
         type: object