]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: net: fsl,qoriq-mc-dpmac: using unevaluatedProperties
authorFrank Li <Frank.Li@nxp.com>
Sun, 11 Aug 2024 18:40:49 +0000 (14:40 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 Aug 2024 22:59:28 +0000 (15:59 -0700)
Replace additionalProperties with unevaluatedProperties because it have
allOf: $ref: ethernet-controller.yaml#.

Remove all properties, which already defined in ethernet-controller.yaml.

Fixed below CHECK_DTBS warnings:
arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dtb:
   fsl-mc@80c000000: dpmacs:ethernet@11: 'fixed-link' does not match any of the regexes: 'pinctrl-[0-9]+'
        from schema $id: http://devicetree.org/schemas/misc/fsl,qoriq-mc.yaml#

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240811184049.3759195-1-Frank.Li@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml

index a1b71b35319e70f0b1a12a4c84fa1d95c7b08d76..f19c4fa66f18b35e653da05f90172ff18dcffb41 100644 (file)
@@ -24,24 +24,16 @@ properties:
     maxItems: 1
     description: The DPMAC number
 
-  phy-handle: true
-
-  phy-connection-type: true
-
-  phy-mode: true
-
   pcs-handle:
     maxItems: 1
     description:
       A reference to a node representing a PCS PHY device found on
       the internal MDIO bus.
 
-  managed: true
-
 required:
   - reg
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |