[PATCH 4/4] drm/panel/ili9341: Support DPI panels

2019-08-01 Thread Noralf Trønnes
Add support for panels that use the DPI interface. ILI9341 has onboard RAM so the assumption made here is that all such panels support pixel upload over DBI. The presence/absense of the Device Tree 'port' node decides which interface is used for pixel transfer. Signed-off-by: Noralf Trønnes

[PATCH 3/4] drm/tiny/mi0283qt: Move driver to panel-ilitek-ili9341

2019-08-01 Thread Noralf Trønnes
The MI0283QT panels use a ILI9341 controller so it makes sense to merge it with the other ili9341 code. The DRM driver name is ABI, so that is retained. Cc: David Lechner Signed-off-by: Noralf Trønnes --- MAINTAINERS | 9 +- drivers/gpu/drm/panel/Kconfig

[PATCH 2/4] drm/tiny/ili9341: Move driver to drm/panel

2019-08-01 Thread Noralf Trønnes
Move the driver to drm/panel and take advantage of the new panel support in drm_mipi_dbi. Change the file name to match the naming standard in drm/panel. The DRM driver name is kept since it is ABI. Add missing MAINTAINERS entry. Cc: David Lechner Signed-off-by: Noralf Trønnes --- MAINTAINERS

[PATCH 1/4] drm/mipi-dbi: Support command mode panel drivers

2019-08-01 Thread Noralf Trønnes
This adds a function that registers a DRM driver for use with MIPI DBI panels in command mode. That is, framebuffer upload over DBI. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_mipi_dbi.c | 92 ++ include/drm/drm_mipi_dbi.h | 34 + 2

[PATCH 0/4] drm/mipi-dbi: Support panel drivers

2019-08-01 Thread Noralf Trønnes
while the panel is attached to the connector. Shouldn't struct drm_panel_funcs have a module owner field? Noralf. [1] https://patchwork.freedesktop.org/series/64398/ [2] https://patchwork.freedesktop.org/patch/316528/ Noralf Trønnes (4): drm/mipi-dbi: Support command mode panel drivers drm

Re: [PATCH 0/3] drm/tinydrm: Rename to drm/tiny

2019-07-31 Thread Noralf Trønnes
Den 25.07.2019 12.51, skrev Noralf Trønnes: > This is the final polish on tinydrm turning it into _the_ place for tiny > DRM drivers. > > Noralf. > > Noralf Trønnes (3): > drm/tinydrm/Kconfig: Remove menuconfig DRM_TINYDRM > drm/tinydrm: Rename folder to tiny >

Re: [RFC 4/4] drm/panel/ili9341: Support mi0283qt

2019-07-30 Thread Noralf Trønnes
Den 30.07.2019 19.12, skrev Emil Velikov: > On 2019/07/30, Daniel Vetter wrote: >> On Tue, Jul 30, 2019 at 4:30 PM Noralf Trønnes wrote: >>> >>> >>> >>> Den 29.07.2019 21.55, skrev Noralf Trønnes: >>>> Signed-off-by: Noralf Trønnes &g

Re: [RFC 4/4] drm/panel/ili9341: Support mi0283qt

2019-07-30 Thread Noralf Trønnes
Den 30.07.2019 17.22, skrev Daniel Vetter: > On Tue, Jul 30, 2019 at 4:30 PM Noralf Trønnes wrote: >> >> >> >> Den 29.07.2019 21.55, skrev Noralf Trønnes: >>> Signed-off-by: Noralf Trønnes >>> --- >>> drivers/gpu/drm/panel/panel-ilitek-i

Re: [RFC 0/4] drm/mipi-dbi: Support panel drivers

2019-07-30 Thread Noralf Trønnes
ie. they have a custom controller for their display. Some even pretend to be one controller, but reading the register contents, it's doubtful that this is true and it's more likely to be a clone. Noralf. > út 30. 7. 2019 v 16:08 odesílatel Noralf Trønnes napsal: >> >> >> &g

Re: [RFC 4/4] drm/panel/ili9341: Support mi0283qt

2019-07-30 Thread Noralf Trønnes
Den 29.07.2019 21.55, skrev Noralf Trønnes: > Signed-off-by: Noralf Trønnes > --- > drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 179 ++- > 1 file changed, 170 insertions(+), 9 deletions(-) > I have realised that this will change the DRM driver nam

Re: [RFC 4/4] drm/panel/ili9341: Support mi0283qt

2019-07-30 Thread Noralf Trønnes
Den 30.07.2019 10.34, skrev Josef Luštický: > Hi Noralf, > see comments bellow. > > po 29. 7. 2019 v 21:55 odesílatel Noralf Trønnes napsal: >> >> Signed-off-by: Noralf Trønnes >> --- >> drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 179 ++

Re: [RFC 0/4] drm/mipi-dbi: Support panel drivers

2019-07-30 Thread Noralf Trønnes
in both modes I guess. Noralf. > Josef > > po 29. 7. 2019 v 21:55 odesílatel Noralf Trønnes napsal: >> >> Inspired by the thread[1] following the submission of a new ili9341 >> panel driver[2], I set out to see if I could support panel drivers in >> drm_mipi_dbi

Re: [PATCH 1/3] drm/tinydrm/Kconfig: Remove menuconfig DRM_TINYDRM

