Skip to content
Unverified Commit 0e65e2e6 authored by Noralf Trønnes's avatar Noralf Trønnes Committed by Maxime Ripard
Browse files

drm/tiny: Add MIPI DBI compatible SPI driver



Add a driver that will work with most MIPI DBI compatible SPI panels.
This avoids adding a driver for every new MIPI DBI compatible controller
that is to be used by Linux. The 'compatible' Device Tree property with
a '.bin' suffix will be used to load a firmware file that contains the
controller configuration.

Example (driver will load sainsmart18.bin):

display@0 {
	compatible = "sainsmart18", "panel-mipi-dbi-spi";
...
};

v5:
- kconfig: s/DRM_KMS_CMA_HELPER/DRM_GEM_CMA_HELPER/ (Sam)
- kconfig: Add select VIDEOMODE_HELPERS (Sam)
- kconfig: Add wiki url in the description (Sam)
- Split out and use of_get_drm_panel_display_mode()(Sam)
- Only use the first compatible to look for a firmware file since the
  binding mandates 2 compatibles.
- Make having a firmware file mandatory so we can print an error
  message if it's missing to improve the user experience. It's very
  unlikely that a controller doesn't need to be initialized and if
  it doesn't, it's possible to have a firmware file containing only
  a DCS NOP.

v4:
- Move driver to drm/tiny where the other drivers of its kind are located.
  The driver module will not be shared with a future DPI driver after all.

v3:
- Move properties to DT (Maxime)
- The MIPI DPI spec has optional support for DPI where the controller is
  configured over DBI. Rework the command functions so they can be moved
  to drm_mipi_dbi and shared with a future panel-mipi-dpi-spi driver

v2:
- Drop model property and use compatible instead (Rob)
- Add wiki entry in MAINTAINERS

Acked-by: default avatarMaxime Ripard <maxime@cerno.tech>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarNoralf Trønnes <noralf@tronnes.org>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220227124713.39766-6-noralf@tronnes.org
parent 1e7e8e18
  • mirror @mirror

    mentioned in commit f0be82c42055989b33efd2f96d775b60ba783e12

    ·

    mentioned in commit f0be82c42055989b33efd2f96d775b60ba783e12

    Toggle commit list
  • mirror @mirror

    mentioned in commit de2af0f15bd76c9c7bdf7ef54c1822fb1c49ee2c

    ·

    mentioned in commit de2af0f15bd76c9c7bdf7ef54c1822fb1c49ee2c

    Toggle commit list
  • mirror @mirror

    mentioned in commit 73863348

    ·

    mentioned in commit 73863348

    Toggle commit list
  • mirror @mirror

    mentioned in commit 0b2dc2b980b3d02d8130dc356970f1e9203c3c36

    ·

    mentioned in commit 0b2dc2b980b3d02d8130dc356970f1e9203c3c36

    Toggle commit list
  • mirror @mirror

    mentioned in commit a496e02316d9eaa162b77dc22fe2ab9a4c42acd6

    ·

    mentioned in commit a496e02316d9eaa162b77dc22fe2ab9a4c42acd6

    Toggle commit list
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment