Re: [PATCH] dt-bindings: Remove plain text OF graph binding

From: Sameer Pujar
Date: Tue Jan 12 2021 - 11:12:51 EST




On 1/12/2021 9:16 PM, Rob Herring wrote:
External email: Use caution opening links or attachments


From: Sameer Pujar <spujar@xxxxxxxxxx>

A schema for the OF graph binding has been added to the dt-schema repo
based on graph.txt contents. Let's replace graph.txt now duplicated
contents with a reference to the schema.

For users of the graph binding, they should reference to the graph
schema from either 'ports' or 'port' property:

properties:
ports:
$ref: /schemas/graph.yaml#/properties/ports

properties:
port@0:
$ref: /schemas/graph.yaml#/properties/port
description: What data this port has

...

Or:

properties:
port:
description: What data this port has
$ref: /schemas/graph.yaml#/properties/port

Cc: Sameer Pujar <spujar@xxxxxxxxxx>
Acked-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
Reviewed-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
Reviewed-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
[robh: moved graph.yaml to dt-schema repo, expanded commit msg]
Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
---
Documentation/devicetree/bindings/graph.txt | 129 +-------------------
1 file changed, 1 insertion(+), 128 deletions(-)

Acked-by: Sameer Pujar <spujar@xxxxxxxxxx>