MIPI D-PHY IP User Guide: Agilex™ 5 FPGAs

ID 817561
Date 4/01/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

6.2.1. D-PHY IP Registers

The table below provides a register list of a D-PHY link in the IP.

The presence of some registers depends on the link configuration. TX registers exist only when the D-PHY link is configured as TX; RX registers exist only when the link is configured as RX. Any writes to addresses that do not exist are ignored. Reads return 0s.

Table 29.  D-PHY IP Register List
Register Offset Width Access Reset Description
IP_ID 0x00 8 Read Only 0x00 IP Version ID
IP_CAP 0x01 8 Read Only Param Capability Register 0
D0_CAP 0x03 8 Read Only 0x06 Lane 0 Capability
DN_CAP 0x04 8 Read Only 0x02 Lane 1-N Capability
RX_CAP 0x08 8 Read Only Param Rx Capability Register
TX_CAP 0x0C 8 Read Only Param Tx Capability Register
TX_PREAMBLE_LEN 0x0D 8 Read Write Param Tx Preamble Control
D-PHY_CSR 0x10 8 Read Write 0x01 Soft reset / Enable
TX_CLK_LANE_PS 0x11 8 Read Only Param Tx Clock Phase Shift
RX_DLANE_ERR 0x12 8 Read Only 0x00 Data lane 0-7 error status
SKEW_CAL_LEN_B0 0x14 8 Read Only Param Skew calibration length [7:0] - used by TX for inti skew generation when SKEW_CAL_EN=1
SKEW_CAL_LEN_B1 0x15 8 Read Only Param Skew calibration length [15:8] - used by TX for init skew generation when SKEW_CAL_EN=1
SKEW_CAL_LEN_B2 0x16 8 Read Only Param Skew calibration length [23:16] - used by TX for init skew generation when SKEW_CAL_EN=1
SKEW_CAL_LEN_B3 0x17 8 Read Only Param Skew calibration length [31:24] - used by TX for init skew generation when SKEW_CAL_EN=1
ALT_CAL_LEN_B0 0x18 8 Read Only Param Alternate calibration length [7:0] - used by TX for alternate cal generation when ALT_CAL_EN=1
ALT_CAL_LEN_B1 0x19 8 Read Only Param Alternate calibration length [15:8] - used by TX for alternate cal generation when ALT_CAL_EN=1
ALT_CAL_LEN_B2 0x1A 8 Read Only Param Alternate calibration length [23:16] - used by TX for alternate cal generation when ALT_CAL_EN=1
ALT_CAL_LEN_B3 0x1B 8 Read Only Param Alternate calibration length [31:24] - used by TX for alternate cal generation when ALT_CAL_EN=1
CLK_CSR 0x1C 8 Read Write 0x01 Clock lane CSR.
CLK_STATUS 0x1D 8 Read Only 0x00 Clock Status
DLANE_CSR_0 0x20 8 Read Write Param Data Lane 0 CSR 0
DLANE_STATUS_0 0x21 8 Read Only 0x00  
RX_DLANE_DESKEW_DELAY_0 0x22 8 Read Write * Param RX Data lane deskew delay 0
RX_DLANE_ERR_0 0x23 8 Read Write 0x00

Data Lane 0 error status register (RX)

