Message ID | 20201102203656.220187-3-robh@kernel.org |
---|---|
State | New |
Headers | show |
Series | dt-bindings: Convert graph bindings to json-schema | expand |
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 --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
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