aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2012-11-17 11:00:49 -0500
committerJason Cooper <jason@lakedaemon.net>2012-11-23 21:58:05 -0500
commit1bf370a827175665d9b0e591a99243de0f6bb4e3 (patch)
tree0629edd5675b3bdf005e9d89b37e46e4b6db82d1
parentf83065fa43c19600752a380f6d861b787a30d905 (diff)
ARM: Kirkwood: Convert dockstar to pinctrl.
Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--arch/arm/boot/dts/kirkwood-dockstar.dts20
-rw-r--r--arch/arm/mach-kirkwood/board-dockstar.c10
2 files changed, 20 insertions, 10 deletions
diff --git a/arch/arm/boot/dts/kirkwood-dockstar.dts b/arch/arm/boot/dts/kirkwood-dockstar.dts
index c0fbfdc342f8..2e3dd34e21a5 100644
--- a/arch/arm/boot/dts/kirkwood-dockstar.dts
+++ b/arch/arm/boot/dts/kirkwood-dockstar.dts
@@ -1,6 +1,7 @@
1/dts-v1/; 1/dts-v1/;
2 2
3/include/ "kirkwood.dtsi" 3/include/ "kirkwood.dtsi"
4/include/ "kirkwood-6281.dtsi"
4 5
5/ { 6/ {
6 model = "Seagate FreeAgent Dockstar"; 7 model = "Seagate FreeAgent Dockstar";
@@ -16,6 +17,25 @@
16 }; 17 };
17 18
18 ocp@f1000000 { 19 ocp@f1000000 {
20 pinctrl: pinctrl@10000 {
21
22 pinctrl-0 = < &pmx_usb_power_enable
23 &pmx_led_green &pmx_led_orange >;
24 pinctrl-names = "default";
25
26 pmx_usb_power_enable: pmx-usb-power-enable {
27 marvell,pins = "mpp29";
28 marvell,function = "gpio";
29 };
30 pmx_led_green: pmx-led-green {
31 marvell,pins = "mpp46";
32 marvell,function = "gpio";
33 };
34 pmx_led_orange: pmx-led-orange {
35 marvell,pins = "mpp47";
36 marvell,function = "gpio";
37 };
38 };
19 serial@12000 { 39 serial@12000 {
20 clock-frequency = <200000000>; 40 clock-frequency = <200000000>;
21 status = "ok"; 41 status = "ok";
diff --git a/arch/arm/mach-kirkwood/board-dockstar.c b/arch/arm/mach-kirkwood/board-dockstar.c
index 410452acf323..726cfc4b8921 100644
--- a/arch/arm/mach-kirkwood/board-dockstar.c
+++ b/arch/arm/mach-kirkwood/board-dockstar.c
@@ -31,25 +31,15 @@
31#include <mach/bridge-regs.h> 31#include <mach/bridge-regs.h>
32#include <linux/platform_data/mmc-mvsdio.h> 32#include <linux/platform_data/mmc-mvsdio.h>
33#include "common.h" 33#include "common.h"
34#include "mpp.h"
35 34
36static struct mv643xx_eth_platform_data dockstar_ge00_data = { 35static struct mv643xx_eth_platform_data dockstar_ge00_data = {
37 .phy_addr = MV643XX_ETH_PHY_ADDR(0), 36 .phy_addr = MV643XX_ETH_PHY_ADDR(0),
38}; 37};
39 38
40static unsigned int dockstar_mpp_config[] __initdata = {
41 MPP29_GPIO, /* USB Power Enable */
42 MPP46_GPIO, /* LED green */
43 MPP47_GPIO, /* LED orange */
44 0
45};
46
47void __init dockstar_dt_init(void) 39void __init dockstar_dt_init(void)
48{ 40{
49 /* 41 /*
50 * Basic setup. Needs to be called early. 42 * Basic setup. Needs to be called early.
51 */ 43 */
52 kirkwood_mpp_conf(dockstar_mpp_config);
53
54 kirkwood_ge00_init(&dockstar_ge00_data); 44 kirkwood_ge00_init(&dockstar_ge00_data);
55} 45}