Hello,
I am new to ethernet and PHY. So please excuse wrong questions.
I am trying to interface the above part with Zynq 7000. PFA schematic for further reference. I am trying to configure the ethernet in RGMII mode but the ethernet does not come up. I verified the registers from u-boot and they look ok.
Zynq> mdio list
eth0:
1f - Generic PHY <--> ethernet@e000b000
Zynq> mii device
MII devices: 'eth0'
Current device: 'eth0'
Zynq> mii dump 1F 0
0. (3100) -- PHY control register --
(8000:0000) 0.15 = 0 reset
(4000:0000) 0.14 = 0 loopback
(2040:2000) 0. 6,13 = b01 speed selection = 100 Mbps
(1000:1000) 0.12 = 1 A/N enable
(0800:0000) 0.11 = 0 power-down
(0400:0000) 0.10 = 0 isolate
(0200:0000) 0. 9 = 0 restart A/N
(0100:0100) 0. 8 = 1 duplex = full
(0080:0000) 0. 7 = 0 collision test enable
(003f:0000) 0. 5- 0 = 0 (reserved)
Zynq> mii dump 1F 1
1. (7849) -- PHY status register --
(8000:0000) 1.15 = 0 100BASE-T4 able
(4000:4000) 1.14 = 1 100BASE-X full duplex able
(2000:2000) 1.13 = 1 100BASE-X half duplex able
(1000:1000) 1.12 = 1 10 Mbps full duplex able
(0800:0800) 1.11 = 1 10 Mbps half duplex able
(0400:0000) 1.10 = 0 100BASE-T2 full duplex able
(0200:0000) 1. 9 = 0 100BASE-T2 half duplex able
(0100:0000) 1. 8 = 0 extended status
(0080:0000) 1. 7 = 0 (reserved)
(0040:0040) 1. 6 = 1 MF preamble suppression
(0020:0000) 1. 5 = 0 A/N complete
(0010:0000) 1. 4 = 0 remote fault
(0008:0008) 1. 3 = 1 A/N able
(0004:0000) 1. 2 = 0 link status
(0002:0000) 1. 1 = 0 jabber detect
(0001:0001) 1. 0 = 1 extended capabilities
Zynq> mii dump 1F 2
2. (2000) -- PHY ID 1 register --
(ffff:2000) 2.15- 0 = 8192 OUI portion
Zynq> mii dump 1F 3
3. (a240) -- PHY ID 2 register --
(fc00:a000) 3.15-10 = 40 OUI portion
(03f0:0240) 3. 9- 4 = 36 manufacturer part number
(000f:0000) 3. 3- 0 = 0 manufacturer rev. number
Zynq>
When the petalinux boots up I see the TI drivers being loaded in the boot up log.
TI DP83822 e000b000.ethernet-ffffffff:1f: attached PHY driver [TI DP83822] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:1f, irq=POLL) macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 27 (xx:yy:zz:00:00:00)
I verified the device tree also looks ok.
I have 2 questions:
1. What will be the connections from the magnetic chip to the ethernet cable?
I ask this because if I connect 1-1 (RX+ - RX+and so on ) I do not see any output. But when I swap just the RX+ and TX+ wires I see in the zynq terminal the ethernet is up and some basic TX transactions. Also the D900 LED on the board glows yellow.
2. The voltage on the RX_ER pin is always 0. I read in this post, pin 28 should be in Mode 2 or 3. The output of the voltage divider is set for MODE 3 but this pin is somehow driving it low. I thought RX_ER pin connected to FPGA was driving it low which I disconnected. I see the output voltage on voltage divider circuit to be ~0.419 V which is within the range for MODE 3. But the DP83822HF is driving it low.
Please guide me.
Thank you in advance.
Shashank