diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2022-08-11 08:22:45 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2022-08-12 19:13:32 +0200 |
commit | 8f426582e0e0c9bbd58e170e1b209334eb5df79e (patch) | |
tree | 02c6b47ebfe02bbdd7dadd04f89e9c83a485609e /Documentation | |
parent | dt-bindings: Drop Dan Murphy and Ricardo Rivera-Matos (diff) | |
download | linux-8f426582e0e0c9bbd58e170e1b209334eb5df79e.tar.xz linux-8f426582e0e0c9bbd58e170e1b209334eb5df79e.zip |
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 <krzysztof.kozlowski@linaro.org>
Acked-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220811062245.4316-1-krzysztof.kozlowski@linaro.org
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml b/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml index 2d98f7c4d3bc..50ebd8c57795 100644 --- a/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml +++ b/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml @@ -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: - |+ |