ARM: dts: apq8064: move pinctrls to dedicated dtsi
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 23 Feb 2016 14:14:07 +0000 (14:14 +0000)
committerAndy Gross <andy.gross@linaro.org>
Fri, 26 Feb 2016 19:15:48 +0000 (13:15 -0600)
As there are more pinctrls to come, moving these to dedicated dtsi makes
more sense.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-apq8064-pins.dtsi [new file with mode: 0644]
arch/arm/boot/dts/qcom-apq8064.dtsi

diff --git a/arch/arm/boot/dts/qcom-apq8064-pins.dtsi b/arch/arm/boot/dts/qcom-apq8064-pins.dtsi
new file mode 100644 (file)
index 0000000..c711aca
--- /dev/null
@@ -0,0 +1,58 @@
+
+&tlmm_pinmux {
+       sdc4_gpios: sdc4-gpios {
+               pios {
+                       pins = "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68";
+                       function = "sdc4";
+               };
+       };
+
+       ps_hold: ps_hold {
+               mux {
+                       pins = "gpio78";
+                       function = "ps_hold";
+               };
+       };
+
+       i2c1_pins: i2c1 {
+               mux {
+                       pins = "gpio20", "gpio21";
+                       function = "gsbi1";
+               };
+       };
+
+       i2c3_pins: i2c3 {
+               mux {
+                       pins = "gpio8", "gpio9";
+                       function = "gsbi3";
+               };
+       };
+
+       gsbi6_uart_2pins: gsbi6_uart_2pins {
+               mux {
+                       pins = "gpio14", "gpio15";
+                       function = "gsbi6";
+               };
+       };
+
+       gsbi6_uart_4pins: gsbi6_uart_4pins {
+               mux {
+                       pins = "gpio14", "gpio15", "gpio16", "gpio17";
+                       function = "gsbi6";
+               };
+       };
+
+       gsbi7_uart_2pins: gsbi7_uart_2pins {
+               mux {
+                       pins = "gpio82", "gpio83";
+                       function = "gsbi7";
+               };
+       };
+
+       gsbi7_uart_4pins: gsbi7_uart_4pins {
+               mux {
+                       pins = "gpio82", "gpio83", "gpio84", "gpio85";
+                       function = "gsbi7";
+               };
+       };
+};
index 02908608a8411928a70acbd0c1aba6a858904e4b..ec11d4b30d02427c7a58ac8d5a3a7ab7e45d088e 100644 (file)
 
                        pinctrl-names = "default";
                        pinctrl-0 = <&ps_hold>;
-
-                       sdc4_gpios: sdc4-gpios {
-                               pios {
-                                       pins = "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68";
-                                       function = "sdc4";
-                               };
-                       };
-
-                       ps_hold: ps_hold {
-                               mux {
-                                       pins = "gpio78";
-                                       function = "ps_hold";
-                               };
-                       };
-
-                       i2c1_pins: i2c1 {
-                               mux {
-                                       pins = "gpio20", "gpio21";
-                                       function = "gsbi1";
-                               };
-                       };
-
-                       i2c3_pins: i2c3 {
-                               mux {
-                                       pins = "gpio8", "gpio9";
-                                       function = "gsbi3";
-                               };
-                       };
-
-                       gsbi6_uart_2pins: gsbi6_uart_2pins {
-                               mux {
-                                       pins = "gpio14", "gpio15";
-                                       function = "gsbi6";
-                               };
-                       };
-
-                       gsbi6_uart_4pins: gsbi6_uart_4pins {
-                               mux {
-                                       pins = "gpio14", "gpio15", "gpio16", "gpio17";
-                                       function = "gsbi6";
-                               };
-                       };
-
-                       gsbi7_uart_2pins: gsbi7_uart_2pins {
-                               mux {
-                                       pins = "gpio82", "gpio83";
-                                       function = "gsbi7";
-                               };
-                       };
-
-                       gsbi7_uart_4pins: gsbi7_uart_4pins {
-                               mux {
-                                       pins = "gpio82", "gpio83", "gpio84", "gpio85";
-                                       function = "gsbi7";
-                               };
-                       };
                };
 
                sfpb_wrapper_mutex: syscon@1200000 {
                };
        };
 };
+#include "qcom-apq8064-pins.dtsi"