6. PHY Dashboard

Note

The Ethernet Phy Dashboard is a debugging tool. It is not intended to be used for every day work flow.

Two primary things are needed to work with the PHY Dashboard.

  1. The manufacturer’s data sheet of the PHY. This is needed to know the function of the registers and the format of their contents. These data sheets are usually confidential and require and NDA (Non Disclosure Agreement) with the manufacturer.

  2. The address of the PHY in the device and protocol used. If your device is not listed below, please contact support@intrepidcs.com.

Device

Port

MDIO Bus Index

PHY Address

Protocol

RAD-SuperMoon/Moon2

1000BASE-T1

0x0

0x06

Clause45

1000BASE-T

0x1

0x00

RAD-Moon3

MultiGBASE-T1

0x0

0x00

Clause45

MultiGBASE-T

0x0

0x10

RAD-Moon Duo

AE1

0x0

0x02

Clause45

AE2

0x0

0x01

ETH1

0x0

0x07

Clause22

ETH2

0x0

0x06

RAD-Pluto PHYs

AE1

0x0

0x04

Clause22

AE2

0x0

0x05

AE3

0x0

0x06

AE4

0x0

0x07

1000BASE-T

0x0

0x01

RAD-Pluto Switch (SJA1105)

Indirect access through MDIO registers:

Each switch register access requires

reading/writing MDIO address, data, and

command registers using 5 addresses

shown to the right.

MDIO_ADDRESS_LSB

0x0

0x14

Clause22

MDIO_ADDRESS_MSB

0x0

0x15

MDIO_DATA_LSB

0x0

0x16

MDIO_DATA_MSB

0x0

0x17

MDIO_OPERATION

0x0

0x18

RAD-Jupiter Switch

88Q5050

0x0

0x10

Clause22

RAD-Jupiter - Internal PHYs

  • PHYs internal to 88Q5050

  • Access through Switch Address: 0x10

AE1

0x0

0x01

Clause45

AE2

0x0

0x02

AE3

0x0

0x03

AE4

0x0

0x04

AE5

0x0

0x05

RAD-Jupiter - External PHYs

AE6

0x0

0x02

Clause45

ETH1

0x0

0x01

Clause22

ETH2

0x0

0x00

RAD-Epsilon Family - Switch

88Q6113

0x0

0x16

Clause22

RAD-Epsilon - PHYs (and RAD-Epsilon Express)

1

0x0

0x01

Clause45

2

0x0

0x02

3

0x0

0x03

4

0x0

0x04

5

0x0

0x05

6

0x0

0x06

9

0x0

0x10

10

0x0

0x14

RAD-Epsilon T - PHYs

1

0x0

0x01

Clause45

2

0x0

0x02

3

0x0

0x07

4

0x0

0x05

5

0x0

0x04

6

0x0

0x06

9

0x0

0x10

10

0x0

0x14

RAD-Gigastar

AE-1

0x0

0x00

Clause45

AE-2

0x1

0x00

RAD-Comet

ETH01 (100/1000BASE-T)

TBD

TBD

TBD

AE-01 (100BASE-T1)

TBD

TBD

AE-02 (10BASE-T1S)

TBD

TBD

6.1. Opening the PHY Dashboard

The PHY Dashboard can be opened from the Embedded Tools menu in Vehicle Spy (shown below)

../../../_images/phy-dashboard-menu.png

6.2. Register Access

MDIO protocol

Most Ethernet Phys communicate using MDIO protocol (Management Data Input/Output). Each frame is 32 bits. There are 2 start bits, a 2 bit operation code, 5 bit phy address, 5 bit register address, 2 bit turn around delay, and 16 bit data.

6.2.1. Clause 22

The initial protocol, IEEE 802.3 Clause 22, was designed to read or write 32 registers within 32 devices. Each read/write is done in one operation.

  • Phy Address 5 bits (0 – 31 decimal)

  • Register address 5 bits (0 – 31 decimal) or (0 – 1F hex)

  • Data 16 bits

../../../_images/Clause22.png

Page Register

