Hi, On Wed, Feb 21, 2018 at 5:20 PM, Maxime Ripard <maxime.ripard@xxxxxxxxxxx> wrote: > From: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> > > The LHR050H41 panel is the panel shipped with the BananaPi M2-Magic. Add a > driver for it. So I distinctly remember questioning the vendor name the first time. I would just use Bananapi as the vendor name instead. > > Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> > --- > drivers/gpu/drm/panel/Kconfig | 9 +- > drivers/gpu/drm/panel/Makefile | 1 +- > drivers/gpu/drm/panel/panel-huarui-lhr050h41.c | 506 ++++++++++++++++++- > 3 files changed, 516 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-huarui-lhr050h41.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 6ba4031f3919..965310fd129a 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -28,6 +28,15 @@ config DRM_PANEL_SIMPLE > that it can be automatically turned off when the panel goes into a > low power state. > > +config DRM_PANEL_HUARUI_LHR050H41 > + tristate "Huarui LHR050H41 panel" > + depends on OF > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + help > + Say Y if you want to enable support for the Huarui Lighting > + LHR05041 DSI panel. The panel has a 1280x720 resolution. > + And it seems this panel is driven by an ILI9881C from Ilitek. So maybe you could make the panel driver more like the IL9322, as in having common code for the driver IC, then a data structure tied to actual panel compatible strings to handle any quirks. The datasheet can be found simply by googling the part ID, or here: http://en.startek-lcd.com/res/starteklcden/pdres/201706/20170617115241070.pdf This should help with the init command sequence. I also found this: http://www.ampdisplay.com/documents/pdf/AM-7201280ETZQW-00H.pdf which might or might not be the same panel. Now the IL9332 driver simply uses the device model (Dlink DIR-685) as part of the compatible string. Regards ChenYu > config DRM_PANEL_ILITEK_IL9322 > tristate "Ilitek ILI9322 320x240 QVGA panels" > depends on OF && SPI -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html