Skip to content

RFC i.MX: Add initial CLK support

Jagan Teki u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8clk: Kconfig: Ascending order to sub directiory kconfigsdrivers/clk/Kconfig+4 -40 replies
2/8clk: Add DM CLK driver template for i.MX6QDLarch/arm/mach-imx/mx6/Kconfig drivers/clk/Kconfig drivers/clk/Makefile +4 more+112 -00 replies
3/8clk: imx: imx6q: Implement ENET clocksdrivers/clk/imx/clk_imx6q.c+18 -51 reply
4/8clk: imx: imx6ul: Implement ENET clocksdrivers/clk/imx/Kconfig drivers/clk/imx/Makefile drivers/clk/imx/clk_imx6ul.c+103 -01 reply
5/8clk: Add generic_clk_validinclude/clk-uclass.h+10 -01 reply
6/8net: fec_mxc: Add clock support via CLKdrivers/net/fec_mxc.c drivers/net/fec_mxc.h+64 -01 reply
7/8imx6ul: engicam: Enable CLK_IMXarch/arm/mach-imx/mx6/Kconfig+1 -00 replies
8/8configs: icorem6_rqs: Enable CLK_IMXconfigs/imx6qdl_icore_rqs_defconfig+1 -00 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchSimon GlassJoe Hershberger
1/8
2/8
3/8R-b
4/8R-b
5/8R-b
6/8A-b
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [RFC 0/8] i.MX: Add initial CLK support

One of the blocking area where fec_mxc is unlikely to move dm can be CLK support, this series trying to add support for it and concentrated on ENET clocking for i.MX6QDL and i.MX6UL.

I've verified this on i.MX6QDL, but the reason for sending this is an 'RFC' is there are some quite few issues with existing fec_mxc driver regarding mdio handling. The dm vs non-dm code in fec_mxc looks very uncomfortable to read and add new support, so I would like create one separate dm driver to make dm related changes if all agree?

know issues:
- CLK driver still using enable_fec_anatop_clock function to set the clock, but if we handling this in CLK we need anatop via OF_LIVE. will try this next version
- fec_mxc is passing input ref clock, ENET_50MHZ. don't know how to make this dynamic, or this based on MII or any other feature, need help.
- ipu_common has legacy clk support, since may boards are using ipu_common better to handle this via CLK so-that move to CLK become easy and meaningful.

patch 1, clk/kconfig ordering

patch 2, sample i.MX6QDL DM CLK template

patch 3, 4 Implement ENET clocks for i.MX6QDL and i.MX6UL

patch 5, add generic_clk_valid function

patch 6, add CLK support in fec_mxc.c

patch 7,8 enable CLK support on engicam boards

Jagan Teki (8):
clk: Kconfig: Ascending order to sub directiory kconfigs
clk: Add DM CLK driver template for i.MX6QDL
clk: imx: imx6q: Implement ENET clocks
clk: imx: imx6ul: Implement ENET clocks
clk: Add generic_clk_valid
net: fec_mxc: Add clock support via CLK
imx6ul: engicam: Enable CLK_IMX
configs: icorem6_rqs: Enable CLK_IMX

 arch/arm/mach-imx/mx6/Kconfig       |  2 +
 configs/imx6qdl_icore_rqs_defconfig |  1 +
 drivers/clk/Kconfig                 |  9 +--
 drivers/clk/Makefile                |  1 +
 drivers/clk/imx/Kconfig             | 25 ++++++++
 drivers/clk/imx/Makefile            |  8 +++
 drivers/clk/imx/clk_imx6q.c         | 89 +++++++++++++++++++++++++++
 drivers/clk/imx/clk_imx6ul.c        | 95 +++++++++++++++++++++++++++++
 drivers/net/fec_mxc.c               | 58 ++++++++++++++++++
 drivers/net/fec_mxc.h               |  6 ++
 drivers/video/ipu_common.c          |  8 +++
 include/clk-uclass.h                | 10 +++
 12 files changed, 308 insertions(+), 4 deletions(-)
 create mode 100644 drivers/clk/imx/Kconfig
 create mode 100644 drivers/clk/imx/Makefile
 create mode 100644 drivers/clk/imx/clk_imx6q.c
 create mode 100644 drivers/clk/imx/clk_imx6ul.c
Signature · 1 line
2.17.1