Some Ethernet Phy manufacturers added a page register to allow for more registers in Clause 22. The page can be 0 – 255 decimal. If the Phy does not support pages, then page will be ignored. When using pages, reads and writes can no longer be performed in one operation. Instead you must write to the page register and then before any other process changes the page, you can read or write the destination register. If another process were to change the page register before you finish, the result will be an read the wrong register or an write to wrong register which may cause the Phy to stop working.

6.2.2. Clause 45

As Ethernet Phys became more complicated and supported different speeds and connections, IEEE 802.3 Clause 45 was added. Because the Register Address is now 16 bits, each read/write takes at 2 operations. The first operation is always writing the Register Address that you want to use in the next operation. The second is the actual read or write. There is also a special read that increments the address after each read which allows you to write a starting address and then read a whole block of registers.

  • Port 5 bits (this is equivalent to the Phy Address)

  • Device 5 bits (this is similar to the page)

  • Register address 16 bits (this allows 65536 registers in each device)

  • Data 16 bits

../../../_images/Clause45.png

6.3. VSpy Operation

  • Add – use this button to add MDIO operations. Ctrl-S saves screen contents to VS3 file.

  • Delete – deletes the currently selected item or item.

  • Delete All – deletes all operations

  • Read One Time – performs all reads from the list once. No writes are performed.

  • Write One Time – performs all writes from the list once. No reads are performed.

  • All One Time – performs every item in the list once.

  • Send Selected – performs only the selected item or items once.

  • Start Monitor – performs all reads once per second.

  • Stops Monitor – stops the monitor operation.

Note: all values in Hex except Phy Address/Port

../../../_images/Controls.jpg

6.4. Examples

6.4.1. Clause 22 Example:

../../../_images/Example1.jpg
  • Line 1 writes soft reset to phy address 16, using Clause 22

  • Line 2 reads Phy ID Reg1 from phy address 16 using Clause 22

  • Line 3 reads Phy ID Reg2 from phy address 16 using Clause 22

6.4.2. Clause 45 Example:

../../../_images/Example2.jpg
  • Line 1 writes soft reset of PCS to Port 16, Device 3 using Clause 45

  • Line 2 reads PCS ID Reg1 from Port 16, Device 3 using Clause 45

  • Line 3 reads PCS ID Reg2 from Port 16, Device 3 using Clause 45

6.5. Common Clause 22 Registers

Clasuse 22 Registers

Bits

Function/Status

Control Register

(Register 0)

15

reset

14

loopback

12

auto negotiate

11

power down

10

isolate

9

renegotiate

8

duplex

7

collision test

6/13

speed

10=1000mbps

01=100mbps

00=10mbps

Status Register

(Register 1)

5

Auto Negotiation Complete

4

Remote Fault

3

Auto Negotiation Capability

2

Link Status

1

Jabber Detect

0

Extended Capability

Phy ID Reg 1

(Register 2)

15:0

OUI MSB

PHY ID Reg 2

(Register 1)

15:10

OUI LSB

9:4

Model Number

3:0

Revision Number

6.6. Common Clause 45 Registers

6.6.1. PMA/PMD Registers

Device

Register

Bits

Function/Status

Control Register

1

0

15

reset

11

power down

6/13

speed (10-1000mbps)

11=Speed set by bits 5:2

10=1000mbps

01=100mbps

00=10mbps

5:2

speed (2.5-10 Gbps)

0111=5 Gbps

0110=2.5 Gbps

0000=10 Gbps

Device ID Reg 1

1

2

15:0

Auto Negotiation Complete

Device ID Reg 2

1

3

15:10

OUI LSB

9:4

Model Number

3:0

Revision Number

6.6.2. PCS Registers

Device

Register

Bits

Function/Status

Control Register

3

0

15

reset

14

loopback

11

power down

6/13

speed

10=1000mbps

01=100mbps

00=10mbps

Device ID Reg 1

3

2

15:0

Auto Negotiation Complete

Device ID Reg 2

3

3

15:10

OUI LSB

9:4

Model Number

3:0

Revision Number