Commit | Line | Data |
---|---|---|
afcad884 TJ |
1 | /dts-v1/; |
2 | ||
3 | /include/ "kirkwood.dtsi" | |
4 | ||
5 | / { | |
6 | model = "ZyXEL NSA310"; | |
7 | compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood"; | |
8 | ||
9 | memory { | |
10 | device_type = "memory"; | |
11 | reg = <0x00000000 0x10000000>; | |
12 | }; | |
13 | ||
14 | chosen { | |
15 | bootargs = "console=ttyS0,115200"; | |
16 | }; | |
17 | ||
18 | ocp@f1000000 { | |
4ded6575 JC |
19 | pinctrl: pinctrl@10000 { |
20 | pinctrl-0 = < &pmx_led_esata_green | |
21 | &pmx_led_esata_red | |
22 | &pmx_led_usb_green | |
23 | &pmx_led_usb_red | |
24 | &pmx_usb_power_off | |
25 | &pmx_led_sys_green | |
26 | &pmx_led_sys_red | |
27 | &pmx_btn_reset | |
28 | &pmx_btn_copy | |
29 | &pmx_led_copy_green | |
30 | &pmx_led_copy_red | |
31 | &pmx_led_hdd_green | |
32 | &pmx_led_hdd_red | |
33 | &pmx_unknown | |
34 | &pmx_btn_power | |
35 | &pmx_pwr_off >; | |
36 | pinctrl-names = "default"; | |
37 | ||
38 | pmx_led_esata_green: pmx-led-esata-green { | |
39 | marvell,pins = "mpp12"; | |
40 | marvell,function = "gpio"; | |
41 | }; | |
42 | ||
43 | pmx_led_esata_red: pmx-led-esata-red { | |
44 | marvell,pins = "mpp13"; | |
45 | marvell,function = "gpio"; | |
46 | }; | |
47 | ||
48 | pmx_led_usb_green: pmx-led-usb-green { | |
49 | marvell,pins = "mpp15"; | |
50 | marvell,function = "gpio"; | |
51 | }; | |
52 | ||
53 | pmx_led_usb_red: pmx-led-usb-red { | |
54 | marvell,pins = "mpp16"; | |
55 | marvell,function = "gpio"; | |
56 | }; | |
57 | ||
58 | pmx_usb_power_off: pmx-usb-power-off { | |
59 | marvell,pins = "mpp21"; | |
60 | marvell,function = "gpio"; | |
61 | }; | |
62 | ||
63 | pmx_led_sys_green: pmx-led-sys-green { | |
64 | marvell,pins = "mpp28"; | |
65 | marvell,function = "gpio"; | |
66 | }; | |
67 | ||
68 | pmx_led_sys_red: pmx-led-sys-red { | |
69 | marvell,pins = "mpp29"; | |
70 | marvell,function = "gpio"; | |
71 | }; | |
72 | ||
73 | pmx_btn_reset: pmx-btn-reset { | |
74 | marvell,pins = "mpp36"; | |
75 | marvell,function = "gpio"; | |
76 | }; | |
77 | ||
78 | pmx_btn_copy: pmx-btn-copy { | |
79 | marvell,pins = "mpp37"; | |
80 | marvell,function = "gpio"; | |
81 | }; | |
82 | ||
83 | pmx_led_copy_green: pmx-led-copy-green { | |
84 | marvell,pins = "mpp39"; | |
85 | marvell,function = "gpio"; | |
86 | }; | |
87 | ||
88 | pmx_led_copy_red: pmx-led-copy-red { | |
89 | marvell,pins = "mpp40"; | |
90 | marvell,function = "gpio"; | |
91 | }; | |
92 | ||
93 | pmx_led_hdd_green: pmx-led-hdd-green { | |
94 | marvell,pins = "mpp41"; | |
95 | marvell,function = "gpio"; | |
96 | }; | |
97 | ||
98 | pmx_led_hdd_red: pmx-led-hdd-red { | |
99 | marvell,pins = "mpp42"; | |
100 | marvell,function = "gpio"; | |
101 | }; | |
102 | ||
103 | pmx_unknown: pmx-unknown { | |
104 | marvell,pins = "mpp44"; | |
105 | marvell,function = "gpio"; | |
106 | }; | |
107 | ||
108 | pmx_btn_power: pmx-btn-power { | |
109 | marvell,pins = "mpp46"; | |
110 | marvell,function = "gpio"; | |
111 | }; | |
112 | ||
113 | pmx_pwr_off: pmx-pwr-off { | |
114 | marvell,pins = "mpp48"; | |
115 | marvell,function = "gpio"; | |
116 | }; | |
117 | }; | |
afcad884 TJ |
118 | |
119 | serial@12000 { | |
afcad884 TJ |
120 | status = "ok"; |
121 | }; | |
122 | ||
123 | sata@80000 { | |
124 | status = "okay"; | |
125 | nr-ports = <2>; | |
126 | }; | |
127 | ||
128 | i2c@11000 { | |
129 | status = "okay"; | |
b4d2a24f AL |
130 | |
131 | adt7476: adt7476a@2e { | |
132 | compatible = "adt7476"; | |
133 | reg = <0x2e>; | |
134 | }; | |
afcad884 TJ |
135 | }; |
136 | ||
137 | nand@3000000 { | |
138 | status = "okay"; | |
139 | chip-delay = <35>; | |
140 | ||
141 | partition@0 { | |
142 | label = "uboot"; | |
143 | reg = <0x0000000 0x0100000>; | |
144 | read-only; | |
145 | }; | |
146 | partition@100000 { | |
147 | label = "uboot_env"; | |
148 | reg = <0x0100000 0x0080000>; | |
149 | }; | |
150 | partition@180000 { | |
151 | label = "key_store"; | |
152 | reg = <0x0180000 0x0080000>; | |
153 | }; | |
154 | partition@200000 { | |
155 | label = "info"; | |
156 | reg = <0x0200000 0x0080000>; | |
157 | }; | |
158 | partition@280000 { | |
159 | label = "etc"; | |
160 | reg = <0x0280000 0x0a00000>; | |
161 | }; | |
162 | partition@c80000 { | |
163 | label = "kernel_1"; | |
164 | reg = <0x0c80000 0x0a00000>; | |
165 | }; | |
166 | partition@1680000 { | |
167 | label = "rootfs1"; | |
168 | reg = <0x1680000 0x2fc0000>; | |
169 | }; | |
170 | partition@4640000 { | |
171 | label = "kernel_2"; | |
172 | reg = <0x4640000 0x0a00000>; | |
173 | }; | |
174 | partition@5040000 { | |
175 | label = "rootfs2"; | |
176 | reg = <0x5040000 0x2fc0000>; | |
177 | }; | |
178 | }; | |
179 | }; | |
180 | ||
181 | gpio_keys { | |
182 | compatible = "gpio-keys"; | |
183 | #address-cells = <1>; | |
184 | #size-cells = <0>; | |
185 | ||
186 | button@1 { | |
187 | label = "Power Button"; | |
188 | linux,code = <116>; | |
189 | gpios = <&gpio1 14 0>; | |
190 | }; | |
191 | button@2 { | |
192 | label = "Copy Button"; | |
193 | linux,code = <133>; | |
194 | gpios = <&gpio1 5 1>; | |
195 | }; | |
196 | button@3 { | |
197 | label = "Reset Button"; | |
198 | linux,code = <0x198>; | |
199 | gpios = <&gpio1 4 1>; | |
200 | }; | |
201 | }; | |
202 | ||
203 | gpio-leds { | |
204 | compatible = "gpio-leds"; | |
205 | ||
206 | green-sys { | |
207 | label = "nsa310:green:sys"; | |
208 | gpios = <&gpio0 28 0>; | |
209 | }; | |
210 | red-sys { | |
211 | label = "nsa310:red:sys"; | |
212 | gpios = <&gpio0 29 0>; | |
213 | }; | |
214 | green-hdd { | |
215 | label = "nsa310:green:hdd"; | |
216 | gpios = <&gpio1 9 0>; | |
217 | }; | |
218 | red-hdd { | |
219 | label = "nsa310:red:hdd"; | |
220 | gpios = <&gpio1 10 0>; | |
221 | }; | |
222 | green-esata { | |
223 | label = "nsa310:green:esata"; | |
224 | gpios = <&gpio0 12 0>; | |
225 | }; | |
226 | red-esata { | |
227 | label = "nsa310:red:esata"; | |
228 | gpios = <&gpio0 13 0>; | |
229 | }; | |
230 | green-usb { | |
231 | label = "nsa310:green:usb"; | |
232 | gpios = <&gpio0 15 0>; | |
233 | }; | |
234 | red-usb { | |
235 | label = "nsa310:red:usb"; | |
236 | gpios = <&gpio0 16 0>; | |
237 | }; | |
238 | green-copy { | |
239 | label = "nsa310:green:copy"; | |
240 | gpios = <&gpio1 7 0>; | |
241 | }; | |
242 | red-copy { | |
243 | label = "nsa310:red:copy"; | |
244 | gpios = <&gpio1 8 0>; | |
245 | }; | |
246 | }; | |
12131b54 | 247 | |
7dcc6283 AL |
248 | gpio_poweroff { |
249 | compatible = "gpio-poweroff"; | |
250 | gpios = <&gpio1 16 0>; | |
251 | }; | |
252 | ||
12131b54 AL |
253 | regulators { |
254 | compatible = "simple-bus"; | |
255 | #address-cells = <1>; | |
256 | #size-cells = <0>; | |
257 | ||
258 | usb0_power_off: regulator@1 { | |
259 | compatible = "regulator-fixed"; | |
260 | reg = <1>; | |
261 | regulator-name = "USB Power Off"; | |
262 | regulator-min-microvolt = <5000000>; | |
263 | regulator-max-microvolt = <5000000>; | |
264 | regulator-always-on; | |
265 | regulator-boot-on; | |
266 | gpio = <&gpio0 21 0>; | |
267 | }; | |
268 | }; | |
afcad884 | 269 | }; |