REL 1.0
Page 38 of 69
iWave Systems Technologies Pvt. Ltd.
iW-RainboW-G15D Linux User Manual
Ethernet speed and duplex settings
The “MDIO” utility commands used to query and change settings such as speed, auto- negotiation on Ethernet
devices. This section explains how to set the Ethernet speed to 10/100/1000 Mbps or half/full duplex in the iW-
RainboW-G15M platform.
To find the Ethernet PHY address, execute the below command.
iWave-G15 >mdio list
Example
iWave-G15 >mdio list
FEC:
3 – Micrel ksz9031 <--> FEC
Here FEC is bus name and 3 is phy address
To read any register from the Ethernet PHY device, execute the below command.
iWave-G15 >mdio read <busname> <phyaddr> <reg>
Example
iWave-G15 >mdio read FEC 0x3 0x0
To write any register to Ethernet PHY device, execute the below command.
iWave-G15 >mdio write <busname> <phyaddr> <reg> <value>
To set the Ethernet speed as 1000Mbps and full duplex, execute the below command.
iWave-G15 >mdio write <busname> <phyaddr> 0x0 0x0140
To set the Ethernet speed as 1000Mbps and half duplex, execute the below command.
iWave-G15 >mdio write <busname> <phyaddr> 0x0 0x0040
To set the Ethernet speed as 100Mbps and full duplex, execute the below command.
iWave-G15 >mdio write <busname> <phyaddr> 0x0 0x2100
To set the Ethernet speed as 100Mbps and half duplex, execute the below command.
iWave-G15 >mdio write <busname> <phyaddr> 0x0 0x2000
To set the Ethernet speed as 10Mbps and full duplex, execute the below command.
iWave-G15 >mdio write <busname> <phyaddr> 0x0 0x0100
To set the Ethernet speed as 10Mbps and half duplex, execute the below command.
iWave-G15 >mdio write <busname> <phyaddr> 0x0 0x0000
To set the auto-negotiation mode, execute the below command.
iWave-G15 >mdio write <busname> <phyaddr> 0x0 0x1000
To restart the auto-negotiation, execute the below command.
iWave-G15 >mdio write <busname> <phyaddr> 0x0 0x1200