Lines Matching +full:panel +full:- +full:specific
1 // SPDX-License-Identifier: GPL-2.0-or-later
52 struct drm_encoder *encoder = &dp->encoder; in exynos_dp_crtc_clock_enable()
54 if (!encoder->crtc) in exynos_dp_crtc_clock_enable()
55 return -EPERM; in exynos_dp_crtc_clock_enable()
57 exynos_drm_pipe_clk_enable(to_exynos_crtc(encoder->crtc), enable); in exynos_dp_crtc_clock_enable()
78 if (dp->plat_data.panel) in exynos_dp_get_modes()
81 mode = drm_mode_create(connector->dev); in exynos_dp_get_modes()
83 DRM_DEV_ERROR(dp->dev, in exynos_dp_get_modes()
88 drm_display_mode_from_videomode(&dp->vm, mode); in exynos_dp_get_modes()
89 connector->display_info.width_mm = mode->width_mm; in exynos_dp_get_modes()
90 connector->display_info.height_mm = mode->height_mm; in exynos_dp_get_modes()
92 mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; in exynos_dp_get_modes()
106 dp->connector = connector; in exynos_dp_bridge_attach()
108 /* Pre-empt DP connector creation if there's a bridge */ in exynos_dp_bridge_attach()
109 if (dp->ptn_bridge) { in exynos_dp_bridge_attach()
110 ret = drm_bridge_attach(&dp->encoder, dp->ptn_bridge, bridge, in exynos_dp_bridge_attach()
140 ret = of_get_videomode(dp->dev->of_node, &dp->vm, OF_USE_NATIVE_MODE); in exynos_dp_dt_parse_panel()
142 DRM_DEV_ERROR(dp->dev, in exynos_dp_dt_parse_panel()
152 struct drm_encoder *encoder = &dp->encoder; in exynos_dp_bind()
156 dp->drm_dev = drm_dev; in exynos_dp_bind()
158 if (!dp->plat_data.panel && !dp->ptn_bridge) { in exynos_dp_bind()
172 dp->plat_data.encoder = encoder; in exynos_dp_bind()
174 ret = analogix_dp_bind(dp->adp, dp->drm_dev); in exynos_dp_bind()
176 dp->encoder.funcs->destroy(&dp->encoder); in exynos_dp_bind()
186 analogix_dp_unbind(dp->adp); in exynos_dp_unbind()
187 dp->encoder.funcs->destroy(&dp->encoder); in exynos_dp_unbind()
197 struct device *dev = &pdev->dev; in exynos_dp_probe()
200 struct drm_panel *panel; in exynos_dp_probe() local
204 dp = devm_kzalloc(&pdev->dev, sizeof(struct exynos_dp_device), in exynos_dp_probe()
207 return -ENOMEM; in exynos_dp_probe()
209 dp->dev = dev; in exynos_dp_probe()
218 np = of_parse_phandle(dev->of_node, "panel", 0); in exynos_dp_probe()
220 dp->plat_data.panel = of_drm_find_panel(np); in exynos_dp_probe()
223 if (IS_ERR(dp->plat_data.panel)) in exynos_dp_probe()
224 return PTR_ERR(dp->plat_data.panel); in exynos_dp_probe()
229 ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0, &panel, &bridge); in exynos_dp_probe()
233 /* The remote port can be either a panel or a bridge */ in exynos_dp_probe()
234 dp->plat_data.panel = panel; in exynos_dp_probe()
235 dp->plat_data.dev_type = EXYNOS_DP; in exynos_dp_probe()
236 dp->plat_data.power_on = exynos_dp_poweron; in exynos_dp_probe()
237 dp->plat_data.power_off = exynos_dp_poweroff; in exynos_dp_probe()
238 dp->plat_data.attach = exynos_dp_bridge_attach; in exynos_dp_probe()
239 dp->plat_data.get_modes = exynos_dp_get_modes; in exynos_dp_probe()
240 dp->plat_data.skip_connector = !!bridge; in exynos_dp_probe()
242 dp->ptn_bridge = bridge; in exynos_dp_probe()
245 dp->adp = analogix_dp_probe(dev, &dp->plat_data); in exynos_dp_probe()
246 if (IS_ERR(dp->adp)) in exynos_dp_probe()
247 return PTR_ERR(dp->adp); in exynos_dp_probe()
249 return component_add(&pdev->dev, &exynos_dp_ops); in exynos_dp_probe()
254 component_del(&pdev->dev, &exynos_dp_ops); in exynos_dp_remove()
261 return analogix_dp_suspend(dp->adp); in exynos_dp_suspend()
268 return analogix_dp_resume(dp->adp); in exynos_dp_resume()
275 { .compatible = "samsung,exynos5-dp" },
284 .name = "exynos-dp",
291 MODULE_DESCRIPTION("Samsung Specific Analogix-DP Driver Extension");