Commit 390b14b5 authored by Rob Herring (Arm)'s avatar Rob Herring (Arm) Committed by Jakub Kicinski
Browse files

dt-bindings: net: Define properties at top-level



Convention is DT schemas should define all properties at the top-level
and not inside of if/then schemas. That minimizes the if/then schemas
and is more future proof.

Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarSerge Semin <fancer.lancer@gmail.com>
Link: https://patch.msgid.link/20240703195827.1670594-2-robh@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent caa93b7c
Loading
Loading
Loading
Loading
+17 −11
Original line number Diff line number Diff line
@@ -68,6 +68,17 @@ properties:
      Phandle to the syscon node that handles the path from GMAC to
      PHY variants.

  mediatek,pcie-mirror:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      Phandle to the mediatek pcie-mirror controller.

  mediatek,pctl:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      Phandle to the syscon node that handles the ports slew rate and
      driver current.

  mediatek,sgmiisys:
    $ref: /schemas/types.yaml#/definitions/phandle-array
    minItems: 1
@@ -131,15 +142,12 @@ allOf:

        mediatek,infracfg: false

        mediatek,pctl:
          $ref: /schemas/types.yaml#/definitions/phandle
          description:
            Phandle to the syscon node that handles the ports slew rate and
            driver current.

        mediatek,wed: false

        mediatek,wed-pcie: false
    else:
      properties:
        mediatek,pctl: false

  - if:
      properties:
@@ -201,12 +209,10 @@ allOf:
          minItems: 1
          maxItems: 1

        mediatek,pcie-mirror:
          $ref: /schemas/types.yaml#/definitions/phandle
          description:
            Phandle to the mediatek pcie-mirror controller.

        mediatek,wed-pcie: false
    else:
      properties:
        mediatek,pcie-mirror: false

  - if:
      properties:
+35 −32
Original line number Diff line number Diff line
@@ -512,6 +512,12 @@ properties:
    description:
      Frequency division factor for MDC clock.

  snps,tso:
    $ref: /schemas/types.yaml#/definitions/flag
    description:
      Enables the TSO feature otherwise it will be managed by MAC HW capability
      register.

  mdio:
    $ref: mdio.yaml#
    unevaluatedProperties: false
@@ -595,6 +601,7 @@ allOf:
  - if:
      properties:
        compatible:
          not:
            contains:
              enum:
                - allwinner,sun7i-a20-gmac
@@ -625,11 +632,7 @@ allOf:

    then:
      properties:
        snps,tso:
          $ref: /schemas/types.yaml#/definitions/flag
          description:
            Enables the TSO feature otherwise it will be managed by
            MAC HW capability register.
        snps,tso: false

additionalProperties: true