2019-07-30 Thread Noralf Trønnes
Den 30.07.2019 15.53, skrev Emil Velikov: > On 2019/07/25, Noralf Trønnes wrote: >> This makes the tiny drivers visible by default without having to enable a >> knob. >> >> Signed-off-by: Noralf Trønnes >> --- >> drivers/gpu/drm/Makefile| 2 +- &

Re: [PATCH 1/3] drm/tinydrm/Kconfig: Remove menuconfig DRM_TINYDRM

2019-07-30 Thread Noralf Trønnes
Den 30.07.2019 15.19, skrev Hans de Goede: > Hi, > > On 25-07-19 12:51, Noralf Trønnes wrote: >> This makes the tiny drivers visible by default without having to enable a >> knob. >> >> Signed-off-by: Noralf Trønnes >> --- >>   drivers/gpu/drm

[RFC 0/4] drm/mipi-dbi: Support panel drivers

2019-07-29 Thread Noralf Trønnes
Ilitek ILI9341 parallel RGB panel driver Noralf Trønnes (3): drm/panel/ili9341: Rebase and some more drm/mipi-dbi: Support command mode panel drivers drm/panel/ili9341: Support mi0283qt MAINTAINERS | 6 + drivers/gpu/drm/drm_mipi_dbi.c | 110

[RFC 3/4] drm/mipi-dbi: Support command mode panel drivers

2019-07-29 Thread Noralf Trønnes
This adds a function that registers a DRM driver for use with MIPI DBI panels in command mode. That is, framebuffer upload over DBI. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_mipi_dbi.c | 110 + include/drm/drm_mipi_dbi.h | 8 +++ 2 files

[RFC 4/4] drm/panel/ili9341: Support mi0283qt

2019-07-29 Thread Noralf Trønnes
Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 179 ++- 1 file changed, 170 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9341.c b/drivers/gpu/drm/panel/panel-ilitek-ili9341.c index a755f3e60111..dd333a642159

[RFC 2/4] drm/panel/ili9341: Rebase and some more

2019-07-29 Thread Noralf Trønnes
Embed mipi_dbi in struct ili9341. Rebase on moved mipi-dbi, rename variable name. Add backlight_device to panel struct. mipi_dbi_hw_reset() already has a NULL check on the reset gpio. Prepare for more panels by reworking ili9341_config. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/panel

[RFC 1/4] drm/panel: Add Ilitek ILI9341 parallel RGB panel driver

2019-07-29 Thread Noralf Trønnes
From: Josef Lusticky Add driver for Ilitek ILI9341 panels in parallel RGB mode Signed-off-by: Josef Lusticky --- MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig| 9 + drivers/gpu/drm/panel/Makefile | 1 +

Re: [PATCH 06/10] drm/tinydrm: Move tinydrm_spi_transfer()

2019-07-25 Thread Noralf Trønnes
Den 18.07.2019 14.14, skrev Noralf Trønnes: > > > Den 17.07.2019 21.48, skrev David Lechner: >> On 7/17/19 6:58 AM, Noralf Trønnes wrote: >>> This is only used by mipi-dbi drivers so move it there. >>> >>> The reason this isn't moved to the SPI subs

Re: [PATCH 0/3] drm/tinydrm: Rename to drm/tiny

2019-07-25 Thread Noralf Trønnes
Den 25.07.2019 14.06, skrev Daniel Vetter: > On Thu, Jul 25, 2019 at 12:51:29PM +0200, Noralf Trønnes wrote: >> This is the final polish on tinydrm turning it into _the_ place for tiny >> DRM drivers. >> >> Noralf. >> >> Noralf Trønnes (3): >> drm/t

[PATCH 2/3] drm/tinydrm: Rename folder to tiny

2019-07-25 Thread Noralf Trønnes
The drm in tinydrm is superfluous so rename to tiny. Suggested-by: Daniel Vetter Signed-off-by: Noralf Trønnes --- MAINTAINERS | 12 ++-- drivers/gpu/drm/Kconfig | 2 +- drivers/gpu/drm/Makefile | 2 +- drivers

[PATCH 3/3] drm/gm12u320: Move driver to drm/tiny

2019-07-25 Thread Noralf Trønnes
Move the driver to the new haven for tiny DRM drivers. Cc: Hans de Goede Suggested-by: Daniel Vetter Signed-off-by: Noralf Trønnes --- MAINTAINERS | 2 +- drivers/gpu/drm/Kconfig | 2 -- drivers/gpu/drm/Makefile

[PATCH 0/3] drm/tinydrm: Rename to drm/tiny

2019-07-25 Thread Noralf Trønnes
This is the final polish on tinydrm turning it into _the_ place for tiny DRM drivers. Noralf. Noralf Trønnes (3): drm/tinydrm/Kconfig: Remove menuconfig DRM_TINYDRM drm/tinydrm: Rename folder to tiny drm/gm12u320: Move driver to drm/tiny MAINTAINERS | 14

[PATCH 1/3] drm/tinydrm/Kconfig: Remove menuconfig DRM_TINYDRM

2019-07-25 Thread Noralf Trønnes
This makes the tiny drivers visible by default without having to enable a knob. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/Makefile| 2 +- drivers/gpu/drm/tinydrm/Kconfig | 37 +++-- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git

Re: [PATCH v2 0/9] drm/tinydrm: Move mipi_dbi

