Lines Matching refs:panel
5 * - Rocktech jh057n00900 5.5" MIPI-DSI panel
26 #define DRV_NAME "panel-sitronix-st7703"
53 struct drm_panel panel;
71 static inline struct st7703 *panel_to_st7703(struct drm_panel *panel)
73 return container_of(panel, struct st7703, panel);
89 * Init sequence was supplied by the panel vendor. Most of the commands
179 * Init sequence was supplied by the panel vendor.
231 * REV_PANEL = 1 (normally black panel), BGR_PANEL = 1 (BGR)
324 /* Adjust the gamma characteristics of the panel. */
358 static int st7703_enable(struct drm_panel *panel)
360 struct st7703 *ctx = panel_to_st7703(panel);
390 static int st7703_disable(struct drm_panel *panel)
392 struct st7703 *ctx = panel_to_st7703(panel);
407 static int st7703_unprepare(struct drm_panel *panel)
409 struct st7703 *ctx = panel_to_st7703(panel);
422 static int st7703_prepare(struct drm_panel *panel)
424 struct st7703 *ctx = panel_to_st7703(panel);
430 dev_dbg(ctx->dev, "Resetting the panel\n");
457 static int st7703_get_modes(struct drm_panel *panel,
460 struct st7703 *ctx = panel_to_st7703(panel);
497 /* Reset the panel to get video back */
498 drm_panel_disable(&ctx->panel);
499 drm_panel_unprepare(&ctx->panel);
500 drm_panel_prepare(&ctx->panel);
501 drm_panel_enable(&ctx->panel);
563 drm_panel_init(&ctx->panel, dev, &st7703_drm_funcs,
566 ret = drm_panel_of_backlight(&ctx->panel);
570 drm_panel_add(&ctx->panel);
575 drm_panel_remove(&ctx->panel);
593 ret = drm_panel_unprepare(&ctx->panel);
595 dev_err(&dsi->dev, "Failed to unprepare panel: %d\n", ret);
597 ret = drm_panel_disable(&ctx->panel);
599 dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret);
613 drm_panel_remove(&ctx->panel);