Lines Matching refs:panel
5 * - Rocktech jh057n00900 5.5" MIPI-DSI panel
26 #define DRV_NAME "panel-sitronix-st7703"
57 struct drm_panel panel;
75 static inline struct st7703 *panel_to_st7703(struct drm_panel *panel)
77 return container_of(panel, struct st7703, panel);
85 * Init sequence was supplied by the panel vendor. Most of the commands
166 * Init sequence was supplied by the panel vendor.
218 * REV_PANEL = 1 (normally black panel), BGR_PANEL = 1 (BGR)
310 /* Adjust the gamma characteristics of the panel. */
349 * Init sequence was supplied by the panel vendor.
436 static int st7703_enable(struct drm_panel *panel)
438 struct st7703 *ctx = panel_to_st7703(panel);
468 static int st7703_disable(struct drm_panel *panel)
470 struct st7703 *ctx = panel_to_st7703(panel);
485 static int st7703_unprepare(struct drm_panel *panel)
487 struct st7703 *ctx = panel_to_st7703(panel);
500 static int st7703_prepare(struct drm_panel *panel)
502 struct st7703 *ctx = panel_to_st7703(panel);
508 dev_dbg(ctx->dev, "Resetting the panel\n");
539 static int st7703_get_modes(struct drm_panel *panel,
542 struct st7703 *ctx = panel_to_st7703(panel);
583 /* Reset the panel to get video back */
584 drm_panel_disable(&ctx->panel);
585 drm_panel_unprepare(&ctx->panel);
586 drm_panel_prepare(&ctx->panel);
587 drm_panel_enable(&ctx->panel);
641 drm_panel_init(&ctx->panel, dev, &st7703_drm_funcs,
644 ret = drm_panel_of_backlight(&ctx->panel);
648 drm_panel_add(&ctx->panel);
653 drm_panel_remove(&ctx->panel);
671 ret = drm_panel_unprepare(&ctx->panel);
673 dev_err(&dsi->dev, "Failed to unprepare panel: %d\n", ret);
675 ret = drm_panel_disable(&ctx->panel);
677 dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret);
691 drm_panel_remove(&ctx->panel);
697 { .compatible = "anbernic,rg353v-panel-v2", .data = &rg353v2_desc },