PebbleOS v4.47.0-1075-g013613c8a
Loading...
Searching...
No Matches
STM32 DSI host

MIPI DSI host of the STM32H7, in adapted command mode. More...

Data Structures

struct  pbl_mipi_dsi_stm32
 Host. More...
 
struct  pbl_mipi_dsi_stm32_bridge
 The host as the bridge of its display controller. More...
 

Macros

#define PBL_MIPI_DSI_STM32_DEFINE(sym, _name, _base, _irq, _pclk, _ref, _pinctrl)
 Define the host and its bridge.
 

Detailed Description

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.


Data Structure Documentation

◆ pbl_mipi_dsi_stm32

struct pbl_mipi_dsi_stm32

Host.

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.

Data Fields
struct pbl_display_bridge bridge Bridge.
const struct pbl_mipi_dsi_stm32 * dsi Host.

Macro Definition Documentation

◆ PBL_MIPI_DSI_STM32_DEFINE

#define PBL_MIPI_DSI_STM32_DEFINE (   sym,
  _name,
  _base,
  _irq,
  _pclk,
  _ref,
  _pinctrl 
)
Value:
extern const struct pbl_display_bridge sym##_bridge; \
PBL_DEVICE_STATE_DEFINE(sym); \
static struct pbl_mipi_dsi_stm32_state sym##_dsi_state; \
PBL_DEVICE_INSTANCE(sym, struct pbl_mipi_dsi_stm32, struct pbl_mipi_dsi_host, host){ \
.host = PBL_MIPI_DSI_HOST_INIT(sym, _name, pbl_mipi_dsi_stm32_init, nullptr, \
&pbl_mipi_dsi_stm32_ops), \
.state = &sym##_dsi_state, \
.irq = (_irq), \
.base = (_base), \
.pclk = _pclk, \
.ref = _ref, \
.pinctrl = PBL_PINCTRL(_pinctrl, nullptr, 0), \
}; \
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); \
PBL_DEVICE_INSTANCE(sym##_bridge, struct pbl_mipi_dsi_stm32_bridge, struct pbl_display_bridge, \
bridge) { \
.bridge = PBL_DISPLAY_BRIDGE_INIT(sym##_bridge, _name "_bridge", &sym##_inst.host.dev, \
&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
symSymbol of the host, its bridge being sym_bridge.
_nameName.
_baseRegisters.
_irqWrapper interrupt.
_pclkBus clock, from PBL_CLK().
_refReference clock, from PBL_CLK().
_pinctrlDefault pin state, with the TE pin, or NULL.