]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: berlin: add the pinctrl node and muxing setup for uarts
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Sun, 18 May 2014 18:15:57 +0000 (20:15 +0200)
committerSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Mon, 19 May 2014 21:02:31 +0000 (23:02 +0200)
Add pinctrl bindings and system control nodes to what we currently know
about Berlin SoCs. Where available, also set default pinctrl property
for uarts, when there is only one pinmux option for it.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
arch/arm/boot/dts/berlin2.dtsi
arch/arm/boot/dts/berlin2cd.dtsi
arch/arm/boot/dts/berlin2q.dtsi

index 591d4b8c1c2b39dc6cc1843244046b6688d282a9..2477dac4d643ec7659bb4b9746349c0b6a64cec7 100644 (file)
                                reg-io-width = <1>;
                                interrupts = <8>;
                                clocks = <&refclk>;
+                               pinctrl-0 = <&uart0_pmux>;
+                               pinctrl-names = "default";
                                status = "disabled";
                        };
 
                                reg-io-width = <1>;
                                interrupts = <9>;
                                clocks = <&refclk>;
+                               pinctrl-0 = <&uart1_pmux>;
+                               pinctrl-names = "default";
                                status = "disabled";
                        };
 
                                reg-io-width = <1>;
                                interrupts = <10>;
                                clocks = <&refclk>;
+                               pinctrl-0 = <&uart2_pmux>;
+                               pinctrl-names = "default";
                                status = "disabled";
                        };
 
+                       sysctrl: system-controller@d000 {
+                               compatible = "marvell,berlin2-system-ctrl";
+                               reg = <0xd000 0x100>;
+
+                               uart0_pmux: uart0-pmux {
+                                       groups = "GSM4";
+                                       function = "uart0";
+                               };
+
+                               uart1_pmux: uart1-pmux {
+                                       groups = "GSM5";
+                                       function = "uart1";
+                               };
+
+                               uart2_pmux: uart2-pmux {
+                                       groups = "GSM3";
+                                       function = "uart2";
+                               };
+                       };
+
                        sic: interrupt-controller@e000 {
                                compatible = "snps,dw-apb-ictl";
                                reg = <0xe000 0x400>;
index 1385caa6d0293ae12bb808076d87bc0234e39dda..cc1df65da504327578637068732e441d3e06af77 100644 (file)
                        reg = <0xea0000 0x400>;
                        clocks = <&refclk>;
                        clock-names = "refclk";
+
+                       uart0_pmux: uart0-pmux {
+                               groups = "G6";
+                               function = "uart0";
+                       };
                };
 
                apb@fc0000 {
                                reg-io-width = <1>;
                                interrupts = <8>;
                                clocks = <&refclk>;
+                               pinctrl-0 = <&uart0_pmux>;
+                               pinctrl-names = "default";
                                status = "disabled";
                        };
 
                                status = "disabled";
                        };
 
+                       sysctrl: system-controller@d000 {
+                               compatible = "marvell,berlin2cd-system-ctrl";
+                               reg = <0xd000 0x100>;
+                       };
+
                        sic: interrupt-controller@e000 {
                                compatible = "snps,dw-apb-ictl";
                                reg = <0xe000 0x400>;
index cd3287c95f1a38d0cdc3ba7b3de62c4d39abdcb5..81712f5954ef08b3a5bd59de01b9c6837f92195a 100644 (file)
                                interrupts = <8>;
                                clocks = <&refclk>;
                                reg-shift = <2>;
+                               pinctrl-0 = <&uart0_pmux>;
+                               pinctrl-names = "default";
                                status = "disabled";
                        };
 
                                interrupts = <9>;
                                clocks = <&refclk>;
                                reg-shift = <2>;
+                               pinctrl-0 = <&uart1_pmux>;
+                               pinctrl-names = "default";
                                status = "disabled";
                        };
 
+                       sysctrl: pin-controller@d000 {
+                               compatible = "marvell,berlin2q-system-ctrl";
+                               reg = <0xd000 0x100>;
+
+                               uart0_pmux: uart0-pmux {
+                                       groups = "GSM12";
+                                       function = "uart0";
+                               };
+
+                               uart1_pmux: uart1-pmux {
+                                       groups = "GSM14";
+                                       function = "uart1";
+                               };
+                       };
+
                        sic: interrupt-controller@e000 {
                                compatible = "snps,dw-apb-ictl";
                                reg = <0xe000 0x30>;