kirkwood: fix dts whitespace
[openwrt/staging/aparcar.git] / target / linux / kirkwood / files / arch / arm / boot / dts / kirkwood-nsa310s.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2 /dts-v1/;
3
4 #include "kirkwood.dtsi"
5 #include "kirkwood-6281.dtsi"
6
7 / {
8 model = "ZyXEL NSA310S";
9 compatible = "zyxel,nsa310s", "marvell,kirkwood-88f6702", "marvell,kirkwood";
10
11 aliases {
12 led-boot = &led_green_sys;
13 led-failsafe = &led_red_sys;
14 led-running = &led_green_sys;
15 led-upgrade = &led_red_sys;
16 };
17
18 memory {
19 device_type = "memory";
20 reg = <0x00000000 0x10000000>;
21 };
22
23 chosen {
24 bootargs = "console=ttyS0,115200n8 earlyprintk";
25 stdout-path = &uart0;
26 };
27
28 ocp@f1000000 {
29 pinctrl: pin-controller@10000 {
30 pinctrl-names = "default";
31
32 pmx_usb_power: pmx-usb-power {
33 marvell,pins = "mpp21";
34 marvell,function = "gpio";
35 };
36
37 pmx_pwr_off: pmx-pwr-off {
38 marvell,pins = "mpp27";
39 marvell,function = "gpio";
40 };
41
42 pmx_btn_reset: pmx-btn-reset {
43 marvell,pins = "mpp24";
44 marvell,function = "gpio";
45 };
46
47 pmx_btn_copy: pmx-btn-copy {
48 marvell,pins = "mpp25";
49 marvell,function = "gpio";
50 };
51
52 pmx_btn_power: pmx-btn-power {
53 marvell,pins = "mpp26";
54 marvell,function = "gpio";
55 };
56
57 pmx_led_usb_green: pmx-led-usb-green {
58 marvell,pins = "mpp15";
59 marvell,function = "gpio";
60 };
61
62 pmx_led_copy_green: pmx-led-copy-green {
63 marvell,pins = "mpp22";
64 marvell,function = "gpio";
65 };
66
67 pmx_led_copy_red: pmx-led-copy-red {
68 marvell,pins = "mpp23";
69 marvell,function = "gpio";
70 };
71
72 pmx_led_sys_green: pmx-led-sys-green {
73 marvell,pins = "mpp28";
74 marvell,function = "gpio";
75 };
76
77 pmx_led_sys_red: pmx-led-sys-red {
78 marvell,pins = "mpp29";
79 marvell,function = "gpio";
80 };
81
82 pmx_led_hdd1_green: pmx-led-hdd1-green {
83 marvell,pins = "mpp16";
84 marvell,function = "gpio";
85 };
86
87 pmx_led_hdd1_red: pmx-led-hdd1-red {
88 marvell,pins = "mpp13";
89 marvell,function = "gpio";
90 };
91
92 pmx_pwr_sata1: pmx-pwr-sata1 {
93 marvell,pins = "mpp33";
94 marvell,function = "gpio";
95 };
96
97 };
98
99 i2c@11000 {
100 status = "okay";
101
102 rtc@68 {
103 compatible = "htk,ht1382";
104 reg = <0x68>;
105 };
106 };
107
108 serial@12000 {
109 status = "okay";
110 };
111 };
112
113 regulators {
114 compatible = "simple-bus";
115 #address-cells = <1>;
116 #size-cells = <0>;
117 pinctrl-0 = <&pmx_usb_power &pmx_pwr_sata1>;
118 pinctrl-names = "default";
119
120 usb0_power: regulator@1 {
121 compatible = "regulator-fixed";
122 reg = <1>;
123 regulator-name = "USB Power";
124 regulator-min-microvolt = <5000000>;
125 regulator-max-microvolt = <5000000>;
126 regulator-always-on;
127 regulator-boot-on;
128 gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
129 };
130
131 sata1_power: regulator@2 {
132 compatible = "regulator-fixed";
133 reg = <2>;
134 regulator-name = "SATA1 Power";
135 regulator-min-microvolt = <5000000>;
136 regulator-max-microvolt = <5000000>;
137 regulator-always-on;
138 regulator-boot-on;
139 gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>;
140 };
141 };
142
143 keys {
144 compatible = "gpio-keys";
145 #address-cells = <1>;
146 #size-cells = <0>;
147 pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
148 pinctrl-names = "default";
149
150 power {
151 label = "Power Button";
152 linux,code = <KEY_POWER>;
153 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
154 };
155
156 copy {
157 label = "Copy Button";
158 linux,code = <KEY_COPY>;
159 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
160 };
161
162 reset {
163 label = "Reset Button";
164 linux,code = <KEY_RESTART>;
165 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
166 };
167 };
168
169 leds {
170 compatible = "gpio-leds";
171
172 led_green_sys: green-sys {
173 label = "nsa310s:green:sys";
174 gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
175 linux,default-trigger = "default-on";
176 };
177
178 led_red_sys: red-sys {
179 label = "nsa310s:red:sys";
180 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
181 };
182
183 green-hdd1 {
184 label = "nsa310s:green:hdd1";
185 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
186 linux,default-trigger = "ata1";
187 };
188
189 red-hdd1 {
190 label = "nsa310s:red:hdd1";
191 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
192 };
193
194 green-usb {
195 label = "nsa310s:green:usb";
196 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
197 linux,default-trigger = "usb-host";
198 };
199
200 green-copy {
201 label = "nsa310s:green:copy";
202 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
203 };
204
205 red-copy {
206 label = "nsa310s:red:copy";
207 gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
208 };
209 };
210
211 gpio_poweroff {
212 compatible = "gpio-poweroff";
213 pinctrl-0 = <&pmx_pwr_off>;
214 pinctrl-names = "default";
215 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
216 };
217 };
218
219
220 &eth0 {
221 status = "okay";
222
223 ethernet0-port@0 {
224 phy-handle = <&ethphy0>;
225 };
226 };
227
228 &mdio {
229 status = "okay";
230
231 ethphy0: ethernet-phy@1 {
232 reg = <1>;
233 phy-mode = "rgmii-id";
234 marvell,reg-init = <0x1 0x16 0x0 0x3>,
235 <0x1 0x10 0x0 0x1017>,
236 <0x1 0x11 0x0 0x4408>,
237 <0x1 0x16 0x0 0x0>;
238 };
239 };
240
241 &nand {
242 status = "okay";
243 chip-delay = <35>;
244
245 partition@0 {
246 label = "uboot";
247 reg = <0x0000000 0x00c0000>;
248 read-only;
249 };
250 partition@c0000 {
251 label = "uboot_env";
252 reg = <0x00c0000 0x0080000>;
253 };
254 partition@140000 {
255 label = "ubi";
256 reg = <0x0140000 0x7ec0000>;
257 };
258 };
259
260 &pciec {
261 status = "okay";
262 };
263
264 &pcie0 {
265 status = "okay";
266 };
267
268 &sata {
269 status = "okay";
270 nr-ports = <1>;
271 };