[RFC,0/8] clk: imx8mn: setup clocks by device tree
mbox series

Message ID 20221019172019.2303223-1-dario.binacchi@amarulasolutions.com
Headers show
Series
  • clk: imx8mn: setup clocks by device tree
Related show

Message

Dario Binacchi Oct. 19, 2022, 5:20 p.m. UTC
This draft series (description of commits is not complete, the latest
patch is not complete, ...) aims to setup all imx8mn's clocks by device
tree.
I send it even if it is a draft to understand if it can make sense or
not. Whether it makes sense to continue it as it has been developed up
to now or not. Any suggestions are welcome.


Dario Binacchi (8):
  clk: imx: add structure to extend register accesses
  clk: imx: add imx_dt_clk_name() helper to use clock-output-names
  clk: imx: add imx_get_clk_hw_from_dt() helper
  clk: imx: add support for imx8mn gate clock
  clk: imx: add support for imx8mn mux clock
  clk: imx: pll14xx: support driver's registration by device tree
  arm64: dts: imx8mn: add dumy clock
  arm64: dts: imx8mn: add imx8mn-clocks.dtsi

 .../boot/dts/freescale/imx8mn-clocks.dtsi     | 581 ++++++++++++++++++
 arch/arm64/boot/dts/freescale/imx8mn.dtsi     |  48 +-
 drivers/clk/imx/Makefile                      |   2 +
 drivers/clk/imx/clk-gate.c                    | 180 ++++++
 drivers/clk/imx/clk-imx8mn.c                  | 128 ++--
 drivers/clk/imx/clk-mux.c                     | 239 +++++++
 drivers/clk/imx/clk-pll14xx.c                 | 242 ++++++--
 drivers/clk/imx/clk.c                         |  32 +
 drivers/clk/imx/clk.h                         |  16 +
 9 files changed, 1313 insertions(+), 155 deletions(-)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mn-clocks.dtsi
 create mode 100644 drivers/clk/imx/clk-gate.c
 create mode 100644 drivers/clk/imx/clk-mux.c