Lines Matching full:dsi
3 * Elida kd35t133 5.5" MIPI-DSI panel driver
8 * Rockteck jh057n00900 5.5" MIPI-DSI panel driver
26 /* Manufacturer specific Commands send via DSI */
53 #define dsi_dcs_write_seq(dsi, cmd, seq...) do { \ argument
56 ret = mipi_dsi_dcs_write_buffer(dsi, b, ARRAY_SIZE(b)); \
63 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in kd35t133_init_sequence() local
70 dsi_dcs_write_seq(dsi, KD35T133_CMD_POSITIVEGAMMA, in kd35t133_init_sequence()
73 dsi_dcs_write_seq(dsi, KD35T133_CMD_NEGATIVEGAMMA, in kd35t133_init_sequence()
76 dsi_dcs_write_seq(dsi, KD35T133_CMD_POWERCONTROL1, 0x18, 0x17); in kd35t133_init_sequence()
77 dsi_dcs_write_seq(dsi, KD35T133_CMD_POWERCONTROL2, 0x41); in kd35t133_init_sequence()
78 dsi_dcs_write_seq(dsi, KD35T133_CMD_VCOMCONTROL, 0x00, 0x1a, 0x80); in kd35t133_init_sequence()
79 dsi_dcs_write_seq(dsi, MIPI_DCS_SET_ADDRESS_MODE, 0x48); in kd35t133_init_sequence()
80 dsi_dcs_write_seq(dsi, MIPI_DCS_SET_PIXEL_FORMAT, 0x55); in kd35t133_init_sequence()
81 dsi_dcs_write_seq(dsi, KD35T133_CMD_INTERFACEMODECTRL, 0x00); in kd35t133_init_sequence()
82 dsi_dcs_write_seq(dsi, KD35T133_CMD_FRAMERATECTRL, 0xa0); in kd35t133_init_sequence()
83 dsi_dcs_write_seq(dsi, KD35T133_CMD_DISPLAYINVERSIONCTRL, 0x02); in kd35t133_init_sequence()
84 dsi_dcs_write_seq(dsi, KD35T133_CMD_DISPLAYFUNCTIONCTRL, in kd35t133_init_sequence()
86 dsi_dcs_write_seq(dsi, KD35T133_CMD_SETIMAGEFUNCTION, 0x00); in kd35t133_init_sequence()
87 dsi_dcs_write_seq(dsi, KD35T133_CMD_ADJUSTCONTROL3, in kd35t133_init_sequence()
89 mipi_dsi_dcs_write(dsi, MIPI_DCS_ENTER_INVERT_MODE, NULL, 0); in kd35t133_init_sequence()
98 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in kd35t133_unprepare() local
104 ret = mipi_dsi_dcs_set_display_off(dsi); in kd35t133_unprepare()
108 ret = mipi_dsi_dcs_enter_sleep_mode(dsi); in kd35t133_unprepare()
125 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in kd35t133_prepare() local
152 ret = mipi_dsi_dcs_exit_sleep_mode(dsi); in kd35t133_prepare()
166 ret = mipi_dsi_dcs_set_display_on(dsi); in kd35t133_prepare()
229 static int kd35t133_probe(struct mipi_dsi_device *dsi) in kd35t133_probe() argument
231 struct device *dev = &dsi->dev; in kd35t133_probe()
261 mipi_dsi_set_drvdata(dsi, ctx); in kd35t133_probe()
265 dsi->lanes = 1; in kd35t133_probe()
266 dsi->format = MIPI_DSI_FMT_RGB888; in kd35t133_probe()
267 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | in kd35t133_probe()
270 drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_funcs, in kd35t133_probe()
279 ret = mipi_dsi_attach(dsi); in kd35t133_probe()
289 static void kd35t133_shutdown(struct mipi_dsi_device *dsi) in kd35t133_shutdown() argument
291 struct kd35t133 *ctx = mipi_dsi_get_drvdata(dsi); in kd35t133_shutdown()
296 dev_err(&dsi->dev, "Failed to unprepare panel: %d\n", ret); in kd35t133_shutdown()
300 dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret); in kd35t133_shutdown()
303 static int kd35t133_remove(struct mipi_dsi_device *dsi) in kd35t133_remove() argument
305 struct kd35t133 *ctx = mipi_dsi_get_drvdata(dsi); in kd35t133_remove()
308 kd35t133_shutdown(dsi); in kd35t133_remove()
310 ret = mipi_dsi_detach(dsi); in kd35t133_remove()
312 dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); in kd35t133_remove()
337 MODULE_DESCRIPTION("DRM driver for Elida kd35t133 MIPI DSI panel");