From: jbrunet@baylibre.com (Jerome Brunet)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH v2 0/9] clk: meson: pll fixes
Date: Fri, 19 Jan 2018 16:55:20 +0100 [thread overview]
Message-ID: <20180119155529.11532-1-jbrunet@baylibre.com> (raw)
This changeset is a collection of fixes and clean-up around the pll clock
provider. This has been triggered by the discussion around the ethernet
clock on the axg [0].
On the axg the rate reported by the fixed_pll is off by 8Mhz, which leads
the internal mux of the ethernet driver to pick an mpll2 instead of the
fdiv4.
With this series applied, the fixed_pll of the axg now reports
1999998046 Hz, which is coherent with measurements (~2GHz)
While debugging this, we uncovered quite a mess around the hdmi_pll
of the gxbb and gxl family. This is also fixed by this series.
Last, the parameters table provided to the read-only sys_plls have
been removed, saving a bit of memory
There is still work to be done on this clock provider. Someday,
I hope to see the parameter tables go away completely. This pll
is just a (quite complex) fractional divider, we sould be able to
figure something out at runtime.
Changes since v1: [1]
* fix several typos in the comments
* fix arm32 u64 math in patch 3 (Thanks a lot Martin!!)
[0]: https://lkml.kernel.org/r/1516095424.2608.36.camel at baylibre.com
[1]: https://lkml.kernel.org/r/20180118184532.6856-1-jbrunet at baylibre.com
Jerome Brunet (9):
clk: meson: check pll rate param table before using it
clk: meson: remove useless pll rate params tables
clk: meson: remove unnecessary rounding in the pll clock
clk: meson: use the frac parameter width instead of a constant
clk: meson: add od3 to the pll driver
clk: meson: add the gxl hdmi pll
clk: meson: fix rate calculation of plls with a fractional part
clk: meson: gxbb: add the fractional part of the fixed_pll
clk: meson: axg: add the fractional part of the fixed_pll
drivers/clk/meson/axg.c | 99 ++------------------------
drivers/clk/meson/clk-pll.c | 41 ++++++++---
drivers/clk/meson/clkc.h | 2 +
drivers/clk/meson/gxbb.c | 166 +++++++++++++++++++-------------------------
drivers/clk/meson/gxbb.h | 3 +-
5 files changed, 111 insertions(+), 200 deletions(-)
--
2.14.3
next reply other threads:[~2018-01-19 15:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-19 15:55 Jerome Brunet [this message]
2018-01-19 15:55 ` [PATCH v2 1/9] clk: meson: check pll rate param table before using it Jerome Brunet
2018-01-19 15:55 ` [PATCH v2 2/9] clk: meson: remove useless pll rate params tables Jerome Brunet
2018-01-19 15:55 ` [PATCH v2 3/9] clk: meson: remove unnecessary rounding in the pll clock Jerome Brunet
2018-01-19 15:55 ` [PATCH v2 4/9] clk: meson: use the frac parameter width instead of a constant Jerome Brunet
2018-01-19 15:55 ` [PATCH v2 5/9] clk: meson: add od3 to the pll driver Jerome Brunet
2018-01-19 15:55 ` [PATCH v2 6/9] clk: meson: add the gxl hdmi pll Jerome Brunet
2018-01-19 15:55 ` [PATCH v2 7/9] clk: meson: fix rate calculation of plls with a fractional part Jerome Brunet
2018-01-19 15:55 ` [PATCH v2 8/9] clk: meson: gxbb: add the fractional part of the fixed_pll Jerome Brunet
2018-01-19 15:55 ` [PATCH v2 9/9] clk: meson: axg: " Jerome Brunet
2018-01-30 19:10 ` [PATCH v2 0/9] clk: meson: pll fixes Jerome Brunet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180119155529.11532-1-jbrunet@baylibre.com \
--to=jbrunet@baylibre.com \
--cc=linus-amlogic@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).