Lines Matching refs:vpanel
229 struct versatile_panel *vpanel = to_versatile_panel(panel); in versatile_panel_disable() local
232 if (vpanel->ib2_map) { in versatile_panel_disable()
233 dev_dbg(vpanel->dev, "disable IB2 display\n"); in versatile_panel_disable()
234 regmap_update_bits(vpanel->ib2_map, in versatile_panel_disable()
245 struct versatile_panel *vpanel = to_versatile_panel(panel); in versatile_panel_enable() local
248 if (vpanel->ib2_map) { in versatile_panel_enable()
249 dev_dbg(vpanel->dev, "enable IB2 display\n"); in versatile_panel_enable()
250 regmap_update_bits(vpanel->ib2_map, in versatile_panel_enable()
262 struct versatile_panel *vpanel = to_versatile_panel(panel); in versatile_panel_get_modes() local
265 connector->display_info.width_mm = vpanel->panel_type->width_mm; in versatile_panel_get_modes()
266 connector->display_info.height_mm = vpanel->panel_type->height_mm; in versatile_panel_get_modes()
267 connector->display_info.bus_flags = vpanel->panel_type->bus_flags; in versatile_panel_get_modes()
269 mode = drm_mode_duplicate(connector->dev, &vpanel->panel_type->mode); in versatile_panel_get_modes()
275 mode->width_mm = vpanel->panel_type->width_mm; in versatile_panel_get_modes()
276 mode->height_mm = vpanel->panel_type->height_mm; in versatile_panel_get_modes()
291 struct versatile_panel *vpanel; in versatile_panel_probe() local
309 vpanel = devm_kzalloc(dev, sizeof(*vpanel), GFP_KERNEL); in versatile_panel_probe()
310 if (!vpanel) in versatile_panel_probe()
326 vpanel->panel_type = pt; in versatile_panel_probe()
337 dev_info(dev, "detected: %s\n", vpanel->panel_type->name); in versatile_panel_probe()
338 vpanel->dev = dev; in versatile_panel_probe()
339 vpanel->map = map; in versatile_panel_probe()
342 if (vpanel->panel_type->ib2) { in versatile_panel_probe()
343 vpanel->ib2_map = syscon_regmap_lookup_by_compatible( in versatile_panel_probe()
345 if (IS_ERR(vpanel->ib2_map)) in versatile_panel_probe()
346 vpanel->ib2_map = NULL; in versatile_panel_probe()
351 drm_panel_init(&vpanel->panel, dev, &versatile_panel_drm_funcs, in versatile_panel_probe()
354 drm_panel_add(&vpanel->panel); in versatile_panel_probe()