gpio: uniphier: rework single device node model
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 13 Oct 2017 10:21:51 +0000 (19:21 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 15 Oct 2017 13:32:24 +0000 (22:32 +0900)
commitc5fb1c25249a68725cf76e98ccce316bdb8bbf61
treeddffca43787ba90f29afbc802535e02a786f9f24
parent83ee44ab9ece0980c1e75260a4185f635cc98ca9
gpio: uniphier: rework single device node model

First, I implemented this driver as per-bank model, but it was
a design mistake.

  - There are 31 banks in the maximum case.  It is painful to add
    so many nodes to DT.

  - The IRQ control registers are shared between banks.  Per-bank
    design is a problem for Linux.  The counterpart for Linux turned
    around to the single node model.

Rework based on the driver for Linux.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/gpio/gpio-uniphier.c