Lines Matching +full:clear +full:- +full:command +full:- +full:delay +full:- +full:us

4  * SPDX-License-Identifier: Apache-2.0
149 0x73, /* SPON delay */
150 0x74, /* SPOFF delay */
151 0x73, /* CON delay */
152 0x74, /* COFF delay */
153 0x73, /* CON1 delay */
154 0x74, /* COFF1 delay */
161 0x73, /* SPON_MPU delay */
162 0x74, /* SPOFF_MPU delay */
163 0x73, /* CON_MPU delay */
164 0x74, /* COFF_MPU delay */
165 0x73, /* CON1_MPU delay */
166 0x74, /* COFF1_MPU delay */
182 /* Group delays. Sets start/end signal delay from VYSNC
451 const struct hx8394_config *config = dev->config; in hx8394_blanking_off()
453 if (config->bl_gpio.port != NULL) { in hx8394_blanking_off()
454 return gpio_pin_set_dt(&config->bl_gpio, 1); in hx8394_blanking_off()
456 return -ENOTSUP; in hx8394_blanking_off()
462 const struct hx8394_config *config = dev->config; in hx8394_blanking_on()
464 if (config->bl_gpio.port != NULL) { in hx8394_blanking_on()
465 return gpio_pin_set_dt(&config->bl_gpio, 0); in hx8394_blanking_on()
467 return -ENOTSUP; in hx8394_blanking_on()
474 const struct hx8394_config *config = dev->config; in hx8394_set_pixel_format()
476 if (pixel_format == config->pixel_format) { in hx8394_set_pixel_format()
480 return -ENOTSUP; in hx8394_set_pixel_format()
486 const struct hx8394_config *config = dev->config; in hx8394_set_orientation()
489 /* Note- this simply flips the scan direction of the display in hx8394_set_orientation()
509 return -ENOTSUP; in hx8394_set_orientation()
511 return hx8394_mipi_tx(config->mipi_dsi, config->channel, param, 2); in hx8394_set_orientation()
517 const struct hx8394_config *config = dev->config; in hx8394_get_capabilities()
520 capabilities->x_resolution = config->panel_width; in hx8394_get_capabilities()
521 capabilities->y_resolution = config->panel_height; in hx8394_get_capabilities()
522 capabilities->supported_pixel_formats = config->pixel_format; in hx8394_get_capabilities()
523 capabilities->current_pixel_format = config->pixel_format; in hx8394_get_capabilities()
524 capabilities->current_orientation = DISPLAY_ORIENTATION_NORMAL; in hx8394_get_capabilities()
538 const struct hx8394_config *config = dev->config; in hx8394_init()
556 mdev.data_lanes = config->num_of_lanes; in hx8394_init()
557 mdev.pixfmt = config->pixel_format; in hx8394_init()
561 ret = mipi_dsi_attach(config->mipi_dsi, config->channel, &mdev); in hx8394_init()
563 LOG_ERR("Could not attach to MIPI-DSI host"); in hx8394_init()
567 if (gpio_is_ready_dt(&config->reset_gpio)) { in hx8394_init()
574 ret = gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_INACTIVE); in hx8394_init()
579 gpio_pin_set_dt(&config->reset_gpio, 0); in hx8394_init()
580 /* Datasheet says we must keep reset pin low at least 10us. in hx8394_init()
584 gpio_pin_set_dt(&config->reset_gpio, 1); in hx8394_init()
585 /* Per datasheet, we must delay at least 50ms before first in hx8394_init()
586 * host command in hx8394_init()
591 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
598 setmipi[1] |= (config->num_of_lanes - 1); in hx8394_init()
599 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
606 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
613 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
620 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
627 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
633 /* Set group delay values */ in hx8394_init()
634 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
642 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
649 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
655 /* Delay for a moment before setting VCOM. It is not clear in hx8394_init()
657 * delay the panel stops responding to additional commands in hx8394_init()
661 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
668 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
674 /* This command is not documented in datasheet, but is included in hx8394_init()
677 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
684 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
690 /* This command is not documented in datasheet, but is included in hx8394_init()
693 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
702 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
707 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
713 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
720 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
725 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
732 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
737 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
743 /* This command is not documented in datasheet, but is included in hx8394_init()
746 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
752 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
760 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
765 /* We must delay 120ms after exiting sleep mode per datasheet */ in hx8394_init()
769 ret = hx8394_mipi_tx(config->mipi_dsi, config->channel, in hx8394_init()
772 if (config->bl_gpio.port != NULL) { in hx8394_init()
773 ret = gpio_pin_configure_dt(&config->bl_gpio, GPIO_OUTPUT_ACTIVE); in hx8394_init()