lantiq: kernel 4.14: copy patches, config and dts files
[oweals/openwrt.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ARV452CQW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "arcadyan,arv452cqw", "lantiq,xway", "lantiq,danube";
9         model = "Arcor 801";
10
11         chosen {
12                 bootargs = "console=ttyLTQ0,115200";
13         };
14
15         aliases {
16                 led-boot = &power_blue;
17                 led-failsafe = &power_red;
18                 led-running = &power_blue;
19
20                 led-dsl = &dsl_blue;
21                 led-usb = &usb;
22                 led-wifi = &wifi;
23         };
24
25         memory@0 {
26                 reg = <0x0 0x2000000>;
27         };
28
29         sram@1F000000 {
30                 vmmc@107000 {
31                         status = "okay";
32                         gpios = <&gpio 31 GPIO_ACTIVE_HIGH
33                                 &gpiomm 7 GPIO_ACTIVE_HIGH>;
34                 };
35         };
36
37         fpi@10000000 {
38                 localbus@0 {
39                         nor-boot@0 {
40                                 compatible = "lantiq,nor";
41                                 bank-width = <2>;
42                                 reg = <0 0x0 0x400000>;
43                                 #address-cells = <1>;
44                                 #size-cells = <1>;
45
46                                 partitions {
47                                         compatible = "fixed-partitions";
48                                         #address-cells = <1>;
49                                         #size-cells = <1>;
50
51                                         partition@0 {
52                                                 label = "uboot";
53                                                 reg = <0x00000 0x10000>;
54                                                 read-only;
55                                         };
56
57                                         partition@10000 {
58                                                 label = "uboot_env";
59                                                 reg = <0x10000 0x10000>;
60                                                 read-only;
61                                         };
62
63                                         partition@20000 {
64                                                 label = "firmware";
65                                                 reg = <0x20000 0x3d0000>;
66                                         };
67
68                                         boardconfig: partition@3f0000 {
69                                                 label = "boardconfig";
70                                                 reg = <0x3f0000 0x10000>;
71                                                 read-only;
72                                         };
73                                 };
74                         };
75
76                         ath5k_eep {
77                                 compatible = "ath5k,eeprom";
78                                 ath,eep-flash = <&boardconfig 0x400>;
79                                 ath,mac-offset = <0x0>;
80                                 ath,eep-swap;
81                         };
82                         gpiomm: gpiomm@4000000 {
83                                 compatible = "lantiq,gpio-mm";
84                                 reg = <1 0x0 0x10>;
85                                 #address-cells = <1>;
86                                 #size-cells = <1>;
87                                 #gpio-cells = <2>;
88                                 gpio-controller;
89                                 lantiq,shadow = <0x77f>;
90                         };
91                 };
92
93                 gpio: pinmux@E100B10 {
94                         pinctrl-names = "default";
95                         pinctrl-0 = <&state_default>;
96
97                         state_default: pinmux {
98                                 ebu {
99                                         lantiq,groups = "ebu cs1";
100                                         lantiq,function = "ebu";
101                                 };
102                                 pci_in {
103                                         lantiq,groups = "req1";
104                                         lantiq,function = "pci";
105                                         lantiq,open-drain = <1>;
106                                         lantiq,pull = <2>;
107                                         lantiq,output = <0>;
108                                 };
109                                 pci_out {
110                                         lantiq,groups = "gnt1";
111                                         lantiq,function = "pci";
112                                         lantiq,output = <1>;
113                                 };
114                                 pci_rst {
115                                         lantiq,pins = "io21";
116                                         lantiq,pull = <0>;
117                                         lantiq,output = <1>;
118                                 };
119                                 leds {
120                                         lantiq,pins = "io3", "io5", "io6", "io7", "io9";
121                                         lantiq,output = <1>;
122                                 };
123                         };
124                 };
125
126                 ifxhcd@E101000 {
127                         status = "okay";
128                         gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
129                 };
130
131                 etop@E180000 {
132                         phy-mode = "rmii";
133                         mtd-mac-address = <&boardconfig 0x16>;
134                 };
135
136                 pci@E105400 {
137                         status = "okay";
138                         lantiq,external-clock;
139                         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
140                 };
141         };
142
143 /*
144 #define ARV452CPW_SWITCH_RESET          110
145 */
146         gpio-keys-polled {
147                 compatible = "gpio-keys-polled";
148                 #address-cells = <1>;
149                 #size-cells = <0>;
150                 poll-interval = <100>;
151
152                 rfkill {
153                         label = "rfkill";
154                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
155                         linux,code = <KEY_RFKILL>;
156                 };
157                 wps {
158                         label = "wps";
159                         gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
160                         linux,code = <KEY_WPS_BUTTON>;
161                 };
162                 reset {
163                         label = "reset";
164                         gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
165                         linux,code = <KEY_RESTART>;
166                 };
167         };
168
169         gpio-leds {
170                 compatible = "gpio-leds";
171                 power_blue: power0 {
172                         label = "arv452cqw:blue:power";
173                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
174                         default-state = "keep";
175                 };
176                 dsl_blue: dsl {
177                         label = "arv452cqw:blue:dsl";
178                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
179                 };
180                 isdn {
181                         label = "arv452cqw:blue:isdn";
182                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
183                 };
184                 power_red: power1 {
185                         label = "arv452cqw:red:power";
186                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
187                 };
188                 wps {
189                         label = "arv452cqw:blue:wps";
190                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
191                 };
192                 wps1 {
193                         label = "arv452cqw:yellow:wps";
194                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
195                 };
196                 fxs1 {
197                         label = "arv452cqw:blue:telefon1";
198                         gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
199                 };
200                 fxs2 {
201                         label = "arv452cqw:blue:telefon2";
202                         gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
203                 };
204                 wps2 {
205                         label = "arv452cqw:red:wps";
206                         gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
207                 };
208                 fxo {
209                         label = "arv452cqw:blue:line";
210                         gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
211                 };
212                 voice {
213                         label = "arv452cqw:blue:sprache";
214                         gpios = <&gpiomm 4 1>;
215                 };
216                 usb: usb {
217                         label = "arv452cqw:blue:usb";
218                         gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
219                 };
220                 wifi: wifi {
221                         label = "arv452cqw:blue:wlan";
222                         gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
223                 };
224                 /*
225                         internet blue and internet red are missing
226                         dsl2 and dsl3 are not referenced in manual
227                 */
228                 dsl2 {
229                         label = "arv452cqw:yellow:dsl";
230                         gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
231                 };
232                 dsl3 {
233                         label = "arv452cqw:red:dsl";
234                         gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
235                 };
236         };
237 };