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