blob: 30586e47986a9738321b2a6d2a085dbc514f600f [file] [log] [blame]
Arnaud Ebalard45e88152013-10-22 20:56:13 +02001/*
2 * Device Tree file for NETGEAR ReadyNAS 104
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
Arnaud Ebalard96b09e32013-11-29 21:27:48 +010014#include <dt-bindings/input/input.h>
Arnaud Ebalard100a5fa2013-11-22 00:00:12 +010015#include <dt-bindings/gpio/gpio.h>
Arnaud Ebalard96b09e32013-11-29 21:27:48 +010016#include "armada-370.dtsi"
Arnaud Ebalard45e88152013-10-22 20:56:13 +020017
18/ {
19 model = "NETGEAR ReadyNAS 104";
20 compatible = "netgear,readynas-104", "marvell,armada370", "marvell,armada-370-xp";
21
22 chosen {
23 bootargs = "console=ttyS0,115200 earlyprintk";
24 };
25
26 memory {
27 device_type = "memory";
28 reg = <0x00000000 0x20000000>; /* 512 MB */
29 };
30
31 soc {
32 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
33 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
34
35 pcie-controller {
36 status = "okay";
37
38 /* Connected to FL1009 USB 3.0 controller */
39 pcie@1,0 {
40 /* Port 0, Lane 0 */
41 status = "okay";
42 };
43
44 /* Connected to Marvell 88SE9215 SATA controller */
45 pcie@2,0 {
46 /* Port 1, Lane 0 */
47 status = "okay";
48 };
49 };
50
51 internal-regs {
52 serial@12000 {
Arnaud Ebalard45e88152013-10-22 20:56:13 +020053 status = "okay";
54 };
55
Arnaud Ebalard45e88152013-10-22 20:56:13 +020056 mdio {
Ezequiel Garciaa1451ab2014-08-11 09:14:40 -030057 pinctrl-0 = <&mdio_pins>;
58 pinctrl-names = "default";
Arnaud Ebalard96b09e32013-11-29 21:27:48 +010059 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
Arnaud Ebalard45e88152013-10-22 20:56:13 +020060 reg = <0>;
61 };
62
Arnaud Ebalard96b09e32013-11-29 21:27:48 +010063 phy1: ethernet-phy@1 { /* Marvell 88E1318 */
Arnaud Ebalard45e88152013-10-22 20:56:13 +020064 reg = <1>;
65 };
66 };
67
68 ethernet@70000 {
Ezequiel Garciaa1451ab2014-08-11 09:14:40 -030069 pinctrl-0 = <&ge0_rgmii_pins>;
70 pinctrl-names = "default";
Arnaud Ebalard45e88152013-10-22 20:56:13 +020071 status = "okay";
72 phy = <&phy0>;
73 phy-mode = "rgmii-id";
74 };
75
76 ethernet@74000 {
Ezequiel Garciaa1451ab2014-08-11 09:14:40 -030077 pinctrl-0 = <&ge1_rgmii_pins>;
78 pinctrl-names = "default";
Arnaud Ebalard45e88152013-10-22 20:56:13 +020079 status = "okay";
80 phy = <&phy1>;
81 phy-mode = "rgmii-id";
82 };
83
84 usb@50000 {
85 status = "okay";
86 };
87
88 i2c@11000 {
89 compatible = "marvell,mv64xxx-i2c";
90 clock-frequency = <100000>;
91 status = "okay";
92
Arnaud Ebalardc0d1c262013-12-19 23:02:15 +010093 isl12057: isl12057@68 {
Philipp Zabel7a6540c2014-09-08 11:19:18 +020094 compatible = "isil,isl12057";
Arnaud Ebalardc0d1c262013-12-19 23:02:15 +010095 reg = <0x68>;
96 };
97
Arnaud Ebalard45e88152013-10-22 20:56:13 +020098 g762: g762@3e {
99 compatible = "gmt,g762";
100 reg = <0x3e>;
101 clocks = <&g762_clk>; /* input clock */
102 fan_gear_mode = <0>;
103 fan_startv = <1>;
104 pwm_polarity = <0>;
105 };
Arnaud Ebalard100a5fa2013-11-22 00:00:12 +0100106
107 pca9554: pca9554@23 {
108 compatible = "nxp,pca9554";
109 gpio-controller;
110 #gpio-cells = <2>;
111 reg = <0x23>;
112 };
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200113 };
Arnaud Ebalard0373a552013-12-07 00:13:18 +0100114
115 nand@d0000 {
116 status = "okay";
117 num-cs = <1>;
118 marvell,nand-keep-config;
119 marvell,nand-enable-arbiter;
120 nand-on-flash-bbt;
121
Arnaud Ebalard225b94c2014-09-06 22:49:25 +0200122 /* Use Hardware BCH ECC */
123 nand-ecc-strength = <4>;
124 nand-ecc-step-size = <512>;
125
Arnaud Ebalard0373a552013-12-07 00:13:18 +0100126 partition@0 {
127 label = "u-boot";
128 reg = <0x0000000 0x180000>; /* 1.5MB */
129 read-only;
130 };
131
132 partition@180000 {
133 label = "u-boot-env";
134 reg = <0x180000 0x20000>; /* 128KB */
135 read-only;
136 };
137
138 partition@200000 {
139 label = "uImage";
140 reg = <0x0200000 0x600000>; /* 6MB */
141 };
142
143 partition@800000 {
144 label = "minirootfs";
145 reg = <0x0800000 0x400000>; /* 4MB */
146 };
147
148 /* Last MB is for the BBT, i.e. not writable */
149 partition@c00000 {
150 label = "ubifs";
151 reg = <0x0c00000 0x7400000>; /* 116MB */
152 };
153 };
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200154 };
155 };
156
157 clocks {
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100158 g762_clk: g762-oscillator {
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200159 compatible = "fixed-clock";
160 #clock-cells = <0>;
161 clock-frequency = <8192>;
162 };
163 };
164
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100165 gpio-leds {
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200166 compatible = "gpio-leds";
167 pinctrl-0 = <&backup_led_pin &power_led_pin>;
168 pinctrl-names = "default";
169
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100170 blue-backup-led {
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200171 label = "rn104:blue:backup";
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100172 gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200173 default-state = "off";
174 };
175
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100176 blue-power-led {
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200177 label = "rn104:blue:pwr";
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100178 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200179 linux,default-trigger = "keep";
180 };
Arnaud Ebalard100a5fa2013-11-22 00:00:12 +0100181
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100182 blue-sata1-led {
Arnaud Ebalard100a5fa2013-11-22 00:00:12 +0100183 label = "rn104:blue:sata1";
184 gpios = <&pca9554 0 GPIO_ACTIVE_LOW>;
185 default-state = "off";
186 };
187
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100188 blue-sata2-led {
Arnaud Ebalard100a5fa2013-11-22 00:00:12 +0100189 label = "rn104:blue:sata2";
190 gpios = <&pca9554 1 GPIO_ACTIVE_LOW>;
191 default-state = "off";
192 };
193
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100194 blue-sata3-led {
Arnaud Ebalard100a5fa2013-11-22 00:00:12 +0100195 label = "rn104:blue:sata3";
196 gpios = <&pca9554 2 GPIO_ACTIVE_LOW>;
197 default-state = "off";
198 };
199
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100200 blue-sata4-led {
Arnaud Ebalard100a5fa2013-11-22 00:00:12 +0100201 label = "rn104:blue:sata4";
202 gpios = <&pca9554 3 GPIO_ACTIVE_LOW>;
203 default-state = "off";
204 };
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200205 };
206
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100207 gpio-keys {
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200208 compatible = "gpio-keys";
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100209 pinctrl-0 = <&backup_button_pin
210 &power_button_pin
211 &reset_button_pin>;
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200212 pinctrl-names = "default";
213
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100214 backup-button {
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200215 label = "Backup Button";
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100216 linux,code = <KEY_COPY>;
217 gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200218 };
219
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100220 power-button {
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200221 label = "Power Button";
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100222 linux,code = <KEY_POWER>;
223 gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200224 };
225
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100226 reset-button {
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200227 label = "Reset Button";
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100228 linux,code = <KEY_RESTART>;
229 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200230 };
231 };
232
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100233 gpio-poweroff {
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200234 compatible = "gpio-poweroff";
235 pinctrl-0 = <&poweroff>;
236 pinctrl-names = "default";
Arnaud Ebalard96b09e32013-11-29 21:27:48 +0100237 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
Arnaud Ebalard45e88152013-10-22 20:56:13 +0200238 };
239};
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100240
241&pinctrl {
242 poweroff: poweroff {
243 marvell,pins = "mpp60";
244 marvell,function = "gpio";
245 };
246
247 backup_button_pin: backup-button-pin {
248 marvell,pins = "mpp52";
249 marvell,function = "gpio";
250 };
251
252 power_button_pin: power-button-pin {
253 marvell,pins = "mpp62";
254 marvell,function = "gpio";
255 };
256
257 backup_led_pin: backup-led-pin {
258 marvell,pins = "mpp63";
259 marvell,function = "gpo";
260 };
261
262 power_led_pin: power-led-pin {
263 marvell,pins = "mpp64";
264 marvell,function = "gpio";
265 };
266
267 reset_button_pin: reset-button-pin {
268 marvell,pins = "mpp65";
269 marvell,function = "gpio";
270 };
271};