linux/drivers/gpu/drm/panel
Sam Ravnborg ddb8e853dc drm/panel: panel-simple: validate panel description
Warn if we detect a panel with incomplete/wrong description.
This is inspired by a similar patch by Laurent that introduced checks
for LVDS panels - this extends the checks to the remaining type of
connectors.

This is known to warn for some of the existing panels but added
despite this as we need help from people using the panels to
add the missing info.
The checks are not complete but will catch the most common mistakes.

The checks at the same time serve as documentation for the minimum
required description for a panel.

The checks uses dev_warn() as we know this will hit. WARN() was
too noisy at the moment for anything else than LVDS.

v3:
  - %d => %u for bpc (Laurent)
v2:
  - Use dev_warn (Laurent)
  - Check for empty bus_flags

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200726203324.3722593-2-sam@ravnborg.org
2020-07-27 17:17:32 +02:00
..
Kconfig drm/panel: rocktech-jh057n00900: Rename the driver to st7703 2020-07-01 19:22:49 +02:00
Makefile drm/panel: rocktech-jh057n00900: Rename the driver to st7703 2020-07-01 19:22:49 +02:00
panel-arm-versatile.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-asus-z00t-tm5p5-n35596.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-boe-himax8279d.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-boe-tv101wum-nl6.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-elida-kd35t133.c drm/panel: use mipi_dsi_dcs_write_buffer where possible 2020-06-29 09:42:12 +02:00
panel-feixin-k101-im2ba02.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-feiyang-fy07024di26a30d.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-ilitek-ili9322.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-ilitek-ili9881c.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-innolux-p079zca.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-jdi-lt070me05000.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-kingdisplay-kd097d04.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-leadtek-ltk050h3146w.c drm/panel: use mipi_dsi_dcs_write_buffer where possible 2020-06-29 09:42:12 +02:00
panel-leadtek-ltk500hd1829.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-lg-lb035q02.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-lg-lg4573.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03: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: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-novatek-nt35510.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-novatek-nt39016.c drm/panel: novatek-nt39016: drop use of legacy drm_bus_flags 2020-07-01 11:04:47 +02:00
panel-olimex-lcd-olinuxino.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-orisetech-otm8009a.c drm/panel: otm8009a: Drop unnessary backlight_device_unregister() 2020-06-20 12:23:41 +02:00
panel-osd-osd101t2587-53ts.c drm/panel: Replace HTTP links with HTTPS ones 2020-07-10 19:14:04 +02:00
panel-panasonic-vvx10f034n00.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-raspberrypi-touchscreen.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-raydium-rm67191.c drm/panel: raydium-rm67191: drop use of legacy drm_bus_flags 2020-07-01 11:04:33 +02:00
panel-raydium-rm68200.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-ronbo-rb070d30.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03: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: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-samsung-s6e3ha2.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03: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: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-samsung-s6e63m0.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-samsung-s6e88a0-ams452ef01.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-seiko-43wvf1g.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-sharp-lq101r1sx01.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-sharp-ls037v7dw01.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-sharp-ls043t1le01.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-simple.c drm/panel: panel-simple: validate panel description 2020-07-27 17:17:32 +02:00
panel-sitronix-st7701.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-sitronix-st7703.c drm/panel: st7703: Assert reset prior to powering down the regulators 2020-07-01 19:25:50 +02:00
panel-sitronix-st7789v.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-sony-acx424akp.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-sony-acx565akm.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-tpo-td028ttec1.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-tpo-td043mtea1.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-tpo-tpg110.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-truly-nt35597.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-visionox-rm69299.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
panel-xinpeng-xpp055c272.c drm/panel: use mipi_dsi_dcs_write_buffer where possible 2020-06-29 09:42:12 +02:00