Commit 8f426582 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring
Browse files

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: default avatarPrashant Malani <pmalani@chromium.org>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220811062245.4316-1-krzysztof.kozlowski@linaro.org
parent 07d1caa4
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -20,13 +20,24 @@ properties:
  compatible:
    const: google,cros-ec-typec

  connector:
  '#address-cells':
    const: 1

  '#size-cells':
    const: 0

patternProperties:
  '^connector@[0-9a-f]+$':
    $ref: /schemas/connector/usb-connector.yaml#
    unevaluatedProperties: false
    properties:
      reg:
        maxItems: 1

required:
  - compatible

additionalProperties: true #fixme
additionalProperties: false

examples:
  - |+