DLANE_CSR_1 0x24 8 Read Write Param Data Lane 1 CSR 0
DLANE_STATUS_1 0x25 8 Read Only 0x00  
RX_DLANE_DESKEW_DELAY_1 0x26 8 Read Write * Param RX Data lane deskew delay 1
RX_DLANE_ERR_1 0x27 8 Read Write 0x00 Data Lane 1 error status register (RX)
DLANE_CSR_2 0x28 8 Read Write Param Data Lane 2 CSR 0
DLANE_STATUS_2 0x29 8 Read Only 0x00  
RX_DLANE_DESKEW_DELAY_2 0x2A 8 Read Write * Param RX Data lane deskew delay 2
RX_DLANE_ERR_2 0x2B 8 Read Write 0x00 Data Lane 2 error status register (RX)
DLANE_CSR_3 0x2C 8 Read Write Param Data Lane 3 CSR 0
DLANE_STATUS_3 0x2D 8 Read Only 0x00  
RX_DLANE_DESKEW_DELAY_3 0x2E 8 Read Write * Param RX Data lane deskew delay 3
RX_DLANE_ERR_3 0x2F 8 Read Write 0x00 Data Lane 3 error status register (RX)
DLANE_CSR_4 0x30 8 Read Write Param Data Lane 4 CSR 0
DLANE_STATUS_4 0x31 8 Read Only 0x00  
RX_DLANE_DESKEWW_DELAY_4 0x32 8 Read Write * Param RX Data lane deskew delay 4
RX_DLANE_ERR_4 0x33 8 Read Write 0x00 Data Lane 4 error status register (RX)
DLANE_CSR_5 0x34 8 Read Write Param Data Lane 5 CSR 0
DLANE_STATUS_5 0x35 8 Read Only 0x00  
RX_DLANE_DESKEW_DELAY_5 0x36 8 Read Write * Param RX Data lane deskew delay 5
RX_DLANE_ERR_5 0x37   Read Write 0x00 Data Lane 5 error status register (RX)
DLANE_CSR_6 0x38 8 Read Write Param Data Lane 6 CSR 0
DLANE_STATUS_6 0x39 8 Read Only 0x00  
RX_DLANE_DESKEW_DELAY_6 0x3A 8 Read Write * Param RX Data lane deskew delay 6
RX_DLANE_ERR_6 0x3B 8 Read Write 0x00 Data Lane 6 error status register (RX)
DLANE_CSR_7 0x3C 8 Read Write Param Data Lane 7 CSR 0
DLANE_STATUS_7 0x3D 8 Read Only 0x00  
RX_DLANE_DESKEW_DELAY_7 0x3E 8 Read Write * Param RX Data lane deskew delay 7
RX_DLANE_ERR_7 0x3F 8 Read Write 0x00 Data Lane 7 error status register (RX)
TX_LPX 0x40 8 Read Write * Param TX_LPX
TX_HS_EXIT 0x41 8 Read Write * Param TX_HS_EXIT
TX_LP_EXIT 0x42 8 Read Write * Param TX_LP_EXIT
TX_CLK_PREPARE 0x44 8 Read Write * Param TX_CLK_PREPARE
TX_CLK_TRAIL 0x45 8 Read Write * Param TX_CLK_TRAIL
TX _CLK_ZERO 0x46 8 Read Write * Param TX _CLK_ZERO
TX_CLK_POST 0x47 8 Read Write * Param TX_CLK_POST
TX _CLK_PRE 0x48 8 Read Write * Param TX _CLK_PRE
TX _HS_PREPARE 0x49 8 Read Write * Param TX _HS_PREPARE
TX _HS_ZERO 0x4A 8 Read Write * Param TX _HS_ZERO
TX_HS_TRAIL 0x4C 8 Read Write * Param TX_HS_TRAIL
TX_INIT 0x4E 8 Read Write * Param TX_INIT
TX_WAKE 0x4F 8 Read Write * Param TX_WAKE
RX_CLK_LOSS_DETECT 0x50 8 Read Write * Param RX_CLK_LOSS_DETECT
RX_CLK_SETTLE 0x51 8 Read Write * Param RX_CLK_SETTLE
RX _HS_SETTLE 0x52 8 Read Write * Param RX _HS_SETTLE
RX_INIT 0x54 8 Read Write * Param RX_INIT
RX_CLK_POST 0x55 8 Read Write * Param RX_CLK_POST
RX_CAL_REG_CRTL 0x60 8 Read Write 0x00 Rx Capability Register
RX_CAL_STATUS_D-PHY 0x61 8 Read Only 0x00 D-PHY Calibration Status Register
RX_CAL_SKEW_W_START_MUX 0x62 8 Read Only 0x00 Window start delay settings for skew calibration for lane CAL_REG_MUXSEL
RX_CAL_SKEW_W_END_MUX 0x63 8 Read Only 0x00 Window end delay settings for skew calibration for lane CAL_REG_MUXSEL
RX_CAL_ALT_W_START_MUX 0x64 8 Read Only 0x00 Window start delta from alternate calibration for lane CAL_REG_MUXSEL
RX_CAL_ALT_W_END_MUX 0x65 8 Read Only 0x00 Window end delta from alternate calibration for lane CAL_REG_MUXSEL
RX_DESKEW_DELAY_MUX 0x66 8 Read Only 0x00 RX deskew delay for lane CAL_REG_MUXSEL
RX_CAL_STATUS_LANE_MUX 0x67 8 Read Only 0x00 Calibration status for lane CAL_REG_MUXSEL
PRBS_INIT_0 0x68 8 Read Write * Param PRBS9 seed value for data lane 0
PRBS_INIT_1 0x69 8 Read Write * Param PRBS9 seed value for data lane 1
PRBS_INIT_2 0x6A 8 Read Write * Param PRBS9 seed value for data lane 2
PRBS_INIT_3 0x6B 8 Read Write * Param PRBS9 seed value for data lane 3
PRBS_INIT_4 0x6C 8 Read Write * Param PRBS9 seed value for data lane 4
PRBS_INIT_5 0x6D 8 Read Write * Param PRBS9 seed value for data lane 5
PRBS_INIT_6 0x6E 8 Read Write * Param PRBS9 seed value for data lane 6
PRBS_INIT_7 0x6F 8 Read Write * Param PRBS9 seed value for data lane 7
TX_TM_CONTROL 0x70 8 Read Write 0x00 TX test mode control register
TX_MNL_IO_0 0x72 8 Read Write 0x00 TX Manual I/O control register 0
TX_MNL_D_LP_EN 0x73 8 Read Write 0x00 TX Manual I/O Data Lane LP (HSb) Control for Data lanes
RX_TM_CONTROL 0x78 8 Read Write 0x00 RX test mode control register