Lines Matching full:dsi
5 * Generated using linux-mdss-dsi-panel-driver-generator from Lineage OS device tree:
22 struct mipi_dsi_device *dsi; member
32 #define dsi_generic_write_seq(dsi, seq...) do { \ argument
35 ret = mipi_dsi_generic_write(dsi, d, ARRAY_SIZE(d)); \
40 #define dsi_dcs_write_seq(dsi, seq...) do { \ argument
43 ret = mipi_dsi_dcs_write_buffer(dsi, d, ARRAY_SIZE(d)); \
60 struct mipi_dsi_device *dsi = ctx->dsi; in jdi_fhd_r63452_on() local
61 struct device *dev = &dsi->dev; in jdi_fhd_r63452_on()
64 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in jdi_fhd_r63452_on()
66 dsi_generic_write_seq(dsi, 0xb0, 0x00); in jdi_fhd_r63452_on()
67 dsi_generic_write_seq(dsi, 0xd6, 0x01); in jdi_fhd_r63452_on()
68 dsi_generic_write_seq(dsi, 0xec, in jdi_fhd_r63452_on()
71 dsi_generic_write_seq(dsi, 0xb0, 0x03); in jdi_fhd_r63452_on()
73 ret = mipi_dsi_dcs_set_tear_on(dsi, MIPI_DSI_DCS_TEAR_MODE_VBLANK); in jdi_fhd_r63452_on()
79 dsi_dcs_write_seq(dsi, MIPI_DCS_SET_ADDRESS_MODE, 0x00); in jdi_fhd_r63452_on()
81 ret = mipi_dsi_dcs_set_pixel_format(dsi, 0x77); in jdi_fhd_r63452_on()
87 ret = mipi_dsi_dcs_set_column_address(dsi, 0x0000, 0x0437); in jdi_fhd_r63452_on()
93 ret = mipi_dsi_dcs_set_page_address(dsi, 0x0000, 0x077f); in jdi_fhd_r63452_on()
99 ret = mipi_dsi_dcs_set_tear_scanline(dsi, 0x0000); in jdi_fhd_r63452_on()
105 ret = mipi_dsi_dcs_set_display_brightness(dsi, 0x00ff); in jdi_fhd_r63452_on()
111 dsi_dcs_write_seq(dsi, MIPI_DCS_WRITE_CONTROL_DISPLAY, 0x24); in jdi_fhd_r63452_on()
112 dsi_dcs_write_seq(dsi, MIPI_DCS_WRITE_POWER_SAVE, 0x00); in jdi_fhd_r63452_on()
113 dsi_dcs_write_seq(dsi, MIPI_DCS_SET_CABC_MIN_BRIGHTNESS, 0x00); in jdi_fhd_r63452_on()
114 dsi_dcs_write_seq(dsi, 0x84, 0x00); in jdi_fhd_r63452_on()
116 ret = mipi_dsi_dcs_set_display_on(dsi); in jdi_fhd_r63452_on()
123 ret = mipi_dsi_dcs_exit_sleep_mode(dsi); in jdi_fhd_r63452_on()
130 dsi_generic_write_seq(dsi, 0xb0, 0x04); in jdi_fhd_r63452_on()
131 dsi_dcs_write_seq(dsi, 0x84, 0x00); in jdi_fhd_r63452_on()
132 dsi_generic_write_seq(dsi, 0xc8, 0x11); in jdi_fhd_r63452_on()
133 dsi_generic_write_seq(dsi, 0xb0, 0x03); in jdi_fhd_r63452_on()
140 struct mipi_dsi_device *dsi = ctx->dsi; in jdi_fhd_r63452_off() local
141 struct device *dev = &dsi->dev; in jdi_fhd_r63452_off()
144 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in jdi_fhd_r63452_off()
146 dsi_generic_write_seq(dsi, 0xb0, 0x00); in jdi_fhd_r63452_off()
147 dsi_generic_write_seq(dsi, 0xd6, 0x01); in jdi_fhd_r63452_off()
148 dsi_generic_write_seq(dsi, 0xec, in jdi_fhd_r63452_off()
151 dsi_generic_write_seq(dsi, 0xb0, 0x03); in jdi_fhd_r63452_off()
153 ret = mipi_dsi_dcs_set_display_off(dsi); in jdi_fhd_r63452_off()
160 ret = mipi_dsi_dcs_enter_sleep_mode(dsi); in jdi_fhd_r63452_off()
173 struct device *dev = &ctx->dsi->dev; in jdi_fhd_r63452_prepare()
195 struct device *dev = &ctx->dsi->dev; in jdi_fhd_r63452_unprepare()
250 static int jdi_fhd_r63452_probe(struct mipi_dsi_device *dsi) in jdi_fhd_r63452_probe() argument
252 struct device *dev = &dsi->dev; in jdi_fhd_r63452_probe()
265 ctx->dsi = dsi; in jdi_fhd_r63452_probe()
266 mipi_dsi_set_drvdata(dsi, ctx); in jdi_fhd_r63452_probe()
268 dsi->lanes = 4; in jdi_fhd_r63452_probe()
269 dsi->format = MIPI_DSI_FMT_RGB888; in jdi_fhd_r63452_probe()
270 dsi->mode_flags = MIPI_DSI_MODE_VIDEO_BURST | in jdi_fhd_r63452_probe()
282 ret = mipi_dsi_attach(dsi); in jdi_fhd_r63452_probe()
284 dev_err(dev, "Failed to attach to DSI host: %d\n", ret); in jdi_fhd_r63452_probe()
291 static void jdi_fhd_r63452_remove(struct mipi_dsi_device *dsi) in jdi_fhd_r63452_remove() argument
293 struct jdi_fhd_r63452 *ctx = mipi_dsi_get_drvdata(dsi); in jdi_fhd_r63452_remove()
296 ret = mipi_dsi_detach(dsi); in jdi_fhd_r63452_remove()
298 dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); in jdi_fhd_r63452_remove()
320 MODULE_DESCRIPTION("DRM driver for JDI FHD R63452 DSI panel, command mode");