]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm64: dts: mt8173: Fixup pinctrl nodes
authorYingjoe Chen <yingjoe.chen@mediatek.com>
Fri, 1 May 2015 06:49:31 +0000 (14:49 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 4 May 2015 08:55:33 +0000 (10:55 +0200)
The 8173 pinctrl node doesn't follow dts convention. Fix them.
Also add a comment to explain pinctrl register usage to make it
more clear.

Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8173.dtsi

index 924fdb6673ff62a46616b59143f6785f4a3540aa..45951964965a4791d11028d267950b13cc35cc48 100644 (file)
                compatible = "simple-bus";
                ranges;
 
-               syscfg_pctl_a: syscfg_pctl_a@10005000 {
-                       compatible = "mediatek,mt8173-pctl-a-syscfg", "syscon";
-                       reg = <0 0x10005000 0 0x1000>;
-               };
-
-               pio: pinctrl@0x10005000 {
+               /*
+                * Pinctrl access register at 0x10005000 through regmap.
+                * Register 0x1000b000 is used by EINT.
+                */
+               pio: pinctrl@10005000 {
                        compatible = "mediatek,mt8173-pinctrl";
-                       reg = <0 0x1000B000 0 0x1000>;
+                       reg = <0 0x1000b000 0 0x1000>;
                        mediatek,pctl-regmap = <&syscfg_pctl_a>;
                        pins-are-numbered;
                        gpio-controller;
                        interrupt-controller;
                        #interrupt-cells = <2>;
                        interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
-                                               <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
-                                               <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
+                                    <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
+               };
+
+               syscfg_pctl_a: syscfg_pctl_a@10005000 {
+                       compatible = "mediatek,mt8173-pctl-a-syscfg", "syscon";
+                       reg = <0 0x10005000 0 0x1000>;
                };
 
                sysirq: intpol-controller@10200620 {