drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c- Extension
.c- Size
- 18216 bytes
- Lines
- 640
- 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/media-bus-format.hlinux/module.hlinux/of.hlinux/regulator/consumer.hvideo/display_timing.hvideo/mipi_display.hdrm/drm_mipi_dsi.hdrm/drm_modes.hdrm/drm_panel.h
Detected Declarations
struct ltk050h3146w_cmdstruct ltk050h3146wstruct ltk050h3146w_descstruct ltk050h3146wfunction ltk050h3148w_init_sequencefunction ltk050h3146w_init_sequencefunction ltk050h3146w_a2_select_pagefunction ltk050h3146w_a2_write_pagefunction ltk050h3146w_a2_init_sequencefunction ltk050h3146w_unpreparefunction ltk050h3146w_preparefunction ltk050h3146w_get_modesfunction ltk050h3146w_probefunction ltk050h3146w_remove
Annotated Snippet
struct ltk050h3146w_cmd {
char cmd;
char data;
};
struct ltk050h3146w;
struct ltk050h3146w_desc {
const unsigned long mode_flags;
const struct drm_display_mode *mode;
void (*init)(struct mipi_dsi_multi_context *dsi_ctx);
};
struct ltk050h3146w {
struct device *dev;
struct drm_panel panel;
struct gpio_desc *reset_gpio;
struct regulator *vci;
struct regulator *iovcc;
const struct ltk050h3146w_desc *panel_desc;
};
static const struct ltk050h3146w_cmd page1_cmds[] = {
{ 0x22, 0x0A }, /* BGR SS GS */
{ 0x31, 0x00 }, /* column inversion */
{ 0x53, 0xA2 }, /* VCOM1 */
{ 0x55, 0xA2 }, /* VCOM2 */
{ 0x50, 0x81 }, /* VREG1OUT=5V */
{ 0x51, 0x85 }, /* VREG2OUT=-5V */
{ 0x62, 0x0D }, /* EQT Time setting */
/*
* The vendor init selected page 1 here _again_
* Is this supposed to be page 2?
*/
{ 0xA0, 0x00 },
{ 0xA1, 0x1A },
{ 0xA2, 0x28 },
{ 0xA3, 0x13 },
{ 0xA4, 0x16 },
{ 0xA5, 0x29 },
{ 0xA6, 0x1D },
{ 0xA7, 0x1E },
{ 0xA8, 0x84 },
{ 0xA9, 0x1C },
{ 0xAA, 0x28 },
{ 0xAB, 0x75 },
{ 0xAC, 0x1A },
{ 0xAD, 0x19 },
{ 0xAE, 0x4D },
{ 0xAF, 0x22 },
{ 0xB0, 0x28 },
{ 0xB1, 0x54 },
{ 0xB2, 0x66 },
{ 0xB3, 0x39 },
{ 0xC0, 0x00 },
{ 0xC1, 0x1A },
{ 0xC2, 0x28 },
{ 0xC3, 0x13 },
{ 0xC4, 0x16 },
{ 0xC5, 0x29 },
{ 0xC6, 0x1D },
{ 0xC7, 0x1E },
{ 0xC8, 0x84 },
{ 0xC9, 0x1C },
{ 0xCA, 0x28 },
{ 0xCB, 0x75 },
{ 0xCC, 0x1A },
{ 0xCD, 0x19 },
{ 0xCE, 0x4D },
{ 0xCF, 0x22 },
{ 0xD0, 0x28 },
{ 0xD1, 0x54 },
{ 0xD2, 0x66 },
{ 0xD3, 0x39 },
};
static const struct ltk050h3146w_cmd page3_cmds[] = {
{ 0x01, 0x00 },
{ 0x02, 0x00 },
{ 0x03, 0x73 },
{ 0x04, 0x00 },
{ 0x05, 0x00 },
{ 0x06, 0x0a },
{ 0x07, 0x00 },
{ 0x08, 0x00 },
{ 0x09, 0x01 },
{ 0x0a, 0x00 },
{ 0x0b, 0x00 },
{ 0x0c, 0x01 },
{ 0x0d, 0x00 },
{ 0x0e, 0x00 },
Annotation
- Immediate include surface: `linux/delay.h`, `linux/gpio/consumer.h`, `linux/media-bus-format.h`, `linux/module.h`, `linux/of.h`, `linux/regulator/consumer.h`, `video/display_timing.h`, `video/mipi_display.h`.
- Detected declarations: `struct ltk050h3146w_cmd`, `struct ltk050h3146w`, `struct ltk050h3146w_desc`, `struct ltk050h3146w`, `function ltk050h3148w_init_sequence`, `function ltk050h3146w_init_sequence`, `function ltk050h3146w_a2_select_page`, `function ltk050h3146w_a2_write_page`, `function ltk050h3146w_a2_init_sequence`, `function ltk050h3146w_unprepare`.
- 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.