Skip to content

Add TV Encoder support for ZTE DRM driver

Shawn Guo dri-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v15 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Save the use of variable 'vactive' by checking interlaced case.
- Rename mask variable for scan register to avoid naming scope confusion.
- Write a proper comment to explain how vback_porch of the first and second field are related.
- Embed struct drm_display_mode in zx_tvenc_mode to save function zx_tvenc_mode_to_drm_mode().
- Use drm_mode_equal() to find the matching mode.
- Use drm_mode_set_name() to name mode.
- Fix typos in clock multiplier comment.
- Add a sanity check in .mode_valid hook to ensure the given mode is valid.
- Remove destroy() calls from .unbind hook, as those are already taken care of by drm_mode_config_cleanup().

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm: zte: add interlace mode supportdrivers/gpu/drm/zte/zx_vou.c drivers/gpu/drm/zte/zx_vou_regs.h+65 -21 reply
2/5drm: zte: move struct vou_inf into zx_vou driverdrivers/gpu/drm/zte/zx_hdmi.c drivers/gpu/drm/zte/zx_vou.c drivers/gpu/drm/zte/zx_vou.h+28 -260 replies
3/5drm: zte: add function to configure vou_ctrl dividersdrivers/gpu/drm/zte/zx_vou.c drivers/gpu/drm/zte/zx_vou.h drivers/gpu/drm/zte/zx_vou_regs.h+120 -00 replies
4/5dt: add bindings for ZTE tvenc deviceDocumentation/devicetree/bindings/display/zte,vou.txt+15 -00 replies
5/5drm: zte: add tvenc driver supportdrivers/gpu/drm/zte/Makefile drivers/gpu/drm/zte/zx_drm_drv.c drivers/gpu/drm/zte/zx_drm_drv.h +3 more+446 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchSean PaulRob Herring
1/5R-b
2/5R-b
3/5R-b
4/5A-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] Add TV Encoder support for ZTE DRM driver

From: Shawn Guo <[email protected]>

The series updates zx_vou driver a bit as the preparation of adding TVENC output device, and then adds the device driver.

Changes for v2:
- Save the use of variable 'vactive' by checking interlaced case.
- Rename mask variable for scan register to avoid naming scope confusion.
- Write a proper comment to explain how vback_porch of the first and second field are related.
- Embed struct drm_display_mode in zx_tvenc_mode to save function zx_tvenc_mode_to_drm_mode().
- Use drm_mode_equal() to find the matching mode.
- Use drm_mode_set_name() to name mode.
- Fix typos in clock multiplier comment.
- Add a sanity check in .mode_valid hook to ensure the given mode is valid.
- Remove destroy() calls from .unbind hook, as those are already taken care of by drm_mode_config_cleanup().

Shawn Guo (5):
drm: zte: add interlace mode support
drm: zte: move struct vou_inf into zx_vou driver
drm: zte: add function to configure vou_ctrl dividers
dt: add bindings for ZTE tvenc device
drm: zte: add tvenc driver support

 .../devicetree/bindings/display/zte,vou.txt        |  15 +
 drivers/gpu/drm/zte/Makefile                       |   1 +
 drivers/gpu/drm/zte/zx_drm_drv.c                   |   1 +
 drivers/gpu/drm/zte/zx_drm_drv.h                   |   1 +
 drivers/gpu/drm/zte/zx_hdmi.c                      |  12 +-
 drivers/gpu/drm/zte/zx_tvenc.c                     | 407 +++++++++++++++++++++
 drivers/gpu/drm/zte/zx_tvenc_regs.h                |  31 ++
 drivers/gpu/drm/zte/zx_vou.c                       | 167 ++++++++-
 drivers/gpu/drm/zte/zx_vou.h                       |  32 +-
 drivers/gpu/drm/zte/zx_vou_regs.h                  |  31 ++
 10 files changed, 672 insertions(+), 26 deletions(-)
 create mode 100644 drivers/gpu/drm/zte/zx_tvenc.c
 create mode 100644 drivers/gpu/drm/zte/zx_tvenc_regs.h
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel