drm/bridge: sn65dsi86: Move panel_prepare() to pre_enable()
Subsystems (5)
PATCH 1/2 drm/bridge: sn65dsi86: Move panel_prepare() to pre_enable()
prepare() is the old-timey way to say pre_enable(). It should be called before modeset. This fixes an issue where the panel on cheza must have the regulator always-on/boot-on for it to work.
Cc Sandeep Panda <[email protected]>
Cc Stephen Boyd <[email protected]>
Signed-off-by Sean Paul <[email protected]>
--- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/bridge/ti-sn65dsi86.c +2 -2
@@ -448,8 +448,6 @@ static void ti_sn_bridge_enable(struct drm_bridge *bridge)struct ti_sn_bridge *pdata =bridge_to_ti_sn_bridge (bridge);unsigned int val; -drm_panel_prepare (pdata->panel); -/* DSI_A lane config */ val = (4 - pdata->dsi->lanes) <<SN_DSIA_LANE_OFFSET ; regmap_update_bits(pdata->regmap, SN_DSI_LANES_REG,
@@ -507,6 +505,8 @@ static void ti_sn_bridge_pre_enable(struct drm_bridge *bridge)/* in case drm_panel is connected then HPD is not supported */ regmap_update_bits (pdata->regmap,SN_HPD_DISABLE_REG ,SN_HPD_DISABLE_BIT ,SN_HPD_DISABLE_BIT ); + +drm_panel_prepare (pdata->panel); }static void ti_sn_bridge_post_disable (struct drm_bridge *bridge)
Signature · 6 lines
Sean Paul, Software Engineer, Google / Chromium OS _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm/panel: simple: tv123wam: Add unprepare delay
The panel datasheet specifies a 500ms delay after power-down before re-enabling.
Cc Sandeep Panda <[email protected]>
Cc Stephen Boyd <[email protected]>
Signed-off-by Sean Paul <[email protected]>
--- drivers/gpu/drm/panel/panel-simple.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +3 -0
@@ -1385,6 +1385,9 @@ static const struct panel_desc innolux_tv123wam = { .width = 259, .height = 173, }, + .delay = { + .unprepare = 500, + }, }; static const struct drm_display_mode innolux_zj070na_01p_mode = {
Signature · 6 lines
Sean Paul, Software Engineer, Google / Chromium OS _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel