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