]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm: dts: mt7623: add pinctrl nodes to the mt7623 dtsi file
authorJohn Crispin <john@phrozen.org>
Wed, 26 Apr 2017 09:25:51 +0000 (17:25 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 15 May 2017 08:47:08 +0000 (10:47 +0200)
Add pin controller node to the mt7623.dtsi file

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/boot/dts/mt7623.dtsi

index adb23932c2caf2e346fef1e3f3e435a690e48301..e77e242b3de109a99117ff083d5aaa39fe052c64 100644 (file)
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/clock/mt2701-clk.h>
+#include <dt-bindings/pinctrl/mt7623-pinfunc.h>
 #include <dt-bindings/power/mt2701-power.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/phy/phy.h>
 #include <dt-bindings/reset/mt2701-resets.h>
 #include "skeleton64.dtsi"
 
                #reset-cells = <1>;
        };
 
+       pio: pinctrl@10005000 {
+               compatible = "mediatek,mt7623-pinctrl",
+                            "mediatek,mt2701-pinctrl";
+               reg = <0 0x1000b000 0 0x1000>;
+               mediatek,pctl-regmap = <&syscfg_pctl_a>;
+               pins-are-numbered;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               interrupt-parent = <&gic>;
+               #interrupt-cells = <2>;
+               interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
+       };
+
+       syscfg_pctl_a: syscfg@10005000 {
+               compatible = "mediatek,mt7623-pctl-a-syscfg", "syscon";
+               reg = <0 0x10005000 0 0x1000>;
+       };
+
        scpsys: scpsys@10006000 {
                compatible = "mediatek,mt7623-scpsys",
                             "mediatek,mt2701-scpsys",