Merge tag 'cris-for-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/jesper...
[deliverable/linux.git] / arch / arm / boot / dts / armada-xp-netgear-rn2120.dts
1 /*
2 * Device Tree file for NETGEAR ReadyNAS 2120
3 *
4 * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 */
11
12 /dts-v1/;
13
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include "armada-xp-mv78230.dtsi"
17
18 / {
19 model = "NETGEAR ReadyNAS 2120";
20 compatible = "netgear,readynas-2120", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
21
22 chosen {
23 bootargs = "console=ttyS0,115200 earlyprintk";
24 };
25
26 memory {
27 device_type = "memory";
28 reg = <0 0x00000000 0 0x80000000>; /* 2GB */
29 };
30
31 soc {
32 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
33 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;
34
35 pcie-controller {
36 status = "okay";
37
38 /* Connected to first Marvell 88SE9170 SATA controller */
39 pcie@1,0 {
40 /* Port 0, Lane 0 */
41 status = "okay";
42 };
43
44 /* Connected to second Marvell 88SE9170 SATA controller */
45 pcie@2,0 {
46 /* Port 0, Lane 1 */
47 status = "okay";
48 };
49
50 /* Connected to Fresco Logic FL1009 USB 3.0 controller */
51 pcie@5,0 {
52 /* Port 1, Lane 0 */
53 status = "okay";
54 };
55 };
56
57 internal-regs {
58 /* Two rear eSATA ports */
59 sata@a0000 {
60 nr-ports = <2>;
61 status = "okay";
62 };
63
64 serial@12000 {
65 status = "okay";
66 };
67
68 mdio {
69 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
70 reg = <0>;
71 };
72
73 phy1: ethernet-phy@1 { /* Marvell 88E1318 */
74 reg = <1>;
75 };
76 };
77
78 ethernet@70000 {
79 status = "okay";
80 phy = <&phy0>;
81 phy-mode = "rgmii-id";
82 };
83
84 ethernet@74000 {
85 status = "okay";
86 phy = <&phy1>;
87 phy-mode = "rgmii-id";
88 };
89
90 /* Front USB 2.0 port */
91 usb@50000 {
92 status = "okay";
93 };
94
95 i2c@11000 {
96 compatible = "marvell,mv64xxx-i2c";
97 clock-frequency = <400000>;
98 status = "okay";
99
100 isl12057: isl12057@68 {
101 compatible = "isil,isl12057";
102 reg = <0x68>;
103 isil,irq2-can-wakeup-machine;
104 };
105
106 /* Controller for rear fan #1 of 3 (Protechnic
107 * MGT4012XB-O20, 8000RPM) near eSATA port */
108 g762_fan1: g762@3e {
109 compatible = "gmt,g762";
110 reg = <0x3e>;
111 clocks = <&g762_clk>; /* input clock */
112 fan_gear_mode = <0>;
113 fan_startv = <1>;
114 pwm_polarity = <0>;
115 };
116
117 /* Controller for rear (center) fan #2 of 3 */
118 g762_fan2: g762@48 {
119 compatible = "gmt,g762";
120 reg = <0x48>;
121 clocks = <&g762_clk>; /* input clock */
122 fan_gear_mode = <0>;
123 fan_startv = <1>;
124 pwm_polarity = <0>;
125 };
126
127 /* Controller for rear fan #3 of 3 */
128 g762_fan3: g762@49 {
129 compatible = "gmt,g762";
130 reg = <0x49>;
131 clocks = <&g762_clk>; /* input clock */
132 fan_gear_mode = <0>;
133 fan_startv = <1>;
134 pwm_polarity = <0>;
135 };
136
137 /* Temperature sensor */
138 g751: g751@4c {
139 compatible = "gmt,g751";
140 reg = <0x4c>;
141 };
142 };
143
144 nand@d0000 {
145 status = "okay";
146 num-cs = <1>;
147 marvell,nand-keep-config;
148 marvell,nand-enable-arbiter;
149 nand-on-flash-bbt;
150
151 /* Use Hardware BCH ECC */
152 nand-ecc-strength = <4>;
153 nand-ecc-step-size = <512>;
154
155 partition@0 {
156 label = "u-boot";
157 reg = <0x0000000 0x180000>; /* 1.5MB */
158 read-only;
159 };
160
161 partition@180000 {
162 label = "u-boot-env";
163 reg = <0x180000 0x20000>; /* 128KB */
164 read-only;
165 };
166
167 partition@200000 {
168 label = "uImage";
169 reg = <0x0200000 0x600000>; /* 6MB */
170 };
171
172 partition@800000 {
173 label = "minirootfs";
174 reg = <0x0800000 0x400000>; /* 4MB */
175 };
176
177 /* Last MB is for the BBT, i.e. not writable */
178 partition@c00000 {
179 label = "ubifs";
180 reg = <0x0c00000 0x7400000>; /* 116MB */
181 };
182 };
183 };
184 };
185
186 clocks {
187 g762_clk: g762-oscillator {
188 compatible = "fixed-clock";
189 #clock-cells = <0>;
190 clock-frequency = <32768>;
191 };
192 };
193
194 gpio-leds {
195 compatible = "gpio-leds";
196 pinctrl-0 = <&sata1_led_pin &sata2_led_pin &err_led_pin
197 &sata3_led_pin &sata4_led_pin>;
198 pinctrl-names = "default";
199
200 red-sata1-led {
201 label = "rn2120:red:sata1";
202 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
203 default-state = "off";
204 };
205
206 red-sata2-led {
207 label = "rn2120:red:sata2";
208 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
209 default-state = "off";
210 };
211
212 red-sata3-led {
213 label = "rn2120:red:sata3";
214 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
215 default-state = "off";
216 };
217
218 red-sata4-led {
219 label = "rn2120:red:sata4";
220 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
221 default-state = "off";
222 };
223
224 red-err-led {
225 label = "rn2120:red:err";
226 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
227 default-state = "off";
228 };
229 };
230
231 gpio-keys {
232 compatible = "gpio-keys";
233 pinctrl-0 = <&power_button_pin &reset_button_pin>;
234 pinctrl-names = "default";
235
236 power-button {
237 label = "Power Button";
238 linux,code = <KEY_POWER>;
239 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
240 };
241
242 reset-button {
243 label = "Reset Button";
244 linux,code = <KEY_RESTART>;
245 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
246 };
247 };
248
249 gpio-poweroff {
250 compatible = "gpio-poweroff";
251 pinctrl-0 = <&poweroff>;
252 pinctrl-names = "default";
253 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
254 };
255 };
256
257 &pinctrl {
258 poweroff: poweroff {
259 marvell,pins = "mpp42";
260 marvell,function = "gpio";
261 };
262
263 power_button_pin: power-button-pin {
264 marvell,pins = "mpp27";
265 marvell,function = "gpio";
266 };
267
268 reset_button_pin: reset-button-pin {
269 marvell,pins = "mpp41";
270 marvell,function = "gpio";
271 };
272
273 sata1_led_pin: sata1-led-pin {
274 marvell,pins = "mpp31";
275 marvell,function = "gpio";
276 };
277
278 sata2_led_pin: sata2-led-pin {
279 marvell,pins = "mpp40";
280 marvell,function = "gpio";
281 };
282
283 sata3_led_pin: sata3-led-pin {
284 marvell,pins = "mpp44";
285 marvell,function = "gpio";
286 };
287
288 sata4_led_pin: sata4-led-pin {
289 marvell,pins = "mpp47";
290 marvell,function = "gpio";
291 };
292
293 sata1_power_pin: sata1-power-pin {
294 marvell,pins = "mpp24";
295 marvell,function = "gpio";
296 };
297
298 sata2_power_pin: sata2-power-pin {
299 marvell,pins = "mpp25";
300 marvell,function = "gpio";
301 };
302
303 sata3_power_pin: sata3-power-pin {
304 marvell,pins = "mpp26";
305 marvell,function = "gpio";
306 };
307
308 sata4_power_pin: sata4-power-pin {
309 marvell,pins = "mpp28";
310 marvell,function = "gpio";
311 };
312
313 sata1_pres_pin: sata1-pres-pin {
314 marvell,pins = "mpp32";
315 marvell,function = "gpio";
316 };
317
318 sata2_pres_pin: sata2-pres-pin {
319 marvell,pins = "mpp33";
320 marvell,function = "gpio";
321 };
322
323 sata3_pres_pin: sata3-pres-pin {
324 marvell,pins = "mpp34";
325 marvell,function = "gpio";
326 };
327
328 sata4_pres_pin: sata4-pres-pin {
329 marvell,pins = "mpp35";
330 marvell,function = "gpio";
331 };
332
333 err_led_pin: err-led-pin {
334 marvell,pins = "mpp45";
335 marvell,function = "gpio";
336 };
337 };
This page took 0.0393 seconds and 6 git commands to generate.