Lines Matching refs:dbidev

194 	struct mipi_dbi_dev *dbidev = drm_to_mipi_dbi_dev(pipe->crtc.dev);  in panel_mipi_dbi_enable()  local
195 struct mipi_dbi *dbi = &dbidev->dbi; in panel_mipi_dbi_enable()
203 ret = mipi_dbi_poweron_conditional_reset(dbidev); in panel_mipi_dbi_enable()
207 panel_mipi_dbi_commands_execute(dbi, dbidev->driver_private); in panel_mipi_dbi_enable()
209 mipi_dbi_enable_flush(dbidev, crtc_state, plane_state); in panel_mipi_dbi_enable()
232 static int panel_mipi_dbi_get_mode(struct mipi_dbi_dev *dbidev, struct drm_display_mode *mode) in panel_mipi_dbi_get_mode() argument
234 struct device *dev = dbidev->drm.dev; in panel_mipi_dbi_get_mode()
265 dbidev->top_offset = vback_porch; in panel_mipi_dbi_get_mode()
266 dbidev->left_offset = hback_porch; in panel_mipi_dbi_get_mode()
275 struct mipi_dbi_dev *dbidev; in panel_mipi_dbi_spi_probe() local
281 dbidev = devm_drm_dev_alloc(dev, &panel_mipi_dbi_driver, struct mipi_dbi_dev, drm); in panel_mipi_dbi_spi_probe()
282 if (IS_ERR(dbidev)) in panel_mipi_dbi_spi_probe()
283 return PTR_ERR(dbidev); in panel_mipi_dbi_spi_probe()
285 dbi = &dbidev->dbi; in panel_mipi_dbi_spi_probe()
286 drm = &dbidev->drm; in panel_mipi_dbi_spi_probe()
288 ret = panel_mipi_dbi_get_mode(dbidev, &mode); in panel_mipi_dbi_spi_probe()
292 dbidev->regulator = devm_regulator_get(dev, "power"); in panel_mipi_dbi_spi_probe()
293 if (IS_ERR(dbidev->regulator)) in panel_mipi_dbi_spi_probe()
294 return dev_err_probe(dev, PTR_ERR(dbidev->regulator), in panel_mipi_dbi_spi_probe()
297 dbidev->io_regulator = devm_regulator_get(dev, "io"); in panel_mipi_dbi_spi_probe()
298 if (IS_ERR(dbidev->io_regulator)) in panel_mipi_dbi_spi_probe()
299 return dev_err_probe(dev, PTR_ERR(dbidev->io_regulator), in panel_mipi_dbi_spi_probe()
302 dbidev->backlight = devm_of_find_backlight(dev); in panel_mipi_dbi_spi_probe()
303 if (IS_ERR(dbidev->backlight)) in panel_mipi_dbi_spi_probe()
304 return dev_err_probe(dev, PTR_ERR(dbidev->backlight), "Failed to get backlight\n"); in panel_mipi_dbi_spi_probe()
322 dbidev->driver_private = panel_mipi_dbi_commands_from_fw(dev); in panel_mipi_dbi_spi_probe()
323 if (IS_ERR(dbidev->driver_private)) in panel_mipi_dbi_spi_probe()
324 return PTR_ERR(dbidev->driver_private); in panel_mipi_dbi_spi_probe()
326 ret = mipi_dbi_dev_init(dbidev, &panel_mipi_dbi_pipe_funcs, &mode, 0); in panel_mipi_dbi_spi_probe()