2019-07-25 Thread Noralf Trønnes
Den 22.07.2019 12.43, skrev Noralf Trønnes: > This series ticks off the last tinydrm todo entry and moves out mipi_dbi > to be a core helper. > > It splits struct mipi_dbi into an interface part and a display pipeline > part (upload framebuffer over SPI). I also took the opportun

Re: [PATCH] drm: Add Grain Media GM12U320 driver v2

2019-07-23 Thread Noralf Trønnes
so that leaves the driver >> itself with only the actual code for talking to the gm13u320 chip, >> leading to a nice simple and clean driver. >> >> Changes in v2: >> -Add drm-misc tree to MAINTAINERS >> -Drop mode_config.preferred_depth = 24 / fix fbdev suppo

Re: [PATCH v2 00/11] drm/tinydrm: Remove tinydrm.ko

2019-07-23 Thread Noralf Trønnes
Den 19.07.2019 17.59, skrev Noralf Trønnes: > This series removes the remaining bits of tinydrm.ko. > > Changes: > - Split SPI connector type patch in core and driver changes, expand > commit message (Daniel) > - Drop moving the mipi_dbi_spi_init() declaration (Sam)

Re: [PATCH 0/6] drm/tinydrm: Move mipi_dbi

2019-07-23 Thread Noralf Trønnes
Den 23.07.2019 09.10, skrev Daniel Vetter: > On Mon, Jul 22, 2019 at 11:06:15AM -0700, Eric Anholt wrote: >> Noralf Trønnes writes: >> >>> This series ticks off the last tinydrm todo entry and moves out mipi_dbi >>> to be a core helper. >>> >>&g

Re: Need 5.3-rc1 in drm-misc-next

2019-07-22 Thread Noralf Trønnes
Den 22.07.2019 21.44, skrev Maxime Ripard: > Hi! > > On Mon, Jul 22, 2019 at 01:20:35PM +0200, Noralf Trønnes wrote: >> Hi drm-misc maintainers, >> >> I have this series: >> >> drm/tinydrm: Remove tinydrm.ko >> https://patchwork.freedesktop.org/

Re: [PATCH 0/6] drm/tinydrm: Move mipi_dbi

2019-07-22 Thread Noralf Trønnes
Den 22.07.2019 20.06, skrev Eric Anholt: > Noralf Trønnes writes: > >> This series ticks off the last tinydrm todo entry and moves out mipi_dbi >> to be a core helper. >> >> It splits struct mipi_dbi into an interface part and a display pipeline >> part (

Need 5.3-rc1 in drm-misc-next

2019-07-22 Thread Noralf Trønnes
Hi drm-misc maintainers, I have this series: drm/tinydrm: Remove tinydrm.ko https://patchwork.freedesktop.org/series/63811/ That depends on this -rc1 commit: e6f3f7e4dc76 ("spi: Add spi_is_bpw_supported()") I would would be nice if it would show up in drm-misc-next soon. Noralf.

[PATCH v2 4/9] drm/tinydrm: Split struct mipi_dbi in two

2019-07-22 Thread Noralf Trønnes
struct mipi_dbi_dev: - drm_to_mipi_dbi() -> drm_to_mipi_dbi_dev(). - mipi_dbi_init*() -> mipi_dbi_dev_init*(). Cc: Eric Anholt Cc: David Lechner Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/hx8357d.c | 10 +-- drivers/gpu/drm/tinydrm/ili9225.c

[PATCH v2 1/9] drm/tinydrm/mipi-dbi: Move cmdlock mutex init

2019-07-22 Thread Noralf Trønnes
cmdlock protects command execution so put it in mipi_dbi_spi_init() where it conceptually belongs. This is prep work for the splitting of struct mipi_dbi. Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/mipi-dbi.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v2 0/9] drm/tinydrm: Move mipi_dbi

2019-07-22 Thread Noralf Trønnes
://github.com/notro/linux/tree/move_mipi_dbi Noralf. Noralf Trønnes (9): drm/tinydrm/mipi-dbi: Move cmdlock mutex init drm/tinydrm: Rename variable mipi -> dbi drm/tinydrm: Rename remaining variable mipi -> dbidev drm/tinydrm: Split struct mipi_dbi in two drm/tinydrm/mipi-dbi: Remove CMA

[PATCH v2 8/9] drm/tinydrm: Move mipi-dbi

2019-07-22 Thread Noralf Trønnes
-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- Documentation/gpu/drivers.rst | 1 - Documentation/gpu/drm-kms-helpers.rst | 12 Documentation/gpu/tinydrm.rst | 18 -- Documentation/gpu/todo.rst | 13

[PATCH v2 9/9] MAINTAINERS: Remove tinydrm entry

2019-07-22 Thread Noralf Trønnes
tinydrm is just a collection of tiny drivers now. Add T: drm-misc entry for tinydrm drivers that lacks it. Cc: David Lechner Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- MAINTAINERS | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/MAINTAINERS b

[PATCH v2 7/9] drm/tinydrm/mipi-dbi: Select DRM_KMS_HELPER

2019-07-22 Thread Noralf Trønnes
mipi-dbi uses several KMS helper functions but that build dependency is not expressed. Select DRM_KMS_HELPER to fix that. Reported-by: kbuild test robot Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tinydrm

[PATCH v2 6/9] drm/tinydrm/Kconfig: drivers: Select BACKLIGHT_CLASS_DEVICE

