Re: [PATCH 1/4] dt-bindings: net: Add Realtek MDIO controller

From: Chris Packham
Date: Thu Dec 12 2024 - 19:57:08 EST


Hi Andrew,

On 13/12/2024 06:13, Andrew Lunn wrote:
+ realtek,smi-address:
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ description: SMI interface and address for the connected PHY
+ items:
+ - description: SMI interface number associated with the port.
+ - description: SMI address of the PHY for the port.
Is the hardware really random here with its mapping of PHYs?
Generally, hardware is pretty predictable, logical. I'm just wondering
if this property is really required, or if it can be replaced with
some logic, avoiding typ0s.

The hardware is pretty flexible in this respect. You can pretty arbitrarily arrange your PHYs. Not all ports support the same kind of SERDES interface but as far as the MDIO interface goes you can arrange things however you like.