lantiq: fix initramfs image generation for lzmaloader based images
[openwrt.git] / target / linux / lantiq / dts / VG3503J.dts
1 /dts-v1/;
2
3 /include/ "vr9.dtsi"
4
5 / {
6         model = "VG3503J - BT OpenReach VDSL Modem";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10         };
11
12         memory@0 {
13                 reg = <0x0 0x2000000>;
14         };
15
16         fpi@10000000 {
17                 localbus@0 {
18                         ranges = <0 0 0x0 0x3ffffff>;
19                         nor-boot@0 {
20                                 compatible = "lantiq,nor";
21                                 bank-width = <2>;
22                                 reg = <0 0x0 0x2000000>;
23                                 #address-cells = <1>;
24                                 #size-cells = <1>;
25
26                                 partition@0 {
27                                         label = "uboot";
28                                         reg = <0x00000 0x20000>;
29                                 };
30
31                                 partition@20000 {
32                                         label = "kernel";
33                                         reg = <0x20000 0x180000>;
34                                 };
35
36                                 partition@1a0000 {
37                                         label = "rootfs";
38                                         reg = <0x1a0000 0x5a0000>;
39                                 };
40
41                                 partition@740000 {
42                                         label = "btagent";
43                                         reg = <0x740000 0x80000>;
44                                 };
45
46                                 partition@7c0000 {
47                                         label = "pri_bfocus_cfg";
48                                         reg = <0x7c0000 0x10000>;
49                                 };
50
51                                 partition@7d0000 {
52                                         label = "sec_bfocus_cfg";
53                                         reg = <0x7d0000 0x10000>;
54                                 };
55
56                                 partition@7e0000 {
57                                         label = "sysconfig";
58                                         reg = <0x7e0000 0x10000>;
59                                 };
60
61                                 partition@7f0000 {
62                                         label = "misc_cfg";
63                                         reg = <0x7f0000 0x10000>;
64                                 };
65                         };
66                 };
67
68                 gpio: pinmux@E100B10 {
69                         pinctrl-names = "default";
70                         pinctrl-0 = <&state_default>;
71
72                         state_default: pinmux {
73                                 mdio {
74                                         lantiq,groups = "mdio";
75                                         lantiq,function = "mdio";
76                                 };
77                         };
78                 };
79
80                 eth@E108000 {
81                         #address-cells = <1>;
82                         #size-cells = <0>;
83                         compatible = "lantiq,xrx200-net";
84                         reg = < 0xE108000 0x3000 /* switch */
85                                 0xE10B100 0x70 /* mdio */
86                                 0xE10B1D8 0x30 /* mii */
87                                 0xE10B308 0x30 /* pmac */
88                         >;
89                         interrupt-parent = <&icu0>;
90                         interrupts = <73 72>;
91
92                         lan1: interface@0 {
93                                 compatible = "lantiq,xrx200-pdi";
94                                 #address-cells = <1>;
95                                 #size-cells = <0>;
96                                 reg = <0>;
97                                 mac-address = [ 00 11 22 33 44 55 ];
98                                 lantiq,wan;
99                                 ethernet@4 {
100                                         compatible = "lantiq,xrx200-pdi-port";
101                                         reg = <4>;
102                                         phy-mode = "mii";
103                                         phy-handle = <&phy13>;
104                                 };
105                         };
106
107                         lan2: interface@1 {
108                                 compatible = "lantiq,xrx200-pdi";
109                                 #address-cells = <1>;
110                                 #size-cells = <0>;
111                                 reg = <1>;
112                                 mac-address = [ 00 11 22 33 44 56 ];
113
114                                 ethernet@2 {
115                                         compatible = "lantiq,xrx200-pdi-port";
116                                         reg = <2>;
117                                         phy-mode = "mii";
118                                         phy-handle = <&phy11>;
119                                 };
120                         };
121
122                         mdio@0 {
123                                 #address-cells = <1>;
124                                 #size-cells = <0>;
125                                 compatible = "lantiq,xrx200-mdio";
126                                 phy11: ethernet-phy@11 {
127                                         reg = <0x11>;
128                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
129                                         lantiq,c45-reg-init = <1 0 0 0>;
130                                 };
131                                 phy13: ethernet-phy@13 {
132                                         reg = <0x13>;
133                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
134                                         lantiq,c45-reg-init = <1 0 0 0>;
135                                 };
136                         };
137                 };
138         };
139
140         gphy-xrx200 {
141                 compatible = "lantiq,phy-xrx200";
142                 firmware = "lantiq/vr9_phy22f_a1x.bin";
143                 phys = [ 00 01 ];
144         };
145
146         gpio-keys-polled {
147                 compatible = "gpio-keys-polled";
148                 #address-cells = <1>;
149                 #size-cells = <0>;
150                 poll-interval = <100>;
151                 reset {
152                         label = "reset";
153                         gpios = <&gpio 6 1>;
154                         linux,code = <0x198>;
155                 };
156         };
157
158         gpio-leds {
159                 compatible = "gpio-leds";
160
161                 port2orange {
162                         label = "bt:orange:port2";
163                         gpios = <&gpio 2 0>;
164                 };
165                 lan2 {
166                         label = "bt:green:lan2";
167                         gpios = <&gpio 5 0>;
168                 };
169                 port2green {
170                         label = "bt:green:port2";
171                         gpios = <&gpio 7 0>;
172                 };
173                 power2 {
174                         label = "power2";
175                         gpios = <&gpio 14 1>;
176                 };
177                 dsl {
178                         label = "bt:green:dsl";
179                         gpios = <&gpio 19 1>;
180                 };
181                 power {
182                         label = "power";
183                         gpios = <&gpio 28 1>;
184                 };
185                 lan1 {
186                         label = "bt:green:lan1";
187                         gpios = <&gpio 44 0>;
188                 };
189                 port1green {
190                         label = "bt:green:port1";
191                         gpios = <&gpio 45 0>;
192                 };
193                 port1orange {
194                         label = "bt:orange:port1";
195                         gpios = <&gpio 47 0>;
196                 };
197         };
198 };