2019-07-22 Thread Noralf Trønnes
of worms I'm not willing to tackle. I fear that such a change will result in me handling difficult fallouts for the next weeks. So I'm following DRM suite here. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/Kconfig | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH v2 3/9] drm/tinydrm: Rename remaining variable mipi -> dbidev

2019-07-22 Thread Noralf Trønnes
since MIPI refers to a lot of standards. This patch changes the variable name to 'dbidev' where it refers to the pipeline part of struct mipi_dbi. Cc: Eric Anholt Cc: David Lechner Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/hx8357d.c | 30

[PATCH v2 2/9] drm/tinydrm: Rename variable mipi -> dbi

2019-07-22 Thread Noralf Trønnes
-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/hx8357d.c | 31 +++--- drivers/gpu/drm/tinydrm/ili9225.c | 135 + drivers/gpu/drm/tinydrm/ili9341.c | 55 ++- drivers/gpu/drm/tinydrm/mi0283qt.c | 55 ++- drivers/gpu/drm/tinydrm

[PATCH v2 5/9] drm/tinydrm/mipi-dbi: Remove CMA helper dependency

2019-07-22 Thread Noralf Trønnes
mipi-dbi depends on the CMA helper through it's use of drm_fb_cma_get_gem_obj(). This is an unnecessary dependency to drag in for drivers that only want to use the MIPI DBI interface part. Avoid this by open coding the function. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/mipi

Re: [PATCH v1 1/1] drm/fb: remove unused function: drm_gem_fbdev_fb_create()

2019-07-21 Thread Noralf Trønnes
> > Signed-off-by: Sam Ravnborg > Cc: Noralf Trønnes > Cc: Gerd Hoffmann > Cc: Daniel Vetter > --- Thanks for cleaning up. Reviewed-by: Noralf Trønnes ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 0/6] drm/tinydrm: Move mipi_dbi

2019-07-21 Thread Noralf Trønnes
hile, but now it's quite easy to write small DRM drivers. > On Sat, Jul 20, 2019 at 03:47:03PM +0200, Noralf Trønnes wrote: >> This series ticks off the last tinydrm todo entry and moves out mipi_dbi >> to be a core helper. >> >> It splits struct mipi_dbi into an interfac

Re: [PATCH] drm: Add Grain Media GM12U320 driver

2019-07-20 Thread Noralf Trønnes
Hi Hans, Den 20.07.2019 15.44, skrev Hans de Goede: > Hi Noralf, > > On 18-07-19 14:07, Noralf Trønnes wrote: >> >> >> Den 17.07.2019 22.37, skrev Hans de Goede: >>> Hi Noralf, >>> >>> Thank you for the review. >>> >>> On 1

[PATCH 4/6] drm/tinydrm: Split struct mipi_dbi in two

2019-07-20 Thread Noralf Trønnes
struct mipi_dbi_dev: - drm_to_mipi_dbi() -> drm_to_mipi_dbi_dev(). - mipi_dbi_init*() -> mipi_dbi_dev_init*(). Cc: Eric Anholt Cc: David Lechner Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/hx8357d.c | 10 +-- drivers/gpu/drm/tinydrm/ili9225.c | 18 ++-- drivers/gpu/drm/t

[PATCH 5/6] drm/tinydrm: Move mipi-dbi

2019-07-20 Thread Noralf Trønnes
This moves mipi-dbi to be a core helper with the name drm_mipi_dbi. Fixup include's in drivers. Move the docs entry and delete tinydrm.rst. Delete the last tinydrm todo entry. Cc: Eric Anholt Cc: David Lechner Signed-off-by: Noralf Trønnes --- Documentation/gpu/drivers.rst

[PATCH 0/6] drm/tinydrm: Move mipi_dbi

2019-07-20 Thread Noralf Trønnes
up with the use of the 'dsi' variable name in the MIPI DSI helper. Note: This depends on series: drm/tinydrm: Remove tinydrm.ko Series is also available here: https://github.com/notro/linux/tree/move_mipi_dbi Noralf. Noralf Trønnes (6): drm/tinydrm/mipi-dbi: Move cmdlock mutex init drm

[PATCH 3/6] drm/tinydrm: Rename remaining variable mipi -> dbidev

2019-07-20 Thread Noralf Trønnes
since MIPI refers to a lot of standards. This patch changes the variable name to 'dbidev' where it refers to the pipeline part of struct mipi_dbi. Cc: Eric Anholt Cc: David Lechner Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/hx8357d.c | 30 drivers/gpu/drm/tinydrm

[PATCH 2/6] drm/tinydrm: Rename variable mipi -> dbi

2019-07-20 Thread Noralf Trønnes
-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/hx8357d.c | 31 +++--- drivers/gpu/drm/tinydrm/ili9225.c | 135 + drivers/gpu/drm/tinydrm/ili9341.c | 55 ++- drivers/gpu/drm/tinydrm/mi0283qt.c | 55 ++- drivers/gpu/drm/tinydrm/mipi-dbi.c | 153

[PATCH 6/6] MAINTAINERS: Remove tinydrm entry

2019-07-20 Thread Noralf Trønnes
tinydrm is just a collection of tiny drivers now. Add T: drm-misc entry for tinydrm drivers that lacks it. Cc: David Lechner Signed-off-by: Noralf Trønnes --- MAINTAINERS | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH 1/6] drm/tinydrm/mipi-dbi: Move cmdlock mutex init

