arm: mvebu: define and use common Armada XP SPI pinctrl setting
authorArnaud Ebalard <arno@natisbad.org>
Fri, 21 Nov 2014 23:46:39 +0000 (00:46 +0100)
committerJason Cooper <jason@lakedaemon.net>
Sat, 22 Nov 2014 04:35:41 +0000 (04:35 +0000)
This patch defines common Armada XP pinctrl settings in armada-xp.dtsi
for the supported SPI interface (MPP36-39) and use it as default
for Armada XP spi interface. That being done, it removes the now
redundant definitions in armada-xp-axpwifiap.dts.

Note: this patch has the potential to break out-of-tree users w/o
specific pinctrl settings for their spi interfaces if the default
above does not match their config (i.e. if they do not use CS0).

Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
Link: https://lkml.kernel.org/r/d404b7abd80ee5a0fd8e8d3586d33cd37740d589.1416613429.git.arno@natisbad.org
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-xp-axpwifiap.dts
arch/arm/boot/dts/armada-xp.dtsi

index 0e53fad..c9d25bd 100644 (file)
 
                        spi0: spi@10600 {
                                status = "okay";
-                               pinctrl-0 = <&pmx_spi>;
-                               pinctrl-names = "default";
 
                                spi-flash@0 {
                                        #address-cells = <1>;
                marvell,function = "gpio";
        };
 
-       pmx_spi: pmx-spi {
-               marvell,pins = "mpp36", "mpp37", "mpp38", "mpp39";
-               marvell,function = "spi";
-       };
-
        pmx_phy_int: pmx-phy-int {
                marvell,pins = "mpp32";
                marvell,function = "gpio";
index 7cefb9b..bdb36a0 100644 (file)
                                wt-override;
                        };
 
+                       spi0: spi@10600 {
+                               pinctrl-0 = <&spi0_pins>;
+                               pinctrl-names = "default";
+                       };
+
                        i2c0: i2c@11000 {
                                compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
                                reg = <0x11000 0x100>;
                marvell,function = "sd0";
        };
 
+       spi0_pins: spi0-pins {
+               marvell,pins = "mpp36", "mpp37",
+                              "mpp38", "mpp39";
+               marvell,function = "spi";
+       };
+
        uart2_pins: uart2-pins {
                marvell,pins = "mpp42", "mpp43";
                marvell,function = "uart2";