Commit e372a6db authored by Rob Herring's avatar Rob Herring Committed by Greg Kroah-Hartman

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).
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220823145649.3118479-9-robh@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4dce3b37
...@@ -23,6 +23,8 @@ properties: ...@@ -23,6 +23,8 @@ properties:
connector: connector:
type: object type: object
$ref: ../connector/usb-connector.yaml $ref: ../connector/usb-connector.yaml
unevaluatedProperties: false
description: description:
Properties for usb c connector. Properties for usb c connector.
......
...@@ -67,6 +67,7 @@ properties: ...@@ -67,6 +67,7 @@ properties:
vhub-strings: vhub-strings:
type: object type: object
additionalProperties: false
properties: properties:
'#address-cells': '#address-cells':
...@@ -78,6 +79,7 @@ properties: ...@@ -78,6 +79,7 @@ properties:
patternProperties: patternProperties:
'^string@[0-9a-f]+$': '^string@[0-9a-f]+$':
type: object type: object
additionalProperties: false
description: string descriptors of the specific language description: string descriptors of the specific language
properties: properties:
......
...@@ -33,6 +33,7 @@ properties: ...@@ -33,6 +33,7 @@ properties:
connector: connector:
type: object type: object
$ref: /schemas/connector/usb-connector.yaml# $ref: /schemas/connector/usb-connector.yaml#
unevaluatedProperties: false
properties: properties:
compatible: compatible:
...@@ -74,7 +75,11 @@ examples: ...@@ -74,7 +75,11 @@ examples:
data-role = "dual"; data-role = "dual";
typec-power-opmode = "default"; typec-power-opmode = "default";
port { ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
typec_con_ep: endpoint { typec_con_ep: endpoint {
remote-endpoint = <&usbotg_hs_ep>; remote-endpoint = <&usbotg_hs_ep>;
}; };
...@@ -82,4 +87,5 @@ examples: ...@@ -82,4 +87,5 @@ examples:
}; };
}; };
}; };
};
... ...
...@@ -28,6 +28,7 @@ properties: ...@@ -28,6 +28,7 @@ properties:
connector: connector:
type: object type: object
$ref: ../connector/usb-connector.yaml# $ref: ../connector/usb-connector.yaml#
unevaluatedProperties: false
description: description:
The managed USB Type-C connector. Since WUSB3801 does not support The managed USB Type-C connector. Since WUSB3801 does not support
Power Delivery, the node should have the "pd-disable" property. Power Delivery, the node should have the "pd-disable" property.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment