Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: usb: connector: disallow additional properties

USB connector bindings is complete, thus no additional properties should
be allowed. Add missing 'reg' property and change additionalProperties
to false, so the schema will check for anything unexpected. This also
allows to drop the 'reg' from other bindings referencing the
usb-connector.yaml and make it required.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230725102325.76336-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Rob Herring
e251a4e2 b2ec7b9b

+8 -15
+2 -4
Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml
··· 29 29 patternProperties: 30 30 '^connector@[0-9a-f]+$': 31 31 $ref: /schemas/connector/usb-connector.yaml# 32 - unevaluatedProperties: false 33 - properties: 34 - reg: 35 - maxItems: 1 32 + required: 33 + - reg 36 34 37 35 required: 38 36 - compatible
+4 -1
Documentation/devicetree/bindings/connector/usb-connector.yaml
··· 30 30 - const: samsung,usb-connector-11pin 31 31 - const: usb-b-connector 32 32 33 + reg: 34 + maxItems: 1 35 + 33 36 label: 34 37 description: Symbolic name for the connector. 35 38 ··· 267 264 - typec-power-opmode 268 265 - new-source-frs-typec-current 269 266 270 - additionalProperties: true 267 + additionalProperties: false 271 268 272 269 examples: 273 270 # Micro-USB connector with HS lines routed via controller (MUIC).
-6
Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml
··· 38 38 patternProperties: 39 39 '^connector@\d$': 40 40 $ref: /schemas/connector/usb-connector.yaml# 41 - 42 - properties: 43 - reg: true 44 - 45 41 required: 46 42 - reg 47 - 48 - unevaluatedProperties: false 49 43 50 44 required: 51 45 - compatible
+2 -4
Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml
··· 43 43 patternProperties: 44 44 '^connector@[01]$': 45 45 $ref: /schemas/connector/usb-connector.yaml# 46 - unevaluatedProperties: false 47 - properties: 48 - reg: 49 - maxItems: 1 46 + required: 47 + - reg 50 48 51 49 required: 52 50 - compatible