Thomas Zimmermann
a1a6fa3dcd
drm/stm: Replace drm_dev_unref with drm_dev_put
...
This patch unifies the naming of DRM functions for reference counting
of struct drm_device. The resulting code is more aligned with the rest
of the Linux kernel interfaces.
Signed-off-by: Thomas Zimmermann <[email protected] >
Acked-by: Philippe Cornu <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-07-13 10:11:02 +02:00
Yannick Fertre
8adbbb2e78
drm/stm: ltdc: rework reset sequence
...
Reset must be properly assert before deassert.
This is important if there is an early boot splash screen
before the kernel start up.
Signed-off-by: Yannick Fertre <[email protected] >
Reviewed-by: Philippe Cornu <[email protected] >
Tested-by: Philippe Cornu <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-07-06 10:15:47 +02:00
Yannick Fertre
7868e50792
drm/stm: ltdc: filter mode pixel clock vs pad constraint
...
Filter the requested mode pixel clock frequency according
to the pad maximum supported frequency.
Signed-off-by: Yannick Fertre <[email protected] >
Reviewed-by: Philippe Cornu <[email protected] >
Tested-by: Philippe Cornu <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-07-06 10:15:36 +02:00
Philippe CORNU
cccb57d8fd
drm/stm: ltdc: fix warnings in ltdc_plane_create()
...
"make C=1" returns 2 warnings in ltdc_plane_create()
("Using plain integer as NULL pointer"). This patch
fixes them.
Signed-off-by: Philippe Cornu <[email protected] >
Reviewed-by: Yannick Fertré <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-04-27 11:02:58 +02:00
Philippe CORNU
0cefff963b
drm/stm: ltdc: add mode_valid()
...
Add mode_valid() function to filter modes according to available
pll clock values and "preferred" modes. It is particularly
useful for hdmi modes that require precise pixel clocks.
Note that "preferred" modes are always accepted:
- this is important for panels because panel clock tolerances are
bigger than hdmi ones and there is no reason to not accept them
(the fps may vary a little but it is not a problem).
- the hdmi preferred mode will be accepted too, but userland will
be able to use others hdmi "valid" modes if necessary.
Signed-off-by: Philippe Cornu <[email protected] >
Reviewed-by: Yannick Fertré <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-04-27 10:58:06 +02:00
Philippe CORNU
c2af73645d
drm/stm: ltdc: fix deferred endpoint management
...
When a driver related to one of the endpoints is deferred
due to probe dependencies (i2c, spi...) but the other one
is ready, ltdc probe continues and the deferred driver
will never be probed again.
The fix consists in waiting for all deferred endpoints before
continuing the ltdc probe.
Signed-off-by: Philippe Cornu <[email protected] >
Reviewed-by: Yannick Fertré <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-04-27 10:39:45 +02:00
Philippe CORNU
c20f5f69c8
drm/stm: ltdc: fix warning in ltdc_crtc_update_clut()
...
Fix the warning
"warn: variable dereferenced before check 'crtc' (see line 390)"
by removing unnecessary checks as ltdc_crtc_update_clut() is
only called from ltdc_crtc_atomic_flush() where crtc and
crtc->state are not NULL.
Many thanks to Dan Carpenter for the bug report
https://lists.freedesktop.org/archives/dri-devel/2018-February/166918.html
Signed-off-by: Philippe Cornu <[email protected] >
Reported-by: Dan Carpenter <[email protected] >
Reviewed-by: yannick fertre <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-04-19 12:24:45 +02:00
Philippe CORNU
25bb1a9de3
drm/stm: ltdc: add user update info in plane print state
...
This patch adds the user update information in
frames-per-second into the drm debugfs plane state.
Signed-off-by: Philippe Cornu <[email protected] >
Reviewed-by: Vincent Abriou <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-04-19 12:15:38 +02:00
Philippe CORNU
c8da819478
drm/stm: move enable/disable_vblank to crtc
...
enable/disable_vblank() functions at drm_driver level
are deprecated. Move them to the ltdc drm_crtc_funcs
structure.
Signed-off-by: Philippe Cornu <[email protected] >
Reviewed-by: Vincent Abriou <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-04-19 12:03:11 +02:00
Benjamin Gaignard
879659bb87
drm/stm: check pitch and size calculations even if !CONFIG_MMU
...
In all cases we have to check pitch and size calculations to speed up
data transfer.
Fixes: 21f815bf77 ("drm/stm: drv: Improve data transfers")
Signed-off-by: Benjamin Gaignard <[email protected] >
Tested-by: Philippe Cornu <[email protected] >
Reviewed-by: Philippe Cornu <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-02-23 09:37:12 +01:00
Philippe CORNU
9569002a39
drm/stm: ltdc: remove non-alpha color formats on layer 2 for older hw
...
Hw older versions support non-alpha color formats derived
from native alpha color formats only on the primary layer.
For instance, RG16 native format without alpha works fine
on 2nd layer but XR24 (derived color format from AR24)
does not work on 2nd layer.
Signed-off-by: Philippe Cornu <[email protected] >
Reviewed-by: Yannick Fertré <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-02-08 10:23:32 +01:00
Philippe CORNU
aefa830199
drm/stm: ltdc: add non-alpha color formats
...
ltdc supports natively some color formats with alpha (like
ARGB8888, ARGB1555, ARGB4444...). Related non-alpha formats are
supported too (ARGB8888->XRGB8888, ARGB4444->XRGB4444...) by
adjusting ltdc blending factors.
Note: Wayland/Weston requests by default the non-alpha XRGB8888
color format.
Signed-off-by: Philippe Cornu <[email protected] >
Reviewed-by: Yannick Fertré <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-02-08 10:23:22 +01:00
Philippe Cornu
21f815bf77
drm/stm: drv: Improve data transfers
...
To optimize data transfers, align pitch on 128 bytes & height
on 4 bytes. This optimization is not applicable on hw without MMU.
Signed-off-by: Yannick Fertre <[email protected] >
Signed-off-by: Vincent Abriou <[email protected] >
Signed-off-by: Philippe Cornu <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-01-30 11:45:15 +01:00
Philippe CORNU
023f348901
drm/stm: dsi: Add 1.31 version support
...
Add support for the stm dsi phy/wrapper version 1.31.
Only lane capabilities need to be modified.
Signed-off-by: Philippe Cornu <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-01-30 11:45:01 +01:00
Philippe CORNU
1a32a938b6
drm/stm: ltdc: use crtc_mode_fixup to update adjusted_mode clock
...
There is a difference between the panel/bridge requested pixel clock
value and the real one due to the hw platform clock preciseness (pll,
dividers...). This patch updates the adjusted_mode clock value with
the real hw clock value so then attached encoder & connector can use
it for precise timing computations.
Signed-off-by: Philippe Cornu <[email protected] >
Reviewed-by: Yannick Fertré <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-01-29 11:07:16 +01:00
Brian Norris
8242ecbd59
drm/bridge/synopsys: stop clobbering drvdata
...
Bridge drivers/helpers shouldn't be clobbering the drvdata, since a
parent driver might need to own this. Instead, let's return our
'dw_mipi_dsi' object and have callers pass that back to us for removal.
Signed-off-by: Brian Norris <[email protected] >
Reviewed-by: Matthias Kaehlcke <[email protected] >
Reviewed-by: Archit Taneja <[email protected] >
Acked-by: Philippe Cornu <[email protected] >
Signed-off-by: Andrzej Hajda <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-01-09 14:34:38 +01:00
Philippe CORNU
b706a25eae
drm/stm: ltdc: add clut mode support
...
Add the 8-bit clut mode support at crtc level.
Useful for low memory footprint user interfaces but also for
8-bit old games (including color shifting visual effects).
Tested with fbdev FBIOPUTCMAP & drm DRM_IOCTL_MODE_SETGAMMA
ioctls.
Signed-off-by: Philippe Cornu <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-01-09 13:40:51 +01:00
Fabio Estevam
eb393dbc8f
drm/stm: ltdc: Remove unnecessary platform_get_resource() error check
...
devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.
Cc: Philippe Cornu <[email protected] >
Signed-off-by: Fabio Estevam <[email protected] >
Acked-by: Philippe Cornu <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-12-19 15:23:45 +01:00
Fabio Estevam
6cf7e40b5c
drm/stm: dsi: Remove unnecessary platform_get_resource() error check
...
devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.
Cc: Philippe Cornu <[email protected] >
Signed-off-by: Fabio Estevam <[email protected] >
Acked-by: Philippe Cornu <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-12-19 15:23:25 +01:00
Noralf Trønnes
068b393c1a
drm/stm: Use drm_fb_cma_fbdev_init/fini()
...
Use drm_fb_cma_fbdev_init() and drm_fb_cma_fbdev_fini() which relies on
the fact that drm_device holds a pointer to the drm_fb_helper structure.
This means that the driver doesn't have to keep track of that.
Also use the drm_fb_helper functions directly.
Remove duplicate ldev assignment.
Cc: Yannick Fertre <[email protected] >
Cc: Philippe Cornu <[email protected] >
Cc: Benjamin Gaignard <[email protected] >
Cc: Vincent Abriou <[email protected] >
Signed-off-by: Noralf Trønnes <[email protected] >
Acked-by: Philippe Cornu <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-12-08 14:47:41 +01:00
Benjamin Gaignard
ec17f0341d
gpu: drm: stm: Adopt SPDX identifiers
...
Add SPDX identifiers to files under stm directory
Signed-off-by: Benjamin Gaignard <[email protected] >
Acked-by: Vincent Abriou <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-12-06 15:51:37 +01:00
Philippe CORNU
c188d7ebbe
drm/stm: ltdc: add a 2nd endpoint
...
ltdc can have up to 2 endpoints:
- dpi external gpios: for rgb panels or external bridge ICs.
- dpi internal ios: connected internally to dsi.
Note: Refer to the reference manual to know if the dsi is
present on your device.
Signed-off-by: Philippe Cornu <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-11-07 14:47:39 +01:00
Philippe CORNU
0163d1f62f
drm/stm: checkpatch strict minor updates
...
Minor fixes detected with "scripts/checkpatch.pl --strict"
Signed-off-by: Philippe Cornu <[email protected] >
Reviewed-by: Gustavo Padovan <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-11-07 14:46:59 +01:00
Philippe CORNU
bb3fb5e515
drm/stm: dsi: Rename driver name
...
Rename the driver name from "dw_mipi_dsi-stm" to
"stm32-display-dsi" for a better readability
in /sys/bus/platform/drivers entries.
Signed-off-by: Philippe Cornu <[email protected] >
Reviewed-by: Gustavo Padovan <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-11-07 14:46:49 +01:00
[email protected]
08de7afa3a
drm/stm: ltdc: remove bridge from driver internal structure
...
With a call to drm_of_panel_bridge_remove() we could remove the bridge
without store it in ldtc internal driver structure.
Signed-off-by: Benjamin Gaignard <[email protected] >
Reviewed-by: Philippe Cornu <[email protected] >
Tested-by: Philippe Cornu <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-10-10 11:32:48 +02:00
Arnd Bergmann
3ff558e78b
drm/stm: fix warning about multiplication in condition
...
gcc-7 complains about multiplying within a condition being
suspicious:
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c: In function 'dsi_pll_get_clkout_khz':
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c:117:10: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]
The code here is correct, but can be easily rephrased to make
that more obvious. I also swap out the error handling and the normal
code path for clarity.
Fixes: b0f09a3c69d9 ("drm/stm: Add STM32 DSI controller driver")
Acked-by: Philippe Cornu <[email protected] >
Tested-by: Philippe Cornu <[email protected] >
Signed-off-by: Arnd Bergmann <[email protected] >
Signed-off-by: Daniel Vetter <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-09-08 10:29:11 +02:00
Noralf Trønnes
4930a4334e
drm/stm: Use drm_gem_fb_create()
...
drm_fb_cma_create() is just a wrapper around drm_gem_fb_create() now,
so use the function directly.
Cc: Yannick Fertre <[email protected] >
Cc: Philippe Cornu <[email protected] >
Cc: Benjamin Gaignard <[email protected] >
Cc: Vincent Abriou <[email protected] >
Signed-off-by: Noralf Trønnes <[email protected] >
Acked-by: Philippe Cornu <[email protected] >
Tested-by: Philippe Cornu <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-09-02 14:23:27 +02:00
Daniel Vetter
e90271bc07
drm: Nuke drm_atomic_helper_plane_set_property
...
It's dead code, the core handles all this directly now. This also
allows us to unexport drm_atomic_plane_set_property.
Signed-off-by: Daniel Vetter <[email protected] >
Cc: Liviu Dudau <[email protected] >
Cc: Brian Starkey <[email protected] >
Cc: Mali DP Maintainers <[email protected] >
Cc: Boris Brezillon <[email protected] >
Cc: Daniel Vetter <[email protected] >
Cc: Jani Nikula <[email protected] >
Cc: Sean Paul <[email protected] >
Cc: David Airlie <[email protected] >
Cc: Inki Dae <[email protected] >
Cc: Joonyoung Shim <[email protected] >
Cc: Seung-Woo Kim <[email protected] >
Cc: Kyungmin Park <[email protected] >
Cc: Kukjin Kim <[email protected] >
Cc: Krzysztof Kozlowski <[email protected] >
Cc: Ben Skeggs <[email protected] >
Cc: Tomi Valkeinen <[email protected] >
Cc: Laurent Pinchart <[email protected] >
Cc: Benjamin Gaignard <[email protected] >
Cc: Vincent Abriou <[email protected] >
Cc: Yannick Fertre <[email protected] >
Cc: Philippe Cornu <[email protected] >
Cc: Jyri Sarha <[email protected] >
Cc: "Ville Syrjälä" <[email protected] >
Cc: Rongrong Zou <[email protected] >
Cc: Shawn Guo <[email protected] >
Cc: Alexey Brodkin <[email protected] >
Cc: Eric Engestrom <[email protected] >
Cc: Chris Wilson <[email protected] >
Cc: Rob Clark <[email protected] >
Cc: Archit Taneja <[email protected] >
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Thomas Hellstrom <[email protected] >
Cc: Maxime Ripard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Archit Taneja <[email protected] >
Acked-by: Philippe Cornu <[email protected] >
Tested-by: Philippe Cornu <[email protected] >
Acked-by: Liviu Dudau <[email protected] >
Acked-by: Vincent Abriou <[email protected] >
Reviewed-by: Maarten Lankhorst <[email protected] >
Reviewed-by: Laurent Pinchart <[email protected] >
2017-08-08 14:45:16 +02:00
Peter Rosin
65c6680d38
drm: stm: remove dead code and pointless local lut storage
...
The redundant fb helper .load_lut is no longer used, and can not
work right without also providing the fb helpers .gamma_set and
.gamma_get thus rendering the code in this driver suspect.
Just remove the dead code.
Acked-by: Daniel Vetter <[email protected] >
Signed-off-by: Peter Rosin <[email protected] >
Signed-off-by: Daniel Vetter <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-08-04 11:37:00 +02:00
Ben Widawsky
e6fc3b6855
drm: Plumb modifiers through plane init
...
This is the plumbing for supporting fb modifiers on planes. Modifiers
have already been introduced to some extent, but this series will extend
this to allow querying modifiers per plane. Based on this, the client to
enable optimal modifications for framebuffers.
This patch simply allows the DRM drivers to initialize their list of
supported modifiers upon initializing the plane.
v2: A minor addition from Daniel
v3:
* Updated commit message
* s/INVALID/DRM_FORMAT_MOD_INVALID (Liviu)
* Remove some excess newlines (Liviu)
* Update comment for > 64 modifiers (Liviu)
v4: Minor comment adjustments (Liviu)
v5: Some new platforms added due to rebase
v6: Add some missed plane inits (or maybe they're new - who knows at
this point) (Daniel)
Signed-off-by: Ben Widawsky <[email protected] >
Reviewed-by: Daniel Stone <[email protected] > (v2)
Reviewed-by: Liviu Dudau <[email protected] >
Signed-off-by: Daniel Stone <[email protected] >
2017-08-01 17:50:06 +01:00
Noralf Trønnes
58ba9aabb8
drm/stm: Use .dumb_map_offset and .dumb_destroy defaults
...
This driver can use the drm_driver.dumb_destroy and
drm_driver.dumb_map_offset defaults, so no need to set them.
Cc: Yannick Fertre <[email protected] >
Cc: Philippe Cornu <[email protected] >
Cc: Benjamin Gaignard <[email protected] >
Cc: Vincent Abriou <[email protected] >
Signed-off-by: Noralf Trønnes <[email protected] >
Tested-by: Philippe Cornu <[email protected] >
Acked-by: Philippe Cornu <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-29 13:57:51 +02:00
Philippe CORNU
89a15e6f22
drm/stm: dsi: Constify phy ops structure
...
Constify dw_mipi_dsi_stm_phy_ops as these ops are not supposed
to change at runtime.
Signed-off-by: Philippe CORNU <[email protected] >
Reviewed-by: Benjamin Gaignard <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-26 15:02:17 +02:00
Philippe CORNU
dc5e0cd211
drm/stm: ltdc: Cleanup rename returned value
...
Rename the returned value from "res" to "ret" as it is more "readable".
Signed-off-by: Philippe CORNU <[email protected] >
Reviewed-by: Benjamin Gaignard <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-26 15:02:09 +02:00
Philippe CORNU
589b648223
drm/stm: ltdc: add devm_reset_control & platform_get_ressource
...
Use devm_reset_control_get_exclusive to avoid resource leakage (based
on patch "Convert drivers to explicit reset API" from Philipp Zabel).
Also use platform_get_resource, which is more usual and
consistent with platform_get_irq called later.
Signed-off-by: Fabien Dessenne <[email protected] >
Signed-off-by: Philippe CORNU <[email protected] >
Reviewed-by: Benjamin Gaignard <[email protected] >
Cc: Philipp Zabel <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-26 15:02:00 +02:00
Philippe CORNU
c994796f64
drm/stm: ltdc: Constify funcs structures
...
Constify drm funcs structures.
Signed-off-by: Philippe CORNU <[email protected] >
Reviewed-by: Benjamin Gaignard <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-26 15:01:51 +02:00
Philippe CORNU
0e21e3b07f
drm/stm: ltdc: Lindent and minor cleanups
...
Lindent then checkpatch --strict cleanups
Signed-off-by: Philippe CORNU <[email protected] >
Reviewed-by: Benjamin Gaignard <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-26 15:01:42 +02:00
Philippe CORNU
444d0db5db
drm/stm: ltdc: Cleanup signal polarity defines
...
The GCR_PCPOL/DEPOL/VSPOL/HSPOL defines are sufficient to
describe the HS, VS, DE & PC signal polarities.
Signed-off-by: Philippe CORNU <[email protected] >
Reviewed-by: Benjamin Gaignard <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-26 15:01:34 +02:00
Philippe CORNU
af5125de7a
drm/stm: drv: Rename platform driver name
...
Rename the platform driver name from "stm" to "stm32-display"
for a better readability in /sys/bus/platform/drivers entries.
Note: We keep "stm" as drm_driver.name because it is better
when using "modetest -M stm ..." (even if recent modetest patch
avoids using -M).
Signed-off-by: Philippe CORNU <[email protected] >
Reviewed-by: Benjamin Gaignard <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-26 15:01:24 +02:00
[email protected]
367035c297
drm: stm: remove "default y" in Kconfig
...
To do not force stm driver to be build by default
Signed-off-by: Benjamin Gaignard <[email protected] >
Reviewed-by: Emil Velikov <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-26 14:43:23 +02:00
Philippe CORNU
c1c026dbc1
drm/stm: Add STM32 DSI controller driver
...
Add the STM32 DSI controller driver that uses the Synopsys DesignWare
MIPI DSI host controller bridge.
Signed-off-by: Philippe CORNU <[email protected] >
Reviewed-by: Neil Armstrong <[email protected] >
Reviewed-by: Archit Taneja <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-26 14:42:52 +02:00
Philippe CORNU
bdf31bcf3d
drm/stm: ltdc: Add panel-bridge support
...
Add the panel-bridge support for both panels & bridges (used by DSI host &
HDMI/LVDS bridges).
Signed-off-by: Philippe CORNU <[email protected] >
Reviewed-by: Archit Taneja <[email protected] >
Signed-off-by: Archit Taneja <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-18 12:06:42 +05:30
Philippe CORNU
cea3a330ee
drm/stm: ltdc: Fix leak of px clk enable in some error paths
...
The pixel clock gets enabled early during init, since it's required
in order to read registers. This pixel clock must be disabled if
errors during this init phase.
Signed-off-by: Eric Anholt <[email protected] >
Acked-by: Philippe Cornu <[email protected] >
Signed-off-by: Archit Taneja <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-07-18 12:06:41 +05:30
Laurent Pinchart
64581714b5
drm: Convert atomic drivers from CRTC .disable() to .atomic_disable()
...
The CRTC .disable() helper operation is deprecated for atomic drivers,
the new .atomic_disable() helper operation being preferred. Convert all
atomic drivers to .atomic_disable() to avoid cargo-cult use of
.disable() in new drivers.
Signed-off-by: Laurent Pinchart <[email protected] >
Acked-by: Maxime Ripard <[email protected] > # for sun4i
Acked-by: Philipp Zabel <[email protected] > # for mediatek
Acked-by: Alexey Brodkin <[email protected] > # for arcpgu
Acked-by: Boris Brezillon <[email protected] > # for atmel-hlcdc
Tested-by: Philippe Cornu <[email protected] > # for stm
Acked-by: Philippe Cornu <[email protected] > # for stm
Acked-by: Vincent Abriou <[email protected] > # for sti
Reviewed-by: Thomas Hellstrom <[email protected] > # for vmwgfx
Signed-off-by: Daniel Vetter <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-06-30 14:53:15 +02:00
Laurent Pinchart
0b20a0f8c3
drm: Add old state pointer to CRTC .enable() helper function
...
The old state is useful for drivers that need to perform operations at
enable time that depend on the transition between the old and new
states.
While at it, rename the operation to .atomic_enable() to be consistent
with .atomic_disable(), as the .enable() operation is used by atomic
helpers only.
Signed-off-by: Laurent Pinchart <[email protected] >
Acked-by: Maxime Ripard <[email protected] > # for sun4i
Acked-by: Philipp Zabel <[email protected] > # for imx-drm and mediatek
Acked-by: Alexey Brodkin <[email protected] > # for arcpgu
Acked-by: Boris Brezillon <[email protected] > # for atmel-hlcdc
Acked-by: Liviu Dudau <[email protected] > # for hdlcd and mali-dp
Acked-by: Stefan Agner <[email protected] > # for fsl-dcu
Tested-by: Philippe Cornu <[email protected] > # for stm
Acked-by: Philippe Cornu <[email protected] > # for stm
Acked-by: Vincent Abriou <[email protected] > # for sti
Reviewed-by: Thomas Hellstrom <[email protected] > # for vmwgfx
Signed-off-by: Daniel Vetter <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-06-30 14:53:14 +02:00
Daniel Vetter
25b905fe43
drm/stm: Drop drm_vblank_cleanup
...
Again seems just cargo-culted.
Cc: Yannick Fertre <[email protected] >
Cc: Philippe Cornu <[email protected] >
Acked-by: Philippe Cornu <[email protected] >
Signed-off-by: Daniel Vetter <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-05-31 10:48:58 +02:00
Philippe CORNU
c4d3fd4614
drm/stm: ltdc: fix duplicated arguments
...
Fix COMPILE_TEST build issue detected with the
rule: "duplicated argument to & or |"
Signed-off-by: Philippe CORNU <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-05-23 15:19:46 +02:00
Masahiro Yamada
5d465d42c4
drm/stm: remove unneeded -Iinclude/drm compiler flag
...
With the include directives under include/drm/ fixed, this flag is
no longer needed.
Signed-off-by: Masahiro Yamada <[email protected] >
Signed-off-by: Daniel Vetter <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
2017-05-22 09:37:12 +02:00
Yannick Fertre
b759012c5f
drm/stm: Add STM32 LTDC driver
...
This controller provides output signals to interface directly a variety
of LCD and TFT panels. These output signals are: RGB signals
(up to 24bpp), vertical & horizontal synchronisations, data enable and
the pixel clock.
Reviewed-by: Eric Anholt <[email protected] >
Signed-off-by: Yannick Fertre <[email protected] >
Signed-off-by: Eric Anholt <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Neil Armstrong <[email protected] >
Reviewed-by: Eric Anholt <[email protected] >
2017-04-14 11:30:29 -07:00