Lines Matching +full:display +full:- +full:timings

4  * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/drivers/display.h>
50 /* avdd +5.2v,avee-5.2v */
52 /* VGL=DDVDL+VCL-VCIP,VGH=2DDVDH-DDVDL */
213 const struct ili9806e_config *cfg = dev->config; in ili9806e_write_reg()
215 ret = mipi_dsi_dcs_write(cfg->mipi_dsi, cfg->channel, reg, buf, len); in ili9806e_write_reg()
236 ret = ili9806e_write_reg(dev, cmd->reg, cmd->cmd, cmd->cmd_len); in ili9806e_write_sequence()
238 LOG_ERR("Failed writing sequence: 0x%x result: (%d)", cmd->reg, ret); in ili9806e_write_sequence()
249 const struct ili9806e_config *cfg = dev->config; in ili9806e_config()
270 cfg->pixel_format == PIXEL_FORMAT_RGB_565 in ili9806e_config()
277 /* Turn on display */ in ili9806e_config()
284 const struct ili9806e_config *cfg = dev->config; in ili9806e_blanking_on()
287 if (cfg->backlight.port != NULL) { in ili9806e_blanking_on()
288 ret = gpio_pin_set_dt(&cfg->backlight, 0); in ili9806e_blanking_on()
300 const struct ili9806e_config *cfg = dev->config; in ili9806e_blanking_off()
303 if (cfg->backlight.port != NULL) { in ili9806e_blanking_off()
304 ret = gpio_pin_set_dt(&cfg->backlight, 1); in ili9806e_blanking_off()
317 const struct ili9806e_config *cfg = dev->config; in ili9806e_get_capabilities()
320 capabilities->x_resolution = cfg->width; in ili9806e_get_capabilities()
321 capabilities->y_resolution = cfg->height; in ili9806e_get_capabilities()
322 capabilities->supported_pixel_formats = cfg->pixel_format; in ili9806e_get_capabilities()
323 capabilities->current_pixel_format = cfg->pixel_format; in ili9806e_get_capabilities()
329 const struct ili9806e_config *config = dev->config; in ili9806e_pixel_format()
332 if (pixel_format == config->pixel_format) { in ili9806e_pixel_format()
336 return -ENOTSUP; in ili9806e_pixel_format()
339 static DEVICE_API(display, ili9806e_api) = {
348 const struct ili9806e_config *cfg = dev->config; in ili9806e_init()
352 if (cfg->reset.port) { in ili9806e_init()
353 if (!gpio_is_ready_dt(&cfg->reset)) { in ili9806e_init()
355 return -ENODEV; in ili9806e_init()
359 ret = gpio_pin_configure_dt(&cfg->reset, GPIO_OUTPUT_INACTIVE); in ili9806e_init()
361 LOG_ERR("Reset display failed! (%d)", ret); in ili9806e_init()
365 ret = gpio_pin_set_dt(&cfg->reset, 0); in ili9806e_init()
367 LOG_ERR("Reset display failed! (%d)", ret); in ili9806e_init()
372 ret = gpio_pin_set_dt(&cfg->reset, 1); in ili9806e_init()
374 LOG_ERR("Enable display failed! (%d)", ret); in ili9806e_init()
380 /* attach to MIPI-DSI host */ in ili9806e_init()
381 if (cfg->pixel_format == PIXEL_FORMAT_RGB_565) { in ili9806e_init()
386 mdev.data_lanes = cfg->data_lanes; in ili9806e_init()
388 mdev.timings.hactive = cfg->width; in ili9806e_init()
389 mdev.timings.hbp = ILITEK_ILI9806E_HBP; in ili9806e_init()
390 mdev.timings.hfp = ILITEK_ILI9806E_HFP; in ili9806e_init()
391 mdev.timings.hsync = ILITEK_ILI9806E_HSYNC; in ili9806e_init()
392 mdev.timings.vactive = cfg->height; in ili9806e_init()
393 mdev.timings.vbp = ILITEK_ILI9806E_VBP; in ili9806e_init()
394 mdev.timings.vfp = ILITEK_ILI9806E_VFP; in ili9806e_init()
395 mdev.timings.vsync = ILITEK_ILI9806E_VSYNC; in ili9806e_init()
397 ret = mipi_dsi_attach(cfg->mipi_dsi, cfg->channel, &mdev); in ili9806e_init()
399 LOG_ERR("Could not attach to MIPI-DSI host"); in ili9806e_init()
403 if (cfg->backlight.port != NULL) { in ili9806e_init()
404 ret = gpio_pin_configure_dt(&cfg->backlight, GPIO_OUTPUT_ACTIVE); in ili9806e_init()