aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/boot/dts/Makefile1
-rw-r--r--arch/arm/boot/dts/kirkwood-netgear_readynas_nv+_v2.dts270
2 files changed, 271 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 6881b6ce6424..adcc6067eb13 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -90,6 +90,7 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-cloudbox.dtb \
90 kirkwood-mplcec4.dtb \ 90 kirkwood-mplcec4.dtb \
91 kirkwood-mv88f6281gtw-ge.dtb \ 91 kirkwood-mv88f6281gtw-ge.dtb \
92 kirkwood-netgear_readynas_duo_v2.dtb \ 92 kirkwood-netgear_readynas_duo_v2.dtb \
93 kirkwood-netgear_readynas_nv+_v2.dtb \
93 kirkwood-ns2.dtb \ 94 kirkwood-ns2.dtb \
94 kirkwood-ns2lite.dtb \ 95 kirkwood-ns2lite.dtb \
95 kirkwood-ns2max.dtb \ 96 kirkwood-ns2max.dtb \
diff --git a/arch/arm/boot/dts/kirkwood-netgear_readynas_nv+_v2.dts b/arch/arm/boot/dts/kirkwood-netgear_readynas_nv+_v2.dts
new file mode 100644
index 000000000000..72a3883f6a04
--- /dev/null
+++ b/arch/arm/boot/dts/kirkwood-netgear_readynas_nv+_v2.dts
@@ -0,0 +1,270 @@
1/*
2 * Device Tree file for NETGEAR ReadyNAS NV+ 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
12/dts-v1/;
13
14#include <dt-bindings/input/input.h>
15#include <dt-bindings/gpio/gpio.h>
16#include "kirkwood.dtsi"
17#include "kirkwood-6282.dtsi"
18
19/ {
20 model = "NETGEAR ReadyNAS NV+ v2";
21 compatible = "netgear,readynas-nv+-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,kirkwood";
22
23 memory { /* 256 MB */
24 device_type = "memory";
25 reg = <0x00000000 0x10000000>;
26 };
27
28 chosen {
29 bootargs = "console=ttyS0,115200n8 earlyprintk";
30 };
31
32 mbus {
33 pcie-controller {
34 status = "okay";
35
36 /* Connected to NEC uPD720200 USB 3.0 controller */
37 pcie@1,0 {
38 /* Port 0, Lane 0 */
39 status = "okay";
40 };
41 };
42 };
43
44 ocp@f1000000 {
45 pinctrl: pinctrl@10000 {
46 pmx_button_power: pmx-button-power {
47 marvell,pins = "mpp47";
48 marvell,function = "gpio";
49 };
50
51 pmx_button_backup: pmx-button-backup {
52 marvell,pins = "mpp45";
53 marvell,function = "gpio";
54 };
55
56 pmx_button_reset: pmx-button-reset {
57 marvell,pins = "mpp13";
58 marvell,function = "gpio";
59 };
60
61 pmx_led_blue_power: pmx-led-blue-power {
62 marvell,pins = "mpp31";
63 marvell,function = "gpio";
64 };
65
66 pmx_led_blue_backup: pmx-led-blue-backup {
67 marvell,pins = "mpp22";
68 marvell,function = "gpio";
69 };
70
71 pmx_led_blue_disk1: pmx-led-blue-disk1 {
72 marvell,pins = "mpp20";
73 marvell,function = "gpio";
74 };
75
76 pmx_led_blue_disk2: pmx-led-blue-disk2 {
77 marvell,pins = "mpp23";
78 marvell,function = "gpio";
79 };
80
81 pmx_led_blue_disk3: pmx-led-blue-disk3 {
82 marvell,pins = "mpp24";
83 marvell,function = "gpio";
84 };
85
86 pmx_led_blue_disk4: pmx-led-blue-disk4 {
87 marvell,pins = "mpp29";
88 marvell,function = "gpio";
89 };
90
91 pmx_poweroff: pmx-poweroff {
92 marvell,pins = "mpp30";
93 marvell,function = "gpio";
94 };
95 };
96
97 clocks {
98 g762_clk: g762-oscillator {
99 compatible = "fixed-clock";
100 #clock-cells = <0>;
101 clock-frequency = <8192>;
102 };
103 };
104
105 i2c@11000 {
106 status = "okay";
107
108 rs5c372a: rs5c372a@32 {
109 compatible = "ricoh,rs5c372a";
110 reg = <0x32>;
111 };
112
113 g762: g762@3e {
114 compatible = "gmt,g762";
115 reg = <0x3e>;
116 clocks = <&g762_clk>; /* input clock */
117 fan_gear_mode = <0>;
118 fan_startv = <1>;
119 pwm_polarity = <0>;
120 };
121 };
122
123 serial@12000 {
124 pinctrl-0 = <&pmx_uart0>;
125 pinctrl-names = "default";
126 status = "okay";
127 };
128
129 sata@80000 { /* Connected to Marvell 88SM4140 SATA port multiplier */
130 status = "okay";
131 nr-ports = <1>;
132 };
133 };
134
135 gpio-leds {
136 compatible = "gpio-leds";
137 pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_backup
138 &pmx_led_blue_disk1 &pmx_led_blue_disk2
139 &pmx_led_blue_disk3 &pmx_led_blue_disk3 >;
140 pinctrl-names = "default";
141
142 power_led {
143 label = "status:blue:power_led";
144 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
145 linux,default-trigger = "default-on";
146 };
147
148 backup_led {
149 label = "status:blue:backup_led";
150 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
151 };
152
153 disk1_led {
154 label = "status:blue:disk1_led";
155 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
156 };
157
158 disk2_led {
159 label = "status:blue:disk2_led";
160 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
161 };
162
163 disk3_led {
164 label = "status:blue:disk3_led";
165 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
166 };
167
168 disk4_led {
169 label = "status:blue:disk4_led";
170 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
171 };
172 };
173
174 gpio-keys {
175 compatible = "gpio-keys";
176 pinctrl-0 = <&pmx_button_power &pmx_button_backup
177 &pmx_button_reset>;
178 pinctrl-names = "default";
179
180 power-button {
181 label = "Power Button";
182 linux,code = <KEY_POWER>;
183 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
184 };
185
186 reset-button {
187 label = "Reset Button";
188 linux,code = <KEY_RESTART>;
189 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
190 };
191
192 backup-button {
193 label = "Backup Button";
194 linux,code = <KEY_COPY>;
195 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
196 };
197 };
198
199 gpio-poweroff {
200 compatible = "gpio-poweroff";
201 pinctrl-0 = <&pmx_poweroff>;
202 pinctrl-names = "default";
203 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
204 };
205
206 regulators {
207 compatible = "simple-bus";
208 #address-cells = <1>;
209 #size-cells = <0>;
210
211 usb3_regulator: usb3-regulator {
212 compatible = "regulator-fixed";
213 reg = <1>;
214 regulator-name = "USB 3.0 Power";
215 regulator-min-microvolt = <5000000>;
216 regulator-max-microvolt = <5000000>;
217 enable-active-high;
218 regulator-always-on;
219 regulator-boot-on;
220 gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
221 };
222 };
223};
224
225&nand {
226 status = "okay";
227
228 partition@0 {
229 label = "u-boot";
230 reg = <0x0000000 0x180000>;
231 read-only;
232 };
233
234 partition@180000 {
235 label = "u-boot-env";
236 reg = <0x180000 0x20000>;
237 };
238
239 partition@200000 {
240 label = "uImage";
241 reg = <0x0200000 0x600000>;
242 };
243
244 partition@800000 {
245 label = "minirootfs";
246 reg = <0x0800000 0x1000000>;
247 };
248
249 partition@1800000 {
250 label = "jffs2";
251 reg = <0x1800000 0x6800000>;
252 };
253};
254
255&mdio {
256 status = "okay";
257
258 ethphy0: ethernet-phy@0 { /* Marvell 88E1318 */
259 device_type = "ethernet-phy";
260 reg = <0>;
261 };
262};
263
264&eth0 {
265 status = "okay";
266
267 ethernet0-port@0 {
268 phy-handle = <&ethphy0>;
269 };
270};