]>
Commit | Line | Data |
---|---|---|
be3d7d02 AB |
1 | /* Device tree file for the Zyxel NSA 320 NAS box. |
2 | * | |
3 | * Copyright (c) 2014, Adam Baker <linux@baker-net.org.uk> | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU General Public License | |
7 | * as published by the Free Software Foundation; either version | |
8 | * 2 of the License, or (at your option) any later version. | |
9 | * | |
10 | * Based upon the board setup file created by Peter Schildmann */ | |
11 | ||
12 | /dts-v1/; | |
13 | ||
14 | #include "kirkwood-nsa310-common.dtsi" | |
15 | ||
16 | / { | |
17 | model = "Zyxel NSA320"; | |
18 | compatible = "zyxel,nsa320", "marvell,kirkwood-88f6281", "marvell,kirkwood"; | |
19 | ||
20 | memory { | |
21 | device_type = "memory"; | |
22 | reg = <0x00000000 0x20000000>; | |
23 | }; | |
24 | ||
25 | chosen { | |
26 | bootargs = "console=ttyS0,115200"; | |
27 | }; | |
28 | ||
29 | mbus { | |
30 | pcie-controller { | |
31 | status = "okay"; | |
32 | ||
33 | pcie@1,0 { | |
34 | status = "okay"; | |
35 | }; | |
36 | }; | |
37 | }; | |
38 | ||
39 | ocp@f1000000 { | |
40 | pinctrl: pinctrl@10000 { | |
41 | pinctrl-names = "default"; | |
42 | ||
43 | /* SATA Activity and Present pins are not connected */ | |
44 | pmx_sata0: pmx-sata0 { | |
45 | marvell,pins ; | |
46 | marvell,function = "sata0"; | |
47 | }; | |
48 | ||
49 | pmx_sata1: pmx-sata1 { | |
50 | marvell,pins ; | |
51 | marvell,function = "sata1"; | |
52 | }; | |
53 | ||
54 | pmx_led_hdd2_green: pmx-led-hdd2-green { | |
55 | marvell,pins = "mpp12"; | |
56 | marvell,function = "gpio"; | |
57 | }; | |
58 | ||
59 | pmx_led_hdd2_red: pmx-led-hdd2-red { | |
60 | marvell,pins = "mpp13"; | |
61 | marvell,function = "gpio"; | |
62 | }; | |
63 | ||
64 | pmx_mcu_data: pmx-mcu-data { | |
65 | marvell,pins = "mpp14"; | |
66 | marvell,function = "gpio"; | |
67 | }; | |
68 | ||
69 | pmx_led_usb_green: pmx-led-usb-green { | |
70 | marvell,pins = "mpp15"; | |
71 | marvell,function = "gpio"; | |
72 | }; | |
73 | ||
74 | pmx_mcu_clk: pmx-mcu-clk { | |
75 | marvell,pins = "mpp16"; | |
76 | marvell,function = "gpio"; | |
77 | }; | |
78 | ||
79 | pmx_mcu_act: pmx-mcu-act { | |
80 | marvell,pins = "mpp17"; | |
81 | marvell,function = "gpio"; | |
82 | }; | |
83 | ||
84 | pmx_led_sys_green: pmx-led-sys-green { | |
85 | marvell,pins = "mpp28"; | |
86 | marvell,function = "gpio"; | |
87 | }; | |
88 | ||
89 | pmx_led_sys_orange: pmx-led-sys-orange { | |
90 | marvell,pins = "mpp29"; | |
91 | marvell,function = "gpio"; | |
92 | }; | |
93 | ||
94 | pmx_led_hdd1_green: pmx-led-hdd1-green { | |
95 | marvell,pins = "mpp41"; | |
96 | marvell,function = "gpio"; | |
97 | }; | |
98 | ||
99 | pmx_led_hdd1_red: pmx-led-hdd1-red { | |
100 | marvell,pins = "mpp42"; | |
101 | marvell,function = "gpio"; | |
102 | }; | |
103 | ||
104 | pmx_htp: pmx-htp { | |
105 | marvell,pins = "mpp43"; | |
106 | marvell,function = "gpio"; | |
107 | }; | |
108 | ||
109 | /* Buzzer needs to be switched at around 1kHz so is | |
110 | not compatible with the gpio-beeper driver. */ | |
111 | pmx_buzzer: pmx-buzzer { | |
112 | marvell,pins = "mpp44"; | |
113 | marvell,function = "gpio"; | |
114 | }; | |
115 | ||
116 | pmx_vid_b1: pmx-vid-b1 { | |
117 | marvell,pins = "mpp45"; | |
118 | marvell,function = "gpio"; | |
119 | }; | |
120 | ||
121 | pmx_power_resume_data: pmx-power-resume-data { | |
122 | marvell,pins = "mpp47"; | |
123 | marvell,function = "gpio"; | |
124 | }; | |
125 | ||
126 | pmx_power_resume_clk: pmx-power-resume-clk { | |
127 | marvell,pins = "mpp49"; | |
128 | marvell,function = "gpio"; | |
129 | }; | |
130 | }; | |
131 | ||
132 | i2c@11000 { | |
133 | status = "okay"; | |
134 | ||
135 | pcf8563: pcf8563@51 { | |
136 | compatible = "nxp,pcf8563"; | |
137 | reg = <0x51>; | |
138 | }; | |
139 | }; | |
140 | }; | |
141 | ||
142 | regulators { | |
143 | usb0_power: regulator@1 { | |
144 | enable-active-high; | |
145 | }; | |
146 | }; | |
147 | ||
148 | gpio-leds { | |
149 | compatible = "gpio-leds"; | |
150 | pinctrl-0 = <&pmx_led_hdd2_green &pmx_led_hdd2_red | |
151 | &pmx_led_usb_green | |
152 | &pmx_led_sys_green &pmx_led_sys_orange | |
153 | &pmx_led_copy_green &pmx_led_copy_red | |
154 | &pmx_led_hdd1_green &pmx_led_hdd1_red>; | |
155 | pinctrl-names = "default"; | |
156 | ||
157 | green-sys { | |
158 | label = "nsa320:green:sys"; | |
159 | gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; | |
160 | }; | |
161 | orange-sys { | |
162 | label = "nsa320:orange:sys"; | |
163 | gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; | |
164 | }; | |
165 | green-hdd1 { | |
166 | label = "nsa320:green:hdd1"; | |
167 | gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; | |
168 | }; | |
169 | red-hdd1 { | |
170 | label = "nsa320:red:hdd1"; | |
171 | gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; | |
172 | }; | |
173 | green-hdd2 { | |
174 | label = "nsa320:green:hdd2"; | |
175 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; | |
176 | }; | |
177 | red-hdd2 { | |
178 | label = "nsa320:red:hdd2"; | |
179 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; | |
180 | }; | |
181 | green-usb { | |
182 | label = "nsa320:green:usb"; | |
183 | gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; | |
184 | }; | |
185 | green-copy { | |
186 | label = "nsa320:green:copy"; | |
187 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; | |
188 | }; | |
189 | red-copy { | |
190 | label = "nsa320:red:copy"; | |
191 | gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; | |
192 | }; | |
193 | }; | |
194 | ||
195 | /* The following pins are currently not assigned to a driver, | |
196 | some of them should be configured as inputs. | |
197 | pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act | |
198 | &pmx_htp &pmx_vid_b1 | |
199 | &pmx_power_resume_data &pmx_power_resume_clk>; */ | |
200 | }; | |
201 | ||
202 | &mdio { | |
203 | status = "okay"; | |
204 | ethphy0: ethernet-phy@1 { | |
205 | reg = <1>; | |
206 | }; | |
207 | }; | |
208 | ||
209 | ð0 { | |
210 | status = "okay"; | |
211 | ethernet0-port@0 { | |
212 | phy-handle = <ðphy0>; | |
213 | }; | |
214 | }; |