]>
Commit | Line | Data |
---|---|---|
261e7735 AE |
1 | /* |
2 | * Device Tree file for NETGEAR ReadyNAS Duo v2 | |
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 | ||
f236f5aa AE |
12 | /dts-v1/; |
13 | ||
0ab6129c EG |
14 | #include "kirkwood.dtsi" |
15 | #include "kirkwood-6282.dtsi" | |
f236f5aa AE |
16 | |
17 | / { | |
18 | model = "NETGEAR ReadyNAS Duo v2"; | |
19 | compatible = "netgear,readynas-duo-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,kirkwood"; | |
20 | ||
21 | memory { /* 256 MB */ | |
22 | device_type = "memory"; | |
23 | reg = <0x00000000 0x10000000>; | |
24 | }; | |
25 | ||
26 | chosen { | |
27 | bootargs = "console=ttyS0,115200n8 earlyprintk"; | |
28 | }; | |
29 | ||
54397d85 | 30 | mbus { |
54397d85 EG |
31 | pcie-controller { |
32 | status = "okay"; | |
33 | ||
34 | pcie@1,0 { | |
35 | status = "okay"; | |
36 | }; | |
37 | }; | |
38 | }; | |
39 | ||
f236f5aa AE |
40 | ocp@f1000000 { |
41 | pinctrl: pinctrl@10000 { | |
f236f5aa AE |
42 | pmx_button_power: pmx-button-power { |
43 | marvell,pins = "mpp47"; | |
44 | marvell,function = "gpio"; | |
45 | }; | |
ece19e2b | 46 | |
f236f5aa AE |
47 | pmx_button_backup: pmx-button-backup { |
48 | marvell,pins = "mpp45"; | |
49 | marvell,function = "gpio"; | |
50 | }; | |
ece19e2b | 51 | |
f236f5aa AE |
52 | pmx_button_reset: pmx-button-reset { |
53 | marvell,pins = "mpp13"; | |
54 | marvell,function = "gpio"; | |
55 | }; | |
ece19e2b | 56 | |
f236f5aa AE |
57 | pmx_led_blue_power: pmx-led-blue-power { |
58 | marvell,pins = "mpp31"; | |
59 | marvell,function = "gpio"; | |
60 | }; | |
ece19e2b | 61 | |
f236f5aa AE |
62 | pmx_led_blue_activity: pmx-led-blue-activity { |
63 | marvell,pins = "mpp38"; | |
64 | marvell,function = "gpio"; | |
65 | }; | |
ece19e2b | 66 | |
f236f5aa AE |
67 | pmx_led_blue_disk1: pmx-led-blue-disk1 { |
68 | marvell,pins = "mpp23"; | |
69 | marvell,function = "gpio"; | |
70 | }; | |
ece19e2b | 71 | |
f236f5aa AE |
72 | pmx_led_blue_disk2: pmx-led-blue-disk2 { |
73 | marvell,pins = "mpp22"; | |
74 | marvell,function = "gpio"; | |
75 | }; | |
ece19e2b | 76 | |
f236f5aa AE |
77 | pmx_led_blue_backup: pmx-led-blue-backup { |
78 | marvell,pins = "mpp29"; | |
79 | marvell,function = "gpio"; | |
80 | }; | |
ece19e2b | 81 | |
bfc2e5f5 AE |
82 | pmx_poweroff: pmx-poweroff { |
83 | marvell,pins = "mpp30"; | |
84 | marvell,function = "gpio"; | |
85 | }; | |
f236f5aa AE |
86 | }; |
87 | ||
4a9f4c7f | 88 | clocks { |
261e7735 | 89 | g762_clk: g762-oscillator { |
4a9f4c7f AE |
90 | compatible = "fixed-clock"; |
91 | #clock-cells = <0>; | |
92 | clock-frequency = <8192>; | |
93 | }; | |
94 | }; | |
95 | ||
f236f5aa AE |
96 | i2c@11000 { |
97 | status = "okay"; | |
98 | ||
99 | rs5c372a: rs5c372a@32 { | |
100 | compatible = "ricoh,rs5c372a"; | |
101 | reg = <0x32>; | |
102 | }; | |
4a9f4c7f AE |
103 | |
104 | g762: g762@3e { | |
105 | compatible = "gmt,g762"; | |
106 | reg = <0x3e>; | |
107 | clocks = <&g762_clk>; /* input clock */ | |
108 | fan_gear_mode = <0>; | |
109 | fan_startv = <1>; | |
110 | pwm_polarity = <0>; | |
111 | }; | |
f236f5aa AE |
112 | }; |
113 | ||
114 | serial@12000 { | |
3d98a788 TP |
115 | pinctrl-0 = <&pmx_uart0>; |
116 | pinctrl-names = "default"; | |
f236f5aa AE |
117 | status = "okay"; |
118 | }; | |
119 | ||
f236f5aa AE |
120 | sata@80000 { |
121 | status = "okay"; | |
122 | nr-ports = <2>; | |
123 | }; | |
124 | }; | |
125 | ||
126 | gpio-leds { | |
127 | compatible = "gpio-leds"; | |
3d98a788 TP |
128 | pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity |
129 | &pmx_led_blue_disk1 &pmx_led_blue_disk2 | |
130 | &pmx_led_blue_backup >; | |
131 | pinctrl-names = "default"; | |
f236f5aa AE |
132 | |
133 | power_led { | |
134 | label = "status:blue:power_led"; | |
261e7735 | 135 | gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; |
dcdf14c7 | 136 | default-state = "keep"; |
f236f5aa | 137 | }; |
ece19e2b | 138 | |
f236f5aa AE |
139 | activity_led { |
140 | label = "status:blue:activity_led"; | |
261e7735 | 141 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
f236f5aa | 142 | }; |
ece19e2b | 143 | |
f236f5aa AE |
144 | disk1_led { |
145 | label = "status:blue:disk1_led"; | |
261e7735 | 146 | gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; |
f236f5aa | 147 | }; |
ece19e2b | 148 | |
f236f5aa AE |
149 | disk2_led { |
150 | label = "status:blue:disk2_led"; | |
261e7735 | 151 | gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; |
f236f5aa | 152 | }; |
ece19e2b | 153 | |
f236f5aa AE |
154 | backup_led { |
155 | label = "status:blue:backup_led"; | |
261e7735 | 156 | gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; |
f236f5aa AE |
157 | }; |
158 | }; | |
159 | ||
261e7735 | 160 | gpio-keys { |
f236f5aa | 161 | compatible = "gpio-keys"; |
3d98a788 TP |
162 | pinctrl-0 = <&pmx_button_power &pmx_button_backup |
163 | &pmx_button_reset>; | |
164 | pinctrl-names = "default"; | |
165 | ||
261e7735 | 166 | power-button { |
f236f5aa | 167 | label = "Power Button"; |
261e7735 AE |
168 | linux,code = <KEY_POWER>; |
169 | gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; | |
f236f5aa | 170 | }; |
ece19e2b | 171 | |
261e7735 | 172 | reset-button { |
f236f5aa | 173 | label = "Reset Button"; |
261e7735 AE |
174 | linux,code = <KEY_RESTART>; |
175 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | |
f236f5aa | 176 | }; |
ece19e2b | 177 | |
261e7735 | 178 | backup-button { |
f236f5aa | 179 | label = "Backup Button"; |
261e7735 AE |
180 | linux,code = <KEY_COPY>; |
181 | gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; | |
f236f5aa AE |
182 | }; |
183 | }; | |
184 | ||
bfc2e5f5 AE |
185 | gpio-poweroff { |
186 | compatible = "gpio-poweroff"; | |
187 | pinctrl-0 = <&pmx_poweroff>; | |
188 | pinctrl-names = "default"; | |
189 | gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; | |
190 | }; | |
191 | ||
ece19e2b AE |
192 | regulators { |
193 | compatible = "simple-bus"; | |
194 | #address-cells = <1>; | |
195 | #size-cells = <0>; | |
196 | ||
197 | usb3_regulator: usb3-regulator { | |
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 GPIO_ACTIVE_HIGH>; | |
207 | }; | |
208 | }; | |
f236f5aa | 209 | }; |
876e2333 | 210 | |
7045ff5a JG |
211 | &nand { |
212 | status = "okay"; | |
213 | ||
214 | partition@0 { | |
215 | label = "u-boot"; | |
216 | reg = <0x0000000 0x180000>; | |
217 | read-only; | |
218 | }; | |
219 | ||
220 | partition@180000 { | |
221 | label = "u-boot-env"; | |
222 | reg = <0x180000 0x20000>; | |
223 | }; | |
224 | ||
225 | partition@200000 { | |
226 | label = "uImage"; | |
227 | reg = <0x0200000 0x600000>; | |
228 | }; | |
229 | ||
230 | partition@800000 { | |
231 | label = "minirootfs"; | |
232 | reg = <0x0800000 0x1000000>; | |
233 | }; | |
234 | ||
235 | partition@1800000 { | |
236 | label = "jffs2"; | |
237 | reg = <0x1800000 0x6800000>; | |
238 | }; | |
239 | }; | |
240 | ||
876e2333 SH |
241 | &mdio { |
242 | status = "okay"; | |
243 | ||
261e7735 | 244 | ethphy0: ethernet-phy@0 { /* Marvell 88E1318 */ |
876e2333 SH |
245 | reg = <0>; |
246 | }; | |
247 | }; | |
248 | ||
249 | ð0 { | |
250 | status = "okay"; | |
251 | ethernet0-port@0 { | |
252 | phy-handle = <ðphy0>; | |
253 | }; | |
254 | }; |