linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] Add i.MX6 SoCs mmdc ipg clocks management
@ 2018-08-31  7:53 Anson Huang
  2018-08-31  7:53 ` [PATCH 1/7] ARM: imx: add mmdc ipg clock operation for mmdc Anson Huang
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Anson Huang @ 2018-08-31  7:53 UTC (permalink / raw)
  To: shawnguo, s.hauer, kernel, fabio.estevam, robh+dt, mark.rutland,
	linux, mturquette, sboyd, colin.didier, clement.peron, ping.bai,
	aisheng.dong, shengjiu.wang, matteo.lisi, michael,
	linux-arm-kernel, devicetree, linux-kernel, linux-clk
  Cc: Linux-imx

i.MX6 SoCs have MMDC driver which will access MMDC registers, and the
register access need to have MMDC IPG clocks enabled, current MMDC
driver does NOT handle the MMDC IPG clocks at all, most of the i.MX6
SoCs clock tree have MMDC0 IPG clock registered and have flag
CLK_IS_CRITICAL set, but some i.MX6 SoCs does NOT register the MMDC IPG
clock at all, it depends on default HW status which is NOT reliable.

To make it more formal, this patch set add all available MMDC IPG clocks
into clock tree, and add optional clocks enable operation in MMDC driver
to make sure IPG clock is enabled before accessing registers, and passing
MMDC IPG clock info from device tree MMDC node.

In order to NOT break old device tree, this patch set does NOT remove
the CLK_IS_CRITIAL flag for MMDC0 IPG clock.

Anson Huang (7):
  ARM: imx: add mmdc ipg clock operation for mmdc
  clk: imx6ul: add mmdc1 ipg clock
  clk: imx6sx: add mmdc1 ipg clock
  clk: imx6sll: add mmdc1 ipg clock
  clk: imx6sl: add mmdc ipg clocks
  clk: imx6q: add mmdc0 ipg clock
  ARM: dts: imx6: add mmdc ipg clock

 arch/arm/boot/dts/imx6qdl.dtsi            |  1 +
 arch/arm/boot/dts/imx6sl.dtsi             |  1 +
 arch/arm/boot/dts/imx6sll.dtsi            |  1 +
 arch/arm/boot/dts/imx6sx.dtsi             |  1 +
 arch/arm/boot/dts/imx6ul.dtsi             |  1 +
 arch/arm/mach-imx/mmdc.c                  | 14 ++++++++++++++
 drivers/clk/imx/clk-imx6q.c               |  1 +
 drivers/clk/imx/clk-imx6sl.c              |  2 ++
 drivers/clk/imx/clk-imx6sll.c             |  1 +
 drivers/clk/imx/clk-imx6sx.c              |  1 +
 drivers/clk/imx/clk-imx6ul.c              |  1 +
 include/dt-bindings/clock/imx6qdl-clock.h |  3 ++-
 include/dt-bindings/clock/imx6sl-clock.h  |  4 +++-
 include/dt-bindings/clock/imx6sll-clock.h |  3 ++-
 include/dt-bindings/clock/imx6sx-clock.h  |  3 ++-
 include/dt-bindings/clock/imx6ul-clock.h  |  3 ++-
 16 files changed, 36 insertions(+), 5 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2018-11-05  2:21 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-31  7:53 [PATCH 0/7] Add i.MX6 SoCs mmdc ipg clocks management Anson Huang
2018-08-31  7:53 ` [PATCH 1/7] ARM: imx: add mmdc ipg clock operation for mmdc Anson Huang
2018-09-10  0:17   ` Shawn Guo
2018-08-31  7:53 ` [PATCH 2/7] clk: imx6ul: add mmdc1 ipg clock Anson Huang
2018-09-04 13:36   ` Rob Herring
2018-10-17 18:16   ` Stephen Boyd
2018-08-31  7:53 ` [PATCH 3/7] clk: imx6sx: " Anson Huang
2018-09-04 13:36   ` Rob Herring
2018-10-17 18:16   ` Stephen Boyd
2018-08-31  7:53 ` [PATCH 4/7] clk: imx6sll: " Anson Huang
2018-09-04 13:36   ` Rob Herring
2018-10-17 18:16   ` Stephen Boyd
2018-08-31  7:53 ` [PATCH 5/7] clk: imx6sl: add mmdc ipg clocks Anson Huang
2018-09-04 13:36   ` Rob Herring
2018-10-17 18:16   ` Stephen Boyd
2018-08-31  7:53 ` [PATCH 6/7] clk: imx6q: add mmdc0 ipg clock Anson Huang
2018-09-04 13:36   ` Rob Herring
2018-10-17 18:16   ` Stephen Boyd
2018-08-31  7:53 ` [PATCH 7/7] ARM: dts: imx6: add mmdc " Anson Huang
2018-11-05  2:20   ` Shawn Guo

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