Skip to content

ARM: dts: imx7: add NAND support

Stefan Agner linux-arm-kernel linux-clk linux-devicetree linux-mtd lkml 4 versions – Applied

Status from this message: Applied to clk-next

Get series with b4
b4 am cover.9fab78eaa869dbad4c9ad7e8578c9cef3e49daa8.1496961128.git-series.stefan@agner.ch

Versions newest first · linked by author and title

  1. v6 Latest3 patches 7 repliesApplied
  2. v53 patches 5 repliesSuperseded
  3. v42 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v32 patches4 repliesSuperseded

Changes in v6 from the cover letter

- Remove clock-names from dma-apbh node

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/3clk: imx7d: create clocks behind rawnand clock gatedrivers/clk/imx/clk-imx7d.c include/dt-bindings/clock/imx7d-clock.h+7 -32 replies
2/3ARM: dts: imx7: add GPMI NAND and APBH DMAarch/arm/boot/dts/imx7s.dtsi+31 -01 reply
3/3ARM: dts: imx7-colibri: add NAND supportarch/arm/boot/dts/imx7-colibri.dtsi+9 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchFabio EstevamHan Xu
1/3T-b A-b
2/3T-b A-b
3/3T-b A-b

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

Read the v6 thread

Cover letter [PATCH v6 0/3] ARM: dts: imx7: add NAND support

This revision alters the clock tree such that the clock required by the APBH DMA (NAND_USDHC_BUS_CLK_ROOT _after_ gate CCGR20) is available as an independent clock.

So far the gate CCGR20 was used by the NAND_ROOT_CLK only. A previous patch added the NAND_ROOT_CLK to the APBH DMA which lead the clock gate CCGR20 getting enabled:
https://patchwork.ozlabs.org/patch/551967/

The data sheet seems to indicate that the APBH DMA only uses hclk which is connected to NAND_USDHC_BUS_CLK_ROOT, but also through gate CCGR20. Tests seem to confirm this wiring.

By adding a new clock IMX7D_NAND_USDHC_BUS_RAWNAND_CLK we can assign a clock which also enables the shared CCGR20 gate without changing the DMA driver. This better reflects the true wiring and encapsulates the SoC specific clock wiring in the clock tree instead leaking it into the driver code.

The wording "rawnand" has been taken from Table 5-12, Module APBHDMA in the i.MX 7 Reference Manual.

Versions 2 and earlier also included NAND driver changes, which are already merged.

--
Stefan

Changes since v5:
- Remove clock-names from dma-apbh node

Changes since v4:
- Introduce *_RAWNAND_CLK which represent clocks after CCGR20
- Use *_RAWNAND_CLK for APBH DMA and GPMI NAND
- Use assigned-clocks to set a reasonable parent for NAND_ROOT_SRC

Changes since v3:
- Only specify IMX7D_NAND_USDHC_BUS_ROOT_CLK which seems to be sufficent

Changes since v2:
- Dropped driver changes, alreay merged

Changes since v1:
- Make clks_count const
- Introduce IS_IMX7D for i.MX 7 SoC's and make it part of GPMI_IS_MX6

Stefan Agner (3):
clk: imx7d: create clocks behind rawnand clock gate
ARM: dts: imx7: add GPMI NAND and APBH DMA
ARM: dts: imx7-colibri: add NAND support

 arch/arm/boot/dts/imx7-colibri.dtsi     |  9 ++++++++-
 arch/arm/boot/dts/imx7s.dtsi            | 31 ++++++++++++++++++++++++++-
 drivers/clk/imx/clk-imx7d.c             |  6 +++--
 include/dt-bindings/clock/imx7d-clock.h |  4 ++-
 4 files changed, 47 insertions(+), 3 deletions(-)

base-commit: e2bb3be2c6c623ff0bad975dc9435531f450f0c5

Signature · 1 line
git-series 0.9.1