* [RFC PATCH v3 0/4] Fix and improve gpmi nand on mx28
@ 2022-01-17 16:17 Dario Binacchi
2022-01-17 16:17 ` [RFC PATCH v3 1/4] ARM: dts: imx28: reparent gpmi clock to ref_gpmi Dario Binacchi
2022-01-18 8:34 ` [RFC PATCH v3 0/4] Fix and improve gpmi nand on mx28 Sascha Hauer
0 siblings, 2 replies; 4+ messages in thread
From: Dario Binacchi @ 2022-01-17 16:17 UTC (permalink / raw)
To: linux-kernel
Cc: Michael Trimarchi, Dario Binacchi, Boris Brezillon, Fabio Estevam,
Han Xu, Miquel Raynal, NXP Linux Team, Pengutronix Kernel Team,
Richard Weinberger, Rob Herring, Sascha Hauer, Shawn Guo,
Stephen Boyd, Vignesh Raghavendra, devicetree, linux-arm-kernel,
linux-mtd
Starting from [1], the series fixes the timings setting of the gpmi
controller for the mx28 architecture, also adding support for fast
edo mode timings. The whole series has been heavily tested with the
mtd kernel test modules, and with repeated write cycles on nand.
[1] https://lore.kernel.org/r/20210702065350.209646-5-ebiggers@kernel.org
Changes in v3:
- Remove the "mtd: rawnand: gpmi: use a table to get EDO mode setup" patch.
- Simplify the validation logic (suggested by Sascha Hauer <sha@pengutronix.de>).
Changes in v2:
- Reparent by device tree instead of code (drivers/clk/mxs/clk-imx28.c).
Suggested by Stephen Boyd.
- Improve the commit description.
- give examples of frequencies on my setup.
- Fix commit description.
- Add an example to the commit description to better understand the
problem solved by the patch.
- Split the patch.
- Improve the commit message.
- Move the patch to the end of the series.
Dario Binacchi (4):
ARM: dts: imx28: reparent gpmi clock to ref_gpmi
mtd: rawnand: gpmi: fix controller timings setting
mtd: rawnand: gpmi: validate controller clock rate
mtd: rawnand: gpmi: support fast edo timings for mx28
arch/arm/boot/dts/imx28.dtsi | 2 ++
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 27 ++++++++++++++++++----
2 files changed, 24 insertions(+), 5 deletions(-)
--
2.32.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFC PATCH v3 1/4] ARM: dts: imx28: reparent gpmi clock to ref_gpmi
2022-01-17 16:17 [RFC PATCH v3 0/4] Fix and improve gpmi nand on mx28 Dario Binacchi
@ 2022-01-17 16:17 ` Dario Binacchi
2022-01-29 5:46 ` Shawn Guo
2022-01-18 8:34 ` [RFC PATCH v3 0/4] Fix and improve gpmi nand on mx28 Sascha Hauer
1 sibling, 1 reply; 4+ messages in thread
From: Dario Binacchi @ 2022-01-17 16:17 UTC (permalink / raw)
To: linux-kernel
Cc: Michael Trimarchi, Dario Binacchi, Fabio Estevam, NXP Linux Team,
Pengutronix Kernel Team, Rob Herring, Sascha Hauer, Shawn Guo,
Stephen Boyd, devicetree, linux-arm-kernel
Since ref_gpmi is sourced from pll0 (480MHz), It allows the GPMI
controller to manage High-Speed NAND Timing (edo mode 3,4 and 5).
Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
(no changes since v2)
Changes in v2:
- Reparent by device tree instead of code (drivers/clk/mxs/clk-imx28.c).
Suggested by Stephen Boyd.
arch/arm/boot/dts/imx28.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi
index 84d0176d5193..130b4145af82 100644
--- a/arch/arm/boot/dts/imx28.dtsi
+++ b/arch/arm/boot/dts/imx28.dtsi
@@ -110,6 +110,8 @@ gpmi: nand-controller@8000c000 {
interrupt-names = "bch";
clocks = <&clks 50>;
clock-names = "gpmi_io";
+ assigned-clocks = <&clks 13>;
+ assigned-clock-parents = <&clks 10>;
dmas = <&dma_apbh 4>;
dma-names = "rx-tx";
status = "disabled";
--
2.32.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [RFC PATCH v3 0/4] Fix and improve gpmi nand on mx28
2022-01-17 16:17 [RFC PATCH v3 0/4] Fix and improve gpmi nand on mx28 Dario Binacchi
2022-01-17 16:17 ` [RFC PATCH v3 1/4] ARM: dts: imx28: reparent gpmi clock to ref_gpmi Dario Binacchi
@ 2022-01-18 8:34 ` Sascha Hauer
1 sibling, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2022-01-18 8:34 UTC (permalink / raw)
To: Dario Binacchi
Cc: linux-kernel, Michael Trimarchi, Boris Brezillon, Fabio Estevam,
Han Xu, Miquel Raynal, NXP Linux Team, Pengutronix Kernel Team,
Richard Weinberger, Rob Herring, Shawn Guo, Stephen Boyd,
Vignesh Raghavendra, devicetree, linux-arm-kernel, linux-mtd
On Mon, Jan 17, 2022 at 05:17:51PM +0100, Dario Binacchi wrote:
> Starting from [1], the series fixes the timings setting of the gpmi
> controller for the mx28 architecture, also adding support for fast
> edo mode timings. The whole series has been heavily tested with the
> mtd kernel test modules, and with repeated write cycles on nand.
>
> [1] https://lore.kernel.org/r/20210702065350.209646-5-ebiggers@kernel.org
>
> Changes in v3:
> - Remove the "mtd: rawnand: gpmi: use a table to get EDO mode setup" patch.
> - Simplify the validation logic (suggested by Sascha Hauer <sha@pengutronix.de>).
Thanks Dario. I gave it a test on a custom i.MX28 board and it works as
expected.
For the series:
Tested-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH v3 1/4] ARM: dts: imx28: reparent gpmi clock to ref_gpmi
2022-01-17 16:17 ` [RFC PATCH v3 1/4] ARM: dts: imx28: reparent gpmi clock to ref_gpmi Dario Binacchi
@ 2022-01-29 5:46 ` Shawn Guo
0 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2022-01-29 5:46 UTC (permalink / raw)
To: Dario Binacchi
Cc: linux-kernel, Michael Trimarchi, Fabio Estevam, NXP Linux Team,
Pengutronix Kernel Team, Rob Herring, Sascha Hauer, Stephen Boyd,
devicetree, linux-arm-kernel
On Mon, Jan 17, 2022 at 05:17:52PM +0100, Dario Binacchi wrote:
> Since ref_gpmi is sourced from pll0 (480MHz), It allows the GPMI
> controller to manage High-Speed NAND Timing (edo mode 3,4 and 5).
>
> Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Applied, thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-29 5:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-17 16:17 [RFC PATCH v3 0/4] Fix and improve gpmi nand on mx28 Dario Binacchi
2022-01-17 16:17 ` [RFC PATCH v3 1/4] ARM: dts: imx28: reparent gpmi clock to ref_gpmi Dario Binacchi
2022-01-29 5:46 ` Shawn Guo
2022-01-18 8:34 ` [RFC PATCH v3 0/4] Fix and improve gpmi nand on mx28 Sascha Hauer
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).