PROTOCOLS
Dsi
Defined in fuchsia.hardware.dsi/dsi.banjo
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
Name | Type |
---|---|
server |
handle<channel>
|
Response
Name | Type |
---|---|
status |
zx/status
|
DsiBase
Defined in fuchsia.hardware.dsi/dsi.fidl
SendCmd
This function is used to send a MIPI-DSI command.
Request
Name | Type |
---|---|
cmd |
MipiDsiCmd
|
txdata |
vector<uint8>[64]
|
Response
Name | Type |
---|---|
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
Name | Type |
---|---|
dsi_config |
DsiConfig
|
Response
Name | Type |
---|---|
result |
DsiExtended_Config_Result
|
EnableBist
This function enables Built-In Self-Test (BIST) pattern generation.
Request
Name | Type |
---|---|
pattern |
uint32
|
Response
Name | Type |
---|---|
result |
DsiExtended_EnableBist_Result
|
IsPoweredUp
This function returns true if the DSI IP block is powered on and not in reset.
Request
Name | Type |
---|
Response
Name | Type |
---|---|
on |
bool
|
PhyConfig
This function configures the MIPI D-PHY block if it exists within the DSI IP block.
Request
Name | Type |
---|---|
dsi_config |
DsiConfig
|
Response
Name | Type |
---|---|
result |
DsiExtended_PhyConfig_Result
|
PhyPowerDown
This function is used to power down the MIPI D-PHY block.
Request
Name | Type |
---|
Response
Name | Type |
---|
PhyPowerUp
This function is used to power up the MIPI D-PHY block.
Request
Name | Type |
---|
Response
Name | Type |
---|
PhySendCode
This function is used to communicate with the MIPI D-PHY block.
Request
Name | Type |
---|---|
code |
uint32
|
parameter |
uint32
|
Response
Name | Type |
---|
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
Name | Type |
---|
Response
Name | Type |
---|---|
result |
DsiExtended_PhyWaitForReady_Result
|
PowerDown
This function is called to power down the DSI interface.
Request
Name | Type |
---|
Response
Name | Type |
---|
PowerUp
This function is called to power up the DSI interface.
Request
Name | Type |
---|
Response
Name | Type |
---|
PrintDsiRegisters
This function prints the value of all DSI IP block registers.
Request
Name | Type |
---|
Response
Name | Type |
---|
ReadReg
This function returns the value of any register within the DSI IP block.
Request
Name | Type |
---|---|
reg |
uint32
|
Response
Name | Type |
---|---|
result |
DsiExtended_ReadReg_Result
|
Reset
This function resets the DSI IP block.
Request
Name | Type |
---|
Response
Name | Type |
---|
SendCmd
This function is used to send a MIPI-DSI command.
Request
Name | Type |
---|---|
cmd |
MipiDsiCmd
|
txdata |
vector<uint8>[64]
|
Response
Name | Type |
---|---|
result |
DsiBase_SendCmd_Result
|
SetMode
This function is used to change modes between Video and Command.
Request
Name | Type |
---|---|
mode |
DsiMode
|
Response
Name | Type |
---|
WriteReg
This function allows writing to any register within the DSI IP block. This could be used for debug purposes during development stages.
Request
Name | Type |
---|---|
reg |
uint32
|
val |
uint32
|
Response
Name | Type |
---|---|
result |
DsiExtended_WriteReg_Result
|
STRUCTS
DsiBase_SendCmd_Response
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description | Default |
---|---|---|---|
rxdata |
vector<uint8>[64]
|
No default |
DsiExtended_Config_Response
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description | Default |
---|
DsiExtended_EnableBist_Response
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description | Default |
---|
DsiExtended_PhyConfig_Response
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description | Default |
---|
DsiExtended_PhyWaitForReady_Response
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description | Default |
---|
DsiExtended_ReadReg_Response
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description | Default |
---|---|---|---|
val |
uint32
|
No default |
DsiExtended_WriteReg_Response
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description | Default |
---|
ENUMS
ColorCode
Type: uint8
Defined in fuchsia.hardware.dsi/dsi.fidl
Supported color codes for the DSI interface
Name | Value | Description |
---|---|---|
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
Name | Value | Description |
---|---|---|
VIDEO |
1 |
|
COMMAND |
2 |
VideoMode
Type: uint8
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Value | Description |
---|---|---|
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.
Ordinal | Name | Type | Description |
---|---|---|---|
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
Ordinal | Name | Type | Description |
---|---|---|---|
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
Ordinal | Name | Type | Description |
---|---|---|---|
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
Ordinal | Name | Type | Description |
---|---|---|---|
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
Name | Type | Description |
---|---|---|
response |
DsiBase_SendCmd_Response
|
|
err |
zx/status
|
DsiExtended_Config_Result
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description |
---|---|---|
response |
DsiExtended_Config_Response
|
|
err |
zx/status
|
DsiExtended_EnableBist_Result
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description |
---|---|---|
response |
DsiExtended_EnableBist_Response
|
|
err |
zx/status
|
DsiExtended_PhyConfig_Result
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description |
---|---|---|
response |
DsiExtended_PhyConfig_Response
|
|
err |
zx/status
|
DsiExtended_PhyWaitForReady_Result
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description |
---|---|---|
response |
DsiExtended_PhyWaitForReady_Response
|
|
err |
zx/status
|
DsiExtended_ReadReg_Result
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description |
---|---|---|
response |
DsiExtended_ReadReg_Response
|
|
err |
zx/status
|
DsiExtended_WriteReg_Result
Defined in fuchsia.hardware.dsi/dsi.fidl
Name | Type | Description |
---|---|---|
response |
DsiExtended_WriteReg_Response
|
|
err |
zx/status
|
CONSTANTS
Name | Value | Type | Description |
---|---|---|---|
MAX_PAYLOAD_SIZE |
64
|
uint32 |