Re: [PATCH net-next v3 3/5] net: stmmac: dwmac-rk: Move integrated_phy_powerup/down functions

From: Andrew Lunn
Date: Wed Mar 19 2025 - 19:23:03 EST


> > Do you know what these MACPHY_ID are? I hope it is not what you get
> > when you read PHY registers 2 and 3?
>
> I think it may be:
>
> GRF_MACPHY_CON2
> 15:0 macphy_id / PHY ID Number, macphy_cfg_phy_id[15:0]
>
> GRF_MACPHY_CON3
> 15:12 macphy_cfg_rev_nr / Manufacturer's Revision Number
> 11:6 macphy_model_nr / Manufacturer's Model Number
> 5:0 macphy_id / PHY ID Number, macphy_cfg_phy_id[21:16]
>
> and
>
> MACPHY_PHY_IDENTIFIER1 - Address: 02
> 15:0 PHY ID number / default:cfg_phy_id[15:0]
>
> MACPHY_PHY_IDENTIFIER2 - Address: 03
> 15:10 PHY ID number / default:cfg_phy_id[21:16]
> 9:4 Model number / default:cfg_model_nr[5:0]
> 3:0 Revision number / default:cfg_rev_nr[3:0]
>
> So likely what you get when you read PHY registers 2 and 3.

Ah:

drivers/net/phy/rockchip.c

#define INTERNAL_EPHY_ID 0x1234d400

However, it is not clear where the d4 come from.

The problem here is the upper part should be an OUI from the vendor.
I doubt rockchip actually own this OUI. They do actually have the MAC
OUI: 10:DC:B6:90:00:00/28. I don't know if you can use a MAC OUI with
a PHY ID?

Andrew