MLK-18816-1 drm/panel: put the RST pin back to high after the reset operation
authorHaibo Chen <haibo.chen@nxp.com>
Mon, 9 Jul 2018 11:15:28 +0000 (19:15 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Panel and Touch share the same reset pin, keep reset pin in low will
make touch can't work. This patch make the reset pin keep in low for
over 15ms (to meet the RM requirement), and then put the reset pin
back to high (which will not impact touch).

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
drivers/gpu/drm/panel/panel-raydium-rm67191.c

index 7cd1bf5..74dc68f 100644 (file)
@@ -270,7 +270,8 @@ static int rad_panel_unprepare(struct drm_panel *panel)
 
        if (rad->reset != NULL) {
                gpiod_set_value(rad->reset, 0);
-               usleep_range(10000, 15000);
+               usleep_range(15000, 17000);
+               gpiod_set_value(rad->reset, 1);
        }
 
        rad->prepared = false;