blob: 8474bffec0ca43870b47d6d9cf2bca8d2b077bd3 [file] [log] [blame]
Alan M Butler4f48b7f2012-08-20 15:29:07 +01001/dts-v1/;
2
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03003#include "kirkwood.dtsi"
4#include "kirkwood-6281.dtsi"
Alan M Butler4f48b7f2012-08-20 15:29:07 +01005
6/ {
7 model = "Iomega StorCenter ix2-200";
8 compatible = "iom,ix2-200", "marvell,kirkwood-88f6281", "marvell,kirkwood";
9
10 memory {
11 device_type = "memory";
12 reg = <0x00000000 0x10000000>;
13 };
14
15 chosen {
16 bootargs = "console=ttyS0,115200n8 earlyprintk";
Sebastian Hesselbarthab833612014-04-30 14:56:30 +020017 stdout-path = &uart0;
Alan M Butler4f48b7f2012-08-20 15:29:07 +010018 };
19
20 ocp@f1000000 {
Sebastian Hesselbartha9483962014-04-30 14:56:32 +020021 pinctrl: pin-controller@10000 {
Thomas Petazzoni4d058712013-05-24 11:44:47 +020022 pinctrl-0 = < &pmx_led_sata_brt_ctrl_1
Andrew Lunna93d3ad2012-11-17 17:00:54 +010023 &pmx_led_sata_brt_ctrl_2
24 &pmx_led_backup_brt_ctrl_1
25 &pmx_led_backup_brt_ctrl_2
26 &pmx_led_power_brt_ctrl_1
27 &pmx_led_power_brt_ctrl_2
28 &pmx_led_health_brt_ctrl_1
29 &pmx_led_health_brt_ctrl_2
30 &pmx_led_rebuild_brt_ctrl_1
31 &pmx_led_rebuild_brt_ctrl_2 >;
32 pinctrl-names = "default";
33
34 pmx_button_reset: pmx-button-reset {
35 marvell,pins = "mpp12";
36 marvell,function = "gpio";
37 };
38 pmx_button_power: pmx-button-power {
39 marvell,pins = "mpp14";
40 marvell,function = "gpio";
41 };
42 pmx_led_backup: pmx-led-backup {
43 marvell,pins = "mpp15";
44 marvell,function = "gpio";
45 };
46 pmx_led_power: pmx-led-power {
47 marvell,pins = "mpp16";
48 marvell,function = "gpio";
49 };
50 pmx_button_otb: pmx-button-otb {
51 marvell,pins = "mpp35";
52 marvell,function = "gpio";
53 };
54 pmx_led_rebuild: pmx-led-rebuild {
55 marvell,pins = "mpp36";
56 marvell,function = "gpio";
57 };
58 pmx_led_health: pmx-led_health {
59 marvell,pins = "mpp37";
60 marvell,function = "gpio";
61 };
62 pmx_led_sata_brt_ctrl_1: pmx-led-sata-brt-ctrl-1 {
63 marvell,pins = "mpp38";
64 marvell,function = "gpio";
65 };
66 pmx_led_sata_brt_ctrl_2: pmx-led-sata-brt-ctrl-2 {
67 marvell,pins = "mpp39";
68 marvell,function = "gpio";
69 };
70 pmx_led_backup_brt_ctrl_1: pmx-led-backup-brt-ctrl-1 {
71 marvell,pins = "mpp40";
72 marvell,function = "gpio";
73 };
74 pmx_led_backup_brt_ctrl_2: pmx-led-backup-brt-ctrl-2 {
75 marvell,pins = "mpp41";
76 marvell,function = "gpio";
77 };
78 pmx_led_power_brt_ctrl_1: pmx-led-power-brt-ctrl-1 {
79 marvell,pins = "mpp42";
80 marvell,function = "gpio";
81 };
82 pmx_led_power_brt_ctrl_2: pmx-led-power-brt-ctrl-2 {
83 marvell,pins = "mpp43";
84 marvell,function = "gpio";
85 };
86 pmx_led_health_brt_ctrl_1: pmx-led-health-brt-ctrl-1 {
87 marvell,pins = "mpp44";
88 marvell,function = "gpio";
89 };
90 pmx_led_health_brt_ctrl_2: pmx-led-health-brt-ctrl-2 {
91 marvell,pins = "mpp45";
92 marvell,function = "gpio";
93 };
94 pmx_led_rebuild_brt_ctrl_1: pmx-led-rebuild-brt-ctrl-1 {
Nigel Roberts8f08d662013-04-01 23:03:22 +110095 marvell,pins = "mpp46";
Andrew Lunna93d3ad2012-11-17 17:00:54 +010096 marvell,function = "gpio";
97 };
98 pmx_led_rebuild_brt_ctrl_2: pmx-led-rebuild-brt-ctrl-2 {
Nigel Roberts8f08d662013-04-01 23:03:22 +110099 marvell,pins = "mpp47";
Andrew Lunna93d3ad2012-11-17 17:00:54 +0100100 marvell,function = "gpio";
101 };
102
103 };
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100104 i2c@11000 {
105 status = "okay";
106
107 lm63: lm63@4c {
108 compatible = "national,lm63";
109 reg = <0x4c>;
110 };
111 };
112
113 serial@12000 {
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100114 status = "ok";
115 };
116
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100117 sata@80000 {
118 status = "okay";
119 nr-ports = <2>;
120 };
121
122 };
123 gpio-leds {
124 compatible = "gpio-leds";
Thomas Petazzoni4d058712013-05-24 11:44:47 +0200125 pinctrl-0 = < &pmx_led_backup &pmx_led_power
126 &pmx_led_rebuild &pmx_led_health >;
127 pinctrl-names = "default";
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100128
129 power_led {
130 label = "status:white:power_led";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100131 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
Jason Cooperdcdf14c2013-10-14 17:37:55 +0000132 default-state = "keep";
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100133 };
Nigel Roberts8f08d662013-04-01 23:03:22 +1100134 rebuild_led {
135 label = "status:white:rebuild_led";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100136 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
Nigel Roberts8f08d662013-04-01 23:03:22 +1100137 };
138 health_led {
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100139 label = "status:red:health_led";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100140 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100141 };
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100142 backup_led {
143 label = "status:blue:backup_led";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100144 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100145 };
146 };
147 gpio-keys {
148 compatible = "gpio-keys";
149 #address-cells = <1>;
150 #size-cells = <0>;
Thomas Petazzoni4d058712013-05-24 11:44:47 +0200151 pinctrl-0 = <&pmx_button_reset &pmx_button_power
152 &pmx_button_otb>;
153 pinctrl-names = "default";
154
155
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100156 Power {
157 label = "Power Button";
Andrew Lunn23301192013-12-04 16:51:38 +0100158 linux,code = <KEY_POWER>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100159 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100160 };
161 Reset {
162 label = "Reset Button";
Andrew Lunn23301192013-12-04 16:51:38 +0100163 linux,code = <KEY_RESTART>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100164 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100165 };
166 OTB {
167 label = "OTB Button";
Andrew Lunn23301192013-12-04 16:51:38 +0100168 linux,code = <KEY_COPY>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100169 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100170 };
171 };
Richard Kunze17013082014-12-10 19:40:41 +0100172 gpio-poweroff {
173 compatible = "gpio-poweroff";
174 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
175 };
Alan M Butler4f48b7f2012-08-20 15:29:07 +0100176};
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200177
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600178&nand {
179 status = "okay";
180
181 partition@0 {
182 label = "u-boot";
183 reg = <0x0000000 0x100000>;
184 read-only;
185 };
186
187 partition@a0000 {
188 label = "env";
189 reg = <0xa0000 0x20000>;
190 read-only;
191 };
192
193 partition@100000 {
194 label = "uImage";
195 reg = <0x100000 0x300000>;
196 };
197
198 partition@400000 {
Richard Kunze8b006012014-12-14 20:53:39 +0100199 label = "rootfs";
200 reg = <0x400000 0x1C00000>;
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600201 };
202};
203
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200204&mdio {
205 status = "okay";
206
207 ethphy1: ethernet-phy@11 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200208 reg = <11>;
209 };
210};
211
212&eth0 {
213 status = "okay";
214 ethernet0-port@0 {
215 speed = <1000>;
216 duplex = <1>;
217 };
218};
219
220&eth1 {
221 status = "okay";
222 ethernet1-port@0 {
223 phy-handle = <&ethphy1>;
224 };
225};