]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
MIPS: mscc: ocelot: add interrupt controller properties to GPIO controller
authorQuentin Schulz <quentin.schulz@bootlin.com>
Wed, 25 Jul 2018 12:26:20 +0000 (14:26 +0200)
committerPaul Burton <paul.burton@mips.com>
Mon, 30 Jul 2018 17:34:28 +0000 (10:34 -0700)
The GPIO controller also serves as an interrupt controller for events
on the GPIO it handles.

An interrupt occurs whenever a GPIO line has changed.

Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20015/
Cc: robh+dt@kernel.org
Cc: mark.rutland@arm.com
Cc: ralf@linux-mips.org
Cc: jhogan@kernel.org
Cc: linux-gpio@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: thomas.petazzoni@bootlin.com
arch/mips/boot/dts/mscc/ocelot.dtsi

index d7f0e3551500f13efce185eafe2833e85e67bc1a..afe8fc9011eaeabff9fd0a47f6e4dbc7df8c8a68 100644 (file)
                        gpio-controller;
                        #gpio-cells = <2>;
                        gpio-ranges = <&gpio 0 0 22>;
+                       interrupt-controller;
+                       interrupts = <13>;
+                       #interrupt-cells = <2>;
 
                        uart_pins: uart-pins {
                                pins = "GPIO_6", "GPIO_7";