The sequence for programming DisplayPort
RX with DP159 is summarized in the following steps:
- Reset the DP159.
- Initialize interrupt handler in the system.
- Initialize IIC controller. The IIC controller is used to program the DP159.
- Remove reset over the DP159.
- Initialize the DP159. For details, see the DP159 Initialization.
- Initialize DisplayPort RX. The initialization sequence is
handled by the DisplayPort RX driver.
- Disable the main link.
- Apply GT (CPLL and PHY) reset.
- Set the AUX clock divider (number of AXI clocks for the 1 MHz AUX clock generation).
- Set the RX Voltage Swing and pre-emphasis training setting (0x1445 in offset 0x214). Training requests Vswing start at level1 and fixed pre-emphasis at level1.
- Configure the tDLOCK period to 10 µs (Offset 0x21C).
- Remove the DisplayPort RX out of GT reset.
- Wait for PHY ready (CPLL lock and rest done status).
- Enable the DisplayPort receiver link.
- Enable the DTG.
- Apply and remove the soft reset.
- DisplayPort RX receives the training pattern 1 (TP1) as the source initiates the training sequence after reading the RX capabilities. DisplayPort RX generates TP1 start interrupt.
- TP1 interrupt handler. For details, see the TP1 Interrupt Handler (TP1_Handler).
- After the completion of DP159 TP1 programming, power down the unused lanes of DisplayPort based on the lane count.
- Apply GT (CPLL and PHY) reset.
- Follow the DisplayPort reset sequencing and remove the reset.
- DisplayPort RX receives training pattern 2 (TP2)/ training pattern 3 (TP3), as the source initiates the training sequence based on RX DPCD capabilities once the clock recovery is complete. DisplayPort RX generates TP2/TP3 start interrupt.
- TP23 interrupt handler. For details, see the TP23 Interrupt Handler (TP23_Handler).
- Monitor the training done or the training lost interrupts for the training status.
- In case of a cable unplug, re-initialize the DP159 by following the re-initialize sequence details provided in DP159 Re-Initialization.
A graphical representation of the DisplayPort RX programming sequence with DP159 is shown in the following table.
Figure 1. DisplayPort RX Programming Sequence with DP159