gpio: 74x164: Add support for the daisy-chaining
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 10 Sep 2012 20:35:39 +0000 (22:35 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 11 Sep 2012 21:49:32 +0000 (23:49 +0200)
commit20bc4d5d565159eb2b942bf4b7fae86fba94e32c
tree863f5b79177c3e0bbb3b35268edb190d8acfe8fb
parenta7ff477bb7e5ec9536e8aac02e8856a4bcc595a3
gpio: 74x164: Add support for the daisy-chaining

The shift registers have an output pin that, when enabled, propagates
the values of its internal register to the pins. If another value comes
to the register while the output pin is disabled, this new value will
makae the older shift into the next register in the chain.

This patch adds support for daisy-chaining the registers, using the
regular SPI chip select mechanism to manage the output pin, and the
registers-number dt property to set the number of chained registers.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-74x164.c