Lines Matching full:dsi
3 * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree.
18 /* Manufacturer specific DSI commands */
39 struct mipi_dsi_device *dsi; member
61 struct mipi_dsi_device *dsi = ctx->dsi; in hx83112a_on() local
62 struct device *dev = &dsi->dev; in hx83112a_on()
65 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in hx83112a_on()
67 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETEXTC, 0x83, 0x11, 0x2a); in hx83112a_on()
68 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETPOWER1, in hx83112a_on()
70 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETDISP, in hx83112a_on()
73 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETDRV, in hx83112a_on()
78 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x02); in hx83112a_on()
79 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETDRV, in hx83112a_on()
82 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x00); in hx83112a_on()
83 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x03); in hx83112a_on()
84 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETDGCLUT, in hx83112a_on()
93 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x02); in hx83112a_on()
94 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETDGCLUT, in hx83112a_on()
103 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x01); in hx83112a_on()
104 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETDGCLUT, in hx83112a_on()
113 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x00); in hx83112a_on()
114 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETDGCLUT, 0x01); in hx83112a_on()
115 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETTCON, in hx83112a_on()
117 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETPANEL, 0x08); in hx83112a_on()
118 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETPOWER2, 0x2b, 0x2b); in hx83112a_on()
119 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETGIP0, in hx83112a_on()
127 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x01); in hx83112a_on()
128 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETGIP0, in hx83112a_on()
130 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x00); in hx83112a_on()
131 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETGIP1, in hx83112a_on()
138 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETGIP2, in hx83112a_on()
145 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETGIP3, in hx83112a_on()
149 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x01); in hx83112a_on()
150 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETGIP3, in hx83112a_on()
154 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x02); in hx83112a_on()
155 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETGIP3, in hx83112a_on()
158 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x03); in hx83112a_on()
159 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETGIP3, in hx83112a_on()
163 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x00); in hx83112a_on()
164 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETTP1, in hx83112a_on()
168 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x01); in hx83112a_on()
169 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETTP1, in hx83112a_on()
171 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x02); in hx83112a_on()
172 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETTP1, in hx83112a_on()
177 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETBANK, 0x00); in hx83112a_on()
178 mipi_dsi_dcs_write_seq(dsi, HX83112A_UNKNOWN1, 0xc3); in hx83112a_on()
179 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETCLOCK, 0xd1, 0xd6); in hx83112a_on()
180 mipi_dsi_dcs_write_seq(dsi, HX83112A_UNKNOWN1, 0x3f); in hx83112a_on()
181 mipi_dsi_dcs_write_seq(dsi, HX83112A_UNKNOWN1, 0xc6); in hx83112a_on()
182 mipi_dsi_dcs_write_seq(dsi, HX83112A_SETPTBA, 0x37); in hx83112a_on()
183 mipi_dsi_dcs_write_seq(dsi, HX83112A_UNKNOWN1, 0x3f); in hx83112a_on()
185 ret = mipi_dsi_dcs_exit_sleep_mode(dsi); in hx83112a_on()
192 ret = mipi_dsi_dcs_set_display_on(dsi); in hx83112a_on()
205 struct mipi_dsi_device *dsi = ctx->dsi; in hx83112a_disable() local
206 struct device *dev = &dsi->dev; in hx83112a_disable()
209 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in hx83112a_disable()
211 ret = mipi_dsi_dcs_set_display_off(dsi); in hx83112a_disable()
218 ret = mipi_dsi_dcs_enter_sleep_mode(dsi); in hx83112a_disable()
231 struct device *dev = &ctx->dsi->dev; in hx83112a_prepare()
291 static int hx83112a_probe(struct mipi_dsi_device *dsi) in hx83112a_probe() argument
293 struct device *dev = &dsi->dev; in hx83112a_probe()
314 ctx->dsi = dsi; in hx83112a_probe()
315 mipi_dsi_set_drvdata(dsi, ctx); in hx83112a_probe()
317 dsi->lanes = 4; in hx83112a_probe()
318 dsi->format = MIPI_DSI_FMT_RGB888; in hx83112a_probe()
319 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | in hx83112a_probe()
333 ret = mipi_dsi_attach(dsi); in hx83112a_probe()
335 dev_err_probe(dev, ret, "Failed to attach to DSI host\n"); in hx83112a_probe()
343 static void hx83112a_remove(struct mipi_dsi_device *dsi) in hx83112a_remove() argument
345 struct hx83112a_panel *ctx = mipi_dsi_get_drvdata(dsi); in hx83112a_remove()
348 ret = mipi_dsi_detach(dsi); in hx83112a_remove()
350 dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); in hx83112a_remove()
371 MODULE_DESCRIPTION("DRM driver for hx83112a-equipped DSI panels");