From: Stefan Agner <stefan@agner.ch>
To: shawnguo@kernel.org, kernel@pengutronix.de, sboyd@codeaurora.org
Cc: aisheng.dong@nxp.com, dwmw2@infradead.org,
computersforpeace@gmail.com, boris.brezillon@free-electrons.com,
marek.vasut@gmail.com, richard@nod.at, robh+dt@kernel.org,
mark.rutland@arm.com, han.xu@nxp.com,
fabio.estevam@freescale.com, LW@KARO-electronics.de,
linux-mtd@lists.infradead.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org, Stefan Agner <stefan@agner.ch>
Subject: [PATCH v5 0/3] ARM: dts: imx7: add NAND support
Date: Mon, 5 Jun 2017 23:30:47 -0700 [thread overview]
Message-ID: <cover.b62c3a17bd60de48d8fb2ade6dde4f2bc60aaf3c.1496730576.git-series.stefan@agner.ch> (raw)
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 which also lead to the effect that the
clock gate CCGR20 gets 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 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.
Versions 2 and earlier also included NAND driver changes, which are
already merged.
--
Stefan
Changes since v4:
- Introduce *_RAWNAND_CLK which represent clocks after CCGR20
-
- Add assigned-clocks to set a reasonable parent for raw NAND
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 | 32 ++++++++++++++++++++++++++-
drivers/clk/imx/clk-imx7d.c | 6 +++--
include/dt-bindings/clock/imx7d-clock.h | 4 ++-
4 files changed, 48 insertions(+), 3 deletions(-)
base-commit: e2bb3be2c6c623ff0bad975dc9435531f450f0c5
--
git-series 0.9.1
next reply other threads:[~2017-06-06 6:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-06 6:30 Stefan Agner [this message]
[not found] ` <cover.b62c3a17bd60de48d8fb2ade6dde4f2bc60aaf3c.1496730576.git-series.stefan-XLVq0VzYD2Y@public.gmane.org>
2017-06-06 6:30 ` [PATCH v5 1/3] clk: imx7d: create clocks behind rawnand clock gate Stefan Agner
2017-06-06 16:33 ` Fabio Estevam
2017-06-06 6:30 ` [PATCH v5 2/3] ARM: dts: imx7: add GPMI NAND and APBH DMA Stefan Agner
[not found] ` <151ddece1e1427d0b69c4ff11b86a69b6a035d0d.1496730576.git-series.stefan-XLVq0VzYD2Y@public.gmane.org>
2017-06-06 16:34 ` Fabio Estevam
2017-06-07 15:33 ` Han Xu
[not found] ` <9d66efda-d7c1-89a2-e163-c86056e08fb1-3arQi8VN3Tc@public.gmane.org>
2017-06-08 22:23 ` Stefan Agner
2017-06-06 6:30 ` [PATCH v5 3/3] ARM: dts: imx7-colibri: add NAND support Stefan Agner
[not found] ` <c740386a55dc28db37f250eccc11687c1b111554.1496730576.git-series.stefan-XLVq0VzYD2Y@public.gmane.org>
2017-06-06 16:35 ` Fabio Estevam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.b62c3a17bd60de48d8fb2ade6dde4f2bc60aaf3c.1496730576.git-series.stefan@agner.ch \
--to=stefan@agner.ch \
--cc=LW@KARO-electronics.de \
--cc=aisheng.dong@nxp.com \
--cc=boris.brezillon@free-electrons.com \
--cc=computersforpeace@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dwmw2@infradead.org \
--cc=fabio.estevam@freescale.com \
--cc=han.xu@nxp.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--cc=mark.rutland@arm.com \
--cc=richard@nod.at \
--cc=robh+dt@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).