PebbleOS v4.47.0-1075-g013613c8a
Loading...
Searching...
No Matches
Orise Tech OTM8009A

Panel driver for a 480x800 panel on an OTM8009A, over MIPI DSI. More...

Data Structures

struct  pbl_panel_otm8009a
 Panel. More...
 
struct  pbl_panel_otm8009a_backlight
 Brightness of the panel. More...
 

Macros

#define PBL_PANEL_OTM8009A_DEFINE(sym, _name, _host, _channel, _reset)
 Define the panel and its brightness.
 

Detailed Description

Panel driver for a 480x800 panel on an OTM8009A, over MIPI DSI.

The panel keeps the image in its frame memory, written in command mode on two lanes, in windows timed by its tearing effect, which it reports at two thirds of its scan. It takes a frame rotated or reflected through its address mode, 800x480 when turned a quarter turn. It dims the backlight of its module with its PWM output, from a DCS command, which the driver gives as a Backlight of the panel, sym_backlight.


Data Structure Documentation

◆ pbl_panel_otm8009a

struct pbl_panel_otm8009a

Panel.

Data Fields
struct pbl_panel panel Panel, child of its MIPI DSI host.
struct pbl_gpio reset Reset line, active while the IC is held in reset.
struct pbl_panel_otm8009a_state * state Driver runtime state: the panel on its host, and the timing of the orientation of the frame.

◆ pbl_panel_otm8009a_backlight

struct pbl_panel_otm8009a_backlight

Brightness of the panel.

Data Fields
struct pbl_backlight backlight Backlight.
const struct pbl_panel_otm8009a * otm Panel.

Macro Definition Documentation

◆ PBL_PANEL_OTM8009A_DEFINE

#define PBL_PANEL_OTM8009A_DEFINE (   sym,
  _name,
  _host,
  _channel,
  _reset 
)
Value:
extern const struct pbl_backlight sym##_backlight; \
PBL_DEVICE_STATE_DEFINE(sym); \
static struct pbl_panel_otm8009a_state sym##_otm_state = { \
.dsi = { \
.host = (_host), \
.channel = (_channel), \
.lanes = 2U, \
.timing = &sym##_otm_state.timing, \
}, \
}; \
PBL_DEVICE_INSTANCE(sym, struct pbl_panel_otm8009a, struct pbl_panel, panel){ \
.panel = PBL_PANEL_INIT(sym, _name, pbl_panel_otm8009a_init, nullptr, &pbl_panel_otm8009a_ops, \
&sym##_otm_state.timing, PBL_PANEL_BUS_FORMAT_MIPI_DSI_CMD_RGB888), \
.reset = _reset, \
.state = &sym##_otm_state, \
}; \
PBL_BACKLIGHT_STATE_DEFINE(sym##_backlight); \
PBL_DEVICE_INSTANCE(sym##_backlight, struct pbl_panel_otm8009a_backlight, struct pbl_backlight, \
backlight) { \
.backlight = PBL_BACKLIGHT_INIT(sym##_backlight, _name "_backlight", &sym##_inst.panel.dev, \
&pbl_panel_otm8009a_backlight_ops), \
.otm = &sym##_inst, \
}
Backlight.
Definition backlight.h:80
#define PBL_BACKLIGHT_BRIGHTNESS_MAX
Maximum brightness.
Definition backlight.h:48
#define PBL_BACKLIGHT_INIT(sym, _name, _parent, _ops)
Initialize a struct pbl_backlight.
Definition backlight.h:117
@ PBL_MIPI_DSI_FMT_RGB888
24 bits per pixel, 8 per color.
Definition mipi_dsi.h:58
Brightness of the panel.
Definition otm8009a.h:47
Panel.
Definition otm8009a.h:36
A panel.
Definition panel.h:138
#define PBL_PANEL_INIT(sym, _name, _init, _parent, _ops, _timing, _bus_format,...)
Initializer for the struct pbl_panel of panel sym, for the PBL_*_DEFINE() macro of a driver,...
Definition panel.h:166
@ PBL_PANEL_BUS_FORMAT_MIPI_DSI_CMD_RGB888
MIPI DSI in command mode: RGB888 frames of a display controller into the frame memory of the panel,...
Definition panel.h:48

Define the panel and its brightness.

Parameters
symSymbol of the panel.
_nameName.
_hostMIPI DSI host.
_channelVirtual channel.
_resetReset line, from PBL_GPIO().