MIPI DSI host of the STM32H7, in adapted command mode.
More...
MIPI DSI host of the STM32H7, in adapted command mode.
Attaching a device starts the regulator and the D-PHY PLL, from the reference clock, for 500 Mbit/s per lane, the fastest the D-PHY runs. Each refresh then sends a frame of the display controller to the frame memory of the panel, as the Display bridge of the controller, sym_bridge. The panel reports its tearing effect on the TE pin, when the board gives one in the default pin state of the host, else over the link. Commands go through the generic packet FIFOs, polled. ST's boards drive their panels the same way.
◆ pbl_mipi_dsi_stm32
| struct pbl_mipi_dsi_stm32 |
| Data Fields |
|
uintptr_t |
base |
Registers. |
|
struct pbl_mipi_dsi_host |
host |
Host. |
|
pbl_irq_t |
irq |
Wrapper interrupt. |
|
struct pbl_clk |
pclk |
Bus clock. |
|
struct pbl_pinctrl |
pinctrl |
TE pin, in the default state, if the board wires it. |
|
struct pbl_clk |
ref |
Reference clock of the D-PHY PLL. |
|
struct pbl_mipi_dsi_stm32_state * |
state |
Driver runtime state. |
◆ pbl_mipi_dsi_stm32_bridge
| struct pbl_mipi_dsi_stm32_bridge |
The host as the bridge of its display controller.
◆ PBL_MIPI_DSI_STM32_DEFINE
| #define PBL_MIPI_DSI_STM32_DEFINE |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_base, |
|
|
|
_irq, |
|
|
|
_pclk, |
|
|
|
_ref, |
|
|
|
_pinctrl |
|
) |
| |
Value:
PBL_DEVICE_STATE_DEFINE(sym); \
static struct pbl_mipi_dsi_stm32_state sym##_dsi_state; \
&pbl_mipi_dsi_stm32_ops), \
.state = &sym##_dsi_state, \
.irq = (_irq), \
.base = (_base), \
.pclk = _pclk, \
.ref = _ref, \
}; \
PBL_IRQ_CONNECT_NUM(_irq, CONFIG_MIPI_DSI_STM32_IRQ_PRIO, pbl_mipi_dsi_stm32_irq_handler, \
&sym##_inst, 0); \
PBL_DEVICE_STATE_DEFINE(sym##_bridge); \
bridge) { \
&pbl_mipi_dsi_stm32_bridge_ops), \
.dsi = &sym##_inst, \
}
A bridge.
Definition display_bridge.h:63
#define PBL_DISPLAY_BRIDGE_INIT(sym, _name, _parent, _ops)
Initializer for the struct pbl_display_bridge of bridge sym, with its device state defined by PBL_DEV...
Definition display_bridge.h:83
The host as the bridge of its display controller.
Definition stm32.h:54
Host.
Definition stm32.h:36
Host.
Definition mipi_dsi.h:126
#define PBL_MIPI_DSI_HOST_INIT(sym, _name, _init, _parent, _ops)
Initializer of a host.
Definition mipi_dsi.h:146
#define PBL_PINCTRL(_default, _sleep, _reg)
Initializer for a struct pbl_pinctrl.
Definition pinctrl.h:132
Define the host and its bridge.
- Parameters
-
| sym | Symbol of the host, its bridge being sym_bridge. |
| _name | Name. |
| _base | Registers. |
| _irq | Wrapper interrupt. |
| _pclk | Bus clock, from PBL_CLK(). |
| _ref | Reference clock, from PBL_CLK(). |
| _pinctrl | Default pin state, with the TE pin, or NULL. |