Lines Matching refs:dbi
117 struct mipi_dbi *dbi = &dbidev->dbi; in st7586_fb_dirty() local
134 mipi_dbi_command(dbi, MIPI_DCS_SET_COLUMN_ADDRESS, in st7586_fb_dirty()
137 mipi_dbi_command(dbi, MIPI_DCS_SET_PAGE_ADDRESS, in st7586_fb_dirty()
141 ret = mipi_dbi_command_buf(dbi, MIPI_DCS_WRITE_MEMORY_START, in st7586_fb_dirty()
178 struct mipi_dbi *dbi = &dbidev->dbi; in st7586_pipe_enable() local
197 mipi_dbi_command(dbi, ST7586_AUTO_READ_CTRL, 0x9f); in st7586_pipe_enable()
198 mipi_dbi_command(dbi, ST7586_OTP_RW_CTRL, 0x00); in st7586_pipe_enable()
202 mipi_dbi_command(dbi, ST7586_OTP_READ); in st7586_pipe_enable()
206 mipi_dbi_command(dbi, ST7586_OTP_CTRL_OUT); in st7586_pipe_enable()
207 mipi_dbi_command(dbi, MIPI_DCS_EXIT_SLEEP_MODE); in st7586_pipe_enable()
208 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_OFF); in st7586_pipe_enable()
212 mipi_dbi_command(dbi, ST7586_SET_VOP_OFFSET, 0x00); in st7586_pipe_enable()
213 mipi_dbi_command(dbi, ST7586_SET_VOP, 0xe3, 0x00); in st7586_pipe_enable()
214 mipi_dbi_command(dbi, ST7586_SET_BIAS_SYSTEM, 0x02); in st7586_pipe_enable()
215 mipi_dbi_command(dbi, ST7586_SET_BOOST_LEVEL, 0x04); in st7586_pipe_enable()
216 mipi_dbi_command(dbi, ST7586_ENABLE_ANALOG, 0x1d); in st7586_pipe_enable()
217 mipi_dbi_command(dbi, ST7586_SET_NLINE_INV, 0x00); in st7586_pipe_enable()
218 mipi_dbi_command(dbi, ST7586_DISP_MODE_GRAY); in st7586_pipe_enable()
219 mipi_dbi_command(dbi, ST7586_ENABLE_DDRAM, 0x02); in st7586_pipe_enable()
235 mipi_dbi_command(dbi, MIPI_DCS_SET_ADDRESS_MODE, addr_mode); in st7586_pipe_enable()
237 mipi_dbi_command(dbi, ST7586_SET_DISP_DUTY, 0x7f); in st7586_pipe_enable()
238 mipi_dbi_command(dbi, ST7586_SET_PART_DISP, 0xa0); in st7586_pipe_enable()
239 mipi_dbi_command(dbi, MIPI_DCS_SET_PARTIAL_ROWS, 0x00, 0x00, 0x00, 0x77); in st7586_pipe_enable()
240 mipi_dbi_command(dbi, MIPI_DCS_EXIT_INVERT_MODE); in st7586_pipe_enable()
247 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_ON); in st7586_pipe_enable()
265 mipi_dbi_command(&dbidev->dbi, MIPI_DCS_SET_DISPLAY_OFF); in st7586_pipe_disable()
319 struct mipi_dbi *dbi; in st7586_probe() local
330 dbi = &dbidev->dbi; in st7586_probe()
335 dbi->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in st7586_probe()
336 if (IS_ERR(dbi->reset)) in st7586_probe()
337 return dev_err_probe(dev, PTR_ERR(dbi->reset), "Failed to get GPIO 'reset'\n"); in st7586_probe()
345 ret = mipi_dbi_spi_init(spi, dbi, a0); in st7586_probe()
350 dbi->read_commands = NULL; in st7586_probe()
365 dbi->swap_bytes = true; in st7586_probe()