dt-bindings: usb: Add missing (unevaluated|additional)Properties on child nodes
Subsystems (3)
Rob Herring
maintainerPATCH 1/1 dt-bindings: usb: Add missing (unevaluated|additional)Properties on child nodes
In order to ensure only documented properties are present, node schemas must have unevaluatedProperties or additionalProperties set to false (typically).
Signed-off-by Rob Herring <[email protected]>
--- .../devicetree/bindings/usb/analogix,anx7411.yaml | 2 ++ .../devicetree/bindings/usb/aspeed,usb-vhub.yaml | 2 ++ .../devicetree/bindings/usb/st,stusb160x.yaml | 12 +++++++++--- .../devicetree/bindings/usb/willsemi,wusb3801.yaml | 1 + 4 files changed, 14 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/usb/analogix,anx7411.yaml +2 -0
@@ -23,6 +23,8 @@ properties: connector: type: object $ref: ../connector/usb-connector.yaml + unevaluatedProperties: false + description: Properties for usb c connector.
Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml +2 -0
@@ -67,6 +67,7 @@ properties: vhub-strings: type: object + additionalProperties: false properties: '#address-cells':
@@ -78,6 +79,7 @@ properties: patternProperties: '^string@[0-9a-f]+$': type: object + additionalProperties: false description: string descriptors of the specific language properties:
Documentation/devicetree/bindings/usb/st,stusb160x.yaml +9 -3
@@ -33,6 +33,7 @@ properties: connector: type: object $ref: /schemas/connector/usb-connector.yaml# + unevaluatedProperties: false properties: compatible:
@@ -74,9 +75,14 @@ examples: data-role = "dual"; typec-power-opmode = "default"; - port { - typec_con_ep: endpoint { - remote-endpoint = <&usbotg_hs_ep>; + ports { + #address-cells = <1>; + #size-cells = <0>; + port at 0 { + reg = <0>; + typec_con_ep: endpoint { + remote-endpoint = <&usbotg_hs_ep>; + }; }; }; };
Documentation/devicetree/bindings/usb/willsemi,wusb3801.yaml +1 -0
@@ -28,6 +28,7 @@ properties: connector: type: object $ref: ../connector/usb-connector.yaml# + unevaluatedProperties: false description: The managed USB Type-C connector. Since WUSB3801 does not support Power Delivery, the node should have the "pd-disable" property.
Signature · 1 line
2.34.1
Quoted 4 lines · Rob Herring
In order to ensure only documented properties are present, node schemas must have unevaluatedProperties or additionalProperties set to false (typically).
Reviewed-by Krzysztof Kozlowski <[email protected]>
Best regards,
Krzysztof