Project

General

Profile

Access to the PHY Registers

Added by Keith Fletcher over 12 years ago

Hi,
This is perhaps a long shot, but I am using a MityARM1808 with development kit, and would like to know if there is any way to access and change the Ethernet PHY registers (particularly 18H) through the ARM software (either u-boot or drivers)


Replies (2)

RE: Access to the PHY Registers - Added by Tim Iskander over 12 years ago

u-boot has the mii commands that let you twiddle the registers, or you can always write a driver :D
I'm not sure without looking what register 18 is, but linux does provide quite a lot of control
over a lot of the params using the /proc and /sys file systems or IOCTLs.

MII commands
To access the Ethernet PHY use this commands:
Command Description
- mii device Lists available devices.
- mii device <device name> Set current device.
- mii read <addr > <reg> Reads register 'reg' from MII PHY 'addr'.
- mii write <addr > <reg> <data> Writes 'data' to register 'reg' at MII PHY 'addr'.
- mii dump <addr > <reg> Displays data of register 'reg' from MII PHY 'addr'.

cheers
/Tim

RE: Access to the PHY Registers - Added by Keith Fletcher over 12 years ago

Hi Tim,
Thanks for your quick reply - Register 18 is the LED direct control register. I did a few quick tests with the u-Boot commands you suggested and it seems to work as advertised.
Thanks again for help,
keith

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)