SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
Address Offset | 0x0000 0000 | ||
Physical Address | 0x4848 5000 | Instance | MDIO |
Description | MDIO Revision | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
REVISION |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | REVISION | MDIO revision value | RW | 0x- |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0004 | ||
Physical Address | 0x4848 5004 | Instance | MDIO |
Description | MDIO Control register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
IDLE | ENABLE | RESERVED | HIGHEST_USER_CHANNEL | RESERVED | PREAMBLE | FAULT | FAULTENB | INTTESTENB | RESERVED | CLKDIV |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31 | IDLE | MDIO state machine IDLE. Set to 1 when the state machine is in the idle state. 0: State machine is not in idle state. 1: State machine is in idle state. | R | 0x0 |
30 | ENABLE | Enable control. If the MDIO state machine is active at the time it is disabled, it will complete the current operation before halting and setting the IDLE bit. If using byte access, the ENABLE bit has to be the last bit written in this register. 0: Disables the MDIO state machine. 1: Enable the MDIO state machine. | RW | 0x0 |
29 | RESERVED | R | 0x0 | |
28:24 | HIGHEST_USER_CHANNEL | Highest user channel. This field specifies the highest user access channel that is available in the module and is currently set to 1. This implies that the MDIO_USERACCESS1 register is the highest available user access channel. | R | 0x0 |
23:21 | RESERVED | R | 0x0 | |
20 | PREAMBLE | Preamble disable. 0: Standard MDIO preamble is used. 1: Disables this device from sending MDIO frame preambles. | RW | 0x0 |
19 | FAULT | Fault indicator. This bit is set to 1 if the MDIO pins fail to read back what the device is driving onto them. This indicates a physical layer fault and the module state machine is reset. Writing a 1 to it clears this bit. 0: No failure. 1: Physical layer fault; the MDIO state machine is reset. | RW | 0x0 |
18 | FAULTENB | Fault detect enable. This bit has to be set to 1 to enable the physical layer fault detection. 0: Disables the physical layer fault detection. 1: Enables the physical layer fault detection. | RW | 0x0 |
17 | INTTESTENB | Interrupt test enable. This bit can be set to 1 to enable the host to set the USERINT and LINKINT bits for test purposes. 0: Interrupt bits are not set. 1: Enables the host to set the USERINT and LINKINT bits for test purposes. | RW | 0x0 |
16 | RESERVED | R | 0x0 | |
15:0 | CLKDIV | Clock divider. This field specifies the division ratio between ICLK and the frequency of MDCLK. MDCLK is disabled when CLKDIV is set to 0. MDCLK frequency = ICLK frequency/(CLKDIV+1). | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0008 | ||
Physical Address | 0x4848 5008 | Instance | MDIO |
Description | PHY Alive Status Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ALIVE |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | ALIVE | MDIO alive. Each of the 32 bits of this register is set if the most recent access to the PHY with address corresponding to the register bit number was acknowledged by the PHY, the bit is reset if the PHY fails to acknowledge the access. Both the user and polling accesses to a PHY will cause the corresponding alive bit to be updated. The alive bits are only meant to be used to give an indication of the presence or not of a PHY with the corresponding address. Writing a 1 to any bit will clear it, writing a 0 has no effect. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 000C | ||
Physical Address | 0x4848 500C | Instance | MDIO |
Description | PHY Link Status | ||
Type | R |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
LINK |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | LINK | MDIO link state. This register is updated after a read of the Generic Status Register of a PHY. The bit is set if the PHY with the corresponding address has link and the PHY acknowledges the read transaction. The bit is reset if the PHY indicates it does not have link or fails to acknowledge the read transaction. Writes to the register have no effect. In addition, the status of the two PHYs specified in the MDIO_USERPHYSEL registers can be determined using the MLINK input pins (NOT PINNED OUT). This is determined by the LINKSEL bit in the MDIO_USERPHYSEL register. | R | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0010 | ||
Physical Address | 0x4848 5010 | Instance | MDIO |
Description | |||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | LINKINTRAW |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:2 | RESERVED | R | 0x0 | |
1:0 | LINKINTRAW | MDIO link change event, raw value. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0014 | ||
Physical Address | 0x4848 5014 | Instance | MDIO |
Description | MDIO Link Status Change Interrupt Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | LINKINTMASKED |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:2 | RESERVED | R | 0x0 | |
1:0 | LINKINTMASKED | MDIO link change interrupt, masked value. When asserted 1, a bit indicates that there was an MDIO link change event (i.e. change in the MDIO Link register) corresponding to the PHY address in the MDIO_USERPHYSEL register and the corresponding LINKINTENB bit was set. LINKINTMASKED[0] and LINKINTMASKED[1] correspond to MDIO_USERPHYSEL0 and MDIO_USERPHYSEL1, respectively. Writing a 1 will clear the interrupt and writing 0 has no effect. If the INTTESTENB bit in the MDIO_CONTROL register is set, the host may set the LINKINT bits to a 1. This mode may be used for test purposes. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0020 | ||
Physical Address | 0x4848 5020 | Instance | MDIO |
Description | MDIO User Command Complete Interrupt | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | USERINTRAW |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:2 | RESERVED | R | 0x0 | |
1:0 | USERINTRAW | Raw value of MDIO user command complete event for the MDIO_USERACCESS1 and MDIO_USERACCESS0 register, respectively. When asserted 1, a bit indicates that the previously scheduled PHY read or write command using that particular MDIO_USERACCESS register has completed. Writing a 1 will clear the event and writing 0 has no effect. If the INTTESTENB bit in the MDIO_CONTROL register is set, the host may set the USERINTRAW bits to a 1. This mode may be used for test purposes. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0024 | ||
Physical Address | 0x4848 5024 | Instance | MDIO |
Description | MDIO User Command Complete Interrupt | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | USERINTMASKED |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:2 | RESERVED | R | 0x0 | |
1:0 | USERINTMASKED | Masked value of MDIO user command complete interrupt for the MDIO_USERACCESS1 and MDIO_USERACCESS0 register, respectively. When asserted 1, a bit indicates that the previously scheduled PHY read or write command using that particular MDIO_USERACCESS register has completed and the corresponding USERINTMASKSET bit is set to 1. Writing a 1 will clear the interrupt and writing 0 has no effect. If the INTTESTENB bit in the MDIO_CONTROL register is set, the host may set the USERINTMASKED bits to a 1. This mode may be used for test purposes. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0028 | ||
Physical Address | 0x4848 5028 | Instance | MDIO |
Description | MDIO User Command Complete Interrupt Mask Set | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | USERINTMASKSET |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:2 | RESERVED | R | 0x0 | |
1:0 | USERINTMASKSET | MDIO user interrupt mask set for USERINTMASKED[1:0], respectively. Writing a bit to 1 will enable MDIO user command complete interrupts for that particular MDIO_USERACCESS register. MDIO user interrupt for a particular MDIO_USERACCESS register is disabled if the corresponding bit is 0. Writing a 0 to this register has no effect. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 002C | ||
Physical Address | 0x4848 502C | Instance | MDIO |
Description | MDIO User Command Complete Interrupt Mask Clear | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | USERINTMASKCLEAR |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:2 | RESERVED | R | 0x0 | |
1:0 | USERINTMASKCLEAR | MDIO user command complete interrupt mask clear for USERINTMASKED[1:0], respectively. Writing a bit to 1 will disable further user command complete interrupts for that particular MDIO_USERACCESS register. Writing a 0 to this register has no effect. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0080 | ||
Physical Address | 0x4848 5080 | Instance | MDIO |
Description | MDIO_User_Access | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
GO | WRITE | ACK | RESERVED | REGADR | PHYADR | DATA |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31 | GO | Go. Writing a 1 to this bit causes the MDIO state machine to perform an MDIO access when it is convenient for it to do so, this is not an instantaneous process. Writing a 0 to this bit has no effect. This bit is write able only if the MDIO state machine is enabled. This bit will self clear when the requested access has been completed. Any writes to the MDIO_USERACCESS0 register are blocked when the GO bit is 1. If byte access is being used, the GO bit should be written last. | RW | 0x0 |
30 | WRITE | Write enable. Setting this bit to a 1 causes the MDIO transaction to be a register write, otherwise it is a register read. | RW | 0x0 |
29 | ACK | Acknowledge. This bit is set if the PHY acknowledged the read transaction. | RW | 0x0 |
28:26 | RESERVED | R | 0x0 | |
25:21 | REGADR | Register address. Specifies the PHY register to be accessed for this transaction. | RW | 0x0 |
20:16 | PHYADR | PHY address. Specifies the PHY to be accesses for this transaction. | RW | 0x0 |
15:0 | DATA | User data. The data value read from or to be written to the specified PHY register. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0084 | ||
Physical Address | 0x4848 5084 | Instance | MDIO |
Description | MDIO User PHY Select | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | LINKSEL | LINKINTENB | RESERVED | PHYADDRMON |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:8 | RESERVED | R | 0x0 | |
7 | LINKSEL | Link status determination select. Set to 1 to determine link status using the MLINK pin (NOT PINNED OUT). Default value is 0 which implies that the link status is determined by the MDIO state machine. | RW | 0x0 |
6 | LINKINTENB | Link change interrupt enable. Set to 1 to enable link change status interrupts for PHY address specified in PHYADDRMON. Link change interrupts are disabled if this bit is set to 0. 0: Link change interrupts are disabled. 1: Link change status interrupts for PHY address specified in PHYADDRMON bits are enabled. | RW | 0x0 |
5 | RESERVED | R | 0x0 | |
4:0 | PHYADDRMON | PHY address whose link status is to be monitored. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0088 | ||
Physical Address | 0x4848 5088 | Instance | MDIO |
Description | MDIO User Access | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
GO | WRITE | ACK | RESERVED | REGADR | PHYADR | DATA |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31 | GO | Go. Writing a 1 to this bit causes the MDIO state machine to perform an MDIO access when it is convenient for it to do so, this is not an instantaneous process. Writing a 0 to this bit has no effect. This bit is write able only if the MDIO state machine is enabled. This bit will self clear when the requested access has been completed. Any writes to the MDIO_USERACCESS1 register are blocked when the GO bit is 1. If byte access is being used, the GO bit should be written last. | RW | 0x0 |
30 | WRITE | Write enable. Setting this bit to a 1 causes the MDIO transaction to be a register write, otherwise it is a register read. | RW | 0x0 |
29 | ACK | Acknowledge. This bit is set if the PHY acknowledged the read transaction. | RW | 0x0 |
28:26 | RESERVED | R | 0x0 | |
25:21 | REGADR | Register address. Specifies the PHY register to be accessed for this transaction. | RW | 0x0 |
20:16 | PHYADR | PHY address. Specifies the PHY to be accesses for this transaction. | RW | 0x0 |
15:0 | DATA | User data. The data value read from or to be written to the specified PHY register. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 008C | ||
Physical Address | 0x4848 508C | Instance | MDIO |
Description | MDIO User PHY Select | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | LINKSEL | LINKINTENB | RESERVED | PHYADDRMON |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:8 | RESERVED | R | 0x0 | |
7 | LINKSEL | Link status determination select. Set to 1 to determine link status using the MLINK pin (NOT PINNED OUT). Default value is 0 which implies that the link status is determined by the MDIO state machine. | RW | 0x0 |
6 | LINKINTENB | Link change interrupt enable. Set to 1 to enable link change status interrupts for PHY address specified in PHYADDRMON. Link change interrupts are disabled if this bit is set to 0. 0: Link change interrupts are disabled. 1: Link change status interrupts for PHY address specified in PHYADDRMON bits are enabled. | RW | 0x0 |
5 | RESERVED | R | 0x0 | |
4:0 | PHYADDRMON | PHY address whose link status is to be monitored. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |