Lines Matching full:dsi
3 * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree:
24 struct mipi_dsi_device *dsi; member
37 #define dsi_dcs_write_seq(dsi, seq...) do { \ argument
40 ret = mipi_dsi_dcs_write_buffer(dsi, d, ARRAY_SIZE(d)); \
57 struct mipi_dsi_device *dsi = ctx->dsi; in sofef00_panel_on() local
58 struct device *dev = &dsi->dev; in sofef00_panel_on()
61 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in sofef00_panel_on()
63 ret = mipi_dsi_dcs_exit_sleep_mode(dsi); in sofef00_panel_on()
70 dsi_dcs_write_seq(dsi, 0xf0, 0x5a, 0x5a); in sofef00_panel_on()
72 ret = mipi_dsi_dcs_set_tear_on(dsi, MIPI_DSI_DCS_TEAR_MODE_VBLANK); in sofef00_panel_on()
78 dsi_dcs_write_seq(dsi, 0xf0, 0xa5, 0xa5); in sofef00_panel_on()
79 dsi_dcs_write_seq(dsi, 0xf0, 0x5a, 0x5a); in sofef00_panel_on()
80 dsi_dcs_write_seq(dsi, 0xb0, 0x07); in sofef00_panel_on()
81 dsi_dcs_write_seq(dsi, 0xb6, 0x12); in sofef00_panel_on()
82 dsi_dcs_write_seq(dsi, 0xf0, 0xa5, 0xa5); in sofef00_panel_on()
83 dsi_dcs_write_seq(dsi, MIPI_DCS_WRITE_CONTROL_DISPLAY, 0x20); in sofef00_panel_on()
84 dsi_dcs_write_seq(dsi, MIPI_DCS_WRITE_POWER_SAVE, 0x00); in sofef00_panel_on()
86 ret = mipi_dsi_dcs_set_display_on(dsi); in sofef00_panel_on()
97 struct mipi_dsi_device *dsi = ctx->dsi; in sofef00_panel_off() local
98 struct device *dev = &dsi->dev; in sofef00_panel_off()
101 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in sofef00_panel_off()
103 ret = mipi_dsi_dcs_set_display_off(dsi); in sofef00_panel_off()
110 ret = mipi_dsi_dcs_enter_sleep_mode(dsi); in sofef00_panel_off()
123 struct device *dev = &ctx->dsi->dev; in sofef00_panel_prepare()
151 struct device *dev = &ctx->dsi->dev; in sofef00_panel_unprepare()
222 struct mipi_dsi_device *dsi = bl_get_data(bl); in sofef00_panel_bl_update_status() local
230 err = mipi_dsi_dcs_set_display_brightness(dsi, brightness); in sofef00_panel_bl_update_status()
242 sofef00_create_backlight(struct mipi_dsi_device *dsi) in sofef00_create_backlight() argument
244 struct device *dev = &dsi->dev; in sofef00_create_backlight()
251 return devm_backlight_device_register(dev, dev_name(dev), dev, dsi, in sofef00_create_backlight()
255 static int sofef00_panel_probe(struct mipi_dsi_device *dsi) in sofef00_panel_probe() argument
257 struct device *dev = &dsi->dev; in sofef00_panel_probe()
282 ctx->dsi = dsi; in sofef00_panel_probe()
283 mipi_dsi_set_drvdata(dsi, ctx); in sofef00_panel_probe()
285 dsi->lanes = 4; in sofef00_panel_probe()
286 dsi->format = MIPI_DSI_FMT_RGB888; in sofef00_panel_probe()
291 ctx->panel.backlight = sofef00_create_backlight(dsi); in sofef00_panel_probe()
298 ret = mipi_dsi_attach(dsi); in sofef00_panel_probe()
300 dev_err(dev, "Failed to attach to DSI host: %d\n", ret); in sofef00_panel_probe()
308 static void sofef00_panel_remove(struct mipi_dsi_device *dsi) in sofef00_panel_remove() argument
310 struct sofef00_panel *ctx = mipi_dsi_get_drvdata(dsi); in sofef00_panel_remove()
313 ret = mipi_dsi_detach(dsi); in sofef00_panel_remove()
315 dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); in sofef00_panel_remove()
345 MODULE_DESCRIPTION("DRM driver for Samsung AMOLED DSI panels found in OnePlus 6/6T phones");