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)
182 struct mipi_dbi *dbi; member
302 struct mipi_dbi *dbi = ili->dbi; in ili9341_dpi_init() local
306 mipi_dbi_command_stackbuf(dbi, 0xca, cfg->ca, ILI9341_CA_LEN); in ili9341_dpi_init()
307 mipi_dbi_command_stackbuf(dbi, ILI9341_POWERB, cfg->power_b, in ili9341_dpi_init()
309 mipi_dbi_command_stackbuf(dbi, ILI9341_POWER_SEQ, cfg->power_seq, in ili9341_dpi_init()
311 mipi_dbi_command_stackbuf(dbi, ILI9341_DTCA, cfg->dtca, in ili9341_dpi_init()
313 mipi_dbi_command_stackbuf(dbi, ILI9341_POWERA, cfg->power_a, in ili9341_dpi_init()
315 mipi_dbi_command(ili->dbi, ILI9341_PRC, cfg->prc); in ili9341_dpi_init()
316 mipi_dbi_command_stackbuf(dbi, ILI9341_DTCB, cfg->dtcb, in ili9341_dpi_init()
318 mipi_dbi_command_stackbuf(dbi, ILI9341_FRC, cfg->frc, ILI9341_FRC_LEN); in ili9341_dpi_init()
319 mipi_dbi_command_stackbuf(dbi, ILI9341_DFC, cfg->dfc_1, in ili9341_dpi_init()
321 mipi_dbi_command(dbi, ILI9341_POWER1, cfg->power_1); in ili9341_dpi_init()
322 mipi_dbi_command(dbi, ILI9341_POWER2, cfg->power_2); in ili9341_dpi_init()
325 mipi_dbi_command_stackbuf(dbi, ILI9341_VCOM1, cfg->vcom_1, in ili9341_dpi_init()
327 mipi_dbi_command(dbi, ILI9341_VCOM2, cfg->vcom_2); in ili9341_dpi_init()
328 mipi_dbi_command(dbi, MIPI_DCS_SET_ADDRESS_MODE, cfg->address_mode); in ili9341_dpi_init()
331 mipi_dbi_command(dbi, ILI9341_3GAMMA_EN, cfg->g3amma_en); in ili9341_dpi_init()
332 mipi_dbi_command(dbi, ILI9341_RGB_INTERFACE, cfg->rgb_interface); in ili9341_dpi_init()
333 mipi_dbi_command_stackbuf(dbi, ILI9341_DFC, cfg->dfc_2, in ili9341_dpi_init()
337 mipi_dbi_command_stackbuf(dbi, MIPI_DCS_SET_COLUMN_ADDRESS, in ili9341_dpi_init()
341 mipi_dbi_command_stackbuf(dbi, MIPI_DCS_SET_PAGE_ADDRESS, in ili9341_dpi_init()
343 mipi_dbi_command_stackbuf(dbi, ILI9341_INTERFACE, cfg->interface, in ili9341_dpi_init()
347 mipi_dbi_command(dbi, MIPI_DCS_SET_PIXEL_FORMAT, cfg->pixel_format); in ili9341_dpi_init()
348 mipi_dbi_command(dbi, MIPI_DCS_WRITE_MEMORY_START); in ili9341_dpi_init()
350 mipi_dbi_command(dbi, MIPI_DCS_SET_GAMMA_CURVE, cfg->gamma_curve); in ili9341_dpi_init()
351 mipi_dbi_command_stackbuf(dbi, ILI9341_PGAMMA, cfg->pgamma, in ili9341_dpi_init()
353 mipi_dbi_command_stackbuf(dbi, ILI9341_NGAMMA, cfg->ngamma, in ili9341_dpi_init()
355 mipi_dbi_command(dbi, MIPI_DCS_EXIT_SLEEP_MODE); in ili9341_dpi_init()
357 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_ON); in ili9341_dpi_init()
358 mipi_dbi_command(dbi, MIPI_DCS_WRITE_MEMORY_START); in ili9341_dpi_init()
401 mipi_dbi_command(ili->dbi, MIPI_DCS_SET_DISPLAY_OFF); in ili9341_dpi_disable()
430 mipi_dbi_command(ili->dbi, MIPI_DCS_SET_DISPLAY_ON); in ili9341_dpi_enable()
492 struct mipi_dbi *dbi = &dbidev->dbi; in ili9341_dbi_enable() local
505 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_OFF); in ili9341_dbi_enable()
507 mipi_dbi_command(dbi, ILI9341_POWERB, 0x00, 0xc1, 0x30); in ili9341_dbi_enable()
508 mipi_dbi_command(dbi, ILI9341_POWER_SEQ, 0x64, 0x03, 0x12, 0x81); in ili9341_dbi_enable()
509 mipi_dbi_command(dbi, ILI9341_DTCA, 0x85, 0x00, 0x78); in ili9341_dbi_enable()
510 mipi_dbi_command(dbi, ILI9341_POWERA, 0x39, 0x2c, 0x00, 0x34, 0x02); in ili9341_dbi_enable()
511 mipi_dbi_command(dbi, ILI9341_PRC, ILI9341_DBI_PRC_NORMAL); in ili9341_dbi_enable()
512 mipi_dbi_command(dbi, ILI9341_DTCB, 0x00, 0x00); in ili9341_dbi_enable()
515 mipi_dbi_command(dbi, ILI9341_POWER1, ILI9341_DBI_VCOMH_4P6V); in ili9341_dbi_enable()
516 mipi_dbi_command(dbi, ILI9341_POWER2, ILI9341_DBI_PWR_2_DEFAULT); in ili9341_dbi_enable()
518 mipi_dbi_command(dbi, ILI9341_VCOM1, ILI9341_DBI_VCOM_1_VMH_4P25V, in ili9341_dbi_enable()
520 mipi_dbi_command(dbi, ILI9341_VCOM2, ILI9341_DBI_VCOM_2_DEC_58); in ili9341_dbi_enable()
523 mipi_dbi_command(dbi, MIPI_DCS_SET_PIXEL_FORMAT, in ili9341_dbi_enable()
527 mipi_dbi_command(dbi, ILI9341_FRC, ILI9341_DBI_FRC_DIVA & 0x03, in ili9341_dbi_enable()
531 mipi_dbi_command(dbi, ILI9341_3GAMMA_EN, 0x00); in ili9341_dbi_enable()
532 mipi_dbi_command(dbi, MIPI_DCS_SET_GAMMA_CURVE, ILI9341_GAMMA_CURVE_1); in ili9341_dbi_enable()
533 mipi_dbi_command(dbi, ILI9341_PGAMMA, in ili9341_dbi_enable()
536 mipi_dbi_command(dbi, ILI9341_NGAMMA, in ili9341_dbi_enable()
541 mipi_dbi_command(dbi, ILI9341_ETMOD, ILI9341_DBI_EMS_GAS | in ili9341_dbi_enable()
546 mipi_dbi_command(dbi, ILI9341_DFC, 0x08, 0x82, 0x27, 0x00); in ili9341_dbi_enable()
547 mipi_dbi_command(dbi, MIPI_DCS_EXIT_SLEEP_MODE); in ili9341_dbi_enable()
550 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_ON); in ili9341_dbi_enable()
571 mipi_dbi_command(dbi, MIPI_DCS_SET_ADDRESS_MODE, addr_mode); in ili9341_dbi_enable()
609 struct mipi_dbi *dbi; in ili9341_dbi_probe() local
626 dbi = &dbidev->dbi; in ili9341_dbi_probe()
628 dbi->reset = reset; in ili9341_dbi_probe()
639 ret = mipi_dbi_spi_init(spi, dbi, dc); in ili9341_dbi_probe()
672 ili->dbi = devm_kzalloc(dev, sizeof(struct mipi_dbi), in ili9341_dpi_probe()
674 if (!ili->dbi) in ili9341_dpi_probe()
687 ret = mipi_dbi_spi_init(spi, ili->dbi, dc); in ili9341_dpi_probe()
764 * for original mipi dbi compitable