summaryrefslogtreecommitdiffstats
path: root/drivers/staging/mt7621-dts
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-06-01 11:30:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-01 13:16:23 +0200
commita7e09d3e8f5b7caa292c7cf0574b17d710c5a465 (patch)
tree0a140ab52aa01f045f63bf45429bda1b8d2686d1 /drivers/staging/mt7621-dts
parent94832e079521ba7275464b856506d51ba45a5a17 (diff)
downloadblackbird-op-linux-a7e09d3e8f5b7caa292c7cf0574b17d710c5a465.tar.gz
blackbird-op-linux-a7e09d3e8f5b7caa292c7cf0574b17d710c5a465.zip
staging: mt7621-gpio: update #interrupt-cells for the gpio node
Most gpio chips have two cells for interrupts and this should be also. Set this property in the device tree accordly fixing this up. In order to make this working properly the xlate function for the irq_domain must be updated to use the 'irq_domain_xlate_twocell' one in the driver. One more minimal change is needed two refer gpio's interrupt-parent from other nodes which is to add new 'gpio' label in the device tree. 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-dts')
-rw-r--r--drivers/staging/mt7621-dts/mt7621.dtsi4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi
index d7e49810f9e3..eb3966b7f033 100644
--- a/drivers/staging/mt7621-dts/mt7621.dtsi
+++ b/drivers/staging/mt7621-dts/mt7621.dtsi
@@ -60,7 +60,7 @@
reg = <0x100 0x100>;
};
- gpio@600 {
+ gpio: gpio@600 {
#address-cells = <1>;
#size-cells = <0>;
@@ -70,7 +70,7 @@
interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
- #interrupt-cells = <1>;
+ #interrupt-cells = <2>;
gpio0: bank@0 {
reg = <0>;
OpenPOWER on IntegriCloud