diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-11-17 04:02:22 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-11-26 15:01:57 -0500 |
commit | a48bf4b9fcf63a43e10f3c784d7349bb868ccc45 (patch) | |
tree | a58c510aab9e87b24da4883d50e9dd7a3c051b8b /arch/arm | |
parent | 7ab05bd165873f8561c15fbcce5b1edc55314c83 (diff) |
ARM: ux500: move snowball ethernet config to device tree
This transfers the muxing and biasing of the ethernet-related
pins on the snowball over to the device tree.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/ste-snowball.dts | 25 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-pins.c | 4 |
2 files changed, 25 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/ste-snowball.dts b/arch/arm/boot/dts/ste-snowball.dts index 53febe58a1cb..4f5457a91589 100644 --- a/arch/arm/boot/dts/ste-snowball.dts +++ b/arch/arm/boot/dts/ste-snowball.dts | |||
@@ -130,6 +130,8 @@ | |||
130 | interrupt-parent = <&gpio4>; | 130 | interrupt-parent = <&gpio4>; |
131 | vdd33a-supply = <&en_3v3_reg>; | 131 | vdd33a-supply = <&en_3v3_reg>; |
132 | vddvario-supply = <&db8500_vape_reg>; | 132 | vddvario-supply = <&db8500_vape_reg>; |
133 | pinctrl-names = "default"; | ||
134 | pinctrl-0 = <ð_snowball_mode>; | ||
133 | 135 | ||
134 | reg-shift = <1>; | 136 | reg-shift = <1>; |
135 | reg-io-width = <2>; | 137 | reg-io-width = <2>; |
@@ -348,6 +350,29 @@ | |||
348 | }; | 350 | }; |
349 | 351 | ||
350 | pinctrl { | 352 | pinctrl { |
353 | ethernet { | ||
354 | /* | ||
355 | * Mux in "SM" which is used for the | ||
356 | * SMSC911x Ethernet adapter | ||
357 | */ | ||
358 | eth_snowball_mode: eth_snowball { | ||
359 | snowball_mux { | ||
360 | ste,function = "sm"; | ||
361 | ste,pins = "sm_b_1"; | ||
362 | }; | ||
363 | /* LAN IRQ pin */ | ||
364 | snowball_cfg1 { | ||
365 | ste,pins = "GPIO140_B11"; | ||
366 | ste,config = <&in_nopull>; | ||
367 | }; | ||
368 | /* LAN reset pin */ | ||
369 | snowball_cfg2 { | ||
370 | ste,pins = "GPIO141_C12"; | ||
371 | ste,config = <&gpio_out_hi>; | ||
372 | }; | ||
373 | |||
374 | }; | ||
375 | }; | ||
351 | sdi0 { | 376 | sdi0 { |
352 | sdi0_default_mode: sdi0_default { | 377 | sdi0_default_mode: sdi0_default { |
353 | snowball_mux { | 378 | snowball_mux { |
diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c index 71ee944ea70f..55da56e39974 100644 --- a/arch/arm/mach-ux500/board-mop500-pins.c +++ b/arch/arm/mach-ux500/board-mop500-pins.c | |||
@@ -302,12 +302,8 @@ static struct pinctrl_map __initdata snowball_pinmap[] = { | |||
302 | /* Mux in SSP0 connected to AB8500, pull down RXD pin */ | 302 | /* Mux in SSP0 connected to AB8500, pull down RXD pin */ |
303 | DB8500_MUX_HOG("ssp0_a_1", "ssp0"), | 303 | DB8500_MUX_HOG("ssp0_a_1", "ssp0"), |
304 | DB8500_PIN_HOG("GPIO145_C13", pd), | 304 | DB8500_PIN_HOG("GPIO145_C13", pd), |
305 | /* Mux in "SM" which is used for the SMSC911x Ethernet adapter */ | ||
306 | DB8500_MUX_HOG("sm_b_1", "sm"), | ||
307 | /* User LED */ | 305 | /* User LED */ |
308 | DB8500_PIN_HOG("GPIO142_C11", gpio_out_hi), | 306 | DB8500_PIN_HOG("GPIO142_C11", gpio_out_hi), |
309 | /* Drive RSTn_LAN high */ | ||
310 | DB8500_PIN_HOG("GPIO141_C12", gpio_out_hi), | ||
311 | /* Accelerometer/Magnetometer */ | 307 | /* Accelerometer/Magnetometer */ |
312 | DB8500_PIN_HOG("GPIO163_C20", gpio_in_pu), /* ACCEL_IRQ1 */ | 308 | DB8500_PIN_HOG("GPIO163_C20", gpio_in_pu), /* ACCEL_IRQ1 */ |
313 | DB8500_PIN_HOG("GPIO164_B21", gpio_in_pu), /* ACCEL_IRQ2 */ | 309 | DB8500_PIN_HOG("GPIO164_B21", gpio_in_pu), /* ACCEL_IRQ2 */ |