linux/drivers/gpu/drm/panel
Douglas Anderson 48834e6084 drm/panel-simple: Support hpd-gpios for delaying prepare()
People use panel-simple when they have panels that are builtin to
their device.  In these cases the HPD (Hot Plug Detect) signal isn't
really used for hotplugging devices but instead is used for power
sequencing.  Panel timing diagrams (especially for eDP panels) usually
have the HPD signal in them and it acts as an indicator that the panel
is ready for us to talk to it.

Sometimes the HPD signal is hooked up to a normal GPIO on a system.
In this case we need to poll it in the correct place to know that the
panel is ready for us.  In some system designs the right place for
this is panel-simple.

When adding this support, we'll account for the case that there might
be a circular dependency between panel-simple and the provider of the
GPIO.  The case this was designed for was for the "ti-sn65dsi86"
bridge chip.  If HPD is hooked up to one of the GPIOs provided by the
bridge chip then in our probe function we'll always get back
-EPROBE_DEFER.  Let's handle this by allowing this GPIO to show up
late if we saw -EPROBE_DEFER during probe.  NOTE: since the
gpio_get_optional() is used, if the "hpd-gpios" isn't there our
variable will just be NULL and we won't do anything in prepare().

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200507143354.v5.3.I53fed5b501a31e7a7fa13268ebcdd6b77bd0cadd@changeid
2020-05-09 22:11:45 +02:00
..
Kconfig drivers: drm: panel: Add ASUS TM5P5 NT35596 panel driver 2020-05-07 21:54:06 +02:00
Makefile drivers: drm: panel: Add ASUS TM5P5 NT35596 panel driver 2020-05-07 21:54:06 +02:00
panel-arm-versatile.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-asus-z00t-tm5p5-n35596.c drivers: drm: panel: Add ASUS TM5P5 NT35596 panel driver 2020-05-07 21:54:06 +02:00
panel-boe-himax8279d.c drm/panel: Add Boe Himax8279d MIPI-DSI LCD panel 2019-12-13 19:29:24 +01:00
panel-boe-tv101wum-nl6.c drm/panel: boe-tv101wum-n16: fine tune clock 2020-05-04 22:18:42 +02:00
panel-elida-kd35t133.c drm/panel: add panel driver for Elida KD35T133 panels 2020-03-06 02:34:24 +01:00
panel-feixin-k101-im2ba02.c drm/panel: Add Feixin K101 IM2BA02 panel 2020-01-17 19:40:32 +01:00
panel-feiyang-fy07024di26a30d.c drm/panel: feiyang-fy07024di26a30d: use drm_panel backlight support 2019-12-09 22:57:26 +01:00
panel-ilitek-ili9322.c drm/panel: ili9322: Remove unneeded semicolon 2020-04-25 16:37:27 +02:00
panel-ilitek-ili9881c.c drm/panel: ilitek-ili9881c: use drm_panel backlight support 2019-12-09 22:57:26 +01:00
panel-innolux-p079zca.c drm/panel: innolux-p079zca: use drm_panel backlight support 2019-12-09 22:57:26 +01:00
panel-jdi-lt070me05000.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-kingdisplay-kd097d04.c drm/panel: kingdisplay-kd097d04: use drm_panel backlight support 2019-12-09 22:57:26 +01:00
panel-leadtek-ltk050h3146w.c drm/panel: add panel driver for Leadtek LTK050H3146W 2020-04-08 10:55:00 +02:00
panel-leadtek-ltk500hd1829.c drm/panel-leadtek-ltk500hd1829: Fix dotclock 2020-04-03 21:33:49 +03:00
panel-lg-lb035q02.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-lg-lg4573.c drm/panel-lg-lg4573: Fix dotclock 2020-03-11 16:39:06 +02:00
panel-lvds.c drm/panel: lvds: use drm_panel backlight support 2019-12-09 22:57:26 +01:00
panel-nec-nl8048hl11.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-novatek-nt35510.c drm/panel-novatek-nt35510: Fix dotclock 2020-03-11 16:39:05 +02:00
panel-novatek-nt39016.c drm/panel: nt39016: Add support for 50 Hz refresh rate 2020-04-08 13:32:32 +02:00
panel-olimex-lcd-olinuxino.c drm/panel: olimex-lcd-olinuxino: use drm_panel backlight support 2019-12-09 22:57:26 +01:00
panel-orisetech-otm8009a.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-osd-osd101t2587-53ts.c drm/panel: osd-osd101t2587-53ts: use drm_panel backlight support 2019-12-09 22:57:27 +01:00
panel-panasonic-vvx10f034n00.c drm/panel: panasonic-vvx10f034n00: use drm_panel backlight support 2019-12-09 22:57:27 +01:00
panel-raspberrypi-touchscreen.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-raydium-rm67191.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-raydium-rm68200.c drm/panel: raydium-rm68200: use drm_panel backlight support 2019-12-09 22:57:27 +01:00
panel-rocktech-jh057n00900.c drm/panel: rocktech-jh057n00900: use drm_panel backlight support 2019-12-09 22:57:27 +01:00
panel-ronbo-rb070d30.c drm/panel: ronbo-rb070d30: use drm_panel backlight support 2019-12-09 22:57:27 +01:00
panel-samsung-ld9040.c drm/panel: ld9040: add MODULE_DEVICE_TABLE with SPI IDs 2020-02-22 13:16:56 +01:00
panel-samsung-s6d16d0.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-samsung-s6e3ha2.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-samsung-s6e8aa0.c drm/panel: add drm_connector argument to get_modes() 2019-12-09 22:57:26 +01:00
panel-samsung-s6e63j0x03.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-samsung-s6e63m0.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-samsung-s6e88a0-ams452ef01.c drm/panel: Add Samsung s6e88a0-ams452ef01 panel driver 2020-01-30 22:15:47 +01:00
panel-seiko-43wvf1g.c drm/panel: seiko-43wvf1g: use drm_panel backlight support 2019-12-09 22:57:27 +01:00
panel-sharp-lq101r1sx01.c drm/panel: sharp-lq101r1sx01: use drm_panel backlight support 2019-12-09 22:57:27 +01:00
panel-sharp-ls037v7dw01.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-sharp-ls043t1le01.c drm/panel: sharp-ls043t1le01: use drm_panel backlight support 2019-12-09 22:57:27 +01:00
panel-simple.c drm/panel-simple: Support hpd-gpios for delaying prepare() 2020-05-09 22:11:45 +02:00
panel-sitronix-st7701.c drm/panel: sitronix-st7701: use drm_panel backlight support 2019-12-09 22:57:27 +01:00
panel-sitronix-st7789v.c drm/panel: sitronix-st7789v: use drm_panel backlight support 2019-12-09 22:57:27 +01:00
panel-sony-acx424akp.c drm/panel-sony-acx424akp: Fix dotclocks 2020-03-11 16:39:06 +02:00
panel-sony-acx565akm.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-tpo-td028ttec1.c drm: panel: fix excessive stack usage in td028ttec1_prepare 2020-01-12 21:11:57 +01:00
panel-tpo-td043mtea1.c drm/panel: drop drm_device from drm_panel 2019-12-09 22:57:26 +01:00
panel-tpo-tpg110.c drm/panel: tpo-tpg110: use drm_panel backlight support 2019-12-09 22:57:27 +01:00
panel-truly-nt35597.c drm/panel: remove set but not used variable 'config' 2020-04-25 16:56:54 +02:00
panel-visionox-rm69299.c drm: panel: add MODULE_LICENSE to panel-visionox-rm69299.c 2020-05-07 21:41:33 +02:00
panel-xinpeng-xpp055c272.c drm/panel: add panel driver for Xinpeng XPP055C272 panels 2020-01-04 16:20:31 +01:00