lantiq: kernel 4.14: copy patches, config and dts files
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ARV752DPW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv752dpw", "lantiq,xway", "lantiq,danube";
9 model = "Arcor 802";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_red;
17 led-failsafe = &power_blue;
18 led-running = &power_red;
19
20 led-dsl = &internet_red;
21 led-usb = &umts;
22 led-wifi = &wifi;
23 };
24
25 memory@0 {
26 reg = <0x0 0x4000000>;
27 };
28
29 sram@1F000000 {
30 vmmc@107000 {
31 status = "okay";
32 gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
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 0x800000>;
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 read-only;
60 };
61
62 partition@20000 {
63 label = "firmware";
64 reg = <0x20000 0x7d0000>;
65 };
66
67 boardconfig: partition@7f0000 {
68 label = "board_config";
69 reg = <0x7f0000 0x10000>;
70 read-only;
71 };
72 };
73 };
74
75 gpiomm: gpiomm@4000000 {
76 compatible = "lantiq,gpio-mm";
77 reg = <1 0x0 0x10 >;
78 #address-cells = <1>;
79 #size-cells = <1>;
80 #gpio-cells = <2>;
81 gpio-controller;
82 lantiq,shadow = <0x3>;
83 };
84 };
85
86 gpio: pinmux@E100B10 {
87 pinctrl-names = "default";
88 pinctrl-0 = <&state_default>;
89
90 state_default: pinmux {
91 ebu {
92 lantiq,groups = "ebu cs1";
93 lantiq,function = "ebu";
94 };
95 exin {
96 lantiq,groups = "exin1";
97 lantiq,function = "exin";
98 lantiq,pull = <2>;
99 lantiq,output = <0>;
100 };
101 pci_in {
102 lantiq,groups = "req2", "req1";
103 lantiq,function = "pci";
104 lantiq,open-drain = <1>;
105 lantiq,pull = <2>;
106 lantiq,output = <0>;
107 };
108 pci_out {
109 lantiq,groups = "gnt1";
110 lantiq,function = "pci";
111 lantiq,output = <1>;
112 };
113 pci_rst {
114 lantiq,pins = "io21";
115 lantiq,pull = <2>;
116 lantiq,output = <1>;
117 };
118 leds {
119 lantiq,pins = "io3", "io5", "io6", "io8";
120 lantiq,output = <1>;
121 lantiq,pull = <0>;
122 };
123 keys {
124 lantiq,pins = "io11", "io12", "io13", "io28";
125 lantiq,output = <0>;
126 lantiq,pull = <2>;
127 lantiq,open-drain = <1>;
128 };
129 };
130 };
131
132 ifxhcd@E101000 {
133 status = "okay";
134 gpios = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
135 };
136
137 etop@E180000 {
138 phy-mode = "rmii";
139 mtd-mac-address = <&boardconfig 0x16>;
140 };
141 };
142
143 gpio-keys-polled {
144 compatible = "gpio-keys-polled";
145 #address-cells = <1>;
146 #size-cells = <0>;
147 poll-interval = <100>;
148
149 wps {
150 label = "wps";
151 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
152 linux,code = <KEY_WPS_BUTTON>;
153 };
154 restart {
155 label = "restart";
156 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
157 linux,code = <KEY_POWER>;
158 };
159 dsl {
160 label = "dsl";
161 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
162 linux,code = <BTN_0>;
163 };
164 reset {
165 label = "reset";
166 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
167 linux,code = <KEY_RESTART>;
168 };
169 };
170
171 gpio-leds {
172 compatible = "gpio-leds";
173 power_blue: power1 {
174 label = "arv752dpw:blue:power";
175 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
176 };
177 internet_red: internet {
178 label = "arv752dpw:red:internet";
179 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
180 };
181 message {
182 label = "arv752dpw:red:message";
183 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
184 };
185 power_red: power {
186 label = "arv752dpw:red:power";
187 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
188 default-state = "keep";
189 };
190 voice1 {
191 label = "arv752dpw:red:voice";
192 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
193 };
194 umts: umts {
195 label = "arv752dpw:red:umts";
196 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
197 };
198 wifi: wifi {
199 label = "arv752dpw:red:wifi";
200 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
201 };
202 fxs1 {
203 label = "arv752dpw:green:tae-n";
204 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
205 };
206 fxs2 {
207 label = "arv752dpw:green:tae-u";
208 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
209 };
210 fxo {
211 label = "arv752dpw:green:isdn";
212 gpios = <&gpiomm 7 GPIO_ACTIVE_LOW>;
213 };
214 internet2 {
215 label = "arv752dpw:blue:internet";
216 gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
217 };
218 voice2 {
219 label = "arv752dpw:blue:voice";
220 gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
221 };
222 };
223 };
224
225 &pci0 {
226 status = "okay";
227 lantiq,external-clock;
228 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
229 interrupt-map = <0x7000 0 0 1 &icu0 135>;
230 req-mask = <0x3>;
231
232 wifi@1814,0601 {
233 compatible = "pci1814,0601";
234 reg = <0x7000 0 0 0 0>;
235 ralink,mtd-eeprom = <&boardconfig 0x410>;
236 ralink,mtd-eeprom-swap;
237 };
238 };