ARM: Kirkwood: Convert IX2-200 to pinctrl.
Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
This commit is contained in:
parent
8d72b4a6cf
commit
a93d3ad2e3
|
@ -1,6 +1,7 @@
|
|||
/dts-v1/;
|
||||
|
||||
/include/ "kirkwood.dtsi"
|
||||
/include/ "kirkwood-6281.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Iomega StorCenter ix2-200";
|
||||
|
@ -16,6 +17,94 @@
|
|||
};
|
||||
|
||||
ocp@f1000000 {
|
||||
pinctrl: pinctrl@10000 {
|
||||
|
||||
pinctrl-0 = < &pmx_button_reset &pmx_button_power
|
||||
&pmx_led_backup &pmx_led_power
|
||||
&pmx_button_otb &pmx_led_rebuild
|
||||
&pmx_led_health
|
||||
&pmx_led_sata_brt_ctrl_1
|
||||
&pmx_led_sata_brt_ctrl_2
|
||||
&pmx_led_backup_brt_ctrl_1
|
||||
&pmx_led_backup_brt_ctrl_2
|
||||
&pmx_led_power_brt_ctrl_1
|
||||
&pmx_led_power_brt_ctrl_2
|
||||
&pmx_led_health_brt_ctrl_1
|
||||
&pmx_led_health_brt_ctrl_2
|
||||
&pmx_led_rebuild_brt_ctrl_1
|
||||
&pmx_led_rebuild_brt_ctrl_2 >;
|
||||
pinctrl-names = "default";
|
||||
|
||||
pmx_button_reset: pmx-button-reset {
|
||||
marvell,pins = "mpp12";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_button_power: pmx-button-power {
|
||||
marvell,pins = "mpp14";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_backup: pmx-led-backup {
|
||||
marvell,pins = "mpp15";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_power: pmx-led-power {
|
||||
marvell,pins = "mpp16";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_button_otb: pmx-button-otb {
|
||||
marvell,pins = "mpp35";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_rebuild: pmx-led-rebuild {
|
||||
marvell,pins = "mpp36";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_health: pmx-led_health {
|
||||
marvell,pins = "mpp37";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_sata_brt_ctrl_1: pmx-led-sata-brt-ctrl-1 {
|
||||
marvell,pins = "mpp38";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_sata_brt_ctrl_2: pmx-led-sata-brt-ctrl-2 {
|
||||
marvell,pins = "mpp39";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_backup_brt_ctrl_1: pmx-led-backup-brt-ctrl-1 {
|
||||
marvell,pins = "mpp40";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_backup_brt_ctrl_2: pmx-led-backup-brt-ctrl-2 {
|
||||
marvell,pins = "mpp41";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_power_brt_ctrl_1: pmx-led-power-brt-ctrl-1 {
|
||||
marvell,pins = "mpp42";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_power_brt_ctrl_2: pmx-led-power-brt-ctrl-2 {
|
||||
marvell,pins = "mpp43";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_health_brt_ctrl_1: pmx-led-health-brt-ctrl-1 {
|
||||
marvell,pins = "mpp44";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_health_brt_ctrl_2: pmx-led-health-brt-ctrl-2 {
|
||||
marvell,pins = "mpp45";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_rebuild_brt_ctrl_1: pmx-led-rebuild-brt-ctrl-1 {
|
||||
marvell,pins = "mpp44";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
pmx_led_rebuild_brt_ctrl_2: pmx-led-rebuild-brt-ctrl-2 {
|
||||
marvell,pins = "mpp45";
|
||||
marvell,function = "gpio";
|
||||
};
|
||||
|
||||
};
|
||||
i2c@11000 {
|
||||
status = "okay";
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#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,
|
||||
|
@ -23,33 +22,10 @@ static struct mv643xx_eth_platform_data iomega_ix2_200_ge00_data = {
|
|||
.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_ge01_init(&iomega_ix2_200_ge00_data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue