arm64: dts: mt8183: add pinctrl device node
authorZhiyong Tao <zhiyong.tao@mediatek.com>
Mon, 27 May 2019 09:04:44 +0000 (17:04 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 21 Jun 2019 15:39:51 +0000 (17:39 +0200)
The commit adds pinctrl device node for mt8183

Signed-off-by: Zhiyong Tao <zhiyong.tao@mediatek.com>
Signed-off-by: Erin Lo <erin.lo@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183.dtsi

index 5b34ec6aad30d5aeedda04c6146478a0a0d2e854..e74ea21ffa780d855affd4b618413b995a628487 100644 (file)
@@ -8,6 +8,7 @@
 #include <dt-bindings/clock/mt8183-clk.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/interrupt-controller/irq.h>
+#include "mt8183-pinfunc.h"
 
 / {
        compatible = "mediatek,mt8183";
                        #clock-cells = <1>;
                };
 
+               pio: pinctrl@10005000 {
+                       compatible = "mediatek,mt8183-pinctrl";
+                       reg = <0 0x10005000 0 0x1000>,
+                             <0 0x11f20000 0 0x1000>,
+                             <0 0x11e80000 0 0x1000>,
+                             <0 0x11e70000 0 0x1000>,
+                             <0 0x11e90000 0 0x1000>,
+                             <0 0x11d30000 0 0x1000>,
+                             <0 0x11d20000 0 0x1000>,
+                             <0 0x11c50000 0 0x1000>,
+                             <0 0x11f30000 0 0x1000>,
+                             <0 0x1000b000 0 0x1000>;
+                       reg-names = "iocfg0", "iocfg1", "iocfg2",
+                                   "iocfg3", "iocfg4", "iocfg5",
+                                   "iocfg6", "iocfg7", "iocfg8",
+                                   "eint";
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pio 0 0 192>;
+                       interrupt-controller;
+                       interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
+                       #interrupt-cells = <2>;
+               };
+
                apmixedsys: syscon@1000c000 {
                        compatible = "mediatek,mt8183-apmixedsys", "syscon";
                        reg = <0 0x1000c000 0 0x1000>;