[RESEND v3 0/4] Bring GPIO CS support to the Arasan controller driver
Miquel Raynal
miquel.raynal at bootlin.com
Wed May 26 02:32:38 PDT 2021
[Resending because of this series not appearing in patchwork: I used the
wrong prefix with v2 instead of v3 in the cover letter and this seems to
confuse patchwork/lore.]
Hello,
This is a short series bringing a useful feature for drivers which are a
little bit constrained regarding their number of native CS. As
manufacturer tend to group chips in arrays to enlarge the overall
available space, it might be useful to other controller drivers to make
use of the added DT property (cs-gpios) as well as the core helper which
is being introduced to parse this DT property and returned a CS array
with either empty cells (native CS are being used) or a GPIO descriptor
structure pointer (GPIO CS).
This is applied to the Arasan NAND controller driver which involved a
little bit more boilerplate than estimated I thought due to its internal
constraints regarding the bond between CS and RB.
Cheers,
Miquèl
Resend:
* v3 was not properly parsed by patchwork, trying again, no changes in
the patches otherwise.
Changes in v3:
* Added a missing MODULE_EXPORT() reported by kernel test robot.
Changes in v2:
* Rebased on top of v5.13-rc1
* This time I'm CC'ing Rob + DT ML...
Miquel Raynal (4):
mtd: rawnand: Move struct gpio_desc declaration to the top
mtd: rawnand: Add a helper to parse the gpio-cs DT property
mtd: rawnand: arasan: Ensure proper configuration for the asserted
target
mtd: rawnand: arasan: Leverage additional GPIO CS
drivers/mtd/nand/raw/arasan-nand-controller.c | 238 +++++++++++++-----
drivers/mtd/nand/raw/nand_base.c | 39 +++
include/linux/mtd/rawnand.h | 6 +-
3 files changed, 226 insertions(+), 57 deletions(-)
--
2.27.0
More information about the linux-mtd
mailing list