RFC i.MX: Add initial CLK support
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest8 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | clk: Kconfig: Ascending order to sub directiory kconfigsdrivers/ | +4 | 0 replies | |
| 2/8 | clk: Add DM CLK driver template for i.MX6QDLarch/ drivers/ drivers/ +4 more | +112 | 0 replies | |
| 3/8 | clk: imx: imx6q: Implement ENET clocksdrivers/ | +18 | 1 reply | |
| 4/8 | clk: imx: imx6ul: Implement ENET clocksdrivers/ drivers/ drivers/ | +103 | 1 reply | |
| 5/8 | clk: Add generic_clk_validinclude/ | +10 | 1 reply | |
| 6/8 | net: fec_mxc: Add clock support via CLKdrivers/ drivers/ | +64 | 1 reply | |
| 7/8 | imx6ul: engicam: Enable CLK_IMXarch/ | +1 | 0 replies | |
| 8/8 | configs: icorem6_rqs: Enable CLK_IMXconfigs/ | +1 | 0 replies |
Reviews trailers per patch
4 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Simon Glass | Joe Hershberger |
|---|---|---|
| 1/8 | ||
| 2/8 | ||
| 3/8 | R-b | |
| 4/8 | R-b | |
| 5/8 | R-b | |
| 6/8 | A-b | |
| 7/8 | ||
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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