Lines Matching full:dsi

16 	struct mipi_dsi_device *dsi;  member
39 struct mipi_dsi_device *dsi = ctx->dsi; in tm5p5_nt35596_on() local
41 mipi_dsi_generic_write_seq(dsi, 0xff, 0x05); in tm5p5_nt35596_on()
42 mipi_dsi_generic_write_seq(dsi, 0xfb, 0x01); in tm5p5_nt35596_on()
43 mipi_dsi_generic_write_seq(dsi, 0xc5, 0x31); in tm5p5_nt35596_on()
44 mipi_dsi_generic_write_seq(dsi, 0xff, 0x04); in tm5p5_nt35596_on()
45 mipi_dsi_generic_write_seq(dsi, 0x01, 0x84); in tm5p5_nt35596_on()
46 mipi_dsi_generic_write_seq(dsi, 0x05, 0x25); in tm5p5_nt35596_on()
47 mipi_dsi_generic_write_seq(dsi, 0x06, 0x01); in tm5p5_nt35596_on()
48 mipi_dsi_generic_write_seq(dsi, 0x07, 0x20); in tm5p5_nt35596_on()
49 mipi_dsi_generic_write_seq(dsi, 0x08, 0x06); in tm5p5_nt35596_on()
50 mipi_dsi_generic_write_seq(dsi, 0x09, 0x08); in tm5p5_nt35596_on()
51 mipi_dsi_generic_write_seq(dsi, 0x0a, 0x10); in tm5p5_nt35596_on()
52 mipi_dsi_generic_write_seq(dsi, 0x0b, 0x10); in tm5p5_nt35596_on()
53 mipi_dsi_generic_write_seq(dsi, 0x0c, 0x10); in tm5p5_nt35596_on()
54 mipi_dsi_generic_write_seq(dsi, 0x0d, 0x14); in tm5p5_nt35596_on()
55 mipi_dsi_generic_write_seq(dsi, 0x0e, 0x14); in tm5p5_nt35596_on()
56 mipi_dsi_generic_write_seq(dsi, 0x0f, 0x14); in tm5p5_nt35596_on()
57 mipi_dsi_generic_write_seq(dsi, 0x10, 0x14); in tm5p5_nt35596_on()
58 mipi_dsi_generic_write_seq(dsi, 0x11, 0x14); in tm5p5_nt35596_on()
59 mipi_dsi_generic_write_seq(dsi, 0x12, 0x14); in tm5p5_nt35596_on()
60 mipi_dsi_generic_write_seq(dsi, 0x17, 0xf3); in tm5p5_nt35596_on()
61 mipi_dsi_generic_write_seq(dsi, 0x18, 0xc0); in tm5p5_nt35596_on()
62 mipi_dsi_generic_write_seq(dsi, 0x19, 0xc0); in tm5p5_nt35596_on()
63 mipi_dsi_generic_write_seq(dsi, 0x1a, 0xc0); in tm5p5_nt35596_on()
64 mipi_dsi_generic_write_seq(dsi, 0x1b, 0xb3); in tm5p5_nt35596_on()
65 mipi_dsi_generic_write_seq(dsi, 0x1c, 0xb3); in tm5p5_nt35596_on()
66 mipi_dsi_generic_write_seq(dsi, 0x1d, 0xb3); in tm5p5_nt35596_on()
67 mipi_dsi_generic_write_seq(dsi, 0x1e, 0xb3); in tm5p5_nt35596_on()
68 mipi_dsi_generic_write_seq(dsi, 0x1f, 0xb3); in tm5p5_nt35596_on()
69 mipi_dsi_generic_write_seq(dsi, 0x20, 0xb3); in tm5p5_nt35596_on()
70 mipi_dsi_generic_write_seq(dsi, 0xfb, 0x01); in tm5p5_nt35596_on()
71 mipi_dsi_generic_write_seq(dsi, 0xff, 0x00); in tm5p5_nt35596_on()
72 mipi_dsi_generic_write_seq(dsi, 0xfb, 0x01); in tm5p5_nt35596_on()
73 mipi_dsi_generic_write_seq(dsi, 0x35, 0x01); in tm5p5_nt35596_on()
74 mipi_dsi_generic_write_seq(dsi, 0xd3, 0x06); in tm5p5_nt35596_on()
75 mipi_dsi_generic_write_seq(dsi, 0xd4, 0x04); in tm5p5_nt35596_on()
76 mipi_dsi_generic_write_seq(dsi, 0x5e, 0x0d); in tm5p5_nt35596_on()
77 mipi_dsi_generic_write_seq(dsi, 0x11, 0x00); in tm5p5_nt35596_on()
79 mipi_dsi_generic_write_seq(dsi, 0x29, 0x00); in tm5p5_nt35596_on()
80 mipi_dsi_generic_write_seq(dsi, 0x53, 0x24); in tm5p5_nt35596_on()
87 struct mipi_dsi_device *dsi = ctx->dsi; in tm5p5_nt35596_off() local
88 struct device *dev = &dsi->dev; in tm5p5_nt35596_off()
91 ret = mipi_dsi_dcs_set_display_off(dsi); in tm5p5_nt35596_off()
98 ret = mipi_dsi_dcs_enter_sleep_mode(dsi); in tm5p5_nt35596_off()
104 mipi_dsi_dcs_write_seq(dsi, 0x4f, 0x01); in tm5p5_nt35596_off()
112 struct device *dev = &ctx->dsi->dev; in tm5p5_nt35596_prepare()
142 struct device *dev = &ctx->dsi->dev; in tm5p5_nt35596_unprepare()
201 struct mipi_dsi_device *dsi = bl_get_data(bl); in tm5p5_nt35596_bl_update_status() local
205 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in tm5p5_nt35596_bl_update_status()
207 ret = mipi_dsi_dcs_set_display_brightness(dsi, brightness); in tm5p5_nt35596_bl_update_status()
211 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in tm5p5_nt35596_bl_update_status()
218 struct mipi_dsi_device *dsi = bl_get_data(bl); in tm5p5_nt35596_bl_get_brightness() local
222 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in tm5p5_nt35596_bl_get_brightness()
224 ret = mipi_dsi_dcs_get_display_brightness(dsi, &brightness); in tm5p5_nt35596_bl_get_brightness()
228 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in tm5p5_nt35596_bl_get_brightness()
239 tm5p5_nt35596_create_backlight(struct mipi_dsi_device *dsi) in tm5p5_nt35596_create_backlight() argument
241 struct device *dev = &dsi->dev; in tm5p5_nt35596_create_backlight()
248 return devm_backlight_device_register(dev, dev_name(dev), dev, dsi, in tm5p5_nt35596_create_backlight()
252 static int tm5p5_nt35596_probe(struct mipi_dsi_device *dsi) in tm5p5_nt35596_probe() argument
254 struct device *dev = &dsi->dev; in tm5p5_nt35596_probe()
278 ctx->dsi = dsi; in tm5p5_nt35596_probe()
279 mipi_dsi_set_drvdata(dsi, ctx); in tm5p5_nt35596_probe()
281 dsi->lanes = 4; in tm5p5_nt35596_probe()
282 dsi->format = MIPI_DSI_FMT_RGB888; in tm5p5_nt35596_probe()
283 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | in tm5p5_nt35596_probe()
290 ctx->panel.backlight = tm5p5_nt35596_create_backlight(dsi); in tm5p5_nt35596_probe()
299 ret = mipi_dsi_attach(dsi); in tm5p5_nt35596_probe()
301 dev_err(dev, "Failed to attach to DSI host: %d\n", ret); in tm5p5_nt35596_probe()
308 static void tm5p5_nt35596_remove(struct mipi_dsi_device *dsi) in tm5p5_nt35596_remove() argument
310 struct tm5p5_nt35596 *ctx = mipi_dsi_get_drvdata(dsi); in tm5p5_nt35596_remove()
313 ret = mipi_dsi_detach(dsi); in tm5p5_nt35596_remove()
315 dev_err(&dsi->dev, in tm5p5_nt35596_remove()
316 "Failed to detach from DSI host: %d\n", ret); in tm5p5_nt35596_remove()
338 MODULE_DESCRIPTION("DRM driver for tm5p5 nt35596 1080p video mode dsi panel");