SNLA450 July 2024 DP83822H , DP83822HF , DP83822I , DP83822IF , DP83826E , DP83826I , DP83848-EP , DP83848Q-Q1 , DP83867CR , DP83867CS , DP83867E , DP83867IR , DP83867IS , DP83TC812R-Q1 , DP83TC812S-Q1 , DP83TC813R-Q1 , DP83TC813S-Q1 , DP83TC814R-Q1 , DP83TC814S-Q1 , DP83TG720R-Q1 , DP83TG720S-Q1 , DP83TG721R-Q1 , DP83TG721S-Q1
This function forces the network interface into Master/Slave, without the user needing to know which registers to write to. This is particularly important for Single Pair Ethernet devices (SPE). In SPE communication, there needs to be a Master and Slave, both cannot be Master or Slave.
In the following codeblock, the ethtool command is used to check the current state of the PHY, then the state is changed to the other and checked again.
Command:
root@j7-evm:~# ethtool eth3 | grep master-slave
master-slave cfg: forced master
master-slave status: master
root@j7-evm:~# ethtool -s eth3 master-slave forced-slave
root@j7-evm:~# ethtool eth3 | grep master-slave
master-slave cfg: forced slave
master-slave status: slave
root@j7-evm:~#