Lines Matching +full:vddi +full:- +full:supply
1 // SPDX-License-Identifier: GPL-2.0-only
17 "vddi",
362 struct mipi_dsi_device *dsi = ctx->dsi;
365 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies);
367 dev_err(&dsi->dev, "regulator bulk enable failed: %d\n", ret);
375 gpiod_set_value(ctx->reset_gpio, 1);
377 gpiod_set_value(ctx->reset_gpio, 0);
379 gpiod_set_value(ctx->reset_gpio, 1);
387 struct mipi_dsi_device *dsi = ctx->dsi;
390 gpiod_set_value(ctx->reset_gpio, 0);
392 ret = regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies);
394 dev_err(&dsi->dev, "regulator bulk disable failed: %d\n", ret);
401 struct mipi_dsi_multi_context ctx = { .dsi = nt36672e->dsi };
402 const struct panel_desc *desc = nt36672e->desc;
404 nt36672e->dsi->mode_flags |= MIPI_DSI_MODE_LPM;
406 if (desc->init_sequence)
407 desc->init_sequence(&ctx);
421 struct mipi_dsi_multi_context ctx = { .dsi = panel->dsi };
423 panel->dsi->mode_flags &= ~MIPI_DSI_MODE_LPM;
437 struct mipi_dsi_device *dsi = ctx->dsi;
447 dev_err(&dsi->dev, "power off failed\n");
457 struct mipi_dsi_device *dsi = ctx->dsi;
464 dev_err(&dsi->dev, "power off failed: %d\n", ret);
499 mode = drm_mode_duplicate(connector->dev, ctx->desc->display_mode);
501 return -ENOMEM;
505 mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED;
506 connector->display_info.width_mm = ctx->desc->width_mm;
507 connector->display_info.height_mm = ctx->desc->height_mm;
521 struct device *dev = &dsi->dev;
531 ctx->desc = of_device_get_match_data(dev);
532 if (!ctx->desc) {
534 return -ENODEV;
537 for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++) {
538 ctx->supplies[i].supply = regulator_names[i];
539 ctx->supplies[i].init_load_uA = regulator_enable_loads[i];
542 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies),
543 ctx->supplies);
547 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
548 if (IS_ERR(ctx->reset_gpio))
549 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), "Failed to get reset-gpios\n");
551 ctx->dsi = dsi;
554 dsi->lanes = ctx->desc->lanes;
555 dsi->format = ctx->desc->format;
556 dsi->mode_flags = ctx->desc->mode_flags;
558 ret = drm_panel_of_backlight(&ctx->panel);
562 ctx->panel.prepare_prev_first = true;
564 drm_panel_add(&ctx->panel);
575 drm_panel_remove(&ctx->panel);
583 mipi_dsi_detach(ctx->dsi);
584 drm_panel_remove(&ctx->panel);
598 .name = "panel-novatek-nt36672e",