Skip to content

Commit 8f42658

Browse files
krzkrobherring
authored andcommitted
dt-bindings: chrome: google,cros-ec-typec: restrict allowed properties
Describe exactly what properties are allowed in Google Chrome OS EC Type C port, so the schema can properly validate the DTS. Existing DTS defines always connectors with unit addresses, not a sole "connector" child. Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Prashant Malani <[email protected]> Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 07d1caa commit 8f42658

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,24 @@ properties:
2020
compatible:
2121
const: google,cros-ec-typec
2222

23-
connector:
23+
'#address-cells':
24+
const: 1
25+
26+
'#size-cells':
27+
const: 0
28+
29+
patternProperties:
30+
'^connector@[0-9a-f]+$':
2431
$ref: /schemas/connector/usb-connector.yaml#
32+
unevaluatedProperties: false
33+
properties:
34+
reg:
35+
maxItems: 1
2536

2637
required:
2738
- compatible
2839

29-
additionalProperties: true #fixme
40+
additionalProperties: false
3041

3142
examples:
3243
- |+

0 commit comments

Comments
 (0)