]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
dt-bindings: net: smsc,lan9115: Ensure all properties are defined
authorRob Herring (Arm) <robh@kernel.org>
Mon, 3 Feb 2025 21:29:16 +0000 (15:29 -0600)
committerRob Herring (Arm) <robh@kernel.org>
Tue, 11 Feb 2025 00:13:34 +0000 (18:13 -0600)
Device specific schemas should not allow undefined properties which is
what 'additionalProperties: true' allows. Add a reference to
mc-peripheral-props.yaml which has the additional properties used, and
fix this constraint.

Acked-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250203-dt-lan9115-fix-v1-4-eb35389a7365@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/bindings/net/smsc,lan9115.yaml

index f86667cbcca8993cb9e0c3abda2ab291e3c06ac3..42279ae8c2b9108776499703da75e2fdacb79c96 100644 (file)
@@ -11,6 +11,7 @@ maintainers:
 
 allOf:
   - $ref: ethernet-controller.yaml#
+  - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml#
 
 properties:
   compatible:
@@ -89,10 +90,7 @@ required:
   - reg
   - interrupts
 
-# There are lots of bus-specific properties ("qcom,*", "samsung,*", "fsl,*",
-# "gpmc,*", ...) to be found, that actually depend on the compatible value of
-# the parent node.
-additionalProperties: true
+unevaluatedProperties: false
 
 examples:
   - |