Lines Matching full:dbi
112 struct mipi_dbi *dbi = &dbidev->dbi; in st7586_fb_dirty() local
132 mipi_dbi_command(dbi, MIPI_DCS_SET_COLUMN_ADDRESS, in st7586_fb_dirty()
135 mipi_dbi_command(dbi, MIPI_DCS_SET_PAGE_ADDRESS, in st7586_fb_dirty()
139 ret = mipi_dbi_command_buf(dbi, MIPI_DCS_WRITE_MEMORY_START, in st7586_fb_dirty()
168 struct mipi_dbi *dbi = &dbidev->dbi; in st7586_pipe_enable() local
187 mipi_dbi_command(dbi, ST7586_AUTO_READ_CTRL, 0x9f); in st7586_pipe_enable()
188 mipi_dbi_command(dbi, ST7586_OTP_RW_CTRL, 0x00); in st7586_pipe_enable()
192 mipi_dbi_command(dbi, ST7586_OTP_READ); in st7586_pipe_enable()
196 mipi_dbi_command(dbi, ST7586_OTP_CTRL_OUT); in st7586_pipe_enable()
197 mipi_dbi_command(dbi, MIPI_DCS_EXIT_SLEEP_MODE); in st7586_pipe_enable()
198 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_OFF); in st7586_pipe_enable()
202 mipi_dbi_command(dbi, ST7586_SET_VOP_OFFSET, 0x00); in st7586_pipe_enable()
203 mipi_dbi_command(dbi, ST7586_SET_VOP, 0xe3, 0x00); in st7586_pipe_enable()
204 mipi_dbi_command(dbi, ST7586_SET_BIAS_SYSTEM, 0x02); in st7586_pipe_enable()
205 mipi_dbi_command(dbi, ST7586_SET_BOOST_LEVEL, 0x04); in st7586_pipe_enable()
206 mipi_dbi_command(dbi, ST7586_ENABLE_ANALOG, 0x1d); in st7586_pipe_enable()
207 mipi_dbi_command(dbi, ST7586_SET_NLINE_INV, 0x00); in st7586_pipe_enable()
208 mipi_dbi_command(dbi, ST7586_DISP_MODE_GRAY); in st7586_pipe_enable()
209 mipi_dbi_command(dbi, ST7586_ENABLE_DDRAM, 0x02); in st7586_pipe_enable()
225 mipi_dbi_command(dbi, MIPI_DCS_SET_ADDRESS_MODE, addr_mode); in st7586_pipe_enable()
227 mipi_dbi_command(dbi, ST7586_SET_DISP_DUTY, 0x7f); in st7586_pipe_enable()
228 mipi_dbi_command(dbi, ST7586_SET_PART_DISP, 0xa0); in st7586_pipe_enable()
229 mipi_dbi_command(dbi, MIPI_DCS_SET_PARTIAL_ROWS, 0x00, 0x00, 0x00, 0x77); in st7586_pipe_enable()
230 mipi_dbi_command(dbi, MIPI_DCS_EXIT_INVERT_MODE); in st7586_pipe_enable()
236 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_ON); in st7586_pipe_enable()
254 mipi_dbi_command(&dbidev->dbi, MIPI_DCS_SET_DISPLAY_OFF); in st7586_pipe_disable()
302 struct mipi_dbi *dbi; in st7586_probe() local
313 dbi = &dbidev->dbi; in st7586_probe()
318 dbi->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in st7586_probe()
319 if (IS_ERR(dbi->reset)) in st7586_probe()
320 return dev_err_probe(dev, PTR_ERR(dbi->reset), "Failed to get GPIO 'reset'\n"); in st7586_probe()
328 ret = mipi_dbi_spi_init(spi, dbi, a0); in st7586_probe()
333 dbi->read_commands = NULL; in st7586_probe()
348 dbi->swap_bytes = true; in st7586_probe()