Yannick Fertré
df61c77665
drm/stm: add sleep power management
...
Implements system sleep power management ops.
Signed-off-by: Yannick Fertré <[email protected] >
Acked-by: Philippe Cornu <[email protected] >
Signed-off-by: Benjamin Gaignard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2019-04-01 11:00:18 +02:00
Benjamin Gaignard
53273b5222
drm: stm: implement get_scanout_position function
...
Hardware allow to read the position in scanout buffer so
we can use this information to make wait of vblank more accurate.
Active area bounds (start, end, total height) have already been
computed and written in ltdc registers, read them and get the
current line position to compute vpos value.
Signed-off-by: Benjamin Gaignard <[email protected] >
Reviewed-by: Yannick Fertré <[email protected] >
Tested-by: Yannick Fertré <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-09-27 15:04:26 +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
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
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
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
[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
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
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
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