All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] MIPS: mscc: ocelot: add interrupt controller properties to GPIO controller
@ 2018-07-25 12:26 Quentin Schulz
  2018-07-25 12:26 ` [PATCH 2/2] pinctrl: ocelot: add support for interrupt controller Quentin Schulz
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Quentin Schulz @ 2018-07-25 12:26 UTC (permalink / raw)
  To: alexandre.belloni, robh+dt, mark.rutland, linus.walleij
  Cc: ralf, paul.burton, jhogan, linux-gpio, linux-mips, devicetree,
	linux-kernel, thomas.petazzoni, Quentin Schulz

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>
---
 arch/mips/boot/dts/mscc/ocelot.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mips/boot/dts/mscc/ocelot.dtsi
index d7f0e3551500..afe8fc9011ea 100644
--- a/arch/mips/boot/dts/mscc/ocelot.dtsi
+++ b/arch/mips/boot/dts/mscc/ocelot.dtsi
@@ -168,6 +168,9 @@
 			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";
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-08-06 12:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-25 12:26 [PATCH 1/2] MIPS: mscc: ocelot: add interrupt controller properties to GPIO controller Quentin Schulz
2018-07-25 12:26 ` [PATCH 2/2] pinctrl: ocelot: add support for interrupt controller Quentin Schulz
2018-08-06 11:06   ` Linus Walleij
2018-08-06 11:06     ` Linus Walleij
2018-08-06 12:10     ` Quentin Schulz
2018-08-06 12:10       ` Quentin Schulz
2018-07-27 10:36 ` [PATCH 1/2] MIPS: mscc: ocelot: add interrupt controller properties to GPIO controller Alexandre Belloni
2018-07-29 21:25 ` Linus Walleij
2018-07-29 21:25   ` Linus Walleij
2018-07-30 17:35 ` Paul Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.