Lines Matching full:dbi

7  * Some code copied from mipi-dbi.c
72 static inline int ili9225_command(struct mipi_dbi *dbi, u8 cmd, u16 data) in ili9225_command() argument
76 return mipi_dbi_command_buf(dbi, cmd, par, 2); in ili9225_command()
85 struct mipi_dbi *dbi = &dbidev->dbi; in ili9225_fb_dirty() local
86 bool swap = dbi->swap_bytes; in ili9225_fb_dirty()
100 if (!dbi->dc || !full || swap || in ili9225_fb_dirty()
145 ili9225_command(dbi, ILI9225_HORIZ_WINDOW_ADDR_1, x2); in ili9225_fb_dirty()
146 ili9225_command(dbi, ILI9225_HORIZ_WINDOW_ADDR_2, x1); in ili9225_fb_dirty()
147 ili9225_command(dbi, ILI9225_VERT_WINDOW_ADDR_1, y2); in ili9225_fb_dirty()
148 ili9225_command(dbi, ILI9225_VERT_WINDOW_ADDR_2, y1); in ili9225_fb_dirty()
150 ili9225_command(dbi, ILI9225_RAM_ADDRESS_SET_1, x_start); in ili9225_fb_dirty()
151 ili9225_command(dbi, ILI9225_RAM_ADDRESS_SET_2, y_start); in ili9225_fb_dirty()
153 ret = mipi_dbi_command_buf(dbi, ILI9225_WRITE_DATA_TO_GRAM, tr, in ili9225_fb_dirty()
182 struct mipi_dbi *dbi = &dbidev->dbi; in ili9225_pipe_enable() local
197 mipi_dbi_hw_reset(dbi); in ili9225_pipe_enable()
205 ret = ili9225_command(dbi, ILI9225_POWER_CONTROL_1, 0x0000); in ili9225_pipe_enable()
210 ili9225_command(dbi, ILI9225_POWER_CONTROL_2, 0x0000); in ili9225_pipe_enable()
211 ili9225_command(dbi, ILI9225_POWER_CONTROL_3, 0x0000); in ili9225_pipe_enable()
212 ili9225_command(dbi, ILI9225_POWER_CONTROL_4, 0x0000); in ili9225_pipe_enable()
213 ili9225_command(dbi, ILI9225_POWER_CONTROL_5, 0x0000); in ili9225_pipe_enable()
217 ili9225_command(dbi, ILI9225_POWER_CONTROL_2, 0x0018); in ili9225_pipe_enable()
218 ili9225_command(dbi, ILI9225_POWER_CONTROL_3, 0x6121); in ili9225_pipe_enable()
219 ili9225_command(dbi, ILI9225_POWER_CONTROL_4, 0x006f); in ili9225_pipe_enable()
220 ili9225_command(dbi, ILI9225_POWER_CONTROL_5, 0x495f); in ili9225_pipe_enable()
221 ili9225_command(dbi, ILI9225_POWER_CONTROL_1, 0x0800); in ili9225_pipe_enable()
225 ili9225_command(dbi, ILI9225_POWER_CONTROL_2, 0x103b); in ili9225_pipe_enable()
243 ili9225_command(dbi, ILI9225_DRIVER_OUTPUT_CONTROL, 0x011c); in ili9225_pipe_enable()
244 ili9225_command(dbi, ILI9225_LCD_AC_DRIVING_CONTROL, 0x0100); in ili9225_pipe_enable()
245 ili9225_command(dbi, ILI9225_ENTRY_MODE, 0x1000 | am_id); in ili9225_pipe_enable()
246 ili9225_command(dbi, ILI9225_DISPLAY_CONTROL_1, 0x0000); in ili9225_pipe_enable()
247 ili9225_command(dbi, ILI9225_BLANK_PERIOD_CONTROL_1, 0x0808); in ili9225_pipe_enable()
248 ili9225_command(dbi, ILI9225_FRAME_CYCLE_CONTROL, 0x1100); in ili9225_pipe_enable()
249 ili9225_command(dbi, ILI9225_INTERFACE_CONTROL, 0x0000); in ili9225_pipe_enable()
250 ili9225_command(dbi, ILI9225_OSCILLATION_CONTROL, 0x0d01); in ili9225_pipe_enable()
251 ili9225_command(dbi, ILI9225_VCI_RECYCLING, 0x0020); in ili9225_pipe_enable()
252 ili9225_command(dbi, ILI9225_RAM_ADDRESS_SET_1, 0x0000); in ili9225_pipe_enable()
253 ili9225_command(dbi, ILI9225_RAM_ADDRESS_SET_2, 0x0000); in ili9225_pipe_enable()
255 ili9225_command(dbi, ILI9225_GATE_SCAN_CONTROL, 0x0000); in ili9225_pipe_enable()
256 ili9225_command(dbi, ILI9225_VERTICAL_SCROLL_1, 0x00db); in ili9225_pipe_enable()
257 ili9225_command(dbi, ILI9225_VERTICAL_SCROLL_2, 0x0000); in ili9225_pipe_enable()
258 ili9225_command(dbi, ILI9225_VERTICAL_SCROLL_3, 0x0000); in ili9225_pipe_enable()
259 ili9225_command(dbi, ILI9225_PARTIAL_DRIVING_POS_1, 0x00db); in ili9225_pipe_enable()
260 ili9225_command(dbi, ILI9225_PARTIAL_DRIVING_POS_2, 0x0000); in ili9225_pipe_enable()
262 ili9225_command(dbi, ILI9225_GAMMA_CONTROL_1, 0x0000); in ili9225_pipe_enable()
263 ili9225_command(dbi, ILI9225_GAMMA_CONTROL_2, 0x0808); in ili9225_pipe_enable()
264 ili9225_command(dbi, ILI9225_GAMMA_CONTROL_3, 0x080a); in ili9225_pipe_enable()
265 ili9225_command(dbi, ILI9225_GAMMA_CONTROL_4, 0x000a); in ili9225_pipe_enable()
266 ili9225_command(dbi, ILI9225_GAMMA_CONTROL_5, 0x0a08); in ili9225_pipe_enable()
267 ili9225_command(dbi, ILI9225_GAMMA_CONTROL_6, 0x0808); in ili9225_pipe_enable()
268 ili9225_command(dbi, ILI9225_GAMMA_CONTROL_7, 0x0000); in ili9225_pipe_enable()
269 ili9225_command(dbi, ILI9225_GAMMA_CONTROL_8, 0x0a00); in ili9225_pipe_enable()
270 ili9225_command(dbi, ILI9225_GAMMA_CONTROL_9, 0x0710); in ili9225_pipe_enable()
271 ili9225_command(dbi, ILI9225_GAMMA_CONTROL_10, 0x0710); in ili9225_pipe_enable()
273 ili9225_command(dbi, ILI9225_DISPLAY_CONTROL_1, 0x0012); in ili9225_pipe_enable()
277 ili9225_command(dbi, ILI9225_DISPLAY_CONTROL_1, 0x1017); in ili9225_pipe_enable()
287 struct mipi_dbi *dbi = &dbidev->dbi; in ili9225_pipe_disable() local
298 ili9225_command(dbi, ILI9225_DISPLAY_CONTROL_1, 0x0000); in ili9225_pipe_disable()
300 ili9225_command(dbi, ILI9225_POWER_CONTROL_2, 0x0007); in ili9225_pipe_disable()
302 ili9225_command(dbi, ILI9225_POWER_CONTROL_1, 0x0a02); in ili9225_pipe_disable()
305 static int ili9225_dbi_command(struct mipi_dbi *dbi, u8 *cmd, u8 *par, in ili9225_dbi_command() argument
308 struct spi_device *spi = dbi->spi; in ili9225_dbi_command()
313 gpiod_set_value_cansleep(dbi->dc, 0); in ili9225_dbi_command()
319 if (*cmd == ILI9225_WRITE_DATA_TO_GRAM && !dbi->swap_bytes) in ili9225_dbi_command()
322 gpiod_set_value_cansleep(dbi->dc, 1); in ili9225_dbi_command()
368 struct mipi_dbi *dbi; in ili9225_probe() local
378 dbi = &dbidev->dbi; in ili9225_probe()
381 dbi->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ili9225_probe()
382 if (IS_ERR(dbi->reset)) in ili9225_probe()
383 return dev_err_probe(dev, PTR_ERR(dbi->reset), "Failed to get GPIO 'reset'\n"); in ili9225_probe()
391 ret = mipi_dbi_spi_init(spi, dbi, rs); in ili9225_probe()
396 dbi->command = ili9225_dbi_command; in ili9225_probe()