lantiq BTHOMEHUBV2B - update dts for automatic detection of ubi partition and rootfs...
[openwrt/openwrt.git] / target / linux / lantiq / dts / VGV7519.dtsi
1 /include/ "vr9.dtsi"
2
3 / {
4 chosen {
5 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
6 };
7
8 memory@0 {
9 reg = <0x0 0x4000000>;
10 };
11
12 fpi@10000000 {
13 #address-cells = <1>;
14 #size-cells = <1>;
15 compatible = "lantiq,fpi", "simple-bus";
16 ranges = <0x0 0x10000000 0xEEFFFFF>;
17 reg = <0x10000000 0xEF00000>;
18
19 localbus@0 {
20 #address-cells = <2>;
21 #size-cells = <1>;
22 compatible = "lantiq,localbus", "simple-bus";
23 };
24
25 gpio: pinmux@E100B10 {
26 compatible = "lantiq,pinctrl-xr9";
27 pinctrl-names = "default";
28 pinctrl-0 = <&state_default>;
29
30 interrupt-parent = <&icu0>;
31 interrupts = <166 135 66 40 41 42 38>;
32
33 #gpio-cells = <2>;
34 gpio-controller;
35 reg = <0xE100B10 0xA0>;
36
37 state_default: pinmux {
38 exin3 {
39 lantiq,groups = "exin3";
40 lantiq,function = "exin";
41 };
42 stp {
43 lantiq,groups = "stp";
44 lantiq,function = "stp";
45 };
46 spi {
47 lantiq,groups = "spi", "spi_cs4";
48 lantiq,function = "spi";
49 };
50 mdio {
51 lantiq,groups = "mdio";
52 lantiq,function = "mdio";
53 };
54 pci {
55 lantiq,groups = "gnt1", "req1";
56 lantiq,function = "pci";
57 };
58 conf_out {
59 lantiq,pins = "io4", "io5", "io6", /* stp */
60 "io21",
61 "io33",
62 "io7", "io44"; /* Internal ethernet phy leds */
63 lantiq,open-drain;
64 lantiq,pull = <0>;
65 lantiq,output = <1>;
66 };
67 pcie-rst {
68 lantiq,pins = "io38";
69 lantiq,pull = <0>;
70 lantiq,output = <1>;
71 };
72 conf_in {
73 lantiq,pins = "io39"; /* exin3 */
74 lantiq,pull = <2>;
75 };
76 };
77 };
78
79 eth@E108000 {
80 #address-cells = <1>;
81 #size-cells = <0>;
82 compatible = "lantiq,xrx200-net";
83 reg = < 0xE108000 0x3000 /* switch */
84 0xE10B100 0x70 /* mdio */
85 0xE10B1D8 0x30 /* mii */
86 0xE10B308 0x30 /* pmac */
87 >;
88 interrupt-parent = <&icu0>;
89 interrupts = <73 72>;
90
91 lan: interface@0 {
92 compatible = "lantiq,xrx200-pdi";
93 #address-cells = <1>;
94 #size-cells = <0>;
95 reg = <0>;
96 mac-address = [ 00 11 22 33 44 55 ];
97
98 ethernet@0 {
99 compatible = "lantiq,xrx200-pdi-port";
100 reg = <0>;
101 phy-mode = "rgmii";
102 phy-handle = <&phy0>;
103 };
104 ethernet@1 {
105 compatible = "lantiq,xrx200-pdi-port";
106 reg = <1>;
107 phy-mode = "rgmii";
108 phy-handle = <&phy1>;
109 };
110 ethernet@2 {
111 compatible = "lantiq,xrx200-pdi-port";
112 reg = <2>;
113 phy-mode = "gmii";
114 phy-handle = <&phy11>;
115 };
116 ethernet@4 {
117 compatible = "lantiq,xrx200-pdi-port";
118 reg = <4>;
119 phy-mode = "gmii";
120 phy-handle = <&phy13>;
121 };
122 };
123
124 wan: interface@1 {
125 compatible = "lantiq,xrx200-pdi";
126 #address-cells = <1>;
127 #size-cells = <0>;
128 reg = <1>;
129 mac-address = [ 00 11 22 33 44 56 ];
130 lantiq,wan;
131 ethernet@5 {
132 compatible = "lantiq,xrx200-pdi-port";
133 reg = <5>;
134 phy-mode = "rgmii";
135 phy-handle = <&phy5>;
136 };
137 };
138
139 mdio@0 {
140 #address-cells = <1>;
141 #size-cells = <0>;
142 compatible = "lantiq,xrx200-mdio";
143 phy0: ethernet-phy@0 {
144 reg = <0x0>;
145 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
146 lantiq,c45-reg-init = <1 0 0 0>;
147 };
148 phy1: ethernet-phy@1 {
149 reg = <0x1>;
150 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
151 lantiq,c45-reg-init = <1 0 0 0>;
152 };
153 phy5: ethernet-phy@5 {
154 reg = <0x5>;
155 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
156 lantiq,c45-reg-init = <1 0 0 0>;
157 };
158 phy11: ethernet-phy@11 {
159 reg = <0x11>;
160 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
161 lantiq,c45-reg-init = <1 0 0 0>;
162 };
163 phy13: ethernet-phy@13 {
164 reg = <0x13>;
165 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
166 lantiq,c45-reg-init = <1 0 0 0>;
167 };
168 };
169 };
170
171 stp: stp@E100BB0 {
172 compatible = "lantiq,gpio-stp-xway";
173 reg = <0xE100BB0 0x40>;
174 #gpio-cells = <2>;
175 gpio-controller;
176
177 lantiq,shadow = <0xffff>;
178 lantiq,groups = <0x3>;
179 lantiq,dsl = <0x0>;
180 lantiq,phy1 = <0x0>;
181 lantiq,phy2 = <0x0>;
182 /* lantiq,rising; */
183 };
184
185 ifxhcd@E101000 {
186 status = "okay";
187 gpios = <&gpio 32 0>;
188 lantiq,portmask = <0x3>;
189 };
190
191 pci@E105400 {
192 #address-cells = <3>;
193 #size-cells = <2>;
194 #interrupt-cells = <1>;
195 compatible = "lantiq,pci-xway1";
196 bus-range = <0x0 0x0>;
197 ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000 /* pci memory */
198 0x1000000 0 0x00000000 0xAE00000 0 0x200000>; /* io space */
199 reg = <0x7000000 0x8000 /* config space */
200 0xE105400 0x400>; /* pci bridge */
201 lantiq,bus-clock = <33333333>;
202 /*lantiq,external-clock;*/
203 lantiq,delay-hi = <0>; /* 0ns delay */
204 lantiq,delay-lo = <0>; /* 0.0ns delay */
205 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
206 interrupt-map = <
207 0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
208 >;
209 gpios-reset = <&gpio 21 0>;
210 req-mask = <0x1>; /* GNT1 */
211 };
212 };
213
214 gphy-xrx200 {
215 compatible = "lantiq,phy-xrx200";
216 firmware = "lantiq/vr9_phy11g_a1x.bin";
217 phys = [ 00 01 ];
218 };
219
220 gpio-keys-polled {
221 compatible = "gpio-keys-polled";
222 #address-cells = <1>;
223 #size-cells = <0>;
224 poll-interval = <100>;
225 reset {
226 label = "reset";
227 gpios = <&gpio 9 1>;
228 linux,code = <0x198>;
229 };
230 eco {
231 label = "eco";
232 gpios = <&gpio 41 1>;
233 linux,code = <247>;
234 };
235 rfkill {
236 label = "rfkill";
237 gpios = <&gpio 45 1>;
238 linux,code = <0xf7>;
239 };
240 wps {
241 gpios = <&gpio 10 1>;
242 linux,code = <0x211>;
243 };
244 };
245
246 gpio-leds {
247 compatible = "gpio-leds";
248
249 eco { /* blue */
250 label = "eco";
251 gpios = <&stp 2 1>;
252 };
253 wps_red { /* red */
254 label = "wps_red";
255 gpios = <&stp 3 1>;
256 };
257 wps_yellow { /* yellow */
258 label = "wps_yellow";
259 gpios = <&stp 4 1>;
260 };
261 upgrade { /* blue */
262 label = "upgrade";
263 gpios = <&stp 5 1>;
264 };
265 tv { /* yellow */
266 label = "tv";
267 gpios = <&stp 6 1>;
268 };
269 internet_yellow { /* yellow */
270 label = "internet_yellow";
271 gpios = <&stp 7 1>;
272 };
273 internet_red { /* red */
274 label = "internet_red";
275 gpios = <&stp 8 1>;
276 };
277 broadband_red { /* red */
278 label = "broadband_red";
279 gpios = <&stp 9 1>;
280 };
281 broadband_yellow { /* yellow */
282 label = "broadband_yellow";
283 gpios = <&stp 10 1>;
284 };
285 voice { /* yellow */
286 label = "voice";
287 gpios = <&stp 11 1>;
288 };
289 wireless_red { /* red */
290 label = "wireless_red";
291 gpios = <&stp 12 1>;
292 };
293 wireless_yellow { /* yellow */
294 label = "wireless_yellow";
295 gpios = <&stp 13 1>;
296 };
297 power2 { /* yellow */
298 label = "power2";
299 gpios = <&stp 14 1>;
300 };
301 power { /* red */
302 label = "power";
303 gpios = <&stp 15 1>;
304 default-state = "on";
305 };
306 };
307 };