ARM: dts: apq8064: move sdcc3 pinctrls out of baord file
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 10 Jun 2016 09:38:35 +0000 (10:38 +0100)
committerAndy Gross <andy.gross@linaro.org>
Mon, 27 Jun 2016 22:36:51 +0000 (17:36 -0500)
This patch move sdcc3 pinctrl nodes out of board file, so that
other boards do not duplicate the same thing.

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
arch/arm/boot/dts/qcom-apq8064-sony-xperia-yuga.dts

index ca683e56b8877dbf2bc87402c592852a63da1922..6b801e7e57a2103f8cfb9f00a21bf071d25c71a7 100644 (file)
                };
        };
 
+       sdcc3_pins: sdcc3-pin-active {
+               clk {
+                       pins = "sdc3_clk";
+                       drive-strengh = <8>;
+                       bias-disable;
+               };
+
+               cmd {
+                       pins = "sdc3_cmd";
+                       drive-strengh = <8>;
+                       bias-pull-up;
+               };
+
+               data {
+                       pins = "sdc3_data";
+                       drive-strengh = <8>;
+                       bias-pull-up;
+               };
+       };
+
        ps_hold: ps_hold {
                mux {
                        pins = "gpio78";
index 93d08b9a77c938d29dcb67dd75ef25687979abb7..ebd675ca94b4ec3e217eb6b9f6011dabdc44f2eb 100644 (file)
                        };
 
 
-                       sdcc3_pin_a: sdcc3-pin-active {
-                               clk {
-                                       pins = "sdc3_clk";
-                                       drive-strengh = <8>;
-                                       bias-disable;
-                               };
-
-                               cmd {
-                                       pins = "sdc3_cmd";
-                                       drive-strengh = <8>;
-                                       bias-pull-up;
-                               };
-
-                               data {
-                                       pins = "sdc3_data";
-                                       drive-strengh = <8>;
-                                       bias-pull-up;
-                               };
-                       };
-
                        sdcc3_cd_pin_a: sdcc3-cd-pin-active {
                                pins = "gpio26";
                                function = "gpio";
                                cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
 
                                pinctrl-names = "default";
-                               pinctrl-0 = <&sdcc3_pin_a>, <&sdcc3_cd_pin_a>;
+                               pinctrl-0 = <&sdcc3_pins>, <&sdcc3_cd_pin_a>;
                        };
                };
        };