lantiq: kernel 4.14: cleanup dts files
[openwrt/staging/blogic.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / VGV7519.dtsi
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 compatible = "arcadyan,vgv7519", "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 = &broadband_green;
18 led-internet = &internet_green;
19 led-wifi = &wireless_green;
20 };
21
22 memory@0 {
23 reg = <0x0 0x4000000>;
24 };
25
26 gphy-xrx200 {
27 compatible = "lantiq,phy-xrx200";
28 firmware1 = "lantiq/xrx200_phy11g_a14.bin"; /*VR9 1.1*/
29 firmware2 = "lantiq/xrx200_phy11g_a22.bin"; /*VR9 1.2*/
30 phys = [ 00 01 ];
31 };
32
33 gpio-keys-polled {
34 compatible = "gpio-keys-polled";
35 #address-cells = <1>;
36 #size-cells = <0>;
37 poll-interval = <100>;
38 reset {
39 label = "reset";
40 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 eco {
44 label = "eco";
45 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
46 linux,code = <BTN_0>;
47 };
48 rfkill {
49 label = "rfkill";
50 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RFKILL>;
52 };
53 wps {
54 label = "wps";
55 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_WPS_BUTTON>;
57 };
58 };
59
60 gpio-leds {
61 compatible = "gpio-leds";
62
63 eco {
64 label = "vgv7519:blue:eco";
65 gpios = <&stp 2 GPIO_ACTIVE_LOW>;
66 };
67 wps_red {
68 label = "vgv7519:red:wps";
69 gpios = <&stp 3 GPIO_ACTIVE_LOW>;
70 };
71 wps_green {
72 label = "vgv7519:green:wps";
73 gpios = <&stp 4 GPIO_ACTIVE_LOW>;
74 };
75 upgrade {
76 label = "vgv7519:blue:upgrade";
77 gpios = <&stp 5 GPIO_ACTIVE_LOW>;
78 };
79 tv {
80 label = "vgv7519:green:tv";
81 gpios = <&stp 6 GPIO_ACTIVE_LOW>;
82 };
83 internet_green: internet_green {
84 label = "vgv7519:green:internet";
85 gpios = <&stp 7 GPIO_ACTIVE_LOW>;
86 };
87 internet_red {
88 label = "vgv7519:red:internet";
89 gpios = <&stp 8 GPIO_ACTIVE_LOW>;
90 };
91 broadband_red {
92 label = "vgv7519:red:broadband";
93 gpios = <&stp 9 GPIO_ACTIVE_LOW>;
94 };
95 broadband_green: broadband_green {
96 label = "vgv7519:green:broadband";
97 gpios = <&stp 10 GPIO_ACTIVE_LOW>;
98 };
99 voice {
100 label = "vgv7519:green:voice";
101 gpios = <&stp 11 GPIO_ACTIVE_LOW>;
102 };
103 wireless_red {
104 label = "vgv7519:red:wireless";
105 gpios = <&stp 12 GPIO_ACTIVE_LOW>;
106 };
107 wireless_green: wireless_green {
108 label = "vgv7519:green:wireless";
109 gpios = <&stp 13 GPIO_ACTIVE_LOW>;
110 };
111 power_green: power2 {
112 label = "vgv7519:green:power";
113 gpios = <&stp 14 GPIO_ACTIVE_LOW>;
114 default-state = "keep";
115 };
116 power_red: power {
117 label = "vgv7519:red:power";
118 gpios = <&stp 15 GPIO_ACTIVE_LOW>;
119 };
120 };
121 };
122
123 &eth0 {
124 lan: interface@0 {
125 compatible = "lantiq,xrx200-pdi";
126 #address-cells = <1>;
127 #size-cells = <0>;
128 reg = <0>;
129 mtd-mac-address = <&boardconfig 0x16>;
130 mtd-mac-address-increment = <1>;
131 lantiq,switch;
132
133 ethernet@0 {
134 compatible = "lantiq,xrx200-pdi-port";
135 reg = <0>;
136 phy-mode = "rgmii";
137 phy-handle = <&phy0>;
138 };
139 ethernet@1 {
140 compatible = "lantiq,xrx200-pdi-port";
141 reg = <1>;
142 phy-mode = "rgmii";
143 phy-handle = <&phy1>;
144 };
145 ethernet@2 {
146 compatible = "lantiq,xrx200-pdi-port";
147 reg = <2>;
148 phy-mode = "gmii";
149 phy-handle = <&phy11>;
150 };
151 ethernet@4 {
152 compatible = "lantiq,xrx200-pdi-port";
153 reg = <4>;
154 phy-mode = "gmii";
155 phy-handle = <&phy13>;
156 };
157 ethernet@5 {
158 compatible = "lantiq,xrx200-pdi-port";
159 reg = <5>;
160 phy-mode = "rgmii";
161 phy-handle = <&phy5>;
162 };
163 };
164
165 mdio@0 {
166 #address-cells = <1>;
167 #size-cells = <0>;
168 compatible = "lantiq,xrx200-mdio";
169 reg = <0>;
170
171 phy0: ethernet-phy@0 {
172 reg = <0x0>;
173 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
174 };
175 phy1: ethernet-phy@1 {
176 reg = <0x1>;
177 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
178 };
179 phy5: ethernet-phy@5 {
180 reg = <0x5>;
181 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
182 };
183 phy11: ethernet-phy@11 {
184 reg = <0x11>;
185 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
186 };
187 phy13: ethernet-phy@13 {
188 reg = <0x13>;
189 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
190 };
191 };
192 };
193
194 &gpio {
195 pinctrl-names = "default";
196 pinctrl-0 = <&state_default>;
197
198 state_default: pinmux {
199 stp {
200 lantiq,groups = "stp";
201 lantiq,function = "stp";
202 lantiq,open-drain = <0>;
203 lantiq,output = <1>;
204 lantiq,pull = <0>;
205 };
206 mdio {
207 lantiq,groups = "mdio";
208 lantiq,function = "mdio";
209 };
210 pci-rst {
211 lantiq,pins = "io21";
212 lantiq,open-drain = <0>;
213 lantiq,pull = <0>;
214 lantiq,output = <1>;
215 };
216 gphy-leds {
217 lantiq,groups = "gphy0 led1", "gphy1 led0";
218 lantiq,function = "gphy";
219 lantiq,open-drain = <0>;
220 lantiq,pull = <0>;
221 lantiq,output = <1>;
222 };
223 };
224 };
225
226 &localbus {
227 nor@0 {
228 compatible = "lantiq,nor";
229 bank-width = <2>;
230 reg = <0 0x0 0x800000>, <1 0x800000 0x800000>;
231 #address-cells = <1>;
232 #size-cells = <1>;
233
234 partitions {
235 compatible = "fixed-partitions";
236 #address-cells = <1>;
237 #size-cells = <1>;
238
239 boardconfig: partition@40000 {
240 label = "board_config";
241 reg = <0x40000 0x10000>;
242 read-only;
243 };
244 };
245 };
246 };
247
248 &pci0 {
249 status = "okay";
250 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
251
252 wifi@1814,3091 {
253 compatible = "pci1814,3091";
254 reg = <0x7000 0 0 0 0>;
255 ralink,mtd-eeprom = <&boardconfig 0x410>;
256 ralink,mtd-eeprom-swap;
257 mtd-mac-address = <&boardconfig 0x16>;
258 mtd-mac-address-increment = <1>;
259 };
260 };
261
262 &pcie0 {
263 status = "disabled";
264 };
265
266 &stp {
267 lantiq,shadow = <0xffff>;
268 lantiq,groups = <0x3>;
269 lantiq,dsl = <0x0>;
270 lantiq,phy1 = <0x0>;
271 lantiq,phy2 = <0x0>;
272 /* lantiq,rising; */
273 };
274
275 &usb0 {
276 status = "okay";
277 gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
278 lantiq,portmask = <0x3>;
279 };
280
281 &usb1 {
282 status = "okay";
283 gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
284 };
285
286 &vmmc {
287 status = "okay";
288 gpios = <&gpio 30 GPIO_ACTIVE_HIGH //fxs relay
289 &gpio 31 GPIO_ACTIVE_HIGH //still unknown
290 &gpio 3 GPIO_ACTIVE_HIGH>; //reset_slic?
291 };