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

fuchsia.hardware.dsi

PROTOCOLS

Dsi

Defined in fuchsia.hardware.dsi/dsi.fidl

Connect

This function takes the server end of a FIDL connection that will serve fuchsia.hardware.dsi.

This is meant to be used by the display driver. This connection will stay open and valid throughout the lifecycle of the display driver.

The protocol only accepts one client at a time. Returns ZX_OK upon successful connection.

Request

NameType
server handle<channel>

Response

NameType
status zx/status

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

<EMPTY>

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

<EMPTY>

Response

<EMPTY>

PhyPowerUp

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

Request

<EMPTY>

Response

<EMPTY>

PhySendCode

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

Request

NameType
code uint32
parameter uint32

Response

<EMPTY>

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

<EMPTY>

Response

NameType
result DsiExtended_PhyWaitForReady_Result

PowerDown

This function is called to power down the DSI interface.

Request

<EMPTY>

Response

<EMPTY>

PowerUp

This function is called to power up the DSI interface.

Request

<EMPTY>

Response

<EMPTY>

PrintDsiRegisters

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

Request

<EMPTY>

Response

<EMPTY>

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

<EMPTY>

Response

<EMPTY>

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

<EMPTY>

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

FieldTypeDescriptionDefault
rxdata vector<uint8>[64] No default

DsiExtended_Config_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

<EMPTY>

DsiExtended_EnableBist_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

<EMPTY>

DsiExtended_PhyConfig_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

<EMPTY>

DsiExtended_PhyWaitForReady_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

<EMPTY>

DsiExtended_ReadReg_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

FieldTypeDescriptionDefault
val uint32 No default

DsiExtended_WriteReg_Response

Defined in fuchsia.hardware.dsi/dsi.fidl

<EMPTY>

ENUMS

ColorCode strict

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 strict

Type: uint8

Defined in fuchsia.hardware.dsi/dsi.fidl

NameValueDescription
VIDEO 1
COMMAND 2

VideoMode strict

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.

OrdinalFieldTypeDescription
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

OrdinalFieldTypeDescription
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

OrdinalFieldTypeDescription
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

OrdinalFieldTypeDescription
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 strict

Defined in fuchsia.hardware.dsi/dsi.fidl

Ordinal
VariantTypeDescription
1 response DsiBase_SendCmd_Response
2 err zx/status

DsiExtended_Config_Result strict

Defined in fuchsia.hardware.dsi/dsi.fidl

Ordinal
VariantTypeDescription
1 response DsiExtended_Config_Response
2 err zx/status

DsiExtended_EnableBist_Result strict

Defined in fuchsia.hardware.dsi/dsi.fidl

Ordinal
VariantTypeDescription
1 response DsiExtended_EnableBist_Response
2 err zx/status

DsiExtended_PhyConfig_Result strict

Defined in fuchsia.hardware.dsi/dsi.fidl

Ordinal
VariantTypeDescription
1 response DsiExtended_PhyConfig_Response
2 err zx/status

DsiExtended_PhyWaitForReady_Result strict

Defined in fuchsia.hardware.dsi/dsi.fidl

Ordinal
VariantTypeDescription
1 response DsiExtended_PhyWaitForReady_Response
2 err zx/status

DsiExtended_ReadReg_Result strict

Defined in fuchsia.hardware.dsi/dsi.fidl

Ordinal
VariantTypeDescription
1 response DsiExtended_ReadReg_Response
2 err zx/status

DsiExtended_WriteReg_Result strict

Defined in fuchsia.hardware.dsi/dsi.fidl

Ordinal
VariantTypeDescription
1 response DsiExtended_WriteReg_Response
2 err zx/status

CONSTANTS

NameValueTypeDescription
MAX_PAYLOAD_SIZE 64 uint32