All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Tudor Ambarus <Tudor.Ambarus@microchip.com>,
	<linux-mtd@lists.infradead.org>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Subject: [RESEND v3 0/4] Bring GPIO CS support to the Arasan controller driver
Date: Wed, 26 May 2021 11:32:38 +0200	[thread overview]
Message-ID: <20210526093242.183847-1-miquel.raynal@bootlin.com> (raw)

[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


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

             reply	other threads:[~2021-05-26 11:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-26  9:32 Miquel Raynal [this message]
2021-05-26  9:32 ` [RESEND v3 1/4] mtd: rawnand: Move struct gpio_desc declaration to the top Miquel Raynal
2021-05-26 14:34   ` Miquel Raynal
2021-05-26  9:32 ` [RESEND v3 2/4] mtd: rawnand: Add a helper to parse the gpio-cs DT property Miquel Raynal
2021-05-26 14:34   ` Miquel Raynal
2021-05-26  9:32 ` [RESEND v3 3/4] mtd: rawnand: arasan: Ensure proper configuration for the asserted target Miquel Raynal
2021-05-26 14:34   ` Miquel Raynal
2021-05-26  9:32 ` [RESEND v3 4/4] mtd: rawnand: arasan: Leverage additional GPIO CS Miquel Raynal
2021-05-26 14:34   ` Miquel Raynal

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=20210526093242.183847-1-miquel.raynal@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=Tudor.Ambarus@microchip.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    --cc=vigneshr@ti.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: link
Be 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.