pinctrl: sunxi: Add support for interrupt debouncing
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 14 Nov 2016 20:53:03 +0000 (21:53 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Nov 2016 09:23:02 +0000 (10:23 +0100)
commit7c926492d38a3feef4b4b29c91b7c03eb1b8b546
treedc8f3376d7b16c7c424517e25d639fddd8230400
parent51814827190214986c452a166718bf12d32211c7
pinctrl: sunxi: Add support for interrupt debouncing

The pin controller found in the Allwinner SoCs has support for interrupts
debouncing.

However, this is not done per-pin, preventing us from using the generic
pinconf binding for that, but per irq bank, which, depending on the SoC,
ranges from one to five.

Introduce a device-wide property to deal with this using a microsecond
resolution. We can re-use the per-pin input-debounce property for that, so
let's do it!

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt
drivers/pinctrl/sunxi/pinctrl-sunxi.c
drivers/pinctrl/sunxi/pinctrl-sunxi.h