2019-07-20 Thread Noralf Trønnes
cmdlock protects command execution so put it in mipi_dbi_spi_init() where it conceptually belongs. This is prep work for the splitting of struct mipi_dbi. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/mipi-dbi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 10/11] drm/tinydrm/mipi-dbi: Add mipi_dbi_init_with_formats()

2019-07-19 Thread Noralf Trønnes
: Forgot to remove the mipi->rotation assignment in st7586, mipi_dbi_init_with_formats() handles it. Cc: David Lechner Acked-by: David Lechner Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/mipi-dbi.c | 91 +- drivers/gpu/drm/tinydrm/st7586.c |

[PATCH v2 11/11] drm/tinydrm: Move tinydrm_display_pipe_init() to mipi-dbi

2019-07-19 Thread Noralf Trønnes
Anholt Cc: David Lechner Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- Documentation/gpu/tinydrm.rst | 9 - drivers/gpu/drm/tinydrm/Makefile| 1 - drivers/gpu/drm/tinydrm/core/Makefile | 4 - drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | 183

[PATCH v2 02/11] drm/tinydrm: Use DRM_MODE_CONNECTOR_SPI

2019-07-19 Thread Noralf Trønnes
it patch in core and driver changes, expand commit message (Daniel) Cc: David Lechner Reviewed-by: Sam Ravnborg Acked-by: David Lechner Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/mipi-dbi.c | 3 +-- drivers/gpu/drm/tinydrm/repaper.c | 2 +- drivers/gpu/drm/tinydrm/st7586.c | 2 +- 3

[PATCH v2 09/11] drm/tinydrm/repaper: Don't use tinydrm_display_pipe_init()

2019-07-19 Thread Noralf Trønnes
tinydrm.ko is going away so let's implement a connector. Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/repaper.c | 58 --- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/tinydrm/repaper.c b

[PATCH v2 07/11] drm/tinydrm: Move tinydrm_spi_transfer()

2019-07-19 Thread Noralf Trønnes
i_spi_init() declaration (Sam) Cc: David Lechner Reviewed-by: Sam Ravnborg Acked-by: : David Lechner Signed-off-by: Noralf Trønnes --- Documentation/gpu/tinydrm.rst | 3 - Documentation/gpu/todo.rst| 3 - drivers/gpu/drm/tinydrm/core/Makefile | 2 +- .

[PATCH v2 08/11] drm/tinydrm: Move tinydrm_machine_little_endian()

2019-07-19 Thread Noralf Trønnes
The tinydrm helper is going away so move it into the only user mipi-dbi. Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/mipi-dbi.c| 15 --- include/drm/tinydrm/tinydrm-helpers.h | 15 --- 2 files changed, 12 insertions(+), 18

[PATCH v2 04/11] drm/tinydrm: Remove spi debug buffer dumping

2019-07-19 Thread Noralf Trønnes
The SPI event tracing can dump the buffer now so no need for this. Remove the debug print from tinydrm_spi_transfer() since this info can be gleaned from the trace event. Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- .../gpu/drm/tinydrm/core/tinydrm-helpers.c| 40

[PATCH v2 06/11] drm/tinydrm: Clean up tinydrm_spi_transfer()

2019-07-19 Thread Noralf Trønnes
-by: Noralf Trønnes --- .../gpu/drm/tinydrm/core/tinydrm-helpers.c| 40 ++- drivers/gpu/drm/tinydrm/ili9225.c | 4 +- drivers/gpu/drm/tinydrm/mipi-dbi.c| 4 +- include/drm/tinydrm/tinydrm-helpers.h | 3 +- 4 files changed, 9 insertions(+), 42

[PATCH v2 05/11] drm/tinydrm: Remove tinydrm_spi_max_transfer_size()

2019-07-19 Thread Noralf Trønnes
l have a miniscule impact on transfer speed, so it's probably fine. Acked-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- .../gpu/drm/tinydrm/core/tinydrm-helpers.c| 37 +-- drivers/gpu/drm/tinydrm/mipi-dbi.c| 10 + include/drm/tinydrm/tinydrm-helpers.h

[PATCH v2 03/11] drm/tinydrm: Use spi_is_bpw_supported()

2019-07-19 Thread Noralf Trønnes
This means that tinydrm_spi_bpw_supported() can be removed. Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- .../gpu/drm/tinydrm/core/tinydrm-helpers.c| 32 +-- drivers/gpu/drm/tinydrm/mipi-dbi.c| 5 ++- include/drm/tinydrm/tinydrm-helpers.h

[PATCH v2 00/11] drm/tinydrm: Remove tinydrm.ko

2019-07-19 Thread Noralf Trønnes
nds on a commit that just entered Linus' tree: e6f3f7e4dc76 ("spi: Add spi_is_bpw_supported()") Series is also available here: https://github.com/notro/linux/tree/remove_tinydrm_ko Noralf. Noralf Trønnes (11): drm: Add SPI connector type drm/tinydrm: Use DRM_MODE_CONNECTOR_SPI drm

[PATCH v2 01/11] drm: Add SPI connector type

2019-07-19 Thread Noralf Trønnes
c: Daniel Vetter Reviewed-by: Sam Ravnborg Acked-by: David Lechner Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_connector.c | 1 + include/uapi/drm/drm_mode.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c in

