Skip to content

clk: meson: Add video clocks path

Neil Armstrong linux-amlogic linux-arm-kernel linux-clk lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesIn review
  2. v12 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4clk: meson: Add vid_pll divider driverdrivers/clk/meson/Makefile drivers/clk/meson/clkc.h drivers/clk/meson/vid-pll-div.c+98 -10 replies
2/4clk: meson-gxbb: Fix HDMI PLL for GXL SoCsdrivers/clk/meson/gxbb.c+49 -21 reply
3/4dt-bindings: clk: meson-gxbb: Add Video clock bindingsdrivers/clk/meson/gxbb.h include/dt-bindings/clock/gxbb-clkc.h+42 -20 replies
4/4clk: meson-gxbb: Add video clocksdrivers/clk/meson/gxbb.c+722 -01 reply

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJerome Brunet
SeriesA-b
1/4
2/4
3/4
4/4

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/4] clk: meson: Add video clocks path

This patchset is an attempt to handle the Amlogic Meson GX Video clock in the Common Clock Framework in order to move the video pipeline and HDMI controller clock management out of the Meson DRM Driver.

In order :
- Add support the VID_PLL fully programmable divider used right after the HDMI PLL clock source.
- Fix the GXL HDMI PLL DCO
- Add the video clock bindings covering all the video graphics pipeline and the HDMI controller.
- Add the clocks entries used in the video clock path

The vid_pll programmable divider is introduced in its R/O form right now, but will be extended to be R/W in a next iteration.

All dividers are flagged with CLK_GET_RATE_NOCACHE, and all gates are flagged with CLK_IGNORE_UNUSED since they are currently directly handled by the Meson DRM Driver.

Once the DRM Driver is fully migrated to using the Common Clock Framework to handle the video clock tree, the CLK_GET_RATE_NOCACHE and CLK_IGNORE_UNUSED will be dropped.

Changes since v1 at [1]:
- Fixed comments from Martin
- Fixed GXL HDMI PLL DCO
- Added the missing HDMI controller clock
- Moved bindings to a separate patch
- Updated the commit logs

[1] https://lkml.kernel.org/r/1532079581-978-1-git-send-email-narmstrong at baylibre.com

Neil Armstrong (4):
clk: meson: Add vid_pll divider driver
clk: meson-gxbb: Fix HDMI PLL for GXL SoCs
dt-bindings: clk: meson-gxbb: Add Video clock bindings
clk: meson-gxbb: Add video clocks

 drivers/clk/meson/Makefile            |   2 +-
 drivers/clk/meson/clkc.h              |   6 +
 drivers/clk/meson/gxbb.c              | 773 +++++++++++++++++++++++++++++++++-
 drivers/clk/meson/gxbb.h              |  26 +-
 drivers/clk/meson/vid-pll-div.c       |  91 ++++
 include/dt-bindings/clock/gxbb-clkc.h |  18 +
 6 files changed, 911 insertions(+), 5 deletions(-)
 create mode 100644 drivers/clk/meson/vid-pll-div.c
Signature · 1 line
2.7.4