Skip to content

drm: atmel-hlcdc: fix clock handling and add LVDS support

Manikandan Muralidharan dri-devel linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8drm: atmel-hlcdc: Fix off-by-one in vertical back porch settingdrivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c+1 -10 replies
2/8drm: atmel-hlcdc: reorder timing register writes after clock setupdrivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c+23 -200 replies
3/8drm: atmel-hlcdc: simplify clock divider selection with DIV_ROUND_CLOSESTdrivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c+2 -140 replies
4/8drm: atmel-hlcdc: define ATMEL_HLCDC_CLKDIV_MAX and fix divider fallbackdrivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c include/linux/mfd/atmel-hlcdc.h+6 -40 replies
5/8drm: atmel-hlcdc: extract clock setup into a dedicated helperdrivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c+39 -270 replies
6/8drm: atmel-hlcdc: add XLCDC clock bypass support for small dividersdrivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c include/linux/mfd/atmel-hlcdc.h+8 -01 reply
7/8drm: atmel-hlcdc: add and configure LVDS PLL clock supportdrivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c+42 -30 replies
8/8drm: atmel-hlcdc: add LVDS output mode supportdrivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c+41 -30 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchLee Jones
1/8
2/8
3/8
4/8
5/8
6/8A-b
7/8
8/8

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

Read the v1 thread

Cover letter [PATCH 0/8] drm: atmel-hlcdc: fix clock handling and add LVDS support

This series fixes several issues in the atmel-hlcdc CRTC clock handling and adds LVDS display support for XLCDC-based SoCs.

The first patch fixes a pre-existing off-by-one error in the vertical back porch register calculation. The following patches progressively clean up the clock divider logic by introducing DIV_ROUND_CLOSEST, defining a named maximum divider constant, and extracting clock setup into a dedicated helper. Clock bypass support is then added for XLCDC hardware when the computed divider is less than 2.

The final two patches introduce LVDS PLL clock support, configuring the PLL to 7x the pixel clock rate before the timing engine is programmed, and add an LVDS output mode handler to map LVDS bus formats to the appropriate display output modes.

Manikandan Muralidharan (7):
drm: atmel-hlcdc: Fix off-by-one in vertical back porch setting
drm: atmel-hlcdc: simplify clock divider selection with
DIV_ROUND_CLOSEST
drm: atmel-hlcdc: define ATMEL_HLCDC_CLKDIV_MAX and fix divider
fallback
drm: atmel-hlcdc: extract clock setup into a dedicated helper
drm: atmel-hlcdc: add XLCDC clock bypass support for small dividers
drm: atmel-hlcdc: add and configure LVDS PLL clock support
drm: atmel-hlcdc: add LVDS output mode support

Ryan Wanner (1):
drm: atmel-hlcdc: reorder timing register writes after clock setup

 .../gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c    | 190 +++++++++++++-----
 include/linux/mfd/atmel-hlcdc.h               |   2 +
 2 files changed, 139 insertions(+), 53 deletions(-)
Signature · 1 line
2.25.1