Re: [PATCH 01/10] drm: Add SPI connector type

2019-07-19 Thread Noralf Trønnes
Den 19.07.2019 11.17, skrev Daniel Vetter: > On Wed, Jul 17, 2019 at 01:58:08PM +0200, Noralf Trønnes wrote: >> tinydrm drivers announce DRM_MODE_CONNECTOR_VIRTUAL for its SPI drivers. >> Stop lying and add a SPI connector type >> >> Cc: David Lechner >> Signed-

Re: [PATCH 10/10] drm/tinydrm: Move tinydrm_display_pipe_init() to mipi-dbi

2019-07-18 Thread Noralf Trønnes
Den 17.07.2019 22.46, skrev David Lechner: > On 7/17/19 6:58 AM, Noralf Trønnes wrote: >> tinydrm_display_pipe_init() has only one user now, so move it to >> mipi-dbi. >> >> Changes: >> - Remove drm_connector_helper_funcs.detect, it's always connected.

Re: [PATCH 07/10] drm/tinydrm: Move tinydrm_machine_little_endian()

2019-07-18 Thread Noralf Trønnes
Den 17.07.2019 22.09, skrev David Lechner: > On 7/17/19 6:58 AM, Noralf Trønnes wrote: >> The tinydrm helper is going away so move it into the only user mipi-dbi. >> >> Signed-off-by: Noralf Trønnes >> --- >>   drivers/gpu/drm/tinydrm/mipi-dbi.c    | 15 +++

Re: [PATCH 06/10] drm/tinydrm: Move tinydrm_spi_transfer()

2019-07-18 Thread Noralf Trønnes
Den 17.07.2019 21.48, skrev David Lechner: > On 7/17/19 6:58 AM, Noralf Trønnes wrote: >> This is only used by mipi-dbi drivers so move it there. >> >> The reason this isn't moved to the SPI subsystem is that it will in a >> later patch pass a dummy rx buffer fo

Re: [PATCH] drm: Add Grain Media GM12U320 driver

2019-07-18 Thread Noralf Trønnes
Den 17.07.2019 22.37, skrev Hans de Goede: > Hi Noralf, > > Thank you for the review. > > On 17-07-19 17:24, Noralf Trønnes wrote: >> >> >> Den 12.07.2019 20.53, skrev Hans de Goede: >>> Add a modesetting driver for Grain Media GM12U320 based

Re: [PATCH 00/10] drm/tinydrm: Remove tinydrm.ko

2019-07-17 Thread Noralf Trønnes
Den 17.07.2019 15.31, skrev Sam Ravnborg: > Hi Noralf. > > Nice series of patches! > > > > On Wed, Jul 17, 2019 at 01:58:07PM +0200, Noralf Trønnes wrote: >> This series removes the remaining bits of tinydrm.ko. >> >> There's only one item left on t

Re: [PATCH 06/10] drm/tinydrm: Move tinydrm_spi_transfer()

2019-07-17 Thread Noralf Trønnes
Den 17.07.2019 15.15, skrev Sam Ravnborg: > Hi Noralf. > > On Wed, Jul 17, 2019 at 01:58:13PM +0200, Noralf Trønnes wrote: >> This is only used by mipi-dbi drivers so move it there. >> >> The reason this isn't moved to the SPI subsystem is that it will in a >> l

Re: [PATCH 05/10] drm/tinydrm: Clean up tinydrm_spi_transfer()

2019-07-17 Thread Noralf Trønnes
Den 17.07.2019 15.09, skrev Sam Ravnborg: > On Wed, Jul 17, 2019 at 01:58:12PM +0200, Noralf Trønnes wrote: >> Prep work before moving the function to mipi-dbi. >> >> tinydrm_spi_transfer() was made to support one class of drivers in >> drivers/staging/fbtft that ha

Re: [PATCH] drm: Add Grain Media GM12U320 driver

2019-07-17 Thread Noralf Trønnes
rm_mode_config_init(dev); > + dev->mode_config.min_width = GM12U320_USER_WIDTH; > + dev->mode_config.max_width = GM12U320_USER_WIDTH; > + dev->mode_config.min_height = GM12U320_HEIGHT; > + dev->mode_config.max_height = GM12U320_HEIGHT; > + dev->mode_con

[PATCH 06/10] drm/tinydrm: Move tinydrm_spi_transfer()

2019-07-17 Thread Noralf Trønnes
i_spi_init() declaration to the other SPI functions. Cc: David Lechner Signed-off-by: Noralf Trønnes --- Documentation/gpu/tinydrm.rst | 3 - Documentation/gpu/todo.rst| 3 - drivers/gpu/drm/tinydrm/core/Makefile | 2 +- .../gpu/drm/tinydrm/core/tinydrm

[PATCH 08/10] drm/tinydrm/repaper: Don't use tinydrm_display_pipe_init()

2019-07-17 Thread Noralf Trønnes
tinydrm.ko is going away so let's implement a connector. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/repaper.c | 58 --- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/tinydrm/repaper.c b/drivers/gpu/drm/tinydrm

[PATCH 10/10] drm/tinydrm: Move tinydrm_display_pipe_init() to mipi-dbi

