Re: [PATCH net-next v3 1/5] dt-bindings: net: Add Motorcomm yt8xxx ethernet phy

From: Andrew Lunn
Date: Tue Jan 31 2023 - 08:33:48 EST


> phy id list:
> YT8511 0x0000010a
> YT8521 0x0000011A
> YT8531 0x4f51e91b

The first two are clearly invalid, the OUI part is zero. So i would
not list those. Just use the last one.

In the binding part, you need something like

properties:
compatible:
const: ethernet-phy-id4f51.e91b
description: Only needed for DT lint tools

What i don't know is how this will work in combination with the
compatibles gained from ethernet-phy.yaml. You might need to follow
the same structure, include a oneOf:

In the example part, you would do something like:
>
> mdio0 {
> ...
> ethernet-phy@5 {
# Only needed to make DT lint tools work. Do not copy/paste
# into real DTS files.
> compatible = "ethernet-phy-id4f51.e91b";
> reg = <5>;
> ...
> };
> };

I don't think there are any examples to follow because the kernel
does not need any of this, is probes using the IDs. Listing
compatibles like this is purely for the DT tools, which is why i put
in the comments about not copy/pasting it to real DT blobs.

Andrew