1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/dts-v1/;
3*f126890aSEmmanuel Vadot
4*f126890aSEmmanuel Vadot#include "kirkwood.dtsi"
5*f126890aSEmmanuel Vadot#include "kirkwood-6281.dtsi"
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot/ {
8*f126890aSEmmanuel Vadot	model = "Iomega StorCenter ix2-200";
9*f126890aSEmmanuel Vadot	compatible = "iom,ix2-200", "marvell,kirkwood-88f6281", "marvell,kirkwood";
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot	memory {
12*f126890aSEmmanuel Vadot		device_type = "memory";
13*f126890aSEmmanuel Vadot		reg = <0x00000000 0x10000000>;
14*f126890aSEmmanuel Vadot	};
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	chosen {
17*f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200n8 earlyprintk";
18*f126890aSEmmanuel Vadot		stdout-path = &uart0;
19*f126890aSEmmanuel Vadot	};
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot	ocp@f1000000 {
22*f126890aSEmmanuel Vadot		pinctrl: pin-controller@10000 {
23*f126890aSEmmanuel Vadot			pinctrl-0 = < &pmx_led_sata_brt_ctrl_1
24*f126890aSEmmanuel Vadot				      &pmx_led_sata_brt_ctrl_2
25*f126890aSEmmanuel Vadot				      &pmx_led_backup_brt_ctrl_1
26*f126890aSEmmanuel Vadot				      &pmx_led_backup_brt_ctrl_2
27*f126890aSEmmanuel Vadot				      &pmx_led_power_brt_ctrl_1
28*f126890aSEmmanuel Vadot				      &pmx_led_power_brt_ctrl_2
29*f126890aSEmmanuel Vadot				      &pmx_led_health_brt_ctrl_1
30*f126890aSEmmanuel Vadot				      &pmx_led_health_brt_ctrl_2
31*f126890aSEmmanuel Vadot				      &pmx_led_rebuild_brt_ctrl_1
32*f126890aSEmmanuel Vadot				      &pmx_led_rebuild_brt_ctrl_2 >;
33*f126890aSEmmanuel Vadot			pinctrl-names = "default";
34*f126890aSEmmanuel Vadot
35*f126890aSEmmanuel Vadot			pmx_button_reset: pmx-button-reset {
36*f126890aSEmmanuel Vadot				marvell,pins = "mpp12";
37*f126890aSEmmanuel Vadot				marvell,function = "gpio";
38*f126890aSEmmanuel Vadot			};
39*f126890aSEmmanuel Vadot			pmx_button_power: pmx-button-power {
40*f126890aSEmmanuel Vadot				marvell,pins = "mpp14";
41*f126890aSEmmanuel Vadot				marvell,function = "gpio";
42*f126890aSEmmanuel Vadot			};
43*f126890aSEmmanuel Vadot			pmx_led_backup: pmx-led-backup {
44*f126890aSEmmanuel Vadot				marvell,pins = "mpp15";
45*f126890aSEmmanuel Vadot				marvell,function = "gpio";
46*f126890aSEmmanuel Vadot			};
47*f126890aSEmmanuel Vadot			pmx_led_power: pmx-led-power {
48*f126890aSEmmanuel Vadot				marvell,pins = "mpp16";
49*f126890aSEmmanuel Vadot				marvell,function = "gpio";
50*f126890aSEmmanuel Vadot			};
51*f126890aSEmmanuel Vadot			pmx_button_otb: pmx-button-otb {
52*f126890aSEmmanuel Vadot				marvell,pins = "mpp35";
53*f126890aSEmmanuel Vadot				marvell,function = "gpio";
54*f126890aSEmmanuel Vadot			};
55*f126890aSEmmanuel Vadot			pmx_led_rebuild: pmx-led-rebuild {
56*f126890aSEmmanuel Vadot				marvell,pins = "mpp36";
57*f126890aSEmmanuel Vadot				marvell,function = "gpio";
58*f126890aSEmmanuel Vadot			};
59*f126890aSEmmanuel Vadot			pmx_led_health: pmx-led_health {
60*f126890aSEmmanuel Vadot				marvell,pins = "mpp37";
61*f126890aSEmmanuel Vadot				marvell,function = "gpio";
62*f126890aSEmmanuel Vadot			};
63*f126890aSEmmanuel Vadot			pmx_led_sata_brt_ctrl_1: pmx-led-sata-brt-ctrl-1 {
64*f126890aSEmmanuel Vadot				marvell,pins = "mpp38";
65*f126890aSEmmanuel Vadot				marvell,function = "gpio";
66*f126890aSEmmanuel Vadot			};
67*f126890aSEmmanuel Vadot			pmx_led_sata_brt_ctrl_2: pmx-led-sata-brt-ctrl-2 {
68*f126890aSEmmanuel Vadot				marvell,pins = "mpp39";
69*f126890aSEmmanuel Vadot				marvell,function = "gpio";
70*f126890aSEmmanuel Vadot			};
71*f126890aSEmmanuel Vadot			pmx_led_backup_brt_ctrl_1: pmx-led-backup-brt-ctrl-1 {
72*f126890aSEmmanuel Vadot				marvell,pins = "mpp40";
73*f126890aSEmmanuel Vadot				marvell,function = "gpio";
74*f126890aSEmmanuel Vadot			};
75*f126890aSEmmanuel Vadot			pmx_led_backup_brt_ctrl_2: pmx-led-backup-brt-ctrl-2 {
76*f126890aSEmmanuel Vadot				marvell,pins = "mpp41";
77*f126890aSEmmanuel Vadot				marvell,function = "gpio";
78*f126890aSEmmanuel Vadot			};
79*f126890aSEmmanuel Vadot			pmx_led_power_brt_ctrl_1: pmx-led-power-brt-ctrl-1 {
80*f126890aSEmmanuel Vadot				marvell,pins = "mpp42";
81*f126890aSEmmanuel Vadot				marvell,function = "gpio";
82*f126890aSEmmanuel Vadot			};
83*f126890aSEmmanuel Vadot			pmx_led_power_brt_ctrl_2: pmx-led-power-brt-ctrl-2 {
84*f126890aSEmmanuel Vadot				marvell,pins = "mpp43";
85*f126890aSEmmanuel Vadot				marvell,function = "gpio";
86*f126890aSEmmanuel Vadot			};
87*f126890aSEmmanuel Vadot			pmx_led_health_brt_ctrl_1: pmx-led-health-brt-ctrl-1 {
88*f126890aSEmmanuel Vadot				marvell,pins = "mpp44";
89*f126890aSEmmanuel Vadot				marvell,function = "gpio";
90*f126890aSEmmanuel Vadot			};
91*f126890aSEmmanuel Vadot			pmx_led_health_brt_ctrl_2: pmx-led-health-brt-ctrl-2 {
92*f126890aSEmmanuel Vadot				marvell,pins = "mpp45";
93*f126890aSEmmanuel Vadot				marvell,function = "gpio";
94*f126890aSEmmanuel Vadot			};
95*f126890aSEmmanuel Vadot			pmx_led_rebuild_brt_ctrl_1: pmx-led-rebuild-brt-ctrl-1 {
96*f126890aSEmmanuel Vadot				marvell,pins = "mpp46";
97*f126890aSEmmanuel Vadot				marvell,function = "gpio";
98*f126890aSEmmanuel Vadot			};
99*f126890aSEmmanuel Vadot			pmx_led_rebuild_brt_ctrl_2: pmx-led-rebuild-brt-ctrl-2 {
100*f126890aSEmmanuel Vadot				marvell,pins = "mpp47";
101*f126890aSEmmanuel Vadot				marvell,function = "gpio";
102*f126890aSEmmanuel Vadot			};
103*f126890aSEmmanuel Vadot
104*f126890aSEmmanuel Vadot		};
105*f126890aSEmmanuel Vadot		i2c@11000 {
106*f126890aSEmmanuel Vadot			status = "okay";
107*f126890aSEmmanuel Vadot
108*f126890aSEmmanuel Vadot			lm63: lm63@4c {
109*f126890aSEmmanuel Vadot				compatible = "national,lm63";
110*f126890aSEmmanuel Vadot				reg = <0x4c>;
111*f126890aSEmmanuel Vadot			};
112*f126890aSEmmanuel Vadot		};
113*f126890aSEmmanuel Vadot
114*f126890aSEmmanuel Vadot		serial@12000 {
115*f126890aSEmmanuel Vadot			status = "okay";
116*f126890aSEmmanuel Vadot		};
117*f126890aSEmmanuel Vadot
118*f126890aSEmmanuel Vadot		sata@80000 {
119*f126890aSEmmanuel Vadot			status = "okay";
120*f126890aSEmmanuel Vadot			nr-ports = <2>;
121*f126890aSEmmanuel Vadot		};
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot	};
124*f126890aSEmmanuel Vadot	gpio-leds {
125*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
126*f126890aSEmmanuel Vadot		pinctrl-0 = < &pmx_led_backup &pmx_led_power
127*f126890aSEmmanuel Vadot			      &pmx_led_rebuild &pmx_led_health >;
128*f126890aSEmmanuel Vadot		pinctrl-names = "default";
129*f126890aSEmmanuel Vadot
130*f126890aSEmmanuel Vadot		power_led {
131*f126890aSEmmanuel Vadot			label = "status:white:power_led";
132*f126890aSEmmanuel Vadot			gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
133*f126890aSEmmanuel Vadot			default-state = "keep";
134*f126890aSEmmanuel Vadot		};
135*f126890aSEmmanuel Vadot		rebuild_led {
136*f126890aSEmmanuel Vadot			label = "status:white:rebuild_led";
137*f126890aSEmmanuel Vadot			gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
138*f126890aSEmmanuel Vadot		};
139*f126890aSEmmanuel Vadot		health_led {
140*f126890aSEmmanuel Vadot			label = "status:red:health_led";
141*f126890aSEmmanuel Vadot			gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
142*f126890aSEmmanuel Vadot		};
143*f126890aSEmmanuel Vadot		backup_led {
144*f126890aSEmmanuel Vadot			label = "status:blue:backup_led";
145*f126890aSEmmanuel Vadot			gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
146*f126890aSEmmanuel Vadot		};
147*f126890aSEmmanuel Vadot	};
148*f126890aSEmmanuel Vadot	gpio-keys {
149*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
150*f126890aSEmmanuel Vadot		#address-cells = <1>;
151*f126890aSEmmanuel Vadot		#size-cells = <0>;
152*f126890aSEmmanuel Vadot		pinctrl-0 = <&pmx_button_reset &pmx_button_power
153*f126890aSEmmanuel Vadot			     &pmx_button_otb>;
154*f126890aSEmmanuel Vadot		pinctrl-names = "default";
155*f126890aSEmmanuel Vadot
156*f126890aSEmmanuel Vadot
157*f126890aSEmmanuel Vadot		Power {
158*f126890aSEmmanuel Vadot			label = "Power Button";
159*f126890aSEmmanuel Vadot			linux,code = <KEY_POWER>;
160*f126890aSEmmanuel Vadot			gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
161*f126890aSEmmanuel Vadot		};
162*f126890aSEmmanuel Vadot		Reset {
163*f126890aSEmmanuel Vadot			label = "Reset Button";
164*f126890aSEmmanuel Vadot			linux,code = <KEY_RESTART>;
165*f126890aSEmmanuel Vadot			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
166*f126890aSEmmanuel Vadot		};
167*f126890aSEmmanuel Vadot		OTB {
168*f126890aSEmmanuel Vadot			label = "OTB Button";
169*f126890aSEmmanuel Vadot			linux,code = <KEY_COPY>;
170*f126890aSEmmanuel Vadot			gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
171*f126890aSEmmanuel Vadot		};
172*f126890aSEmmanuel Vadot	};
173*f126890aSEmmanuel Vadot	gpio-poweroff {
174*f126890aSEmmanuel Vadot		compatible = "gpio-poweroff";
175*f126890aSEmmanuel Vadot		gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
176*f126890aSEmmanuel Vadot	};
177*f126890aSEmmanuel Vadot};
178*f126890aSEmmanuel Vadot
179*f126890aSEmmanuel Vadot&nand {
180*f126890aSEmmanuel Vadot	status = "okay";
181*f126890aSEmmanuel Vadot
182*f126890aSEmmanuel Vadot	partition@0 {
183*f126890aSEmmanuel Vadot		label = "u-boot";
184*f126890aSEmmanuel Vadot		reg = <0x0000000 0x100000>;
185*f126890aSEmmanuel Vadot		read-only;
186*f126890aSEmmanuel Vadot	};
187*f126890aSEmmanuel Vadot
188*f126890aSEmmanuel Vadot	partition@a0000 {
189*f126890aSEmmanuel Vadot		label = "env";
190*f126890aSEmmanuel Vadot		reg = <0xa0000 0x20000>;
191*f126890aSEmmanuel Vadot		read-only;
192*f126890aSEmmanuel Vadot	};
193*f126890aSEmmanuel Vadot
194*f126890aSEmmanuel Vadot	partition@100000 {
195*f126890aSEmmanuel Vadot		label = "uImage";
196*f126890aSEmmanuel Vadot		reg = <0x100000 0x300000>;
197*f126890aSEmmanuel Vadot	};
198*f126890aSEmmanuel Vadot
199*f126890aSEmmanuel Vadot	partition@400000 {
200*f126890aSEmmanuel Vadot		label = "rootfs";
201*f126890aSEmmanuel Vadot		reg = <0x400000 0x1C00000>;
202*f126890aSEmmanuel Vadot	};
203*f126890aSEmmanuel Vadot};
204*f126890aSEmmanuel Vadot
205*f126890aSEmmanuel Vadot&mdio {
206*f126890aSEmmanuel Vadot	status = "okay";
207*f126890aSEmmanuel Vadot
208*f126890aSEmmanuel Vadot	ethphy1: ethernet-phy@11 {
209*f126890aSEmmanuel Vadot		reg = <11>;
210*f126890aSEmmanuel Vadot	};
211*f126890aSEmmanuel Vadot};
212*f126890aSEmmanuel Vadot
213*f126890aSEmmanuel Vadot&eth0 {
214*f126890aSEmmanuel Vadot	status = "okay";
215*f126890aSEmmanuel Vadot	ethernet0-port@0 {
216*f126890aSEmmanuel Vadot		speed = <1000>;
217*f126890aSEmmanuel Vadot		duplex = <1>;
218*f126890aSEmmanuel Vadot	};
219*f126890aSEmmanuel Vadot};
220*f126890aSEmmanuel Vadot
221*f126890aSEmmanuel Vadot&eth1 {
222*f126890aSEmmanuel Vadot	status = "okay";
223*f126890aSEmmanuel Vadot	ethernet1-port@0 {
224*f126890aSEmmanuel Vadot		phy-handle = <&ethphy1>;
225*f126890aSEmmanuel Vadot	};
226*f126890aSEmmanuel Vadot};
227