kirkwood: add support for Netgear Stora (MS2110) NAS
[openwrt/staging/wigyori.git] / target / linux / kirkwood / files-5.4 / arch / arm / boot / dts / kirkwood-netgear_stora.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3 * Device Tree file for NETGEAR ReadyNAS NV+ v2
4 *
5 * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
6 */
7
8 /dts-v1/;
9
10 #include "kirkwood.dtsi"
11 #include "kirkwood-6281.dtsi"
12
13 / {
14 model = "NETGEAR MS2000 / MS2110 aka Stora";
15 compatible = "netgear,stora", "netgear,ms2000", "netgear,ms2110", "marvell,kirkwood-88f6281", "marvell,kirkwood";
16
17 memory { /* 256 MB */
18 device_type = "memory";
19 reg = <0x00000000 0x8000000>;
20 };
21
22 chosen {
23 bootargs = "console=ttyS0,115200n8 earlyprintk";
24 stdout-path = &uart0;
25 };
26
27 ocp@f1000000 {
28 pinctrl: pin-controller@10000 {
29 pmx_button_power: pmx-button-power {
30 marvell,pins = "mpp36";
31 marvell,function = "gpio";
32 };
33
34 pmx_button_reset: pmx-button-reset {
35 marvell,pins = "mpp38";
36 marvell,function = "gpio";
37 };
38
39 pmx_led_blue_power: pmx-led-blue-power {
40 marvell,pins = "mpp32";
41 marvell,function = "gpio";
42 };
43
44 pmx_led_green_disk1: pmx-led-green-disk1 {
45 marvell,pins = "mpp21";
46 marvell,function = "gpio";
47 };
48
49 pmx_led_green_disk2: pmx-led-green-disk2 {
50 marvell,pins = "mpp20";
51 marvell,function = "gpio";
52 };
53
54 pmx_led_red_disk1: pmx-led-red-disk1 {
55 marvell,pins = "mpp23";
56 marvell,function = "gpio";
57 };
58
59 pmx_led_red_disk2: pmx-led-red-disk2 {
60 marvell,pins = "mpp22";
61 marvell,function = "gpio";
62 };
63
64 pmx_poweroff: pmx-poweroff {
65 marvell,pins = "mpp40";
66 marvell,function = "gpio";
67 };
68
69 pmx_fan_tacho: pmx-fan-tacho {
70 marvell,pins = "mpp41";
71 marvell,function = "gpio";
72 };
73 };
74
75 clocks {
76 pcf8563_clk: pcf8563-oscillator {
77 compatible = "fixed-clock";
78 #clock-cells = <0>;
79 clock-frequency = <2048>;
80 };
81 };
82
83 i2c@11000 {
84 status = "okay";
85
86 tc654@1b {
87 compatible = "microchip,tc654";
88 reg = <0x1b>;
89 };
90
91 lm75@48 {
92 compatible = "national,lm75";
93 reg = <0x48>;
94 };
95
96 pcf8563@51 {
97 compatible = "nxp,pcf8563";
98 reg = <0x51>;
99 };
100 };
101
102 serial@12000 {
103 status = "okay";
104 };
105
106 sata@80000 {
107 status = "okay";
108 phy-names = "port0", "port1";
109 nr-ports = <2>;
110 };
111 };
112
113 gpio-leds {
114 compatible = "gpio-leds";
115 pinctrl-0 = < &pmx_led_blue_power
116 &pmx_led_green_disk1 &pmx_led_green_disk2
117 &pmx_led_red_disk1 &pmx_led_red_disk2 >;
118 pinctrl-names = "default";
119
120 power_led {
121 label = "status:blue:power_led";
122 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
123 linux,default-trigger = "default-on";
124 };
125
126 disk1_led {
127 label = "status:green:disk1_led";
128 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
129 linux,default-trigger = "ata1";
130 };
131
132 disk2_led {
133 label = "status:green:disk2_led";
134 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
135 linux,default-trigger = "ata2";
136 };
137
138 disk1_fail_led {
139 label = "status:red:disk1_fail_led";
140 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
141 };
142
143 disk2_fail_led {
144 label = "status:red:disk2_fail_led";
145 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
146 };
147 };
148
149 gpio-keys {
150 compatible = "gpio-keys";
151 pinctrl-0 = <&pmx_button_power &pmx_button_reset >;
152 pinctrl-names = "default";
153
154 power-button {
155 label = "Power Button";
156 linux,code = <KEY_POWER>;
157 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
158 };
159
160 reset-button {
161 label = "Reset Button";
162 linux,code = <KEY_RESTART>;
163 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
164 };
165 };
166
167 gpio-poweroff {
168 compatible = "gpio-poweroff";
169 pinctrl-0 = <&pmx_poweroff>;
170 pinctrl-names = "default";
171 gpios = <&gpio0 40 GPIO_ACTIVE_LOW>;
172 };
173 };
174
175 &nand {
176 status = "okay";
177 chip-delay = <40>;
178
179 partition@0 {
180 label = "u-boot";
181 reg = <0x0000000 0x180000>;
182 read-only;
183 };
184
185 partition@180000 {
186 label = "u-boot-env";
187 reg = <0x0180000 0x020000>;
188 };
189
190 partition@200000 {
191 label = "ubi";
192 reg = <0x0200000 0xfe00000>;
193 };
194 };
195
196 &mdio {
197 status = "okay";
198
199 ethphy0: ethernet-phy@0 { /* Marvell 88E1318 */
200 compatible = "marvell,88e1116";
201 reg = <8>;
202 };
203 };
204
205 &eth0 {
206 status = "okay";
207
208 ethernet0-port@0 {
209 phy-handle = <&ethphy0>;
210 };
211 };
212
213 &pciec {
214 status = "okay";
215 };
216
217 &pcie0 {
218 status = "okay";
219 };