linux-stable/drivers/pinctrl/sunxi
Henry Paulissen 7866f5a0ba pinctrl: sunxi: Change mux setting on PI irq pins
While I was testing irq's on the cubietruck I found a couple of
not working irq pins. Further diving into the problem it opened
up a mess called "manual".

This so called manual (A20 user manual v1.3 dated 2014-10-10) says:

Pin overview:
    Page 237:       EINT26 is on mux 5.
    Page 288:       EINT26 is on mux 6.

The manual is so contradicting that further tests had to be made
to see which of the 2 statements where correct.

This patch is based on actual outcome of these tests and not what
the manual says.

Test procedure used:

Connect a 1 pulse per second (GPS) line to the pin.

echo pin### > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio###/direction
echo rising > /sys/class/gpio/gpio###/edge

Check /proc/interrupts if a irq was attached and if irq's where
received.

Hardware used:
Henry Paulissen: Cubietruck
Andere Przywara: BananaPi M1

Tested-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Henry Paulissen <henry@nitronetworks.nl>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2016-03-08 16:02:27 +07:00
..
Kconfig pinctrl: sunxi: Add H3 R_PIO controller support 2016-02-11 14:29:24 +01:00
Makefile pinctrl: sunxi: Add H3 R_PIO controller support 2016-02-11 14:29:24 +01:00
pinctrl-sun4i-a10.c pinctrl: sun4i: add spdif to pin description. 2015-08-13 16:03:21 +02:00
pinctrl-sun5i-a10s.c pinctrl: sun5i: Fix a10s pwm1 pinctrl mapping 2015-10-02 04:06:01 -07:00
pinctrl-sun5i-a13.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-sun6i-a31-r.c pinctrl: sunxi: Add irq pinmuxing to sun6i "r" pincontroller 2015-10-23 10:13:30 +02:00
pinctrl-sun6i-a31.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-sun6i-a31s.c pinctrl: Remove .owner field 2015-06-04 10:12:42 +02:00
pinctrl-sun7i-a20.c pinctrl: sunxi: Change mux setting on PI irq pins 2016-03-08 16:02:27 +07:00
pinctrl-sun8i-a23-r.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-sun8i-a23.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-sun8i-a33.c pinctrl: sunxi: Add allwinner A33 PIO controller support 2015-06-04 10:32:11 +02:00
pinctrl-sun8i-a83t.c pinctrl: sunxi: add allwinner A83T PIO controller support 2015-10-02 04:09:44 -07:00
pinctrl-sun8i-h3-r.c pinctrl: sunxi: Add H3 R_PIO controller support 2016-02-11 14:29:24 +01:00
pinctrl-sun8i-h3.c pinctrl: sunxi: Add H3 PIO controller support 2015-12-11 10:15:33 +01:00
pinctrl-sun9i-a80-r.c pinctrl: sunxi: Add A80 special pin controller 2015-12-22 10:28:11 +01:00
pinctrl-sun9i-a80.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-sunxi.c pinctrl: sunxi: Use pin number when calling sunxi_pmx_set 2016-02-11 14:30:29 +01:00
pinctrl-sunxi.h pinctrl: sun4i: GPIOs configured as irq must be set to input before reading 2015-03-18 10:56:46 +01:00