mtd: rawnand: ingenic: Fix the RB gpio active-high property on qi, lb60
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 19 May 2020 23:24:53 +0000 (01:24 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:36 +0000 (10:53 +0200)
commit2e263011017cb22c0e7b65af791aae8cb5e1098a
tree2a69b17f179cebc5a8965401113f7822e85d2bc0
parent9fdd78f7bcda3e6a9f53c355529b3bf037c0e24f
mtd: rawnand: ingenic: Fix the RB gpio active-high property on qi, lb60

The rb-gpios semantics was undocumented and qi,lb60 (along with the
ingenic driver) got it wrong. The active state encodes the NAND ready
state, which is high level. Since there's no signal inverter on this
board, it should be active-high. Let's fix that here for older DTs so
we can re-use the generic nand_gpio_waitrdy() helper, and be consistent
with what other drivers do.

Suggested-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200519232454.374081-3-boris.brezillon@collabora.com
drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c