Lines Matching full:dsi
21 /* the datasheet refers to them as DSI-LINK1 and DSI-LINK2 */
48 struct mipi_dsi_device *dsi = sharp->link1; in sharp_panel_write() local
51 err = mipi_dsi_generic_write(dsi, payload, sizeof(payload)); in sharp_panel_write()
53 dev_err(&dsi->dev, "failed to write %02x to %04x: %zd\n", in sharp_panel_write()
58 err = mipi_dsi_dcs_nop(dsi); in sharp_panel_write()
60 dev_err(&dsi->dev, "failed to send DCS nop: %zd\n", err); in sharp_panel_write()
198 * put in place to communicate the configuration back to the DSI host in sharp_panel_prepare()
300 static int sharp_panel_probe(struct mipi_dsi_device *dsi) in sharp_panel_probe() argument
307 dsi->lanes = 4; in sharp_panel_probe()
308 dsi->format = MIPI_DSI_FMT_RGB888; in sharp_panel_probe()
309 dsi->mode_flags = MIPI_DSI_MODE_LPM; in sharp_panel_probe()
311 /* Find DSI-LINK1 */ in sharp_panel_probe()
312 np = of_parse_phandle(dsi->dev.of_node, "link2", 0); in sharp_panel_probe()
321 /* register a panel for only the DSI-LINK1 interface */ in sharp_panel_probe()
323 sharp = devm_drm_panel_alloc(&dsi->dev, __typeof(*sharp), base, in sharp_panel_probe()
331 mipi_dsi_set_drvdata(dsi, sharp); in sharp_panel_probe()
334 sharp->link1 = dsi; in sharp_panel_probe()
343 err = mipi_dsi_attach(dsi); in sharp_panel_probe()
354 static void sharp_panel_remove(struct mipi_dsi_device *dsi) in sharp_panel_remove() argument
356 struct sharp_panel *sharp = mipi_dsi_get_drvdata(dsi); in sharp_panel_remove()
359 err = mipi_dsi_detach(dsi); in sharp_panel_remove()
361 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err); in sharp_panel_remove()
363 /* only detach from host for the DSI-LINK2 interface */ in sharp_panel_remove()