Lines Matching full:dbi
12 * For dbi+dpi part:
14 * the reuse of DBI abstraction part referred from Linus's patch
15 * "drm/panel: s6e63m0: Switch to DBI abstraction for SPI"
17 * For only-dbi part, copy from David's code (drm/tiny/ili9341.c)
184 struct mipi_dbi *dbi; member
304 struct mipi_dbi *dbi = ili->dbi; in ili9341_dpi_init() local
308 mipi_dbi_command_stackbuf(dbi, 0xca, cfg->ca, ILI9341_CA_LEN); in ili9341_dpi_init()
309 mipi_dbi_command_stackbuf(dbi, ILI9341_POWERB, cfg->power_b, in ili9341_dpi_init()
311 mipi_dbi_command_stackbuf(dbi, ILI9341_POWER_SEQ, cfg->power_seq, in ili9341_dpi_init()
313 mipi_dbi_command_stackbuf(dbi, ILI9341_DTCA, cfg->dtca, in ili9341_dpi_init()
315 mipi_dbi_command_stackbuf(dbi, ILI9341_POWERA, cfg->power_a, in ili9341_dpi_init()
317 mipi_dbi_command(ili->dbi, ILI9341_PRC, cfg->prc); in ili9341_dpi_init()
318 mipi_dbi_command_stackbuf(dbi, ILI9341_DTCB, cfg->dtcb, in ili9341_dpi_init()
320 mipi_dbi_command_stackbuf(dbi, ILI9341_FRC, cfg->frc, ILI9341_FRC_LEN); in ili9341_dpi_init()
321 mipi_dbi_command_stackbuf(dbi, ILI9341_DFC, cfg->dfc_1, in ili9341_dpi_init()
323 mipi_dbi_command(dbi, ILI9341_POWER1, cfg->power_1); in ili9341_dpi_init()
324 mipi_dbi_command(dbi, ILI9341_POWER2, cfg->power_2); in ili9341_dpi_init()
327 mipi_dbi_command_stackbuf(dbi, ILI9341_VCOM1, cfg->vcom_1, in ili9341_dpi_init()
329 mipi_dbi_command(dbi, ILI9341_VCOM2, cfg->vcom_2); in ili9341_dpi_init()
330 mipi_dbi_command(dbi, MIPI_DCS_SET_ADDRESS_MODE, cfg->address_mode); in ili9341_dpi_init()
333 mipi_dbi_command(dbi, ILI9341_3GAMMA_EN, cfg->g3amma_en); in ili9341_dpi_init()
334 mipi_dbi_command(dbi, ILI9341_RGB_INTERFACE, cfg->rgb_interface); in ili9341_dpi_init()
335 mipi_dbi_command_stackbuf(dbi, ILI9341_DFC, cfg->dfc_2, in ili9341_dpi_init()
339 mipi_dbi_command_stackbuf(dbi, MIPI_DCS_SET_COLUMN_ADDRESS, in ili9341_dpi_init()
343 mipi_dbi_command_stackbuf(dbi, MIPI_DCS_SET_PAGE_ADDRESS, in ili9341_dpi_init()
345 mipi_dbi_command_stackbuf(dbi, ILI9341_INTERFACE, cfg->interface, in ili9341_dpi_init()
349 mipi_dbi_command(dbi, MIPI_DCS_SET_PIXEL_FORMAT, cfg->pixel_format); in ili9341_dpi_init()
350 mipi_dbi_command(dbi, MIPI_DCS_WRITE_MEMORY_START); in ili9341_dpi_init()
352 mipi_dbi_command(dbi, MIPI_DCS_SET_GAMMA_CURVE, cfg->gamma_curve); in ili9341_dpi_init()
353 mipi_dbi_command_stackbuf(dbi, ILI9341_PGAMMA, cfg->pgamma, in ili9341_dpi_init()
355 mipi_dbi_command_stackbuf(dbi, ILI9341_NGAMMA, cfg->ngamma, in ili9341_dpi_init()
357 mipi_dbi_command(dbi, MIPI_DCS_EXIT_SLEEP_MODE); in ili9341_dpi_init()
359 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_ON); in ili9341_dpi_init()
360 mipi_dbi_command(dbi, MIPI_DCS_WRITE_MEMORY_START); in ili9341_dpi_init()
403 mipi_dbi_command(ili->dbi, MIPI_DCS_SET_DISPLAY_OFF); in ili9341_dpi_disable()
432 mipi_dbi_command(ili->dbi, MIPI_DCS_SET_DISPLAY_ON); in ili9341_dpi_enable()
494 struct mipi_dbi *dbi = &dbidev->dbi; in ili9341_dbi_enable() local
507 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_OFF); in ili9341_dbi_enable()
509 mipi_dbi_command(dbi, ILI9341_POWERB, 0x00, 0xc1, 0x30); in ili9341_dbi_enable()
510 mipi_dbi_command(dbi, ILI9341_POWER_SEQ, 0x64, 0x03, 0x12, 0x81); in ili9341_dbi_enable()
511 mipi_dbi_command(dbi, ILI9341_DTCA, 0x85, 0x00, 0x78); in ili9341_dbi_enable()
512 mipi_dbi_command(dbi, ILI9341_POWERA, 0x39, 0x2c, 0x00, 0x34, 0x02); in ili9341_dbi_enable()
513 mipi_dbi_command(dbi, ILI9341_PRC, ILI9341_DBI_PRC_NORMAL); in ili9341_dbi_enable()
514 mipi_dbi_command(dbi, ILI9341_DTCB, 0x00, 0x00); in ili9341_dbi_enable()
517 mipi_dbi_command(dbi, ILI9341_POWER1, ILI9341_DBI_VCOMH_4P6V); in ili9341_dbi_enable()
518 mipi_dbi_command(dbi, ILI9341_POWER2, ILI9341_DBI_PWR_2_DEFAULT); in ili9341_dbi_enable()
520 mipi_dbi_command(dbi, ILI9341_VCOM1, ILI9341_DBI_VCOM_1_VMH_4P25V, in ili9341_dbi_enable()
522 mipi_dbi_command(dbi, ILI9341_VCOM2, ILI9341_DBI_VCOM_2_DEC_58); in ili9341_dbi_enable()
525 mipi_dbi_command(dbi, MIPI_DCS_SET_PIXEL_FORMAT, in ili9341_dbi_enable()
529 mipi_dbi_command(dbi, ILI9341_FRC, ILI9341_DBI_FRC_DIVA & 0x03, in ili9341_dbi_enable()
533 mipi_dbi_command(dbi, ILI9341_3GAMMA_EN, 0x00); in ili9341_dbi_enable()
534 mipi_dbi_command(dbi, MIPI_DCS_SET_GAMMA_CURVE, ILI9341_GAMMA_CURVE_1); in ili9341_dbi_enable()
535 mipi_dbi_command(dbi, ILI9341_PGAMMA, in ili9341_dbi_enable()
538 mipi_dbi_command(dbi, ILI9341_NGAMMA, in ili9341_dbi_enable()
543 mipi_dbi_command(dbi, ILI9341_ETMOD, ILI9341_DBI_EMS_GAS | in ili9341_dbi_enable()
548 mipi_dbi_command(dbi, ILI9341_DFC, 0x08, 0x82, 0x27, 0x00); in ili9341_dbi_enable()
549 mipi_dbi_command(dbi, MIPI_DCS_EXIT_SLEEP_MODE); in ili9341_dbi_enable()
552 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_ON); in ili9341_dbi_enable()
573 mipi_dbi_command(dbi, MIPI_DCS_SET_ADDRESS_MODE, addr_mode); in ili9341_dbi_enable()
607 struct mipi_dbi *dbi; in ili9341_dbi_probe() local
624 dbi = &dbidev->dbi; in ili9341_dbi_probe()
626 dbi->reset = reset; in ili9341_dbi_probe()
637 ret = mipi_dbi_spi_init(spi, dbi, dc); in ili9341_dbi_probe()
670 ili->dbi = devm_kzalloc(dev, sizeof(struct mipi_dbi), in ili9341_dpi_probe()
672 if (!ili->dbi) in ili9341_dpi_probe()
685 ret = mipi_dbi_spi_init(spi, ili->dbi, dc); in ili9341_dpi_probe()
762 * for original mipi dbi compitable