blob: 874857ea9cb8c8a80fc812609a2b3cd368cb40df [file] [log] [blame]
Arnaud Ebalardf236f5a2013-03-19 23:28:06 +01001/dts-v1/;
2
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03003#include "kirkwood.dtsi"
4#include "kirkwood-6282.dtsi"
Arnaud Ebalardf236f5a2013-03-19 23:28:06 +01005
6/ {
7 model = "NETGEAR ReadyNAS Duo v2";
8 compatible = "netgear,readynas-duo-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,kirkwood";
9
10 memory { /* 256 MB */
11 device_type = "memory";
12 reg = <0x00000000 0x10000000>;
13 };
14
15 chosen {
16 bootargs = "console=ttyS0,115200n8 earlyprintk";
17 };
18
Ezequiel Garcia54397d82013-07-26 10:18:05 -030019 mbus {
20 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>;
21 pcie-controller {
22 status = "okay";
23
24 pcie@1,0 {
25 status = "okay";
26 };
27 };
28 };
29
Arnaud Ebalardf236f5a2013-03-19 23:28:06 +010030 ocp@f1000000 {
31 pinctrl: pinctrl@10000 {
Arnaud Ebalardf236f5a2013-03-19 23:28:06 +010032 pmx_button_power: pmx-button-power {
33 marvell,pins = "mpp47";
34 marvell,function = "gpio";
35 };
36 pmx_button_backup: pmx-button-backup {
37 marvell,pins = "mpp45";
38 marvell,function = "gpio";
39 };
40 pmx_button_reset: pmx-button-reset {
41 marvell,pins = "mpp13";
42 marvell,function = "gpio";
43 };
44 pmx_led_blue_power: pmx-led-blue-power {
45 marvell,pins = "mpp31";
46 marvell,function = "gpio";
47 };
48 pmx_led_blue_activity: pmx-led-blue-activity {
49 marvell,pins = "mpp38";
50 marvell,function = "gpio";
51 };
52 pmx_led_blue_disk1: pmx-led-blue-disk1 {
53 marvell,pins = "mpp23";
54 marvell,function = "gpio";
55 };
56 pmx_led_blue_disk2: pmx-led-blue-disk2 {
57 marvell,pins = "mpp22";
58 marvell,function = "gpio";
59 };
60 pmx_led_blue_backup: pmx-led-blue-backup {
61 marvell,pins = "mpp29";
62 marvell,function = "gpio";
63 };
64 };
65
Arnaud Ebalard4a9f4c72013-07-01 22:45:02 +020066 clocks {
67 #address-cells = <1>;
68 #size-cells = <0>;
69
70 g762_clk: fixedclk {
71 compatible = "fixed-clock";
72 #clock-cells = <0>;
73 clock-frequency = <8192>;
74 };
75 };
76
Arnaud Ebalardf236f5a2013-03-19 23:28:06 +010077 i2c@11000 {
78 status = "okay";
79
80 rs5c372a: rs5c372a@32 {
81 compatible = "ricoh,rs5c372a";
82 reg = <0x32>;
83 };
Arnaud Ebalard4a9f4c72013-07-01 22:45:02 +020084
85 g762: g762@3e {
86 compatible = "gmt,g762";
87 reg = <0x3e>;
88 clocks = <&g762_clk>; /* input clock */
89 fan_gear_mode = <0>;
90 fan_startv = <1>;
91 pwm_polarity = <0>;
92 };
Arnaud Ebalardf236f5a2013-03-19 23:28:06 +010093 };
94
95 serial@12000 {
Thomas Petazzoni3d98a782013-05-24 11:44:52 +020096 pinctrl-0 = <&pmx_uart0>;
97 pinctrl-names = "default";
Arnaud Ebalardf236f5a2013-03-19 23:28:06 +010098 status = "okay";
99 };
100
101 nand@3000000 {
102 status = "okay";
103
104 partition@0 {
105 label = "u-boot";
106 reg = <0x0000000 0x180000>;
107 read-only;
108 };
109
110 partition@180000 {
111 label = "u-boot-env";
112 reg = <0x180000 0x20000>;
113 };
114
115 partition@200000 {
116 label = "uImage";
117 reg = <0x0200000 0x600000>;
118 };
119
120 partition@800000 {
121 label = "minirootfs";
122 reg = <0x0800000 0x1000000>;
123 };
124
125 partition@1800000 {
126 label = "jffs2";
127 reg = <0x1800000 0x6800000>;
128 };
129 };
130
131 sata@80000 {
132 status = "okay";
133 nr-ports = <2>;
134 };
Arnaud Ebalardf236f5a2013-03-19 23:28:06 +0100135 };
136
137 gpio-leds {
138 compatible = "gpio-leds";
Thomas Petazzoni3d98a782013-05-24 11:44:52 +0200139 pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity
140 &pmx_led_blue_disk1 &pmx_led_blue_disk2
141 &pmx_led_blue_backup >;
142 pinctrl-names = "default";
Arnaud Ebalardf236f5a2013-03-19 23:28:06 +0100143
144 power_led {
145 label = "status:blue:power_led";
146 gpios = <&gpio0 31 1>; /* GPIO 31 Active Low */
147 linux,default-trigger = "default-on";
148 };
149 activity_led {
150 label = "status:blue:activity_led";
151 gpios = <&gpio1 6 1>; /* GPIO 38 Active Low */
152 };
153 disk1_led {
154 label = "status:blue:disk1_led";
155 gpios = <&gpio0 23 1>; /* GPIO 23 Active Low */
156 };
157 disk2_led {
158 label = "status:blue:disk2_led";
159 gpios = <&gpio0 22 1>; /* GPIO 22 Active Low */
160 };
161 backup_led {
162 label = "status:blue:backup_led";
163 gpios = <&gpio0 29 1>; /* GPIO 29 Active Low*/
164 };
165 };
166
167 gpio_keys {
168 compatible = "gpio-keys";
169 #address-cells = <1>;
170 #size-cells = <0>;
Thomas Petazzoni3d98a782013-05-24 11:44:52 +0200171 pinctrl-0 = <&pmx_button_power &pmx_button_backup
172 &pmx_button_reset>;
173 pinctrl-names = "default";
174
Arnaud Ebalardf236f5a2013-03-19 23:28:06 +0100175 button@1 {
176 label = "Power Button";
177 linux,code = <116>; /* KEY_POWER */
178 gpios = <&gpio1 15 1>;
179 };
180 button@2 {
181 label = "Reset Button";
182 linux,code = <0x198>; /* KEY_RESTART */
183 gpios = <&gpio0 13 1>;
184 };
185 button@3 {
186 label = "Backup Button";
187 linux,code = <133>; /* KEY_COPY */
188 gpios = <&gpio1 13 1>;
189 };
190 };
191
192 regulators {
193 compatible = "simple-bus";
194 #address-cells = <1>;
195 #size-cells = <0>;
196
197 usb_power: regulator@1 {
198 compatible = "regulator-fixed";
199 reg = <1>;
200 regulator-name = "USB 3.0 Power";
201 regulator-min-microvolt = <5000000>;
202 regulator-max-microvolt = <5000000>;
203 enable-active-high;
204 regulator-always-on;
205 regulator-boot-on;
206 gpio = <&gpio1 14 0>;
207 };
208 };
209};
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200210
211&mdio {
212 status = "okay";
213
214 ethphy0: ethernet-phy@0 {
215 device_type = "ethernet-phy";
216 reg = <0>;
217 };
218};
219
220&eth0 {
221 status = "okay";
222 ethernet0-port@0 {
223 phy-handle = <&ethphy0>;
224 };
225};