2019-07-17 Thread Noralf Trønnes
Anholt Cc: David Lechner Signed-off-by: Noralf Trønnes --- Documentation/gpu/tinydrm.rst | 9 - drivers/gpu/drm/tinydrm/Makefile| 1 - drivers/gpu/drm/tinydrm/core/Makefile | 4 - drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | 183 drivers

[PATCH 01/10] drm: Add SPI connector type

2019-07-17 Thread Noralf Trønnes
tinydrm drivers announce DRM_MODE_CONNECTOR_VIRTUAL for its SPI drivers. Stop lying and add a SPI connector type Cc: David Lechner Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_connector.c| 1 + drivers/gpu/drm/tinydrm/mipi-dbi.c | 3 +-- drivers/gpu/drm/tinydrm/repaper.c | 2

[PATCH 04/10] drm/tinydrm: Remove tinydrm_spi_max_transfer_size()

2019-07-17 Thread Noralf Trønnes
l have a miniscule impact on transfer speed, so it's probably fine. Signed-off-by: Noralf Trønnes --- .../gpu/drm/tinydrm/core/tinydrm-helpers.c| 37 +-- drivers/gpu/drm/tinydrm/mipi-dbi.c| 10 + include/drm/tinydrm/tinydrm-helpers.h | 1 - 3 files chan

[PATCH 00/10] drm/tinydrm: Remove tinydrm.ko

2019-07-17 Thread Noralf Trønnes
ere: https://github.com/notro/linux/tree/remove_tinydrm_ko Noralf. Noralf Trønnes (10): drm: Add SPI connector type drm/tinydrm: Use spi_is_bpw_supported() drm/tinydrm: Remove spi debug buffer dumping drm/tinydrm: Remove tinydrm_spi_max_transfer_size() drm/tinydrm: Clean up tinydrm_spi_transf

[PATCH 09/10] drm/tinydrm/mipi-dbi: Add mipi_dbi_init_with_formats()

2019-07-17 Thread Noralf Trønnes
: David Lechner Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/mipi-dbi.c | 91 +- drivers/gpu/drm/tinydrm/st7586.c | 32 ++- include/drm/tinydrm/mipi-dbi.h | 5 ++ 3 files changed, 74 insertions(+), 54 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 07/10] drm/tinydrm: Move tinydrm_machine_little_endian()

2019-07-17 Thread Noralf Trønnes
The tinydrm helper is going away so move it into the only user mipi-dbi. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/mipi-dbi.c| 15 --- include/drm/tinydrm/tinydrm-helpers.h | 15 --- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git

[PATCH 03/10] drm/tinydrm: Remove spi debug buffer dumping

2019-07-17 Thread Noralf Trønnes
The SPI event tracing can dump the buffer now so no need for this. Remove the debug print from tinydrm_spi_transfer() since this info can be gleaned from the trace event. Signed-off-by: Noralf Trønnes --- .../gpu/drm/tinydrm/core/tinydrm-helpers.c| 40 --- drivers/gpu/drm

[PATCH 05/10] drm/tinydrm: Clean up tinydrm_spi_transfer()

2019-07-17 Thread Noralf Trønnes
byte swapping on little endian machines with SPI controllers only supporting 8 bits per word. Other changes: - No need to initialize ret - No need for the WARN since mipi-dbi only uses 8 and 16 bpw. - Use spi_message_init_with_transfers() Cc: David Lechner Signed-off-by: Noralf Trønnes

[PATCH 02/10] drm/tinydrm: Use spi_is_bpw_supported()

2019-07-17 Thread Noralf Trønnes
This means that tinydrm_spi_bpw_supported() can be removed. Signed-off-by: Noralf Trønnes --- .../gpu/drm/tinydrm/core/tinydrm-helpers.c| 32 +-- drivers/gpu/drm/tinydrm/mipi-dbi.c| 5 ++- include/drm/tinydrm/tinydrm-helpers.h | 1 - 3 files changed, 3

Re: [PATCH] drm/client: remove the exporting of drm_client_close

2019-07-09 Thread Noralf Trønnes
Den 04.07.2019 16.07, skrev Emil Velikov: > On Thu, 4 Jul 2019 at 08:27, Denis Efremov wrote: >> >> The function drm_client_close is declared as static and marked as >> EXPORT_SYMBOL. It's a bit confusing for an internal function to be >> exported. The area of visibility for such function is

Re: [PATCH v2 3/6] drm/fb-helper: Instanciate shadow FB if configured in device's mode_config

