lantiq: copy target to kernel 5.4
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.19 / arch / mips / boot / dts / lantiq / vr9_arcadyan_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 device_type = "memory";
26 reg = <0x0 0x4000000>;
27 };
28
29 keys {
30 compatible = "gpio-keys-polled";
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 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 pinctrl-0 = <&mdio_pins>,
111 <&gphy0_led0_pins>,
112 <&gphy1_led0_pins>, <&gphy1_led1_pins>;
113 pinctrl-names = "default";
114
115 lan: interface@0 {
116 compatible = "lantiq,xrx200-pdi";
117 #address-cells = <1>;
118 #size-cells = <0>;
119 reg = <0>;
120 mtd-mac-address = <&boardconfig 0x16>;
121 lantiq,switch;
122
123 ethernet@0 {
124 compatible = "lantiq,xrx200-pdi-port";
125 reg = <0>;
126 phy-mode = "mii";
127 phy-handle = <&phy1>;
128 };
129 ethernet@2 {
130 compatible = "lantiq,xrx200-pdi-port";
131 reg = <2>;
132 phy-mode = "mii";
133 phy-handle = <&phy11>;
134 };
135 ethernet@3 {
136 compatible = "lantiq,xrx200-pdi-port";
137 reg = <3>;
138 phy-mode = "mii";
139 phy-handle = <&phy12>;
140 };
141 ethernet@4 {
142 compatible = "lantiq,xrx200-pdi-port";
143 reg = <4>;
144 phy-mode = "mii";
145 phy-handle = <&phy13>;
146 };
147 ethernet@5 {
148 compatible = "lantiq,xrx200-pdi-port";
149 reg = <5>;
150 phy-mode = "mii";
151 phy-handle = <&phy14>;
152 };
153 };
154
155 mdio {
156 #address-cells = <1>;
157 #size-cells = <0>;
158 compatible = "lantiq,xrx200-mdio";
159
160 phy1: ethernet-phy@1 {
161 reg = <0x1>;
162 compatible = "ethernet-phy-ieee802.3-c22";
163 };
164
165 phy11: ethernet-phy@11 {
166 reg = <0x11>;
167 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
168 };
169 phy12: ethernet-phy@12 {
170 reg = <0x12>;
171 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
172 };
173 phy13: ethernet-phy@13 {
174 reg = <0x13>;
175 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
176 };
177 phy14: ethernet-phy@14 {
178 reg = <0x14>;
179 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
180 };
181 };
182 };
183
184 &gphy0 {
185 lantiq,gphy-mode = <GPHY_MODE_FE>;
186 };
187
188 &gphy1 {
189 lantiq,gphy-mode = <GPHY_MODE_FE>;
190 };
191
192 &gpio {
193 pinctrl-names = "default";
194 pinctrl-0 = <&state_default>, <&gphy0_led1_pins>;
195
196 state_default: pinmux {
197 pci-rst {
198 lantiq,pins = "io21";
199 lantiq,open-drain = <0>;
200 lantiq,pull = <0>;
201 lantiq,output = <1>;
202 };
203 };
204 };
205
206 &localbus {
207 flash@0 {
208 compatible = "lantiq,nor";
209 bank-width = <2>;
210 reg = <0 0x0 0x1000000>;
211
212 partitions {
213 compatible = "fixed-partitions";
214 #address-cells = <1>;
215 #size-cells = <1>;
216
217 boardconfig: partition@fe0000 {
218 label = "board_config";
219 reg = <0xfe0000 0x20000>;
220 read-only;
221 };
222 };
223 };
224 };
225
226 &pci0 {
227 status = "okay";
228 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
229
230 wifi@1814,3592 {
231 compatible = "pci1814,3592";
232 reg = <0x7000 0 0 0 0>;
233 ralink,mtd-eeprom = <&boardconfig 0x410>;
234 ralink,mtd-eeprom-swap;
235 mtd-mac-address = <&boardconfig 0x16>;
236 mtd-mac-address-increment = <1>;
237 };
238 };
239
240 &pcie0 {
241 status = "disabled";
242 };
243
244 &usb_phy0 {
245 status = "okay";
246 };
247
248 &usb0 {
249 status = "okay";
250 vbus-supply = <&usb_vbus>;
251 };
252
253 &vmmc {
254 status = "okay";
255 gpios = <&gpio 30 GPIO_ACTIVE_HIGH //fxs relay
256 &gpio 31 GPIO_ACTIVE_HIGH //still unknown
257 &gpio 3 GPIO_ACTIVE_HIGH>; //reset_slic?
258 };