Commit 6b1aa3c8 authored by Inochi Amaoto's avatar Inochi Amaoto Committed by Jakub Kicinski
Browse files

dt-bindings: net: sophgo,sg2044-dwmac: add phy mode restriction



As the ethernet controller of SG2044 and SG2042 only supports
RGMII phy. Add phy-mode property to restrict the value.

Also, since SG2042 has internal rx delay in its mac, make
only "rgmii-txid" and "rgmii-id" valid for phy-mode.

Fixes: e281c48a ("dt-bindings: net: sophgo,sg2044-dwmac: Add support for Sophgo SG2042 dwmac")
Signed-off-by: default avatarInochi Amaoto <inochiama@gmail.com>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20251114003805.494387-2-inochiama@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6e90c767
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -70,6 +70,25 @@ required:

allOf:
  - $ref: snps,dwmac.yaml#
  - if:
      properties:
        compatible:
          contains:
            const: sophgo,sg2042-dwmac
    then:
      properties:
        phy-mode:
          enum:
            - rgmii-rxid
            - rgmii-id
    else:
      properties:
        phy-mode:
          enum:
            - rgmii
            - rgmii-rxid
            - rgmii-txid
            - rgmii-id

unevaluatedProperties: false