Lines Matching full:dsi

3  * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree.
25 struct mipi_dsi_device *dsi[2]; member
48 struct mipi_dsi_device *dsi = ctx->dsi[0]; in rm69380_on() local
49 struct mipi_dsi_multi_context dsi_ctx = { .dsi = dsi }; in rm69380_on()
51 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in rm69380_on()
52 if (ctx->dsi[1]) in rm69380_on()
53 ctx->dsi[1]->mode_flags |= MIPI_DSI_MODE_LPM; in rm69380_on()
78 struct mipi_dsi_device *dsi = ctx->dsi[0]; in rm69380_off() local
79 struct mipi_dsi_multi_context dsi_ctx = { .dsi = dsi }; in rm69380_off()
81 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in rm69380_off()
82 if (ctx->dsi[1]) in rm69380_off()
83 ctx->dsi[1]->mode_flags &= ~MIPI_DSI_MODE_LPM; in rm69380_off()
152 struct mipi_dsi_device *dsi = bl_get_data(bl); in rm69380_bl_update_status() local
156 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in rm69380_bl_update_status()
158 ret = mipi_dsi_dcs_set_display_brightness_large(dsi, brightness); in rm69380_bl_update_status()
162 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in rm69380_bl_update_status()
169 struct mipi_dsi_device *dsi = bl_get_data(bl); in rm69380_bl_get_brightness() local
173 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in rm69380_bl_get_brightness()
175 ret = mipi_dsi_dcs_get_display_brightness_large(dsi, &brightness); in rm69380_bl_get_brightness()
179 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in rm69380_bl_get_brightness()
190 rm69380_create_backlight(struct mipi_dsi_device *dsi) in rm69380_create_backlight() argument
192 struct device *dev = &dsi->dev; in rm69380_create_backlight()
199 return devm_backlight_device_register(dev, dev_name(dev), dev, dsi, in rm69380_create_backlight()
203 static int rm69380_probe(struct mipi_dsi_device *dsi) in rm69380_probe() argument
207 struct device *dev = &dsi->dev; in rm69380_probe()
227 dsi_sec = of_graph_get_remote_node(dsi->dev.of_node, 1, -1); in rm69380_probe()
237 "Cannot get secondary DSI host\n"); in rm69380_probe()
239 ctx->dsi[1] = in rm69380_probe()
241 if (IS_ERR(ctx->dsi[1])) in rm69380_probe()
242 return dev_err_probe(dev, PTR_ERR(ctx->dsi[1]), in rm69380_probe()
243 "Cannot get secondary DSI node\n"); in rm69380_probe()
245 mipi_dsi_set_drvdata(ctx->dsi[1], ctx); in rm69380_probe()
248 ctx->dsi[0] = dsi; in rm69380_probe()
249 mipi_dsi_set_drvdata(dsi, ctx); in rm69380_probe()
255 ctx->panel.backlight = rm69380_create_backlight(dsi); in rm69380_probe()
262 for (i = 0; i < ARRAY_SIZE(ctx->dsi); i++) { in rm69380_probe()
263 if (!ctx->dsi[i]) in rm69380_probe()
266 dev_dbg(&ctx->dsi[i]->dev, "Binding DSI %d\n", i); in rm69380_probe()
268 ctx->dsi[i]->lanes = 4; in rm69380_probe()
269 ctx->dsi[i]->format = MIPI_DSI_FMT_RGB888; in rm69380_probe()
270 ctx->dsi[i]->mode_flags = MIPI_DSI_MODE_VIDEO_BURST | in rm69380_probe()
273 ret = devm_mipi_dsi_attach(dev, ctx->dsi[i]); in rm69380_probe()
277 "Failed to attach to DSI%d\n", i); in rm69380_probe()
284 static void rm69380_remove(struct mipi_dsi_device *dsi) in rm69380_remove() argument
286 struct rm69380_panel *ctx = mipi_dsi_get_drvdata(dsi); in rm69380_remove()
308 MODULE_DESCRIPTION("DRM driver for Raydium RM69380-equipped DSI panels");