lantiq: kernel 4.14: copy patches, config and dts files
[openwrt/staging/wigyori.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / VGV7510KW22.dtsi
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 compatible = "arcadyan,vgv7510kw22", "lantiq,xway", "lantiq,vr9";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 mem=62M vpe1_load_addr=0x83e00000 vpe1_mem=2M maxvpes=1 maxtcs=1 nosmp";
10 };
11
12 aliases {
13 led-boot = &power_green;
14 led-failsafe = &power_red;
15 led-running = &power_green;
16
17 led-dsl = &dsl;
18 led-internet = &internet_green;
19 led-wifi = &wifi;
20 };
21
22 sram@1F000000 {
23 vmmc@107000 {
24 status = "okay";
25 gpios = <&gpio 30 GPIO_ACTIVE_HIGH //fxs relay
26 &gpio 31 GPIO_ACTIVE_HIGH //still unknown
27 &gpio 3 GPIO_ACTIVE_HIGH>; //reset_slic?
28 };
29 };
30
31 memory@0 {
32 reg = <0x0 0x4000000>;
33 };
34
35 fpi@10000000 {
36 localbus@0 {
37 nor-boot@0 {
38 compatible = "lantiq,nor";
39 bank-width = <2>;
40 reg = <0 0x0 0x1000000>;
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 boardconfig: partition@fe0000 {
50 label = "board_config";
51 reg = <0xfe0000 0x20000>;
52 read-only;
53 };
54 };
55 };
56 };
57
58 gpio: pinmux@E100B10 {
59 pinctrl-names = "default";
60 pinctrl-0 = <&state_default>;
61
62 state_default: pinmux {
63 gphy-leds {
64 lantiq,groups = "gphy0 led0", "gphy0 led1",
65 "gphy1 led0", "gphy1 led1";
66 lantiq,function = "gphy";
67 lantiq,open-drain = <0>;
68 lantiq,pull = <2>;
69 lantiq,output = <1>;
70 };
71 mdio {
72 lantiq,groups = "mdio";
73 lantiq,function = "mdio";
74 };
75 pci-rst {
76 lantiq,pins = "io21";
77 lantiq,open-drain = <0>;
78 lantiq,pull = <0>;
79 lantiq,output = <1>;
80 };
81 };
82 };
83
84 ifxhcd@E101000 {
85 status = "okay";
86 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
87 };
88
89 pcie@d900000 {
90 status = "disabled";
91 };
92 };
93
94 gphy-xrx200 {
95 compatible = "lantiq,phy-xrx200";
96 firmware1 = "lantiq/xrx200_phy22f_a14.bin"; /*VR9 1.1*/
97 firmware2 = "lantiq/xrx200_phy22f_a22.bin"; /*VR9 1.2*/
98 phys = [ 00 01 ];
99 };
100
101 gpio-keys-polled {
102 compatible = "gpio-keys-polled";
103 #address-cells = <1>;
104 #size-cells = <0>;
105 poll-interval = <100>;
106
107 reset {
108 label = "reset";
109 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_RESTART>;
111 };
112
113 wps {
114 label = "wps";
115 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
116 linux,code = <KEY_WPS_BUTTON>;
117 };
118 };
119
120 gpio-leds {
121 compatible = "gpio-leds";
122
123 dsl: dsl {
124 label = "vgv7510kw22:green:dsl";
125 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
126 };
127
128 internet_red {
129 label = "vgv7510kw22:red:internet";
130 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
131 };
132
133 info_red {
134 label = "vgv7510kw22:red:info";
135 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
136 };
137
138 power_green: power {
139 label = "vgv7510kw22:green:power";
140 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
141 default-state = "keep";
142 };
143
144 info_green {
145 label = "vgv7510kw22:green:info";
146 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
147 };
148
149 internet_green: internet_green {
150 label = "vgv7510kw22:green:internet";
151 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
152 };
153
154 wifi: wifi {
155 label = "vgv7510kw22:green:wlan";
156 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
157 };
158
159 power_red: power2 {
160 label = "vgv7510kw22:red:power";
161 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
162 };
163
164 phone {
165 label = "vgv7510kw22:green:telefon";
166 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
167 };
168 };
169 };
170
171 &pci0 {
172 status = "okay";
173 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
174
175 wifi@1814,3592 {
176 compatible = "pci1814,3592";
177 reg = <0x7000 0 0 0 0>;
178 ralink,mtd-eeprom = <&boardconfig 0x410>;
179 ralink,mtd-eeprom-swap;
180 mtd-mac-address = <&boardconfig 0x16>;
181 mtd-mac-address-increment = <1>;
182 };
183 };
184
185 &eth0 {
186 lan: interface@0 {
187 compatible = "lantiq,xrx200-pdi";
188 #address-cells = <1>;
189 #size-cells = <0>;
190 reg = <0>;
191 mtd-mac-address = <&boardconfig 0x16>;
192 lantiq,switch;
193
194 ethernet@0 {
195 compatible = "lantiq,xrx200-pdi-port";
196 reg = <0>;
197 phy-mode = "mii";
198 phy-handle = <&phy1>;
199 };
200 ethernet@2 {
201 compatible = "lantiq,xrx200-pdi-port";
202 reg = <2>;
203 phy-mode = "mii";
204 phy-handle = <&phy11>;
205 };
206 ethernet@3 {
207 compatible = "lantiq,xrx200-pdi-port";
208 reg = <3>;
209 phy-mode = "mii";
210 phy-handle = <&phy12>;
211 };
212 ethernet@4 {
213 compatible = "lantiq,xrx200-pdi-port";
214 reg = <4>;
215 phy-mode = "mii";
216 phy-handle = <&phy13>;
217 };
218 ethernet@5 {
219 compatible = "lantiq,xrx200-pdi-port";
220 reg = <5>;
221 phy-mode = "mii";
222 phy-handle = <&phy14>;
223 };
224 };
225
226 mdio@0 {
227 #address-cells = <1>;
228 #size-cells = <0>;
229 compatible = "lantiq,xrx200-mdio";
230
231 phy1: ethernet-phy@1 {
232 reg = <0x1>;
233 compatible = "ethernet-phy-ieee802.3-c22";
234 };
235
236 phy11: ethernet-phy@11 {
237 reg = <0x11>;
238 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
239 };
240 phy12: ethernet-phy@12 {
241 reg = <0x12>;
242 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
243 };
244 phy13: ethernet-phy@13 {
245 reg = <0x13>;
246 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
247 };
248 phy14: ethernet-phy@14 {
249 reg = <0x14>;
250 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
251 };
252 };
253 };