Message ID | 20220224152708.14459-1-noralf@tronnes.org |
---|---|
Headers | show |
Series | drm/tiny: Add MIPI DBI compatible SPI driver | expand |
On Thu, Feb 24, 2022 at 04:27:05PM +0100, Noralf Trønnes wrote: > Remove trailing whitespace from a comment. > > Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Acked-by: Sam Ravnborg <sam@ravnborg.org> > --- > drivers/gpu/drm/drm_modes.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c > index 96b13e36293c..77a4c8dd0bb8 100644 > --- a/drivers/gpu/drm/drm_modes.c > +++ b/drivers/gpu/drm/drm_modes.c > @@ -127,7 +127,7 @@ EXPORT_SYMBOL(drm_mode_probed_add); > * according to the hdisplay, vdisplay, vrefresh. > * It is based from the VESA(TM) Coordinated Video Timing Generator by > * Graham Loveridge April 9, 2003 available at > - * http://www.elo.utfsm.cl/~elo212/docs/CVTd6r1.xls > + * http://www.elo.utfsm.cl/~elo212/docs/CVTd6r1.xls > * > * And it is copied from xf86CVTmode in xserver/hw/xfree86/modes/xf86cvt.c. > * What I have done is to translate it by using integer calculation. > -- > 2.33.0
On Thu, Feb 24, 2022 at 04:27:06PM +0100, Noralf Trønnes wrote: > Add a function to get a drm_display_mode from a panel-timing > device tree subnode. Thanks for implementing this! > > Suggested-by: Sam Ravnborg <sam@ravnborg.org> > Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Hi Noralf, On Thu, Feb 24, 2022 at 04:27:08PM +0100, Noralf Trønnes wrote: > 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: Maxime Ripard <maxime@cerno.tech> > Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Looks good. Reviewed-by: Sam Ravnborg <sam@ravnborg.org>