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 { | |
120 | clock-frequency = <200000000>; | |
121 | status = "ok"; | |
122 | }; | |
123 | ||
124 | sata@80000 { | |
125 | status = "okay"; | |
126 | nr-ports = <2>; | |
127 | }; | |
128 | ||
129 | i2c@11000 { | |
130 | status = "okay"; | |
b4d2a24f AL |
131 | |
132 | adt7476: adt7476a@2e { | |
133 | compatible = "adt7476"; | |
134 | reg = <0x2e>; | |
135 | }; | |
afcad884 TJ |
136 | }; |
137 | ||
138 | nand@3000000 { | |
139 | status = "okay"; | |
140 | chip-delay = <35>; | |
141 | ||
142 | partition@0 { | |
143 | label = "uboot"; | |
144 | reg = <0x0000000 0x0100000>; | |
145 | read-only; | |
146 | }; | |
147 | partition@100000 { | |
148 | label = "uboot_env"; | |
149 | reg = <0x0100000 0x0080000>; | |
150 | }; | |
151 | partition@180000 { | |
152 | label = "key_store"; | |
153 | reg = <0x0180000 0x0080000>; | |
154 | }; | |
155 | partition@200000 { | |
156 | label = "info"; | |
157 | reg = <0x0200000 0x0080000>; | |
158 | }; | |
159 | partition@280000 { | |
160 | label = "etc"; | |
161 | reg = <0x0280000 0x0a00000>; | |
162 | }; | |
163 | partition@c80000 { | |
164 | label = "kernel_1"; | |
165 | reg = <0x0c80000 0x0a00000>; | |
166 | }; | |
167 | partition@1680000 { | |
168 | label = "rootfs1"; | |
169 | reg = <0x1680000 0x2fc0000>; | |
170 | }; | |
171 | partition@4640000 { | |
172 | label = "kernel_2"; | |
173 | reg = <0x4640000 0x0a00000>; | |
174 | }; | |
175 | partition@5040000 { | |
176 | label = "rootfs2"; | |
177 | reg = <0x5040000 0x2fc0000>; | |
178 | }; | |
179 | }; | |
180 | }; | |
181 | ||
182 | gpio_keys { | |
183 | compatible = "gpio-keys"; | |
184 | #address-cells = <1>; | |
185 | #size-cells = <0>; | |
186 | ||
187 | button@1 { | |
188 | label = "Power Button"; | |
189 | linux,code = <116>; | |
190 | gpios = <&gpio1 14 0>; | |
191 | }; | |
192 | button@2 { | |
193 | label = "Copy Button"; | |
194 | linux,code = <133>; | |
195 | gpios = <&gpio1 5 1>; | |
196 | }; | |
197 | button@3 { | |
198 | label = "Reset Button"; | |
199 | linux,code = <0x198>; | |
200 | gpios = <&gpio1 4 1>; | |
201 | }; | |
202 | }; | |
203 | ||
204 | gpio-leds { | |
205 | compatible = "gpio-leds"; | |
206 | ||
207 | green-sys { | |
208 | label = "nsa310:green:sys"; | |
209 | gpios = <&gpio0 28 0>; | |
210 | }; | |
211 | red-sys { | |
212 | label = "nsa310:red:sys"; | |
213 | gpios = <&gpio0 29 0>; | |
214 | }; | |
215 | green-hdd { | |
216 | label = "nsa310:green:hdd"; | |
217 | gpios = <&gpio1 9 0>; | |
218 | }; | |
219 | red-hdd { | |
220 | label = "nsa310:red:hdd"; | |
221 | gpios = <&gpio1 10 0>; | |
222 | }; | |
223 | green-esata { | |
224 | label = "nsa310:green:esata"; | |
225 | gpios = <&gpio0 12 0>; | |
226 | }; | |
227 | red-esata { | |
228 | label = "nsa310:red:esata"; | |
229 | gpios = <&gpio0 13 0>; | |
230 | }; | |
231 | green-usb { | |
232 | label = "nsa310:green:usb"; | |
233 | gpios = <&gpio0 15 0>; | |
234 | }; | |
235 | red-usb { | |
236 | label = "nsa310:red:usb"; | |
237 | gpios = <&gpio0 16 0>; | |
238 | }; | |
239 | green-copy { | |
240 | label = "nsa310:green:copy"; | |
241 | gpios = <&gpio1 7 0>; | |
242 | }; | |
243 | red-copy { | |
244 | label = "nsa310:red:copy"; | |
245 | gpios = <&gpio1 8 0>; | |
246 | }; | |
247 | }; | |
12131b54 | 248 | |
7dcc6283 AL |
249 | gpio_poweroff { |
250 | compatible = "gpio-poweroff"; | |
251 | gpios = <&gpio1 16 0>; | |
252 | }; | |
253 | ||
12131b54 AL |
254 | regulators { |
255 | compatible = "simple-bus"; | |
256 | #address-cells = <1>; | |
257 | #size-cells = <0>; | |
258 | ||
259 | usb0_power_off: regulator@1 { | |
260 | compatible = "regulator-fixed"; | |
261 | reg = <1>; | |
262 | regulator-name = "USB Power Off"; | |
263 | regulator-min-microvolt = <5000000>; | |
264 | regulator-max-microvolt = <5000000>; | |
265 | regulator-always-on; | |
266 | regulator-boot-on; | |
267 | gpio = <&gpio0 21 0>; | |
268 | }; | |
269 | }; | |
afcad884 | 270 | }; |