dt-bindings: usb: Use OF graph schema
Subsystems (2)
Rob Herring
maintainerPATCH 1/1 dt-bindings: usb: Use OF graph schema
Now that we have a graph schema, rework the USB related schemas to use it. Mostly this is adding a reference to graph.yaml and dropping duplicate parts from schemas.
--- .../devicetree/bindings/usb/renesas,usb3-peri.yaml | 7 ++++--- Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml +4 -3
@@ -54,18 +54,19 @@ properties: description: phandle of a companion. ports: + $ref: /schemas/graph.yaml#/properties/ports description: | any connector to the data bus of this controller should be modelled using the OF graph bindings specified, if the "usb-role-switch" property is used. - type: object + properties: port@0: - type: object + $ref: /schemas/graph.yaml#/properties/port description: High Speed (HS) data bus. port@1: - type: object + $ref: /schemas/graph.yaml#/properties/port description: Super Speed (SS) data bus. required:
Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml +4 -4
@@ -26,17 +26,17 @@ properties: maxItems: 1 ports: + $ref: /schemas/graph.yaml#/properties/ports description: OF graph bindings (specified in bindings/graph.txt) that model SS data bus to the SS capable connector. - type: object + properties: port@0: - type: object + $ref: /schemas/graph.yaml#/properties/port description: Super Speed (SS) MUX inputs connected to SS capable connector. - $ref: /connector/usb-connector.yaml#/properties/ports/properties/port@1 port@1: - type: object + $ref: /schemas/graph.yaml#/properties/port description: Output of 2:1 MUX connected to Super Speed (SS) data bus. required:
Signature · 1 line
2.27.0
Quoted 9 lines · Rob Herring
Now that we have a graph schema, rework the USB related schemas to use it. Mostly this is adding a reference to
graph.yamland dropping duplicate parts from schemas.Cc Greg Kroah-Hartman <[email protected]>Cc Yoshihiro Shimoda <[email protected]>Cc Biju Das <[email protected]>Signed-off-by Rob Herring <[email protected]>
Quoted 4 lines
--- .../devicetree/bindings/usb/renesas,usb3-peri.yaml | 7 ++++--- Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-)
Quoted 15 lines
-----Original Message-----
From: Rob Herring <[email protected]>
Sent: 12 January 2021 15:35
To: [email protected]
Cc: Greg Kroah-Hartman <[email protected]>; Yoshihiro Shimoda <[email protected]>; Biju Das <[email protected]>; [email protected]
Subject: [PATCH] dt-bindings: usb: Use OF graph schemaNow that we have a graph schema, rework the USB related schemas to use it. Mostly this is adding a reference to
graph.yamland dropping duplicate parts from schemas.
Quoted 5 lines
Cc Greg Kroah-Hartman <[email protected]>Cc Yoshihiro Shimoda <[email protected]>Cc Biju Das <[email protected]>Signed-off-by Rob Herring <[email protected]>
Cheers,
Biju
Quoted 66 lines
--- .../devicetree/bindings/usb/renesas,usb3-peri.yaml | 7 ++++--- Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-)Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml +4
-3@@ -54,18 +54,19 @@ properties: description: phandle of a companion. ports: + $ref: /schemas/graph.yaml#/properties/ports description: | any connector to the data bus of this controller should be modelled using the OF graph bindings specified, if the "usb-role-switch" property is used. - type: object + properties: port@0: - type: object + $ref: /schemas/graph.yaml#/properties/port description: High Speed (HS) data bus. port@1: - type: object + $ref: /schemas/graph.yaml#/properties/port description: Super Speed (SS) data bus. required:Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml +1
-0@@ -26,17 +26,17 @@ properties: maxItems: 1 ports: + $ref: /schemas/graph.yaml#/properties/ports description: OF graph bindings (specified in bindings/graph.txt) thatmodel
SS data bus to the SS capable connector.Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml +2
-2- type: object + properties: port@0: - type: object + $ref: /schemas/graph.yaml#/properties/port description: Super Speed (SS) MUX inputs connected to SS capableconnector.
- $ref: /connector/usb-
connector.yaml#/properties/ports/properties/port@1port@1:Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml +1
-1- type: object + $ref: /schemas/graph.yaml#/properties/port description: Output of 2:1 MUX connected to Super Speed (SS) databus.
required:
--
2.27.0
Quoted 11 lines
From: Rob Herring, Sent: Wednesday, January 13, 2021 12:35 AM
Now that we have a graph schema, rework the USB related schemas to use it. Mostly this is adding a reference to
graph.yamland dropping duplicate parts from schemas.Cc Greg Kroah-Hartman <[email protected]>Cc Yoshihiro Shimoda <[email protected]>Cc Biju Das <[email protected]>Signed-off-by Rob Herring <[email protected]>
Best regards,
Yoshihiro Shimoda