Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.dsi

PROTOCOLS

DsiBase

Defined in fuchsia.hardware.dsi/dsi.fidl

SendCmd

This function is used to send a MIPI-DSI command.

Request

NameType
cmd MipiDsiCmd
txdata vector<uint8>[64]

Response

NameType
result DsiBase_SendCmd_Result

DsiExtended

Defined in fuchsia.hardware.dsi/dsi.fidl

Config

This function is used to configure all the DSI parameters needed to operated in both Command and Video Mode.

Request

NameType
dsi_config DsiConfig

Response

NameType
result DsiExtended_Config_Result

EnableBist

This function enables Built-In Self-Test (BIST) pattern generation.

Request

NameType
pattern uint32

Response

NameType
result DsiExtended_EnableBist_Result

IsPoweredUp

This function returns true if the DSI IP block is powered on and not in reset.

Request

NameType

Response

NameType
on bool

PhyConfig

This function configures the MIPI D-PHY block if it exists within the DSI IP block.

Request

NameType
dsi_config DsiConfig

Response

NameType
result DsiExtended_PhyConfig_Result

PhyPowerDown

This function is used to power down the MIPI D-PHY block.

Request

NameType

Response

NameType

PhyPowerUp

This function is used to power up the MIPI D-PHY block.

Request

NameType

Response

NameType

PhySendCode

This function is used to communicate with the MIPI D-PHY block.

Request

NameType
code uint32
parameter uint32

Response

NameType

PhyWaitForReady

This function returns ZX_OK once MIPI D-PHY block is ready. MIPI D-PHY block is considered ready once the LOCK Bit and StopStateClk bit are set.

Request

NameType

Response

NameType
result DsiExtended_PhyWaitForReady_Result

PowerDown

This function is called to power down the DSI interface.

Request

NameType

Response

NameType

PowerUp

This function is called to power up the DSI interface.

Request

NameType

Response

NameType

PrintDsiRegisters

This function prints the value of all DSI IP block registers.

Request

NameType

Response

NameType

ReadReg

This function returns the value of any register within the DSI IP block.

Request

NameType
reg uint32

Response

NameType
result DsiExtended_ReadReg_Result

Reset

This function resets the DSI IP block.

Request

NameType

Response

NameType

SendCmd

This function is used to send a MIPI-DSI command.

Request

NameType
cmd MipiDsiCmd
txdata vector<uint8>[64]

Response

NameType
result DsiBase_SendCmd_Result

SetMode

This function is used to change modes between Video and Command.

Request

NameType
mode DsiMode

Response

NameType

WriteReg

This function allows writing to any register within the DSI IP block. This could be used for debug purposes during development stages.

Request

NameType
reg uint32
val uint32

Response

NameType
result DsiExtended_WriteReg_Result

STRUCTS

DsiBase_SendCmd_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescriptionDefault
rxdata vector<uint8>[64] No default

DsiExtended_Config_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescriptionDefault

DsiExtended_EnableBist_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescriptionDefault

DsiExtended_PhyConfig_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescriptionDefault

DsiExtended_PhyWaitForReady_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescriptionDefault

DsiExtended_ReadReg_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescriptionDefault
val uint32 No default

DsiExtended_WriteReg_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescriptionDefault

ENUMS

ColorCode

Type: uint8

Defined in fuchsia.hardware.dsi/dsi.fidl

Supported color codes for the DSI interface

NameValueDescription
PACKED_16BIT_565 1
PACKED_18BIT_666 2
LOOSE_24BIT_666 3
PACKED_24BIT_888 4

DsiMode

Type: uint8

Defined in fuchsia.hardware.dsi/dsi.fidl

NameValueDescription
VIDEO 1
COMMAND 2

VideoMode

Type: uint8

Defined in fuchsia.hardware.dsi/dsi.fidl

NameValueDescription
NON_BURST_PULSE 1
NON_BURST_EVENT 2
BURST 3

TABLES

DisplaySetting

Defined in fuchsia.hardware.dsi/dsi.fidl

Vendor-provided configurations based on hardware/lcd type.

OrdinalNameTypeDescription
1 lane_num uint32
2 bit_rate_max uint32
3 clock_factor uint32
4 lcd_clock uint32
5 h_active uint32
6 v_active uint32
7 h_period uint32
8 v_period uint32
9 hsync_width uint32
10 hsync_bp uint32
11 hsync_pol uint32
12 vsync_width uint32
13 vsync_bp uint32
14 vsync_pol uint32

DsiConfig

Defined in fuchsia.hardware.dsi/dsi.fidl

Complete MIPI-DSI and MIPI D-PHY configuration information

OrdinalNameTypeDescription
1 display_setting DisplaySetting
2 video_mode_type VideoMode
3 color_coding ColorCode
4 vendor_config VendorConfig

MipiDsiCmd

Defined in fuchsia.hardware.dsi/dsi.fidl

Generic MIPI-DSI command structure

OrdinalNameTypeDescription
1 virtual_channel_id uint8
2 dsi_data_type uint8
3 write_length uint32
4 expected_read_length uint32
5 flags uint32

VendorConfig

Defined in fuchsia.hardware.dsi/dsi.fidl

Vendor specific data

OrdinalNameTypeDescription
1 lp_escape_time uint32
2 lp_cmd_pkt_size uint32
3 phy_timer_clkhs_to_lp uint32
4 phy_timer_clklp_to_hs uint32
5 phy_timer_hs_to_lp uint32
6 phy_timer_lp_to_hs uint32
7 auto_clklane uint8

UNIONS

DsiBase_SendCmd_Result

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescription
response DsiBase_SendCmd_Response
err zx/status

DsiExtended_Config_Result

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescription
response DsiExtended_Config_Response
err zx/status

DsiExtended_EnableBist_Result

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescription
response DsiExtended_EnableBist_Response
err zx/status

DsiExtended_PhyConfig_Result

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescription
response DsiExtended_PhyConfig_Response
err zx/status

DsiExtended_PhyWaitForReady_Result

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescription
response DsiExtended_PhyWaitForReady_Response
err zx/status

DsiExtended_ReadReg_Result

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescription
response DsiExtended_ReadReg_Response
err zx/status

DsiExtended_WriteReg_Result

Defined in fuchsia.hardware.dsi/dsi.fidl

NameTypeDescription
response DsiExtended_WriteReg_Response
err zx/status

CONSTANTS

NameValueTypeDescription
MAX_PAYLOAD_SIZE 64 uint32