efc7166f922c6bc6f3c7aaf9980a3368ab79ca5b
[openwrt/staging/lynxis.git] / target / linux / lantiq / files / arch / mips / boot / dts / ARV7519PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv7519pw", "lantiq,xway", "lantiq,danube";
9 model = "Astoria Networks ARV7519PW";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power;
17 led-failsafe = &power2;
18 led-running = &power;
19 led-upgrade = &power;
20
21 led-dsl = &dsl;
22 led-internet = &online;
23 led-wifi = &wifi;
24 };
25
26 memory@0 {
27 device_type = "memory";
28 reg = <0x0 0x4000000>;
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <100>;
36
37 rfkill {
38 label = "rfkill";
39 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RFKILL>;
41 };
42 reset {
43 label = "reset";
44 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
46 };
47 };
48
49 gpio-leds {
50 compatible = "gpio-leds";
51 power: power {
52 label = "power";
53 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
54 default-state = "keep";
55 };
56 power2: power2 {
57 label = "power2";
58 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
59 };
60 online: online {
61 label = "online";
62 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
63 };
64 online2 {
65 label = "online2";
66 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
67 };
68 wifi: wifi {
69 label = "wifi";
70 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
71 };
72 wifi2 {
73 label = "wifi2";
74 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
75 };
76 wifi3 {
77 label = "wifi3";
78 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
79 };
80 voice {
81 label = "voice";
82 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
83 };
84 wps {
85 label = "wps";
86 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
87 };
88 wps2 {
89 label = "wps2";
90 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
91 };
92 wps3 {
93 label = "wps3";
94 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
95 };
96 dsl: dsl {
97 label = "dsl";
98 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
99 };
100 lan {
101 label = "lan";
102 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
103 };
104 tv {
105 label = "tv";
106 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
107 };
108 upgrade {
109 label = "upgrade";
110 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
111 };
112 };
113
114 /* is there another way to "reserve" the GPIO? */
115 gpio_export {
116 compatible = "gpio-export";
117 #size-cells = <0>;
118
119 switch {
120 gpio-export,name = "switch";
121 gpio-export,output = <1>;
122 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
123 };
124 };
125 };
126
127 &gpio {
128 pinctrl-names = "default";
129 pinctrl-0 = <&state_default>;
130
131 state_default: pinmux {
132 ebu {
133 lantiq,groups = "ebu cs1";
134 lantiq,function = "ebu";
135 };
136 pci_in {
137 lantiq,groups = "req1";
138 lantiq,function = "pci";
139 lantiq,open-drain = <1>;
140 lantiq,pull = <2>;
141 lantiq,output = <0>;
142 };
143 pci_out {
144 lantiq,groups = "gnt1";
145 lantiq,function = "pci";
146 lantiq,pull = <0>;
147 lantiq,output = <1>;
148 };
149 pci_rst {
150 lantiq,pins = "io21";
151 lantiq,pull = <2>;
152 lantiq,output = <1>;
153 };
154 switch_rst {
155 lantiq,pins = "io19";
156 lantiq,pull = <2>;
157 lantiq,output = <1>;
158 };
159 };
160 };
161
162 &gsw {
163 phy-mode = "mii";
164 mtd-mac-address = <&boardconfig 0x16>;
165 };
166
167 &localbus {
168 nor@0 {
169 compatible = "lantiq,nor";
170 bank-width = <2>;
171 reg = <0 0x0 0x2000000>;
172 #address-cells = <1>;
173 #size-cells = <1>;
174
175 partitions {
176 compatible = "fixed-partitions";
177 #address-cells = <1>;
178 #size-cells = <1>;
179
180 partition@0 {
181 label = "uboot";
182 reg = <0x00000 0x40000>;
183 read-only;
184 };
185
186 partition@40000 {
187 label = "uboot_env";
188 reg = <0x40000 0x20000>;
189 };
190
191 partition@60000 {
192 label = "firmware";
193 reg = <0x60000 0xf80000>;
194 };
195
196 boardconfig: partition@fe0000 {
197 label = "board_config";
198 reg = <0xfe0000 0x20000>;
199 read-only;
200 };
201 };
202 };
203 };
204
205 &pci0 {
206 status = "okay";
207 lantiq,external-clock;
208 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
209 req-mask = <0xf>;
210
211 wifi@0,0 {
212 compatible = "pci0,0";
213 reg = <0x7000 0 0 0 0>;
214 ralink,mtd-eeprom = <&boardconfig 0x410>;
215 ralink,mtd-eeprom-swap;
216 };
217 };
218
219 &usb_phy {
220 status = "okay";
221 };
222
223 /* warning: passive port only works with active devices */
224 &usb {
225 status = "okay";
226 };
227
228 &vmmc {
229 status = "okay";
230 };