pinctrl: sunxi: Add custom irq_domain_ops
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 27 Jul 2015 12:41:57 +0000 (14:41 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 Jul 2015 12:56:30 +0000 (14:56 +0200)
commitd8323c6b03533ac870fb665277e6dad7ebf7e4d3
treedbcc13c86798dd0c310094179f3cc0658fd53f5d
parente324957096dbf5bbf1491231c9912c3f5d0bc216
pinctrl: sunxi: Add custom irq_domain_ops

The current interrupt parsing code was working by accident, because the
default was actually parsing the first node of interrupts.

While that was mostly working (and the flags were actually ignored), this
binding has never been documented, and doesn't work with SoCs that have
multiple interrupt banks anyway.

Add a proper interrupt xlate function, that uses the same description than
the GPIOs (<bank> <pin> <flags>), that will make things less confusing.

The EINT number will still be used as the hwirq number, but won't be
exposed through the DT.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt
drivers/pinctrl/sunxi/pinctrl-sunxi.c