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