OSDN Git Service

MIPS: ralink: mt7628a.dtsi: Add GPIO controller DT node
authorStefan Roese <sr@denx.de>
Mon, 27 May 2019 09:13:19 +0000 (11:13 +0200)
committerPaul Burton <paul.burton@mips.com>
Mon, 24 Jun 2019 21:15:06 +0000 (14:15 -0700)
This patch adds the GPIO controller description to the MT7628A dtsi file.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Paul Burton <paul.burton@mips.com>
Cc: Harvey Hunt <harveyhuntnexus@gmail.com>
Cc: John Crispin <john@phrozen.org>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/boot/dts/ralink/mt7628a.dtsi

index a239a24..0c2983c 100644 (file)
                        reg = <0x300 0x100>;
                };
 
+               gpio: gpio@600 {
+                       compatible = "mediatek,mt7621-gpio";
+                       reg = <0x600 0x100>;
+
+                       gpio-controller;
+                       interrupt-controller;
+                       #gpio-cells = <2>;
+                       #interrupt-cells = <2>;
+
+                       interrupt-parent = <&intc>;
+                       interrupts = <6>;
+               };
+
                uart0: uartlite@c00 {
                        compatible = "ns16550a";
                        reg = <0xc00 0x100>;