Lines Matching full:panel

3  * Rockteck jh057n00900 5.5" MIPI-DSI panel driver
22 #define DRV_NAME "panel-rocktech-jh057n00900"
48 struct drm_panel panel; member
58 static inline struct jh057n *panel_to_jh057n(struct drm_panel *panel) in panel_to_jh057n() argument
60 return container_of(panel, struct jh057n, panel); in panel_to_jh057n()
78 * Init sequence was supplied by the panel vendor. Most of the commands in jh057n_init_sequence()
133 /* Panel is operational 120 msec after reset */ in jh057n_init_sequence()
139 DRM_DEV_DEBUG_DRIVER(dev, "Panel init sequence done\n"); in jh057n_init_sequence()
143 static int jh057n_enable(struct drm_panel *panel) in jh057n_enable() argument
145 struct jh057n *ctx = panel_to_jh057n(panel); in jh057n_enable()
150 DRM_DEV_ERROR(ctx->dev, "Panel init sequence failed: %d\n", in jh057n_enable()
158 static int jh057n_disable(struct drm_panel *panel) in jh057n_disable() argument
160 struct jh057n *ctx = panel_to_jh057n(panel); in jh057n_disable()
167 static int jh057n_unprepare(struct drm_panel *panel) in jh057n_unprepare() argument
169 struct jh057n *ctx = panel_to_jh057n(panel); in jh057n_unprepare()
181 static int jh057n_prepare(struct drm_panel *panel) in jh057n_prepare() argument
183 struct jh057n *ctx = panel_to_jh057n(panel); in jh057n_prepare()
189 DRM_DEV_DEBUG_DRIVER(ctx->dev, "Resetting the panel\n"); in jh057n_prepare()
233 static int jh057n_get_modes(struct drm_panel *panel) in jh057n_get_modes() argument
235 struct jh057n *ctx = panel_to_jh057n(panel); in jh057n_get_modes()
238 mode = drm_mode_duplicate(panel->drm, &default_mode); in jh057n_get_modes()
249 panel->connector->display_info.width_mm = mode->width_mm; in jh057n_get_modes()
250 panel->connector->display_info.height_mm = mode->height_mm; in jh057n_get_modes()
251 drm_mode_probed_add(panel->connector, mode); in jh057n_get_modes()
272 /* Reset the panel to get video back */ in allpixelson_set()
273 drm_panel_disable(&ctx->panel); in allpixelson_set()
274 drm_panel_unprepare(&ctx->panel); in allpixelson_set()
275 drm_panel_prepare(&ctx->panel); in allpixelson_set()
276 drm_panel_enable(&ctx->panel); in allpixelson_set()
346 drm_panel_init(&ctx->panel); in jh057n_probe()
347 ctx->panel.dev = dev; in jh057n_probe()
348 ctx->panel.funcs = &jh057n_drm_funcs; in jh057n_probe()
350 drm_panel_add(&ctx->panel); in jh057n_probe()
357 drm_panel_remove(&ctx->panel); in jh057n_probe()
375 ret = drm_panel_unprepare(&ctx->panel); in jh057n_shutdown()
377 DRM_DEV_ERROR(&dsi->dev, "Failed to unprepare panel: %d\n", in jh057n_shutdown()
380 ret = drm_panel_disable(&ctx->panel); in jh057n_shutdown()
382 DRM_DEV_ERROR(&dsi->dev, "Failed to disable panel: %d\n", in jh057n_shutdown()
398 drm_panel_remove(&ctx->panel); in jh057n_remove()
423 MODULE_DESCRIPTION("DRM driver for Rocktech JH057N00900 MIPI DSI panel");