2019-07-07 Thread Noralf Trønnes
fig { > /* dumb ioctl parameters */ > uint32_t preferred_depth, prefer_shadow; > > + /* fbdev parameters */ No need for this comment. Doc can look like this, I've done s/framebuffer/fbdev/: /** * @prefer_shadow_fbdev: * * Hint to fbdev emulation to

Re: [PATCH v2 2/6] drm/fb-helper: Map DRM client buffer only when required

2019-07-07 Thread Noralf Trønnes
2: > * change DRM client to not map buffer by default > * manually map client buffer for fbdev with HW framebuffer > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Noralf Trønnes ___ dri-devel mailing list dri-devel@lists

Re: [PATCH v2 1/6] drm/client: Support unmapping of DRM client buffers

2019-07-07 Thread Noralf Trønnes
nt.h > index 72d51d1e9dd9..e1db1d9da0bf 100644 > --- a/include/drm/drm_client.h > +++ b/include/drm/drm_client.h > @@ -149,6 +149,9 @@ struct drm_client_buffer { > struct drm_client_buffer * > drm_client_framebuffer_create(struct drm_client_dev *client, u32 width, u32 > height, u32 format); >

Re: [PATCH 0/5] Unmappable DRM client buffers for fbdev emulation

2019-07-04 Thread Noralf Trønnes
Den 04.07.2019 13.10, skrev Thomas Zimmermann: > Hi > > Am 04.07.19 um 12:18 schrieb Noralf Trønnes: >> >> >> Den 04.07.2019 09.43, skrev Thomas Zimmermann: >>> Hi >>> >>> Am 03.07.19 um 21:27 schrieb Noralf Trønnes: >>>> >>

Re: [PATCH 0/5] Unmappable DRM client buffers for fbdev emulation

2019-07-04 Thread Noralf Trønnes
Den 04.07.2019 09.43, skrev Thomas Zimmermann: > Hi > > Am 03.07.19 um 21:27 schrieb Noralf Trønnes: >> >> >> Den 03.07.2019 10.32, skrev Thomas Zimmermann: >>> DRM client buffers are permanently mapped throughout their lifetime. This >>> prevent

Re: [PATCH 0/5] Unmappable DRM client buffers for fbdev emulation

2019-07-03 Thread Noralf Trønnes
Den 03.07.2019 10.32, skrev Thomas Zimmermann: > DRM client buffers are permanently mapped throughout their lifetime. This > prevents us from using generic framebuffer emulation for devices with > small dedicated video memory, such as ast or mgag200. With fb buffers > permanently mapped, such

Re: [PATCH 5/5] drm/mgag200: Replace struct mga_fbdev with generic framebuffer emulation

2019-07-03 Thread Noralf Trønnes
mgag200_driver_load(struct drm_device *dev, unsigned > long flags) > } > mdev->cursor.pixels_current = NULL; > > + r = drm_fbdev_generic_setup(mdev->dev, 0); > + if (r) { > + dev_err(>pdev->dev, > + "drm_fbdev_generic_setup failed: %d\n&q

Re: [PATCH 4/5] drm/bochs: Use shadow buffer for bochs framebuffer console

2019-07-03 Thread Noralf Trønnes
Signed-off-by: Thomas Zimmermann > --- Acked-by: Noralf Trønnes ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 3/5] drm/ast: Replace struct ast_fbdev with generic framebuffer emulation

2019-07-03 Thread Noralf Trønnes
sume_force_mode(dev); > > - console_lock(); > - ast_fbdev_set_suspend(dev, 0); > - console_unlock(); > - return error; > + if (dev->fb_helper) { > + console_lock(); > + drm_fb_helper_set_suspend(dev->fb_helper, 0); > +

Re: [PATCH 2/2] drm/prime: Update docs

2019-06-19 Thread Noralf Trønnes
le)( > struct drm_device *dev, > struct dma_buf_attachment *attach, > struct sg_table *sgt); > + /** > + * @gem_prime_vmap: > + * > + * Deprecated vmap hook for GEM drivers. Please use

Re: [PATCH 1/2] drm/prime: Shuffle functions.

2019-06-19 Thread Noralf Trønnes
t; Cc: Eric Anholt > Cc: Emil Velikov > Signed-off-by: Daniel Vetter > --- Acked-by: Noralf Trønnes ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm: rcar-du: Replace drm_driver GEM ops with GEM object functions

2019-06-19 Thread Noralf Trønnes
Den 18.06.2019 19.23, skrev Noralf Trønnes: > > Den 18.06.2019 18.35, skrev Laurent Pinchart: >> Hi Noralf, >> >> On Tue, Jun 18, 2019 at 03:56:19PM +0200, Noralf Trønnes wrote: >>> Den 18.06.2019 15.13, skrev Laurent Pinchart: >>>> The re

Re: [PATCH v5 07/12] drm/modes: Allow to specify rotation and reflection on the commandline

2019-06-18 Thread Noralf Trønnes
also be passed after the mode, using commas as separator. > + > + Sample usage: 720x480,rotate=180 - 720x480 mode, rotated by 180 > degrees > + > +Valid options are: > + > + - reflect_x (boolean): Perform an axial symetry on the X axis > + - reflect_y

Re: [PATCH] drm: rcar-du: Replace drm_driver GEM ops with GEM object functions

2019-06-18 Thread Noralf Trønnes
Den 18.06.2019 18.35, skrev Laurent Pinchart: > Hi Noralf, > > On Tue, Jun 18, 2019 at 03:56:19PM +0200, Noralf Trønnes wrote: >> Den 18.06.2019 15.13, skrev Laurent Pinchart: >>> The recommended way to specify GEM object functions is to provide a >>> drm_ge

Re: [PATCH] drm/todo: Update drm_gem_object_funcs todo even more

2019-06-18 Thread Noralf Trønnes
reg Kroah-Hartman > Cc: Daniel Vetter > Cc: David Airlie > Cc: Daniel Vetter > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: Sean Paul > Cc: Thomas Zimmermann > Cc: Gerd Hoffmann > Cc: Rob Herring > Cc: Noralf Trønnes > Cc: Eric Anholt > Cc: Gerd Hoffmann

<    2   3   4   5   6   7   8   9   10   11   >