aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-06-01 11:30:52 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-01 13:16:23 +0200
commit4b2fbed7202aacc4aa3fbfec4c1984347f5d8712 (patch)
tree92d7e035d9ee397a06d967b46c6b7bfa970fe85f /drivers/staging
parentstaging: mt7621-gpio: update #interrupt-cells for the gpio node (diff)
downloadlinux-dev-4b2fbed7202aacc4aa3fbfec4c1984347f5d8712.tar.xz
linux-dev-4b2fbed7202aacc4aa3fbfec4c1984347f5d8712.zip
staging: mt7621-gpio: dt-bindings: update documentation for #interrupt-cells property
This commit update documentation for #interrupt-cells property in the gpio node which has been changed from '1' to '2'. 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')
-rw-r--r--drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt b/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt
index 94caba74de12..30d8a0225aa1 100644
--- a/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt
+++ b/drivers/staging/mt7621-gpio/mediatek,mt7621-gpio.txt
@@ -15,7 +15,13 @@ Required properties for the top level node:
- interrupt-parent : phandle of the parent interrupt controller.
- interrupts : Interrupt specifier for the controllers interrupt.
- interrupt-controller : Mark the device node as an interrupt controller.
-- #interrupt-cells : Should be 1. The first cell is the GPIO number.
+- #interrupt-cells : Should be 2. The first cell defines the interrupt number.
+ The second cell bits[3:0] is used to specify trigger type as follows:
+ - 1 = low-to-high edge triggered.
+ - 2 = high-to-low edge triggered.
+ - 4 = active high level-sensitive.
+ - 8 = active low level-sensitive.
+
Required properties for the GPIO bank node:
- compatible:
@@ -37,7 +43,7 @@ Example:
interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
- #interrupt-cells = <1>;
+ #interrupt-cells = <2>;
gpio0: bank@0 {
reg = <0>;