aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Ebalard <arno@natisbad.org>2014-11-21 18:46:10 -0500
committerJason Cooper <jason@lakedaemon.net>2014-11-21 23:32:11 -0500
commita6fa8475511b556ef1130de7529c63acccc8fc65 (patch)
treedaf3c4df840d1a7b46087d518ecfea99356e4b06
parent4904a82a9399d037588162e6fb4b293fa6a37f7c (diff)
arm: mvebu: define and use common Armada 370 SPI pinctrl settings
This patch defines common Armada 370 pinctrl settings for spi0 and spi1 interfaces: spi0: MPP33-36 as default, MPP32,63-65 as available alternate config spi1: MPP49-52 as default Currently, the Armada 370 DB .dts file has no explicit pinctrl info for the spi0 interface used to access the flash on the board. The patch fixes that by also adding explicit pinctrl info (MPP32,63-65) for this SPI interface. 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. Suggested-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Arnaud Ebalard <arno@natisbad.org> Link: https://lkml.kernel.org/r/1e812eb63b37718e273463e22e4d7512f8f0b624.1416613429.git.arno@natisbad.org Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--arch/arm/boot/dts/armada-370-db.dts2
-rw-r--r--arch/arm/boot/dts/armada-370.dtsi32
2 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/armada-370-db.dts b/arch/arm/boot/dts/armada-370-db.dts
index 472b7434e80c..1466580be295 100644
--- a/arch/arm/boot/dts/armada-370-db.dts
+++ b/arch/arm/boot/dts/armada-370-db.dts
@@ -112,6 +112,8 @@
112 }; 112 };
113 113
114 spi0: spi@10600 { 114 spi0: spi@10600 {
115 pinctrl-0 = <&spi0_pins2>;
116 pinctrl-names = "default";
115 status = "okay"; 117 status = "okay";
116 118
117 spi-flash@0 { 119 spi-flash@0 {
diff --git a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi
index ecf0bf153fec..49ac064d2f33 100644
--- a/arch/arm/boot/dts/armada-370.dtsi
+++ b/arch/arm/boot/dts/armada-370.dtsi
@@ -99,6 +99,20 @@
99 wt-override; 99 wt-override;
100 }; 100 };
101 101
102 /*
103 * Default SPI pinctrl setting, can be overwritten on
104 * board level if a different configuration is used.
105 */
106 spi0: spi@10600 {
107 pinctrl-0 = <&spi0_pins1>;
108 pinctrl-names = "default";
109 };
110
111 spi1: spi@10680 {
112 pinctrl-0 = <&spi1_pins>;
113 pinctrl-names = "default";
114 };
115
102 i2c0: i2c@11000 { 116 i2c0: i2c@11000 {
103 reg = <0x11000 0x20>; 117 reg = <0x11000 0x20>;
104 }; 118 };
@@ -250,6 +264,24 @@
250&pinctrl { 264&pinctrl {
251 compatible = "marvell,mv88f6710-pinctrl"; 265 compatible = "marvell,mv88f6710-pinctrl";
252 266
267 spi0_pins1: spi0-pins1 {
268 marvell,pins = "mpp33", "mpp34",
269 "mpp35", "mpp36";
270 marvell,function = "spi0";
271 };
272
273 spi0_pins2: spi0_pins2 {
274 marvell,pins = "mpp32", "mpp63",
275 "mpp64", "mpp65";
276 marvell,function = "spi0";
277 };
278
279 spi1_pins: spi1-pins {
280 marvell,pins = "mpp49", "mpp50",
281 "mpp51", "mpp52";
282 marvell,function = "spi1";
283 };
284
253 sdio_pins1: sdio-pins1 { 285 sdio_pins1: sdio-pins1 {
254 marvell,pins = "mpp9", "mpp11", "mpp12", 286 marvell,pins = "mpp9", "mpp11", "mpp12",
255 "mpp13", "mpp14", "mpp15"; 287 "mpp13", "mpp14", "mpp15";