diff options
author | Andrew Lunn <andrew@lunn.ch> | 2012-11-17 11:00:52 -0500 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2012-11-23 21:58:25 -0500 |
commit | d1d0c04b951e8eb650e84925bcbd78c6b331cfc0 (patch) | |
tree | 5c91abe6e63a50a909aaaa2c5cfa4c52af6eb38d | |
parent | 5d183ef9100ca6005b4bb250db75bc006110b18a (diff) |
ARM: Kirkwood: Convert ib62x0 to pinctrl.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Simon Baatz <gmbnomis@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r-- | arch/arm/boot/dts/kirkwood-ib62x0.dts | 34 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-ib62x0.c | 21 |
2 files changed, 34 insertions, 21 deletions
diff --git a/arch/arm/boot/dts/kirkwood-ib62x0.dts b/arch/arm/boot/dts/kirkwood-ib62x0.dts index 6a9558d24da2..71902da33d63 100644 --- a/arch/arm/boot/dts/kirkwood-ib62x0.dts +++ b/arch/arm/boot/dts/kirkwood-ib62x0.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 = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)"; | 7 | model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)"; |
@@ -16,6 +17,39 @@ | |||
16 | }; | 17 | }; |
17 | 18 | ||
18 | ocp@f1000000 { | 19 | ocp@f1000000 { |
20 | pinctrl: pinctrl@10000 { | ||
21 | |||
22 | pinctrl-0 = < &pmx_nand | ||
23 | &pmx_led_os_red &pmx_power_off | ||
24 | &pmx_led_os_green &pmx_led_usb_transfer | ||
25 | &pmx_button_reset &pmx_button_usb_copy >; | ||
26 | pinctrl-names = "default"; | ||
27 | |||
28 | pmx_led_os_red: pmx-led-os-red { | ||
29 | marvell,pins = "mpp22"; | ||
30 | marvell,function = "gpio"; | ||
31 | }; | ||
32 | pmx_power_off: pmx-power-off { | ||
33 | marvell,pins = "mpp24"; | ||
34 | marvell,function = "gpio"; | ||
35 | }; | ||
36 | pmx_led_os_green: pmx-led-os-green { | ||
37 | marvell,pins = "mpp25"; | ||
38 | marvell,function = "gpio"; | ||
39 | }; | ||
40 | pmx_led_usb_transfer: pmx-led-usb-transfer { | ||
41 | marvell,pins = "mpp27"; | ||
42 | marvell,function = "gpio"; | ||
43 | }; | ||
44 | pmx_button_reset: pmx-button-reset { | ||
45 | marvell,pins = "mpp28"; | ||
46 | marvell,function = "gpio"; | ||
47 | }; | ||
48 | pmx_button_usb_copy: pmx-button-usb-copy { | ||
49 | marvell,pins = "mpp29"; | ||
50 | marvell,function = "gpio"; | ||
51 | }; | ||
52 | }; | ||
19 | serial@12000 { | 53 | serial@12000 { |
20 | clock-frequency = <200000000>; | 54 | clock-frequency = <200000000>; |
21 | status = "okay"; | 55 | status = "okay"; |
diff --git a/arch/arm/mach-kirkwood/board-ib62x0.c b/arch/arm/mach-kirkwood/board-ib62x0.c index 2a58b4fc453b..b6e5db9c7ed0 100644 --- a/arch/arm/mach-kirkwood/board-ib62x0.c +++ b/arch/arm/mach-kirkwood/board-ib62x0.c | |||
@@ -22,36 +22,15 @@ | |||
22 | #include <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
23 | #include <mach/kirkwood.h> | 23 | #include <mach/kirkwood.h> |
24 | #include "common.h" | 24 | #include "common.h" |
25 | #include "mpp.h" | ||
26 | 25 | ||
27 | static struct mv643xx_eth_platform_data ib62x0_ge00_data = { | 26 | static struct mv643xx_eth_platform_data ib62x0_ge00_data = { |
28 | .phy_addr = MV643XX_ETH_PHY_ADDR(8), | 27 | .phy_addr = MV643XX_ETH_PHY_ADDR(8), |
29 | }; | 28 | }; |
30 | 29 | ||
31 | static unsigned int ib62x0_mpp_config[] __initdata = { | ||
32 | MPP0_NF_IO2, | ||
33 | MPP1_NF_IO3, | ||
34 | MPP2_NF_IO4, | ||
35 | MPP3_NF_IO5, | ||
36 | MPP4_NF_IO6, | ||
37 | MPP5_NF_IO7, | ||
38 | MPP18_NF_IO0, | ||
39 | MPP19_NF_IO1, | ||
40 | MPP22_GPIO, /* OS LED red */ | ||
41 | MPP24_GPIO, /* Power off device */ | ||
42 | MPP25_GPIO, /* OS LED green */ | ||
43 | MPP27_GPIO, /* USB transfer LED */ | ||
44 | MPP28_GPIO, /* Reset button */ | ||
45 | MPP29_GPIO, /* USB Copy button */ | ||
46 | 0 | ||
47 | }; | ||
48 | |||
49 | void __init ib62x0_init(void) | 30 | void __init ib62x0_init(void) |
50 | { | 31 | { |
51 | /* | 32 | /* |
52 | * Basic setup. Needs to be called early. | 33 | * Basic setup. Needs to be called early. |
53 | */ | 34 | */ |
54 | kirkwood_mpp_conf(ib62x0_mpp_config); | ||
55 | |||
56 | kirkwood_ge00_init(&ib62x0_ge00_data); | 35 | kirkwood_ge00_init(&ib62x0_ge00_data); |
57 | } | 36 | } |