-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: Kirkwood: Iomega ix2-200 DT support
Add support for the Iomega ix2-200. Led's and buttons working as of kernel 3.6-rc2 the 3 lines in the network interface do seem to be required as removing either causes the network card to not be able to reach the network (at least on my device). Product page: http://go.iomega.com/en/products/network-storage-desktop/storcenter-network-storage-solution/network-hard-drive-ix2-200-cloud/?partner=4735#tech_specsItem_tab Signed-off-by: Alan M Butler <alanbutty12@gmail.com> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
- Loading branch information
Alan M Butler
authored and
Jason Cooper
committed
Sep 21, 2012
1 parent
55d512e
commit 4f48b7f
Showing
7 changed files
with
181 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
/dts-v1/; | ||
|
||
/include/ "kirkwood.dtsi" | ||
|
||
/ { | ||
model = "Iomega StorCenter ix2-200"; | ||
compatible = "iom,ix2-200", "marvell,kirkwood-88f6281", "marvell,kirkwood"; | ||
|
||
memory { | ||
device_type = "memory"; | ||
reg = <0x00000000 0x10000000>; | ||
}; | ||
|
||
chosen { | ||
bootargs = "console=ttyS0,115200n8 earlyprintk"; | ||
}; | ||
|
||
ocp@f1000000 { | ||
i2c@11000 { | ||
status = "okay"; | ||
|
||
lm63: lm63@4c { | ||
compatible = "national,lm63"; | ||
reg = <0x4c>; | ||
}; | ||
}; | ||
|
||
serial@12000 { | ||
clock-frequency = <200000000>; | ||
status = "ok"; | ||
}; | ||
|
||
nand@3000000 { | ||
status = "okay"; | ||
|
||
partition@0 { | ||
label = "u-boot"; | ||
reg = <0x0000000 0x100000>; | ||
read-only; | ||
}; | ||
|
||
partition@a0000 { | ||
label = "env"; | ||
reg = <0xa0000 0x20000>; | ||
read-only; | ||
}; | ||
|
||
partition@100000 { | ||
label = "uImage"; | ||
reg = <0x100000 0x300000>; | ||
}; | ||
|
||
partition@400000 { | ||
label = "uInitrd"; | ||
reg = <0x540000 0x1000000>; | ||
}; | ||
}; | ||
sata@80000 { | ||
status = "okay"; | ||
nr-ports = <2>; | ||
}; | ||
|
||
}; | ||
gpio-leds { | ||
compatible = "gpio-leds"; | ||
|
||
power_led { | ||
label = "status:white:power_led"; | ||
gpios = <&gpio0 16 0>; | ||
linux,default-trigger = "default-on"; | ||
}; | ||
health_led1 { | ||
label = "status:red:health_led"; | ||
gpios = <&gpio1 5 0>; | ||
}; | ||
health_led2 { | ||
label = "status:white:health_led"; | ||
gpios = <&gpio1 4 0>; | ||
}; | ||
backup_led { | ||
label = "status:blue:backup_led"; | ||
gpios = <&gpio0 15 0>; | ||
}; | ||
}; | ||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
Power { | ||
label = "Power Button"; | ||
linux,code = <116>; | ||
gpios = <&gpio0 14 1>; | ||
}; | ||
Reset { | ||
label = "Reset Button"; | ||
linux,code = <0x198>; | ||
gpios = <&gpio0 12 1>; | ||
}; | ||
OTB { | ||
label = "OTB Button"; | ||
linux,code = <133>; | ||
gpios = <&gpio1 3 1>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* arch/arm/mach-kirkwood/board-iomega_ix2_200.c | ||
* | ||
* Iomega StorCenter ix2-200 | ||
* | ||
* This file is licensed under the terms of the GNU General Public | ||
* License version 2. This program is licensed "as is" without any | ||
* warranty of any kind, whether express or implied. | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/mv643xx_eth.h> | ||
#include <linux/ethtool.h> | ||
#include <mach/kirkwood.h> | ||
#include "common.h" | ||
#include "mpp.h" | ||
|
||
static struct mv643xx_eth_platform_data iomega_ix2_200_ge00_data = { | ||
.phy_addr = MV643XX_ETH_PHY_NONE, | ||
.speed = SPEED_1000, | ||
.duplex = DUPLEX_FULL, | ||
}; | ||
|
||
static unsigned int iomega_ix2_200_mpp_config[] __initdata = { | ||
MPP12_GPIO, /* Reset Button */ | ||
MPP14_GPIO, /* Power Button */ | ||
MPP15_GPIO, /* Backup LED (blue) */ | ||
MPP16_GPIO, /* Power LED (white) */ | ||
MPP35_GPIO, /* OTB Button */ | ||
MPP36_GPIO, /* Rebuild LED (white) */ | ||
MPP37_GPIO, /* Health LED (red) */ | ||
MPP38_GPIO, /* SATA LED brightness control 1 */ | ||
MPP39_GPIO, /* SATA LED brightness control 2 */ | ||
MPP40_GPIO, /* Backup LED brightness control 1 */ | ||
MPP41_GPIO, /* Backup LED brightness control 2 */ | ||
MPP42_GPIO, /* Power LED brightness control 1 */ | ||
MPP43_GPIO, /* Power LED brightness control 2 */ | ||
MPP44_GPIO, /* Health LED brightness control 1 */ | ||
MPP45_GPIO, /* Health LED brightness control 2 */ | ||
MPP46_GPIO, /* Rebuild LED brightness control 1 */ | ||
MPP47_GPIO, /* Rebuild LED brightness control 2 */ | ||
0 | ||
}; | ||
|
||
void __init iomega_ix2_200_init(void) | ||
{ | ||
/* | ||
* Basic setup. Needs to be called early. | ||
*/ | ||
kirkwood_mpp_conf(iomega_ix2_200_mpp_config); | ||
|
||
kirkwood_ehci_init(); | ||
|
||
kirkwood_ge01_init(&iomega_ix2_200_ge00_data); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters