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