From: Ladislav Michl <ladis@linux-mips.org> To: linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org Cc: Tony Lindgren <tony@atomide.com>, Peter Ujfalusi <peter.ujfalusi@ti.com>, Kyungmin Park <kyungmin.park@samsung.com>, Boris Brezillon <boris.brezillon@free-electrons.com>, Roger Quadros <rogerq@ti.com> Subject: [PATCH v4 00/16] OMAP2+ OneNAND driver update Date: Sat, 11 Nov 2017 22:12:06 +0100 [thread overview] Message-ID: <20171111211206.465pgorrjp3eyix6@lenoch> (raw) Hi there, this patch serie updates OMAP2+ OneNAND driver to the present times, making it fully DT configurable, using libgpio and dmaengine apis. Please note that unlike previous driver version, which basically ignored DT specified timings, this one relies on it, so it is important to get it right in your DT (dumping it from previous kernel version). In case synchronous timings is requested, it is okay to specify timings for the slowest chip ever used for you board as it is evetually optimized after chip probe. Original driver used DMA only if user specified r/b gpio in platform data, now DMA is used unconditionally and PIO mode is used as fallback. In case anyone wants to give it a try, few DT related changes are needed: - onenand node needs 'ti,omap2-onenand' compatible (for mailine boards this is done in patch 2) - to use R/B pin, rb-gpios needs to be specified (for n900 and n8x0 this is done in patch 16, however patch lacks pinmux configuration. Most notable changes from previous version: - added dmaengine patches by Peter Ujfalusi - added dt bindings documentation - added cleanup patches - DMA enabled by default Also note that driver will fail probe OneNAND chip after patch 13 and start working again after patch 14. Testing and benchmarking very welcome. Depends on "memory: omap-gpmc: Make 'bank-width' property optional" https://patchwork.kernel.org/patch/10043259/ Ladislav Michl (13): dt-bindings: mtd: gpmc-onenand: Update properties description ARM: dts: OMAP2+: Add compatible property to onenand node ARM: dts: omap3-igep: Update onenand node timings mtd: onenand: omap2: Remove regulator support mtd: onenand: omap2: Remove skip initial unlocking support mtd: onenand: omap2: Remove partitioning support from platform data mtd: onenand: omap2: Account waiting time as waiting on IO mtd: onenand: omap2: Unify OMAP2 and OMAP3 DMA implementation mtd: onenand: omap2: Do not make delay for GPIO OMAP3 specific memory: omap-gpmc: Refactor OneNAND support mtd: onenand: omap2: Configure driver from DT ARM: OMAP2+: Remove gpmc-onenand ARM: dts: Nokia: Use R/B pin Peter Ujfalusi (2): mtd: onenand: omap2: Simplify the DMA setup for various paths mtd: onenand: omap2: Convert to use dmaengine for memcpy .../devicetree/bindings/mtd/gpmc-onenand.txt | 6 +- arch/arm/boot/dts/omap2420-n8x0-common.dtsi | 5 +- arch/arm/boot/dts/omap3-igep.dtsi | 30 +- arch/arm/boot/dts/omap3-n900.dts | 2 + arch/arm/boot/dts/omap3-n950-n9.dtsi | 1 + arch/arm/boot/dts/omap3430-sdp.dts | 1 + arch/arm/mach-omap2/Makefile | 3 - arch/arm/mach-omap2/gpmc-onenand.c | 409 --------------- drivers/memory/omap-gpmc.c | 158 ++++-- drivers/mtd/onenand/omap2.c | 580 ++++++++------------- include/linux/omap-gpmc.h | 25 + include/linux/platform_data/mtd-onenand-omap2.h | 34 -- 12 files changed, 389 insertions(+), 865 deletions(-) delete mode 100644 arch/arm/mach-omap2/gpmc-onenand.c delete mode 100644 include/linux/platform_data/mtd-onenand-omap2.h -- 2.11.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
WARNING: multiple messages have this Message-ID (diff)
From: Ladislav Michl <ladis@linux-mips.org> To: linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org Cc: Roger Quadros <rogerq@ti.com>, Tony Lindgren <tony@atomide.com>, Peter Ujfalusi <peter.ujfalusi@ti.com>, Boris Brezillon <boris.brezillon@free-electrons.com>, Kyungmin Park <kyungmin.park@samsung.com> Subject: [PATCH v4 00/16] OMAP2+ OneNAND driver update Date: Sat, 11 Nov 2017 22:12:06 +0100 [thread overview] Message-ID: <20171111211206.465pgorrjp3eyix6@lenoch> (raw) Hi there, this patch serie updates OMAP2+ OneNAND driver to the present times, making it fully DT configurable, using libgpio and dmaengine apis. Please note that unlike previous driver version, which basically ignored DT specified timings, this one relies on it, so it is important to get it right in your DT (dumping it from previous kernel version). In case synchronous timings is requested, it is okay to specify timings for the slowest chip ever used for you board as it is evetually optimized after chip probe. Original driver used DMA only if user specified r/b gpio in platform data, now DMA is used unconditionally and PIO mode is used as fallback. In case anyone wants to give it a try, few DT related changes are needed: - onenand node needs 'ti,omap2-onenand' compatible (for mailine boards this is done in patch 2) - to use R/B pin, rb-gpios needs to be specified (for n900 and n8x0 this is done in patch 16, however patch lacks pinmux configuration. Most notable changes from previous version: - added dmaengine patches by Peter Ujfalusi - added dt bindings documentation - added cleanup patches - DMA enabled by default Also note that driver will fail probe OneNAND chip after patch 13 and start working again after patch 14. Testing and benchmarking very welcome. Depends on "memory: omap-gpmc: Make 'bank-width' property optional" https://patchwork.kernel.org/patch/10043259/ Ladislav Michl (13): dt-bindings: mtd: gpmc-onenand: Update properties description ARM: dts: OMAP2+: Add compatible property to onenand node ARM: dts: omap3-igep: Update onenand node timings mtd: onenand: omap2: Remove regulator support mtd: onenand: omap2: Remove skip initial unlocking support mtd: onenand: omap2: Remove partitioning support from platform data mtd: onenand: omap2: Account waiting time as waiting on IO mtd: onenand: omap2: Unify OMAP2 and OMAP3 DMA implementation mtd: onenand: omap2: Do not make delay for GPIO OMAP3 specific memory: omap-gpmc: Refactor OneNAND support mtd: onenand: omap2: Configure driver from DT ARM: OMAP2+: Remove gpmc-onenand ARM: dts: Nokia: Use R/B pin Peter Ujfalusi (2): mtd: onenand: omap2: Simplify the DMA setup for various paths mtd: onenand: omap2: Convert to use dmaengine for memcpy .../devicetree/bindings/mtd/gpmc-onenand.txt | 6 +- arch/arm/boot/dts/omap2420-n8x0-common.dtsi | 5 +- arch/arm/boot/dts/omap3-igep.dtsi | 30 +- arch/arm/boot/dts/omap3-n900.dts | 2 + arch/arm/boot/dts/omap3-n950-n9.dtsi | 1 + arch/arm/boot/dts/omap3430-sdp.dts | 1 + arch/arm/mach-omap2/Makefile | 3 - arch/arm/mach-omap2/gpmc-onenand.c | 409 --------------- drivers/memory/omap-gpmc.c | 158 ++++-- drivers/mtd/onenand/omap2.c | 580 ++++++++------------- include/linux/omap-gpmc.h | 25 + include/linux/platform_data/mtd-onenand-omap2.h | 34 -- 12 files changed, 389 insertions(+), 865 deletions(-) delete mode 100644 arch/arm/mach-omap2/gpmc-onenand.c delete mode 100644 include/linux/platform_data/mtd-onenand-omap2.h -- 2.11.0
next reply other threads:[~2017-11-11 21:12 UTC|newest] Thread overview: 114+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-11-11 21:12 Ladislav Michl [this message] 2017-11-11 21:12 ` [PATCH v4 00/16] OMAP2+ OneNAND driver update Ladislav Michl 2017-11-11 21:17 ` [PATCH v4 02/16] ARM: dts: OMAP2+: Add compatible property to onenand node Ladislav Michl 2017-11-11 21:17 ` Ladislav Michl 2017-11-14 15:11 ` Roger Quadros 2017-11-14 15:11 ` Roger Quadros 2017-11-14 23:01 ` Ladislav Michl 2017-11-14 23:01 ` Ladislav Michl 2017-11-14 21:39 ` Tony Lindgren 2017-11-14 21:39 ` Tony Lindgren 2017-11-11 21:18 ` [PATCH v4 03/16] ARM: dts: omap3-igep: Update onenand node timings Ladislav Michl 2017-11-11 21:18 ` Ladislav Michl 2017-11-14 15:12 ` Roger Quadros 2017-11-14 15:12 ` Roger Quadros 2017-11-14 21:39 ` Tony Lindgren 2017-11-14 21:39 ` Tony Lindgren 2017-11-11 21:19 ` [PATCH v4 04/16] mtd: onenand: omap2: Remove regulator support Ladislav Michl 2017-11-11 21:19 ` Ladislav Michl 2017-11-14 15:13 ` Roger Quadros 2017-11-14 15:13 ` Roger Quadros 2017-11-15 14:15 ` Sebastian Reichel 2017-11-15 14:15 ` Sebastian Reichel 2017-11-11 21:19 ` [PATCH v4 05/16] mtd: onenand: omap2: Remove skip initial unlocking support Ladislav Michl 2017-11-11 21:19 ` Ladislav Michl 2017-11-14 15:14 ` Roger Quadros 2017-11-14 15:14 ` Roger Quadros 2017-11-15 14:16 ` Sebastian Reichel 2017-11-15 14:16 ` Sebastian Reichel 2017-11-11 21:20 ` [PATCH v4 06/16] mtd: onenand: omap2: Remove partitioning support from platform data Ladislav Michl 2017-11-11 21:20 ` Ladislav Michl 2017-11-14 15:14 ` Roger Quadros 2017-11-14 15:14 ` Roger Quadros 2017-11-15 14:57 ` Sebastian Reichel 2017-11-15 14:57 ` Sebastian Reichel 2017-11-11 21:20 ` [PATCH v4 07/16] mtd: onenand: omap2: Account waiting time as waiting on IO Ladislav Michl 2017-11-11 21:20 ` Ladislav Michl 2017-11-14 15:18 ` Roger Quadros 2017-11-14 15:18 ` Roger Quadros 2017-11-15 15:00 ` Sebastian Reichel 2017-11-15 15:00 ` Sebastian Reichel 2017-11-11 21:21 ` [PATCH v4 08/16] mtd: onenand: omap2: Simplify the DMA setup for various paths Ladislav Michl 2017-11-11 21:21 ` Ladislav Michl 2017-11-15 8:35 ` Roger Quadros 2017-11-15 8:35 ` Roger Quadros 2017-11-15 15:05 ` Sebastian Reichel 2017-11-15 15:05 ` Sebastian Reichel 2017-11-11 21:22 ` [PATCH v4 09/16] mtd: onenand: omap2: Unify OMAP2 and OMAP3 DMA implementation Ladislav Michl 2017-11-11 21:22 ` Ladislav Michl 2017-11-15 8:38 ` Roger Quadros 2017-11-15 8:38 ` Roger Quadros 2017-11-15 15:07 ` Sebastian Reichel 2017-11-15 15:07 ` Sebastian Reichel 2017-11-11 21:23 ` [PATCH v4 10/16] mtd: onenand: omap2: Convert to use dmaengine for memcpy Ladislav Michl 2017-11-11 21:23 ` Ladislav Michl 2017-11-15 8:57 ` Roger Quadros 2017-11-15 8:57 ` Roger Quadros 2017-11-15 9:32 ` Ladislav Michl 2017-11-15 9:32 ` Ladislav Michl 2017-11-15 15:19 ` Sebastian Reichel 2017-11-15 15:19 ` Sebastian Reichel 2017-11-11 21:24 ` [PATCH v4 11/16] mtd: onenand: omap2: Do not make delay for GPIO OMAP3 specific Ladislav Michl 2017-11-11 21:24 ` Ladislav Michl 2017-11-15 9:31 ` Roger Quadros 2017-11-15 9:31 ` Roger Quadros 2017-11-15 15:20 ` Sebastian Reichel 2017-11-15 15:20 ` Sebastian Reichel 2017-11-11 21:24 ` [PATCH v4 12/16] mtd: onenand: omap2: Enable DMA by default Ladislav Michl 2017-11-11 21:24 ` Ladislav Michl 2017-11-15 10:08 ` Roger Quadros 2017-11-15 10:08 ` Roger Quadros 2017-11-15 10:32 ` Ladislav Michl 2017-11-15 10:32 ` Ladislav Michl 2017-11-15 10:43 ` Roger Quadros 2017-11-15 10:43 ` Roger Quadros 2017-11-27 18:21 ` Ladislav Michl 2017-11-27 18:21 ` Ladislav Michl 2017-11-15 10:44 ` Roger Quadros 2017-11-15 10:44 ` Roger Quadros 2017-11-11 21:26 ` [PATCH v4 13/16] memory: omap-gpmc: Refactor OneNAND support Ladislav Michl 2017-11-11 21:26 ` Ladislav Michl 2017-11-15 10:13 ` Roger Quadros 2017-11-15 10:13 ` Roger Quadros 2017-11-15 10:37 ` Ladislav Michl 2017-11-15 10:37 ` Ladislav Michl 2017-11-11 21:27 ` [PATCH v4 14/16] mtd: onenand: omap2: Configure driver from DT Ladislav Michl 2017-11-11 21:27 ` Ladislav Michl 2017-11-15 10:40 ` Roger Quadros 2017-11-15 10:40 ` Roger Quadros 2017-11-15 10:53 ` Ladislav Michl 2017-11-15 10:53 ` Ladislav Michl 2017-11-15 11:04 ` Roger Quadros 2017-11-15 11:04 ` Roger Quadros 2017-11-15 11:20 ` Ladislav Michl 2017-11-15 11:20 ` Ladislav Michl 2017-11-15 14:41 ` Roger Quadros 2017-11-15 14:41 ` Roger Quadros 2017-11-11 21:29 ` [PATCH v4 15/16] ARM: OMAP2+: Remove gpmc-onenand Ladislav Michl 2017-11-11 21:29 ` Ladislav Michl 2017-11-14 21:41 ` Tony Lindgren 2017-11-14 21:41 ` Tony Lindgren 2017-11-15 10:46 ` Roger Quadros 2017-11-15 10:46 ` Roger Quadros 2017-11-11 21:29 ` [PATCH v4 16/16] ARM: dts: Nokia: Use R/B pin Ladislav Michl 2017-11-11 21:29 ` Ladislav Michl 2017-11-14 21:42 ` Tony Lindgren 2017-11-14 21:42 ` Tony Lindgren 2017-11-14 22:46 ` Ladislav Michl 2017-11-14 22:46 ` Ladislav Michl 2017-11-14 21:48 ` [PATCH v4 00/16] OMAP2+ OneNAND driver update Tony Lindgren 2017-11-14 21:48 ` Tony Lindgren 2017-11-14 22:53 ` Ladislav Michl 2017-11-14 22:53 ` Ladislav Michl 2017-11-15 8:10 ` Peter Ujfalusi 2017-11-15 8:10 ` Peter Ujfalusi
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=20171111211206.465pgorrjp3eyix6@lenoch \ --to=ladis@linux-mips.org \ --cc=boris.brezillon@free-electrons.com \ --cc=kyungmin.park@samsung.com \ --cc=linux-mtd@lists.infradead.org \ --cc=linux-omap@vger.kernel.org \ --cc=peter.ujfalusi@ti.com \ --cc=rogerq@ti.com \ --cc=tony@atomide.com \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.