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