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
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
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
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
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
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
>
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
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
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
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
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 ++
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
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 +-
&
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
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
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
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
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
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 +
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
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
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
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
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
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
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
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
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)
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
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/
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 (
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.
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
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
://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
-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
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
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
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
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
-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
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
>
> 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
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
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
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
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
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
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
-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
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
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
: 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 |
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
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
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
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 +-
.
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
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
-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
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
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
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
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
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-
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.
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 +++
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
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
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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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);
>
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:
>>>>
>>
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
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
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
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
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);
> +
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
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
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
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
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
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
601 - 700 of 2448 matches
Mail list logo