drivers/gpu/drm/panel/panel-ilitek-ili9882t.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/panel/panel-ilitek-ili9882t.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/panel/panel-ilitek-ili9882t.c- Extension
.c- Size
- 29025 bytes
- Lines
- 890
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/delay.hlinux/gpio/consumer.hlinux/module.hlinux/of.hlinux/regulator/consumer.hdrm/display/drm_dsc.hdrm/display/drm_dsc_helper.hdrm/drm_connector.hdrm/drm_crtc.hdrm/drm_mipi_dsi.hdrm/drm_panel.hvideo/mipi_display.h
Detected Declarations
struct ili9882tstruct panel_descstruct ili9882tfunction starry_ili9882t_initfunction tianma_il79900a_initfunction ili9882t_disablefunction ili9882t_unpreparefunction ili9882t_preparefunction ili9882t_enablefunction ili9882t_get_modesfunction ili9882t_get_orientationfunction ili9882t_addfunction ili9882t_probefunction ili9882t_remove
Annotated Snippet
struct panel_desc {
const struct drm_display_mode *modes;
const struct drm_dsc_config *dsc;
unsigned int bpc;
/**
* @width_mm: width of the panel's active display area
* @height_mm: height of the panel's active display area
*/
struct {
unsigned int width_mm;
unsigned int height_mm;
} size;
unsigned long mode_flags;
enum mipi_dsi_pixel_format format;
int (*init)(struct ili9882t *boe);
unsigned int lanes;
};
struct ili9882t {
struct drm_panel base;
struct mipi_dsi_device *dsi;
const struct panel_desc *desc;
enum drm_panel_orientation orientation;
struct regulator *pp3300;
struct regulator *pp1800;
struct regulator *avee;
struct regulator *avdd;
struct gpio_desc *enable_gpio;
struct drm_dsc_config dsc;
};
/* ILI9882-specific commands, add new commands as you decode them */
#define ILI9882T_DCS_SWITCH_PAGE 0xFF
#define ili9882t_switch_page(ctx, page) \
mipi_dsi_dcs_write_seq_multi(ctx, ILI9882T_DCS_SWITCH_PAGE, \
0x98, 0x82, (page))
/* IL79900A-specific commands, add new commands as you decode them */
#define IL79900A_DCS_SWITCH_PAGE 0xFF
#define il79900a_switch_page(ctx, page) \
mipi_dsi_dcs_write_seq_multi(ctx, IL79900A_DCS_SWITCH_PAGE, \
0x5a, 0xa5, (page))
static const struct drm_dsc_config tianma_il79900a_dsc = {
.dsc_version_major = 1,
.dsc_version_minor = 2,
.slice_height = 8,
.slice_width = 800,
.slice_count = 2,
.bits_per_component = 8,
.bits_per_pixel = 8 << 4,
.block_pred_enable = true,
.native_420 = false,
.native_422 = false,
.simple_422 = false,
.vbr_enable = false,
.pic_width = 1600,
.pic_height = 2560,
.convert_rgb = 0,
.rc_buf_thresh = {14, 28, 42, 56, 70, 84, 98, 105, 112, 119, 121, 123, 125, 126},
.rc_model_size = DSC_RC_MODEL_SIZE_CONST,
.rc_edge_factor = DSC_RC_EDGE_FACTOR_CONST,
.rc_tgt_offset_high = DSC_RC_TGT_OFFSET_HI_CONST,
.rc_tgt_offset_low = DSC_RC_TGT_OFFSET_LO_CONST,
.mux_word_size = DSC_MUX_WORD_SIZE_8_10_BPC,
.line_buf_depth = 9,
.first_line_bpg_offset = 12,
.initial_xmit_delay = 512,
.initial_offset = 6144,
.rc_quant_incr_limit0 = 11,
.rc_quant_incr_limit1 = 11,
.rc_range_params = {
{ 0, 4, DSC_BPG_OFFSET(2)},
{ 0, 4, DSC_BPG_OFFSET(0)},
{ 1, 5, DSC_BPG_OFFSET(0)},
{ 1, 6, DSC_BPG_OFFSET(-2)},
{ 3, 7, DSC_BPG_OFFSET(-4)},
{ 3, 7, DSC_BPG_OFFSET(-6)},
{ 3, 7, DSC_BPG_OFFSET(-8)},
{ 3, 8, DSC_BPG_OFFSET(-8)},
{ 3, 9, DSC_BPG_OFFSET(-8)},
{ 3, 10, DSC_BPG_OFFSET(-10)},
{ 5, 10, DSC_BPG_OFFSET(-10)},
Annotation
- Immediate include surface: `linux/delay.h`, `linux/gpio/consumer.h`, `linux/module.h`, `linux/of.h`, `linux/regulator/consumer.h`, `drm/display/drm_dsc.h`, `drm/display/drm_dsc_helper.h`, `drm/drm_connector.h`.
- Detected declarations: `struct ili9882t`, `struct panel_desc`, `struct ili9882t`, `function starry_ili9882t_init`, `function tianma_il79900a_init`, `function ili9882t_disable`, `function ili9882t_unprepare`, `function ili9882t_prepare`, `function ili9882t_enable`, `function ili9882t_get_modes`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.