cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MichaelK
Contributor
Contributor
496 Views
Registered: ‎06-25-2020

Register in device-tree for ethernet-phy

Jump to solution

Hello.
I am trying to understand the macb-driver better. I know that I have to specify a ethernet-phy device in the device-tree, but I don't understand what register number I have to use. 

 

ethernet_phy: ethernet-phy@???{
        reg = <???>;
 };

 


What register do I even reference here?
Is there a place where I can read up on this?

0 Kudos
1 Solution

Accepted Solutions
rfs613
Scholar
Scholar
455 Views
Registered: ‎05-28-2013

The value you are asking about is known as the ethernet PHY address. There can be multiple PHY chips on a single MDIO bus; the PHY address allows software to communicate with each one. You'll need to look at schematics and/or board documentation to know the value. It will be in the range of 0 to 31 since PHY address is 5 bits long.

For more please have a look at the reply by Stephenm at https://forums.xilinx.com/t5/Ethernet/How-to-get-MDIO-PHY-address-of-an-Ethernet-port/td-p/1176642

View solution in original post

0 Kudos
1 Reply
rfs613
Scholar
Scholar
456 Views
Registered: ‎05-28-2013

The value you are asking about is known as the ethernet PHY address. There can be multiple PHY chips on a single MDIO bus; the PHY address allows software to communicate with each one. You'll need to look at schematics and/or board documentation to know the value. It will be in the range of 0 to 31 since PHY address is 5 bits long.

For more please have a look at the reply by Stephenm at https://forums.xilinx.com/t5/Ethernet/How-to-get-MDIO-PHY-address-of-an-Ethernet-port/td-p/1176642

View solution in original post

0 Kudos