linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] clk: imx8m: Define gates for pll1/2 dividers
@ 2019-09-11 12:05 Leonard Crestez
  2019-09-11 12:05 ` [PATCH 1/3] clk: imx8mq: Define gates for pll1/2 fixed dividers Leonard Crestez
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Leonard Crestez @ 2019-09-11 12:05 UTC (permalink / raw)
  To: Stephen Boyd, Shawn Guo, Jacky Bai, Abel Vesa
  Cc: Anson Huang, Michael Turquette, Dong Aisheng, Fabio Estevam,
	linux-clk, kernel, linux-imx, linux-arm-kernel

The fixed dividers for sys_pll1 and sys_pll2 on imx8m each have a gate
attached but they're currently unused so they default to "always on".

Add them to the clk tree for the sake of corectness. This could expose
bugs where parent clocks were not correctly enabled.

The new gates are added between the PLL and fixed dividers and new gates
are enumerated at the end in dt-bindings. This should ensure
compatibility, even though none of these fixed dividers are directly
referenced by peripherals anyway.

There are small differences on imx8mq because the PLL physical
implementation is also different.

Leonard Crestez (3):
  clk: imx8mq: Define gates for pll1/2 fixed dividers
  clk: imx8mm: Define gates for pll1/2 fixed dividers
  clk: imx8mn: Define gates for pll1/2 fixed dividers

 drivers/clk/imx/clk-imx8mm.c             | 57 ++++++++++++++--------
 drivers/clk/imx/clk-imx8mn.c             | 57 ++++++++++++++--------
 drivers/clk/imx/clk-imx8mq.c             | 62 ++++++++++++++++--------
 include/dt-bindings/clock/imx8mm-clock.h | 19 +++++++-
 include/dt-bindings/clock/imx8mn-clock.h | 19 +++++++-
 include/dt-bindings/clock/imx8mq-clock.h | 22 ++++++++-
 6 files changed, 175 insertions(+), 61 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-06  7:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-11 12:05 [PATCH 0/3] clk: imx8m: Define gates for pll1/2 dividers Leonard Crestez
2019-09-11 12:05 ` [PATCH 1/3] clk: imx8mq: Define gates for pll1/2 fixed dividers Leonard Crestez
2019-10-06  7:37   ` Shawn Guo
2019-09-11 12:05 ` [PATCH 2/3] clk: imx8mm: " Leonard Crestez
2019-10-06  7:40   ` Shawn Guo
2019-09-11 12:05 ` [PATCH 3/3] clk: imx8mn: " Leonard Crestez

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).