[PATCH v2 08/10] drm/panel: Add Huarui LHR050H41 panel driver
wens at csie.org
Wed Feb 21 07:36:10 PST 2018
On Wed, Feb 21, 2018 at 5:20 PM, Maxime Ripard
<maxime.ripard at bootlin.com> wrote:
> From: Maxime Ripard <maxime.ripard at free-electrons.com>
> 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 at free-electrons.com>
> 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:
This should help with the init command sequence.
I also found this:
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.
> config DRM_PANEL_ILITEK_IL9322
> tristate "Ilitek ILI9322 320x240 QVGA panels"
> depends on OF && SPI
More information about the linux-arm-kernel