Skip to content

clk: meson: add support for PCIE PLL

Neil Armstrong linux-amlogic linux-arm-kernel linux-clk linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3clk: meson-pll: add reduced specific clk_ops for G12A PCIe PLLdrivers/clk/meson/clk-pll.c drivers/clk/meson/clk-pll.h+27 -00 replies
2/3dt-bindings: clk: g12a-clkc: add PCIE PLL clock IDinclude/dt-bindings/clock/g12a-clkc.h+1 -01 reply
3/3clk: meson-g12a: add PCIE PLL clocksdrivers/clk/meson/g12a.c drivers/clk/meson/g12a.h+122 -12 replies

Reviews trailers per patch

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

PatchJerome BrunetRob Herring
SeriesA-b
1/3
2/3R-b
3/3

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/3] clk: meson: add support for PCIE PLL

The Amlogic G12A SoCs embeds a dedicated PLL to feed the USB3+PCIE Combo PHY. This PLL needs a very specific and strict register sequence in order to correcly enable it and deliver the 100MHz reference clock to the Analog PHY.

After lot of trials and errors, and since this PLL will ever feed 100MHz with a static configuration, it is simpler to setup a dedicated ops structure with a custom _enable() op applying the init register sequence.

The rate calculation ops are kept in order to keep the nominal read ops as-in, but set_rate is removed.

With this setup, the PLL can be enabled and disable safely and always have the recommended PLL setup to feed the USB3+PCIE Combo PHY.

Neil Armstrong (3):
clk: meson-pll: add reduced specific clk_ops for G12A PCIe PLL
dt-bindings: clk: g12a-clkc: add PCIE PLL clock ID
clk: meson-g12a: add PCIE PLL clocks

 drivers/clk/meson/clk-pll.c           |  26 ++++++
 drivers/clk/meson/clk-pll.h           |   1 +
 drivers/clk/meson/g12a.c              | 118 ++++++++++++++++++++++++++
 drivers/clk/meson/g12a.h              |   5 +-
 include/dt-bindings/clock/g12a-clkc.h |   1 +
 5 files changed, 150 insertions(+), 1 deletion(-)
Signature · 1 line
2.20.1