Commit 63e9d434 authored by Charles Perry's avatar Charles Perry Committed by Paolo Abeni
Browse files

dt-bindings: net: cdns,macb: add a compatible for Microchip pic64hpsc



Add "microchip,pic64hpsc-gem" for "PIC64-HPSC" and
"microchip,pic64hx-gem" for "PIC64HX", compatible with the former.

The generic compatible "cdns,gem" works but offers limited features.
Keep it as a fallback.

The GEM IPs within pic64hpsc have their MDIO controllers unconnected
from any physical pin. Add a check to prevent adding PHYs under the GEM
node.

Signed-off-by: default avatarCharles Perry <charles.perry@microchip.com>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20260313140610.3681752-2-charles.perry@microchip.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent fdd97314
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -70,6 +70,14 @@ properties:
              - microchip,sama7d65-gem   # Microchip SAMA7D65 gigabit ethernet interface
          - const: microchip,sama7g5-gem # Microchip SAMA7G5 gigabit ethernet interface

      - items:
          - const: microchip,pic64hpsc-gem # Microchip PIC64-HPSC
          - const: cdns,gem
      - items:
          - const: microchip,pic64hx-gem   # Microchip PIC64HX
          - const: microchip,pic64hpsc-gem # Microchip PIC64-HPSC
          - const: cdns,gem

  reg:
    minItems: 1
    items:
@@ -196,6 +204,17 @@ allOf:
      required:
        - phys

  - if:
      properties:
        compatible:
          contains:
            const: microchip,pic64hpsc-gem
    then:
      patternProperties:
        "^ethernet-phy@[0-9a-f]$": false
      properties:
        mdio: false

unevaluatedProperties: false

examples: