Thread (14 messages) 14 messages, 3 authors, 2021-05-26

Re: [PATCH v2 3/5] mtd: rawnand: Add a helper to parse the gpio-cs DT property

From: Miquel Raynal <miquel.raynal@bootlin.com>
Date: 2021-05-26 09:03:49

On Mon, 2021-05-10 at 10:40:49 UTC, Miquel Raynal wrote:
New chips may feature a lot of CS because of their extended length. As
many controllers have been designed a decade ago, they usually only
feature just a couple. This does not mean that the entire range of
these chips cannot be accessed: it is just a matter of adding more
GPIO CS in the hardware design. A DT property has been added to
describe the CS array: cs-gpios.

Here is the code parsing it this new property, allocating what needs to
be, requesting the GPIOs and returning an array with the additional
available CS. The first entries of this array are left empty and are
reserved for native CS.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next.

Miquel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help