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