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