lantiq: make dts files and kernel config kernel version specific
[openwrt/openwrt.git] / target / linux / lantiq / files-4.9 / arch / mips / boot / dts / ARV7518PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv7518pw", "lantiq,xway", "lantiq,danube";
9 model = "Astoria Networks ARV7518PW";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_red;
18 led-running = &power_green;
19
20 led-dsl = &dsl;
21 led-internet = &online_green;
22 led-usb = &usb;
23 led-wifi = &wifi;
24 };
25
26 memory@0 {
27 reg = <0x0 0x4000000>;
28 };
29
30 sram@1F000000 {
31 vmmc@107000 {
32 status = "okay";
33 };
34 };
35
36 fpi@10000000 {
37 localbus@0 {
38 nor-boot@0 {
39 compatible = "lantiq,nor";
40 bank-width = <2>;
41 reg = <0 0x0 0x2000000>;
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 partitions {
46 compatible = "fixed-partitions";
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 partition@0 {
51 label = "uboot";
52 reg = <0x00000 0x10000>;
53 read-only;
54 };
55
56 partition@10000 {
57 label = "uboot_env";
58 reg = <0x10000 0x10000>;
59 };
60
61 partition@20000 {
62 label = "firmware";
63 reg = <0x20000 0x7d0000>;
64 };
65
66 boardconfig: partition@400000 {
67 label = "boardconfig";
68 reg = <0x7f0000 0x10000>;
69 read-only;
70 };
71 };
72 };
73
74 gpiomm: gpiomm@4000000 {
75 compatible = "lantiq,gpio-mm";
76 reg = <1 0x0 0x10 >;
77 #address-cells = <1>;
78 #size-cells = <1>;
79 #gpio-cells = <2>;
80 gpio-controller;
81 lantiq,shadow = <0x0>;
82 };
83 };
84
85 gpio: pinmux@E100B10 {
86 pinctrl-names = "default";
87 pinctrl-0 = <&state_default>;
88
89 state_default: pinmux {
90 ebu {
91 lantiq,groups = "ebu cs1";
92 lantiq,function = "ebu";
93 };
94 pci_in {
95 lantiq,groups = "req1";
96 lantiq,function = "pci";
97 lantiq,open-drain = <1>;
98 lantiq,pull = <2>;
99 lantiq,output = <0>;
100 };
101 pci_out {
102 lantiq,groups = "gnt1";
103 lantiq,function = "pci";
104 lantiq,pull = <0>;
105 lantiq,output = <1>;
106 };
107 pci_rst {
108 lantiq,pins = "io21";
109 lantiq,pull = <2>;
110 lantiq,output = <1>;
111 };
112 leds {
113 lantiq,pins = "io2", "io4", "io5", "io6", "io7", "io8", "io19";
114 lantiq,output = <1>;
115 };
116 keys {
117 lantiq,pins = "io28", "io30";
118 lantiq,output = <0>;
119 lantiq,pull = <2>;
120 lantiq,open-drain = <1>;
121 };
122 };
123 };
124
125 etop@E180000 {
126 phy-mode = "mii";
127 mtd-mac-address = <&boardconfig 0x16>;
128 };
129
130 ifxhcd@E101000 {
131 status = "okay";
132 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
133 };
134 };
135
136 /*
137 #define SWITCH_RESET 13
138 */
139 gpio-keys-polled {
140 compatible = "gpio-keys-polled";
141 #address-cells = <1>;
142 #size-cells = <0>;
143 poll-interval = <100>;
144
145 rfkill {
146 label = "rfkill";
147 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
148 linux,code = <KEY_RFKILL>;
149 };
150 reset {
151 label = "reset";
152 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
153 linux,code = <KEY_RESTART>;
154 };
155 };
156
157 gpio-leds {
158 compatible = "gpio-leds";
159 power_green: power {
160 label = "arv7518pw:green:power";
161 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
162 default-state = "keep";
163 };
164 dsl: dsl {
165 label = "arv7518pw:green:dsl";
166 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
167 };
168 online_green: online {
169 label = "arv7518pw:green:internet";
170 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
171 };
172 wifi: wifi {
173 label = "arv7518pw:green:wlan";
174 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
175 };
176 power_red: power2 {
177 label = "arv7518pw:red:power";
178 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
179 };
180 online2 {
181 label = "arv7518pw:red:internet";
182 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
183 };
184 usb: usb {
185 label = "arv7518pw:green:usb";
186 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
187 };
188 voice {
189 label = "arv7518pw:green:voip";
190 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
191 };
192 fxs1 {
193 label = "arv7518pw:green:phone1";
194 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
195 };
196 fxs2 {
197 label = "arv7518pw:green:phone2";
198 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
199 };
200 unlabeled {
201 label = "arv7518pw:amber:unlabeled";
202 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
203 };
204 wps {
205 label = "arv7518pw:amber:wps";
206 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
207 };
208 wps2 {
209 label = "arv7518pw:green:wps";
210 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
211 };
212 wps3 {
213 label = "arv7518pw:red:wps";
214 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
215 };
216 };
217 };
218
219 &pci0 {
220 status = "okay";
221 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
222 lantiq,external-clock;
223 req-mask = <0xf>;
224
225 wifi@168c,0029 {
226 compatible = "pci168c,0029";
227 reg = <0x7000 0 0 0 0>;
228 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
229 mtd-mac-address = <&boardconfig 0x16>;
230 mtd-mac-address-increment = <1>;
231 };
232 };