aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-11-17 05:13:21 -0500
committerLinus Walleij <linus.walleij@linaro.org>2013-11-26 15:01:57 -0500
commitfd8f9eac9dca386f54dfeff94afd03c84ec72ca1 (patch)
tree1b92cf52f0c88f0ed4af58c9f885e2c15fc8e192
parenta48bf4b9fcf63a43e10f3c784d7349bb868ccc45 (diff)
ARM: ux500: convert Snowball SPI pin reference
The SPI0 block is not at all connected to the AB8500 on the Snowball: it is connected to the external header. These pins on the header may also be used for GPIO, but let's assume that SPI is a probable usecase on the Snowball and mux in the SPI block and use these for SPI. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--arch/arm/boot/dts/ste-snowball.dts28
-rw-r--r--arch/arm/mach-ux500/board-mop500-pins.c5
2 files changed, 28 insertions, 5 deletions
diff --git a/arch/arm/boot/dts/ste-snowball.dts b/arch/arm/boot/dts/ste-snowball.dts
index 4f5457a91589..744ab956059a 100644
--- a/arch/arm/boot/dts/ste-snowball.dts
+++ b/arch/arm/boot/dts/ste-snowball.dts
@@ -248,6 +248,11 @@
248 pinctrl-1 = <&i2c3_sleep_mode>; 248 pinctrl-1 = <&i2c3_sleep_mode>;
249 }; 249 };
250 250
251 ssp@80002000 {
252 pinctrl-names = "default";
253 pinctrl-0 = <&ssp0_snowball_mode>;
254 };
255
251 cpufreq-cooling { 256 cpufreq-cooling {
252 status = "okay"; 257 status = "okay";
253 }; 258 };
@@ -386,6 +391,29 @@
386 391
387 }; 392 };
388 }; 393 };
394 ssp0 {
395 ssp0_snowball_mode: ssp0_snowball_default {
396 snowball_mux {
397 ste,function = "ssp0";
398 ste,pins = "ssp0_a_1";
399 };
400 snowball_cfg1 {
401 ste,pins = "GPIO144_B13"; /* FRM */
402 ste,config = <&gpio_out_hi>;
403 };
404 snowball_cfg2 {
405 ste,pins = "GPIO145_C13"; /* RXD */
406 ste,config = <&in_pd>;
407 };
408 snowball_cfg3 {
409 ste,pins =
410 "GPIO146_D13", /* TXD */
411 "GPIO143_D12"; /* CLK */
412 ste,config = <&out_lo>;
413 };
414
415 };
416 };
389 }; 417 };
390 418
391 mcde@a0350000 { 419 mcde@a0350000 {
diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c
index 55da56e39974..0e5d2684bc9a 100644
--- a/arch/arm/mach-ux500/board-mop500-pins.c
+++ b/arch/arm/mach-ux500/board-mop500-pins.c
@@ -19,8 +19,6 @@
19/* These simply sets bias for pins */ 19/* These simply sets bias for pins */
20#define BIAS(a,b) static unsigned long a[] = { b } 20#define BIAS(a,b) static unsigned long a[] = { b }
21 21
22BIAS(pd, PIN_PULL_DOWN);
23
24BIAS(abx500_out_lo, PIN_CONF_PACKED(PIN_CONFIG_OUTPUT, 0)); 22BIAS(abx500_out_lo, PIN_CONF_PACKED(PIN_CONFIG_OUTPUT, 0));
25BIAS(abx500_in_pd, PIN_CONF_PACKED(PIN_CONFIG_BIAS_PULL_DOWN, 1)); 23BIAS(abx500_in_pd, PIN_CONF_PACKED(PIN_CONFIG_BIAS_PULL_DOWN, 1));
26BIAS(abx500_in_nopull, PIN_CONF_PACKED(PIN_CONFIG_BIAS_PULL_DOWN, 0)); 24BIAS(abx500_in_nopull, PIN_CONF_PACKED(PIN_CONFIG_BIAS_PULL_DOWN, 0));
@@ -299,9 +297,6 @@ static struct pinctrl_map __initdata ab8505_pinmap[] = {
299}; 297};
300 298
301static struct pinctrl_map __initdata snowball_pinmap[] = { 299static struct pinctrl_map __initdata snowball_pinmap[] = {
302 /* Mux in SSP0 connected to AB8500, pull down RXD pin */
303 DB8500_MUX_HOG("ssp0_a_1", "ssp0"),
304 DB8500_PIN_HOG("GPIO145_C13", pd),
305 /* User LED */ 300 /* User LED */
306 DB8500_PIN_HOG("GPIO142_C11", gpio_out_hi), 301 DB8500_PIN_HOG("GPIO142_C11", gpio_out_hi),
307 /* Accelerometer/Magnetometer */ 302 /* Accelerometer/Magnetometer */