Hi
seems that my other thread was locked before i managed to gather all the necessary data, where in Linux (2019.2 Xilinx Petalinux build) the ETH PHY establishes a 1 GbEthernet link, but from U-boot (2019.2 Xilinx) it attempts to train to 1 GE then fails, then tries at 100 Mbps and fail and finally settles at 10 Mbps although not quite functional. as pre the request from the previous thread i have finally managed to gather the register values for each case
Reg offset | Reg name | Cubic reg | Cubic offset | working value | non-working value |
0x00 | BMCR | REG0 BMCR | 22-23 | 0x1140 | 0x1140 |
0x01 | BMSR | REG1 BMSR | 26-27 | 0x796D | 0x796D |
0x02 | PHYIDR1 | REG2 PHYIDR1 | 30-31 | 0x2000 | 0x20000 |
0x03 | PHYIDR2 | REG3 PHYIDR2 | 34-35 | 0xA231 | 0xA231 |
0x04 | ANAR | REG4 ANAR | 38-39 | 0x01E1 | 0x01E1 |
0x05 | ANLPAR | REG5 ANLPAR | 42-43 | 0xCDE1 | 0x4C61 |
0x06 | ANER | REG6 ANER | 46-47 | 0x006F | 0x0067 |
0x07 | ANNPTR | REG7 ANNPTR | 50-51 | 0x2001 | 0x2001 |
0x08 | ANNPRR | REG8 ANNPRR | 54-55 | 0x4006 | 0x6001 |
0x09 | CFG1 | REG9 CFG1 | 58-59 | 0x0300 | 0x0300 |
0x0a | STS1 | REG10 STS1 | 62-63 | 0x3800 | 0x0800 |
0x0b | |||||
0x0c | |||||
0x0d | REGCR | REG13 REGCR | 66-67 | 0x401F | 0x401F |
0x0e | ADDAR | REG14 ADDAR | 70-71 | 0x0000 | 0x0000 |
0x0f | 1KSCR | REG15 1KSCR | 74-75 | 0x3000 | 0x3000 |
0x10 | PHYCR | REG16 PHYCR | 78-79 | 0x5048 | 0x5048 |
0x11 | PHYSTS | REG17 PHYSTS | 82-83 | 0xAC02 | 0x2C02 |
0x12 | MICR | REG18 MICR | 86-87 | 0x0000 | 0x0000 |
0x13 | ISR | REG19 ISR | 90-91 | 0x1C40 | 0x9CC2 |
0x14 | CFG2 | REG20 CFG2 | 94-95 | 0x29C7 | 0x29C7 |
0x15 | RECR | REG21 RECR | 98-99 | 0x0000 | 0x0000 |
0x16 | BISCR | REG22 BISCR | 102-103 | 0x0000 | 0x0000 |
0x17 | STS2 | REG23 STS2 | 106-107 | 0x0040 | 0x0040 |
0x18 | LEDCR1 | REG24 LEDCR1 | 110-111 | 0x6150 | 0x6150 |
0x19 | LEDCR2 | REG25 LEDCR2 | 114-115 | 0x4444 | 0x4444 |
0x1a | LEDCR3 | REG26 LEDCR3 | 118-119 | 0x0002 | 0x0002 |
0x1b | |||||
0x1c | |||||
0x1d | |||||
0x1e | CFG3 | REG30 CFG3 | 122-123 | 0x0002 | 0x0002 |
0x1f | CTRL | REG31 CTRL | 126-127 | 0x0000 | 0x0000 |
0x6e | STRAP_STS1 | REG110 STRAP_STS1 | 170-171 | 0x1000 | 0x1000 |
0x6f | STRAP_STS2 | REG111 STRAP_STS2 | 174-175 | 0x0100 | 0x0100 |