Ondrej Jirman
da1409ea08
drm/panel: st7703: Pick different reset sequence
...
[ Upstream commit d12d635bb03c7cb4830acb641eb176ee9ff2aa89 ]
Switching to a different reset sequence, enabling IOVCC before enabling
VCC.
There also needs to be a delay after enabling the supplies and before
deasserting the reset. The datasheet specifies 1ms after the supplies
reach the required voltage. Use 10-20ms to also give the power supplies
some time to reach the required voltage, too.
This fixes intermittent panel initialization failures and screen
corruption during resume from sleep on panel xingbangda,xbd599 (e.g.
used in PinePhone).
Signed-off-by: Ondrej Jirman <megi@xff.cz >
Signed-off-by: Frank Oltmanns <frank@oltmanns.dev >
Reported-by: Samuel Holland <samuel@sholland.org >
Reviewed-by: Guido Günther <agx@sigxcpu.org >
Tested-by: Guido Günther <agx@sigxcpu.org >
Signed-off-by: Guido Günther <agx@sigxcpu.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20230211171748.36692-2-frank@oltmanns.dev
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-11-28 16:54:50 +00:00
Sam Ravnborg
65d5c86fc5
drm/panel: sitronix: Use dev_ based logging
...
Standardize on the dev_ based logging and drop the include of drm_print.h.
Fix a few cases where "x@" was used when printing the mode.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org >
Reviewed-by: Guido Günther <agx@sigxcpu.org >
Cc: Jagan Teki <jagan@amarulasolutions.com >
Cc: Thierry Reding <thierry.reding@gmail.com >
Cc: Sam Ravnborg <sam@ravnborg.org >
Cc: Guido Günther <agx@sigxcpu.org >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20200815125406.1153224-5-sam@ravnborg.org
2020-08-18 22:32:23 +02:00
Ondrej Jirman
c8a7534840
drm/panel: st7703: Assert reset prior to powering down the regulators
...
The reset pin is inverted, so if we don't assert reset, the actual gpio
will be high and may keep driving the IO port of the panel.
Signed-off-by: Ondrej Jirman <megous@megous.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Guido Günther <agx@sigxcpu.org >
Reviewed-by: Guido Günther <agx@sigxcpu.org >
Signed-off-by: Sam Ravnborg <sam@ravnborg.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20200701162928.1638874-12-megous@megous.com
2020-07-01 19:25:50 +02:00
Ondrej Jirman
43fc6db016
drm/panel: st7703: Enter sleep after display off
...
The datasheet suggests to issue sleep in after display off
as a part of the panel's shutdown sequence.
Signed-off-by: Ondrej Jirman <megous@megous.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Guido Günther <agx@sigxcpu.org >
Reviewed-by: Guido Günther <agx@sigxcpu.org >
Signed-off-by: Sam Ravnborg <sam@ravnborg.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20200701162928.1638874-11-megous@megous.com
2020-07-01 19:25:42 +02:00
Ondrej Jirman
67680f8782
drm/panel: st7703: Add support for Xingbangda XBD599
...
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel used in
PinePhone. Add support for it.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io >
Signed-off-by: Ondrej Jirman <megous@megous.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Guido Günther <agx@sigxcpu.org >
Reviewed-by: Guido Günther <agx@sigxcpu.org >
Signed-off-by: Sam Ravnborg <sam@ravnborg.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20200701162928.1638874-10-megous@megous.com
2020-07-01 19:25:30 +02:00
Ondrej Jirman
e609fb1ea2
drm/panel: st7703: Move generic part of init sequence to enable callback
...
Calling sleep out and display on is a controller specific part
of the initialization process. Move it out of the panel specific
initialization function to the enable callback.
Signed-off-by: Ondrej Jirman <megous@megous.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Guido Günther <agx@sigxcpu.org >
Reviewed-by: Guido Günther <agx@sigxcpu.org >
Signed-off-by: Sam Ravnborg <sam@ravnborg.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20200701162928.1638874-9-megous@megous.com
2020-07-01 19:25:23 +02:00
Ondrej Jirman
a14268a642
drm/panel: st7703: Move code specific to jh057n closer together
...
It's better than having it spread around the driver.
Signed-off-by: Ondrej Jirman <megous@megous.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Guido Günther <agx@sigxcpu.org >
Reviewed-by: Guido Günther <agx@sigxcpu.org >
Signed-off-by: Sam Ravnborg <sam@ravnborg.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20200701162928.1638874-8-megous@megous.com
2020-07-01 19:25:17 +02:00
Ondrej Jirman
be6ca3393e
drm/panel: st7703: Prepare for supporting multiple panels
...
Parametrize the driver so that it can support more panels based
on st7703 controller.
Signed-off-by: Ondrej Jirman <megous@megous.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Guido Günther <agx@sigxcpu.org >
Reviewed-by: Guido Günther <agx@sigxcpu.org >
Signed-off-by: Sam Ravnborg <sam@ravnborg.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20200701162928.1638874-7-megous@megous.com
2020-07-01 19:25:10 +02:00
Ondrej Jirman
24489ba08c
drm/panel: st7703: Rename functions from jh057n prefix to st7703
...
This is done so that code that's not specific to a particular
jh057n panel is named after the controller. Functions specific
to the panel are kept named after the panel.
Signed-off-by: Ondrej Jirman <megous@megous.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Guido Günther <agx@sigxcpu.org >
Reviewed-by: Guido Günther <agx@sigxcpu.org >
Signed-off-by: Sam Ravnborg <sam@ravnborg.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20200701162928.1638874-6-megous@megous.com
2020-07-01 19:25:03 +02:00
Ondrej Jirman
a74e81a564
drm/panel: rocktech-jh057n00900: Rename the driver to st7703
...
This rename is done so that the driver matches the name of the
display controller and in preparation for adding support for more
panels to the driver.
This is just a basic file rename, with no code changes.
Signed-off-by: Ondrej Jirman <megous@megous.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Guido Günther <agx@sigxcpu.org >
Reviewed-by: Guido Günther <agx@sigxcpu.org >
Signed-off-by: Sam Ravnborg <sam@ravnborg.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20200701162928.1638874-5-megous@megous.com
2020-07-01 19:22:49 +02:00