lantiq: new image build process - fix kernel entry address
[openwrt.git] / target / linux / lantiq / dts / VR200v.dts
1 /dts-v1/;
2
3 /include/ "vr9.dtsi"
4
5 / {
6         model = "VR200v - TP-LINK Archer VR200v";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         boot = &power;
13                         failsafe = &power;
14
15                         dsl = &dsl;
16                         internet = &internet;
17                         usb = &usb;
18                         usb2 = &usb;
19                 };
20         };
21
22         memory@0 {
23                 reg = <0x0 0x7f00000>;
24         };
25
26         fpi@10000000 {
27                 gpio: pinmux@E100B10 {
28                         pinctrl-names = "default";
29                         pinctrl-0 = <&state_default>;
30
31                         state_default: pinmux {
32                                 mdio {
33                                         lantiq,groups = "mdio";
34                                         lantiq,function = "mdio";
35                                 };
36                                 gphy-leds {
37                                         lantiq,groups = "gphy0 led1", "gphy1 led1";
38                                         lantiq,function = "gphy";
39                                         lantiq,pull = <2>;
40                                         lantiq,open-drain = <0>;
41                                         lantiq,output = <1>;
42                                 };
43                                 phy-rst {
44                                         lantiq,pins = "io42";
45                                         lantiq,pull = <0>;
46                                         lantiq,open-drain = <0>;
47                                         lantiq,output = <1>;
48                                 };
49                                 pcie-rst {
50                                         lantiq,pins = "io38";
51                                         lantiq,pull = <0>;
52                                         lantiq,output = <1>;
53                                 };
54                         };
55                         pins_spi_default: pins_spi_default {
56                                 spi_in {
57                                         lantiq,groups = "spi_di";
58                                         lantiq,function = "spi";
59                                 };
60                                 spi_out {
61                                         lantiq,groups = "spi_do", "spi_clk",
62                                                 "spi_cs4";
63                                         lantiq,function = "spi";
64                                         lantiq,output = <1>;
65                                 };
66                         };
67                 };
68
69                 ifxhcd@E101000 {
70                         status = "okay";
71                         gpios = <&gpio 33 0>;
72                         lantiq,portmask = <0x3>;
73                 };
74
75                 ifxhcd@E106000 {
76                         status = "okay";
77                         gpios = <&gpio 33 0>;
78                 };
79         };
80
81         gphy-xrx200 {
82                 compatible = "lantiq,phy-xrx200";
83                 firmware = "lantiq/vr9_phy11g_a2x.bin";
84                 phys = [ 00 01 ];
85         };
86
87         gpio-keys-polled {
88                 compatible = "gpio-keys-polled";
89                 #address-cells = <1>;
90                 #size-cells = <0>;
91                 poll-interval = <100>;
92                 reset {
93                         label = "reset";
94                         gpios = <&gpio 22 1>;
95                         linux,code = <0x198>;
96                 };
97
98                 wifi {
99                         label = "wifi";
100                         gpios = <&gpio 0 0>;
101                         linux,code = <0xf7>;
102                         linux,input-type = <5>; /* EV_SW */
103                 };
104
105                 wps {
106                         label = "wps";
107                         gpios = <&gpio 2 1>;
108                         linux,code = <0x211>;
109                 };
110
111                 dect_paging {
112                         label = "dect_paging";
113                         gpios = <&gpio 39 1>;
114                         linux,code = <0x211>;
115                 };
116         };
117
118         gpio-leds {
119                 compatible = "gpio-leds";
120                 power: power {
121                         label = "vr200v:blue:power";
122                         gpios = <&gpio 46 1>;
123                 };
124                 dsl: dsl {
125                         label = "vr200v:blue:dsl";
126                         gpios = <&gpio 4 1>;
127                 };
128                 internet: internet {
129                         label = "vr200v:blue:internet";
130                         gpios = <&gpio 5 1>;
131                 };
132                 usb: usb {
133                         label = "vr200v:blue:usb";
134                         gpios = <&gpio 25 1>;
135                 };
136                 eth {
137                         label = "vr200v:blue:lan";
138                         gpios = <&gpio 40 1>;
139                 };
140                 wlan {
141                         label = "vr200v:blue:wlan";
142                         gpios = <&gpio 24 1>;
143                 };
144                 wlan5g {
145                         label = "vr200v:blue:wlan5g";
146                         gpios = <&gpio 20 1>;
147                 };
148                 phone {
149                         label = "vr200v:blue:phone";
150                         gpios = <&gpio 44 1>;
151                 };
152         };
153 };
154
155 &spi {
156         pinctrl-names = "default";
157         pinctrl-0 = <&pins_spi_default>;
158
159         status = "ok";
160
161         m25p80@4 {
162                 #address-cells = <1>;
163                 #size-cells = <1>;
164                 compatible = "jedec,spi-nor";
165                 reg = <4 0>;
166                 spi-max-frequency = <33250000>;
167                 m25p,fast-read;
168
169                 partition@0 {
170                         reg = <0x0 0x20000>;
171                         label = "u-boot";
172                         read-only;
173                 };
174
175                 partition@20000 {
176                         reg = <0x20000 0xf90000>;
177                         label = "firmware";
178                 };
179
180                 partition@fb0000 {
181                         reg = <0xfb0000 0x10000>;
182                         label = "radioDECT";
183                         read-only;
184                 };
185
186                 partition@fc0000 {
187                         reg = <0xfc0000 0x10000>;
188                         label = "config";
189                         read-only;
190                 };
191
192                 romfile: partition@fd0000 {
193                         reg = <0xfd0000 0x10000>;
194                         label = "romfile";
195                         read-only;
196                 };
197
198                 partition@fe0000 {
199                         reg = <0xfe0000 0x10000>;
200                         label = "rom";
201                         read-only;
202                 };
203
204                 partition@ff0000 {
205                         reg = <0xff0000 0x10000>;
206                         label = "radio";
207                         read-only;
208                 };
209         };
210 };
211
212 &eth0 {
213         lan: interface@0 {
214                 compatible = "lantiq,xrx200-pdi";
215                 #address-cells = <1>;
216                 #size-cells = <0>;
217                 reg = <0>;
218                 mtd-mac-address = <&romfile 0xf100>;
219                 lantiq,switch;
220
221                 ethernet@0 {
222                         compatible = "lantiq,xrx200-pdi-port";
223                         reg = <0>;
224                         phy-mode = "rgmii";
225                         phy-handle = <&phy0>;
226                         // gpios = <&gpio 42 1>;
227                 };
228                 ethernet@5 {
229                         compatible = "lantiq,xrx200-pdi-port";
230                         reg = <5>;
231                         phy-mode = "rgmii";
232                         phy-handle = <&phy5>;
233                 };
234                 ethernet@2 {
235                         compatible = "lantiq,xrx200-pdi-port";
236                         reg = <2>;
237                         phy-mode = "gmii";
238                         phy-handle = <&phy11>;
239                 };
240                 ethernet@3 {
241                         compatible = "lantiq,xrx200-pdi-port";
242                         reg = <4>;
243                         phy-mode = "gmii";
244                         phy-handle = <&phy13>;
245                 };
246         };
247
248         mdio@0 {
249                 #address-cells = <1>;
250                 #size-cells = <0>;
251                 compatible = "lantiq,xrx200-mdio";
252                 phy0: ethernet-phy@0 {
253                         reg = <0x0>;
254                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
255                 };
256                 phy5: ethernet-phy@5 {
257                         reg = <0x5>;
258                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
259                 };
260                 phy11: ethernet-phy@11 {
261                         reg = <0x11>;
262                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
263                 };
264                 phy13: ethernet-phy@13 {
265                         reg = <0x13>;
266                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
267                 };
268         };
269 };