Skip to contentSkip to conversation

dt-bindings: net: fsl,qoriq-mc-dpmac: using unevaluatedProperties

PATCH Superseded Frank Li 2 participants 2 messages Aug 10, 2024

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: net: fsl,qoriq-mc-dpmac: using unevaluatedProperties

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#

---
Change from v1 to v2
- Remove properties, which already defined in ethernet-controller.yaml

---
 .../bindings/net/fsl,qoriq-mc-dpmac.yaml         | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)
Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml +1 -15
index a1b71b35319e7..0a91d839382d0 100644
@@ -24,24 +24,10 @@ 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:
   - |
Signature · 1 line
2.34.1
#1 lore raw
Quoted 27 lines · Frank Li

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#

---
Change from v1 to v2
- Remove properties, which already defined in ethernet-controller.yaml

---
 .../bindings/net/fsl,qoriq-mc-dpmac.yaml         | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)
Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml +0 -1
index a1b71b35319e7..0a91d839382d0 100644
@@ -24,24 +24,10 @@ properties:
     maxItems: 1
     description: The DPMAC number
 
-  phy-handle: true

Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml properties: · line 37

Quoted 10 lines
Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml +0 -10
-
-  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.

pcs-handle must stay because you must limit number of items.

Best regards,
Krzysztof