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