The enable GPIO is requested as output low at probe, which turns the panel off and blanks a splash screen the bootloader left on it, even when the display state is read out and kept.
Request it with GPIOD_ASIS instead, and set it as output when the panel is powered up, since it may still be an input if the bootloader didn't touch it. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Màxim Pedraza Padilla <[email protected]> --- drivers/gpu/drm/panel/panel-simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index a944c34642dc..9d2aa4d16f97 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -341,7 +341,7 @@ static int panel_simple_resume(struct device *dev) return err; } - gpiod_set_value_cansleep(p->enable_gpio, 1); + gpiod_direction_output(p->enable_gpio, 1); if (p->desc->delay.prepare) msleep(p->desc->delay.prepare); @@ -688,7 +688,7 @@ static struct panel_simple *panel_simple_probe(struct device *dev) return ERR_CAST(panel->supply); panel->enable_gpio = devm_gpiod_get_optional(dev, "enable", - GPIOD_OUT_LOW); + GPIOD_ASIS); if (IS_ERR(panel->enable_gpio)) return dev_err_cast_probe(dev, panel->enable_gpio, "failed to request GPIO\n"); -- 2.39.5
