diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2016-03-21 17:10:26 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-06 03:14:28 -0400 |
commit | e2513b3f568332dcecd0bfe51a1f4b2abcc4ccee (patch) | |
tree | 4e4af0b189258117c18338a50e9d706dc17d9095 | |
parent | 24fe2386818682ae7503a2bc210f0baa4d9902ab (diff) |
drm/omap: panel-dpi: make (limited) use of a reset gpio
Some displays have a reset input. To assert that the display is
functional the reset gpio must be deasserted.
Teach the driver to get and drive such a gpio accordingly.
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/gpu/drm/omapdrm/displays/panel-dpi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dpi.c b/drivers/gpu/drm/omapdrm/displays/panel-dpi.c index 7c2331be8d15..9dc1c2f1fbc1 100644 --- a/drivers/gpu/drm/omapdrm/displays/panel-dpi.c +++ b/drivers/gpu/drm/omapdrm/displays/panel-dpi.c | |||
@@ -213,6 +213,16 @@ static int panel_dpi_probe_of(struct platform_device *pdev) | |||
213 | 213 | ||
214 | ddata->enable_gpio = gpio; | 214 | ddata->enable_gpio = gpio; |
215 | 215 | ||
216 | /* | ||
217 | * Many different panels are supported by this driver and there are | ||
218 | * probably very different needs for their reset pins in regards to | ||
219 | * timing and order relative to the enable gpio. So for now it's just | ||
220 | * ensured that the reset line isn't active. | ||
221 | */ | ||
222 | gpio = devm_gpiod_get_optional(&pdev->dev, "reset", GPIOD_OUT_LOW); | ||
223 | if (IS_ERR(gpio)) | ||
224 | return PTR_ERR(gpio); | ||
225 | |||
216 | ddata->backlight_gpio = -ENOENT; | 226 | ddata->backlight_gpio = -ENOENT; |
217 | 227 | ||
218 | r = of_get_display_timing(node, "panel-timing", &timing); | 228 | r = of_get_display_timing(node, "panel-timing", &timing); |