aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/mt7621-gpio
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-05-20 15:00:23 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-25 18:49:32 +0200
commit10ca84f272319090b41c41370d7d847a319e0e9b (patch)
treed506c3212d2acd953df1d2d78d8d324533316d83 /drivers/staging/mt7621-gpio
parentstaging: mt7621-dts: add interrupt device tree nodes for the gpio controller (diff)
downloadlinux-dev-10ca84f272319090b41c41370d7d847a319e0e9b.tar.xz
linux-dev-10ca84f272319090b41c41370d7d847a319e0e9b.zip
staging: mt7621-gpio: dt-bindings: add interrupt nodes to bindings doc
Interrupt related stuff for gpio controller in mt7621 was missing in device tree documentation. Add it to complete documentation for this driver. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Reviewed-by: NeilBrown <neil@brown.name> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-gpio')
-rw-r--r--drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt b/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt
index 54de9f79bd1d..af640924585f 100644
--- a/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt
+++ b/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt
@@ -4,12 +4,16 @@ The IP core used inside these SoCs has 3 banks of 32 GPIOs each.
The registers of all the banks are interwoven inside one single IO range.
We load one GPIO controller instance per bank. To make this possible
we support 2 types of nodes. The parent node defines the memory I/O range and
-has 3 children each describing a single bank.
+has 3 children each describing a single bank. Also the GPIO controller can receive
+interrupts on any of the GPIOs, either edge or level. It then interrupts the CPU
+using GIC INT12.
Required properties for the top level node:
- compatible:
- "mediatek,mt7621-gpio" for Mediatek controllers
- reg : Physical base address and length of the controller's registers
+- interrupt-parent : phandle of the parent interrupt controller.
+- interrupts = Interrupt specifier for the controllers interrupt
Required properties for the GPIO bank node:
- compatible:
@@ -28,6 +32,9 @@ Example:
compatible = "mediatek,mt7621-gpio";
reg = <0x600 0x100>;
+ interrupt-parent = <&gic>;
+ interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
+
gpio0: bank@0 {
reg = <0>;
compatible = "mediatek,mt7621-gpio-bank";