Lines Matching full:dsi

18 	struct mipi_dsi_device *dsi;  member
31 #define dsi_dcs_write_seq(dsi, seq...) do { \ argument
34 ret = mipi_dsi_dcs_write_buffer(dsi, d, ARRAY_SIZE(d)); \
51 struct mipi_dsi_device *dsi = ctx->dsi; in s6e88a0_ams452ef01_on() local
52 struct device *dev = &dsi->dev; in s6e88a0_ams452ef01_on()
55 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in s6e88a0_ams452ef01_on()
57 dsi_dcs_write_seq(dsi, 0xf0, 0x5a, 0x5a); // enable LEVEL2 commands in s6e88a0_ams452ef01_on()
58 dsi_dcs_write_seq(dsi, 0xcc, 0x4c); // set Pixel Clock Divider polarity in s6e88a0_ams452ef01_on()
60 ret = mipi_dsi_dcs_exit_sleep_mode(dsi); in s6e88a0_ams452ef01_on()
68 dsi_dcs_write_seq(dsi, 0xca, in s6e88a0_ams452ef01_on()
80 dsi_dcs_write_seq(dsi, 0xb2, 0x40, 0x0a, 0x17, 0x00, 0x0a); in s6e88a0_ams452ef01_on()
81 dsi_dcs_write_seq(dsi, 0xb6, 0x2c, 0x0b); // set default elvss voltage in s6e88a0_ams452ef01_on()
82 dsi_dcs_write_seq(dsi, MIPI_DCS_WRITE_POWER_SAVE, 0x00); in s6e88a0_ams452ef01_on()
83 dsi_dcs_write_seq(dsi, 0xf7, 0x03); // gamma/aor update in s6e88a0_ams452ef01_on()
84 dsi_dcs_write_seq(dsi, 0xf0, 0xa5, 0xa5); // disable LEVEL2 commands in s6e88a0_ams452ef01_on()
86 ret = mipi_dsi_dcs_set_display_on(dsi); in s6e88a0_ams452ef01_on()
97 struct mipi_dsi_device *dsi = ctx->dsi; in s6e88a0_ams452ef01_off() local
98 struct device *dev = &dsi->dev; in s6e88a0_ams452ef01_off()
101 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in s6e88a0_ams452ef01_off()
103 ret = mipi_dsi_dcs_set_display_off(dsi); in s6e88a0_ams452ef01_off()
110 ret = mipi_dsi_dcs_enter_sleep_mode(dsi); in s6e88a0_ams452ef01_off()
123 struct device *dev = &ctx->dsi->dev; in s6e88a0_ams452ef01_prepare()
153 struct device *dev = &ctx->dsi->dev; in s6e88a0_ams452ef01_unprepare()
209 static int s6e88a0_ams452ef01_probe(struct mipi_dsi_device *dsi) in s6e88a0_ams452ef01_probe() argument
211 struct device *dev = &dsi->dev; in s6e88a0_ams452ef01_probe()
235 ctx->dsi = dsi; in s6e88a0_ams452ef01_probe()
236 mipi_dsi_set_drvdata(dsi, ctx); in s6e88a0_ams452ef01_probe()
238 dsi->lanes = 2; in s6e88a0_ams452ef01_probe()
239 dsi->format = MIPI_DSI_FMT_RGB888; in s6e88a0_ams452ef01_probe()
240 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST; in s6e88a0_ams452ef01_probe()
247 ret = mipi_dsi_attach(dsi); in s6e88a0_ams452ef01_probe()
249 dev_err(dev, "Failed to attach to DSI host: %d\n", ret); in s6e88a0_ams452ef01_probe()
257 static void s6e88a0_ams452ef01_remove(struct mipi_dsi_device *dsi) in s6e88a0_ams452ef01_remove() argument
259 struct s6e88a0_ams452ef01 *ctx = mipi_dsi_get_drvdata(dsi); in s6e88a0_ams452ef01_remove()
262 ret = mipi_dsi_detach(dsi); in s6e88a0_ams452ef01_remove()
264 dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); in s6e88a0_ams452ef01_remove()
286 MODULE_DESCRIPTION("MIPI-DSI based Panel Driver for AMS452EF01 AMOLED LCD with a S6E88A0 controller…