lantiq: move partitions into partion table node
[openwrt.git] / target / linux / lantiq / dts / VGV7510KW22.dtsi
1 /include/ "vr9.dtsi"
2
3 / {
4         model = "VGV7510KW22 - o2 Box 6431";
5
6         chosen {
7                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
8
9                 leds {
10                         boot = &power_green;
11                         failsafe = &power_red;
12                         running = &power_green;
13
14                         dsl = &dsl;
15                         internet = &internet_green;
16                         wifi = &wifi;
17                 };
18         };
19
20         memory@0 {
21                 reg = <0x0 0x4000000>;
22         };
23
24         fpi@10000000 {
25                 localbus@0 {
26                         nor-boot@0 {
27                                 compatible = "lantiq,nor";
28                                 bank-width = <2>;
29                                 reg = <0 0x0 0x1000000>;
30                                 #address-cells = <1>;
31                                 #size-cells = <1>;
32
33                                 partitions {
34                                         compatible = "fixed-partitions";
35                                         #address-cells = <1>;
36                                         #size-cells = <1>;
37
38                                         boardconfig: partition@fe0000 {
39                                                 label = "board_config";
40                                                 reg = <0xfe0000 0x20000>;
41                                                 read-only;
42                                         };
43                                 };
44                         };
45                 };
46
47                 gpio: pinmux@E100B10 {
48                         pinctrl-names = "default";
49                         pinctrl-0 = <&state_default>;
50
51                         state_default: pinmux {
52                                 ip101a-rst {
53                                         lantiq,pins = "io46";
54                                         lantiq,output = <0>;
55                                         lantiq,pull = <1>;
56                                 };
57                                 gphy-leds {
58                                         lantiq,groups = "gphy0 led1",
59                                                         "gphy1 led0", "gphy1 led1";
60                                         lantiq,function = "gphy";
61                                         lantiq,open-drain = <0>;
62                                         lantiq,pull = <0>;
63                                         lantiq,output = <1>;
64                                 };
65                                 stp {
66                                         lantiq,groups = "stp";
67                                         lantiq,function = "stp";
68                                         lantiq,pull = <2>;
69                                         lantiq,open-drain = <0>;
70                                         lantiq,output = <1>;
71                                 };
72                                 mdio {
73                                         lantiq,groups = "mdio";
74                                         lantiq,function = "mdio";
75                                 };
76                                 pci-rst {
77                                         lantiq,pins = "io21";
78                                         lantiq,open-drain = <0>;
79                                         lantiq,pull = <0>;
80                                         lantiq,output = <1>;
81                                 };
82                                 spi {
83                                         lantiq,groups = "spi_di", "spi_do", "spi_clk";
84                                         lantiq,function = "spi";
85                                 };
86                         };
87                 };
88
89                 stp: stp@E100BB0 {
90                         compatible = "lantiq,gpio-stp-xway";
91                         reg = <0xE100BB0 0x40>;
92                         #gpio-cells = <2>;
93                         gpio-controller;
94
95                         lantiq,shadow = <0xff>;
96                         lantiq,groups = <0x1>;
97                         lantiq,dsl = <0x0>;
98                         lantiq,phy1 = <0x7>;
99                         lantiq,phy2 = <0x7>; /* enable gphy0 led2 = LAN2 LED */
100                 };
101
102                 ifxhcd@E101000 {
103                         status = "okay";
104                         gpios = <&gpio 47 0>;
105                 };
106
107                 pci@E105400 {
108                         status = "okay";
109                         lantiq,bus-clock = <33333333>;
110                         interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
111                         interrupt-map = <
112                                 0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
113                                 >;
114                         gpio-reset = <&gpio 21 0>;
115                         req-mask = <0x1>;       /* GNT1 */
116                 };
117
118                 pcie@d900000 {
119                         status = "disabled";
120                 };
121         };
122
123         gphy-xrx200 {
124                 compatible = "lantiq,phy-xrx200";
125                 firmware1 = "lantiq/vr9_phy22f_a1x.bin";        /*VR9 1.1*/
126                 firmware2 = "lantiq/vr9_phy22f_a2x.bin";        /*VR9 1.2*/
127                 phys = [ 00 01 ];
128         };
129
130         ralink_eep {
131                 compatible = "ralink,eeprom";
132                 ralink,eeprom = "RT3062.eeprom";
133         };
134
135         gpio-keys-polled {
136                 compatible = "gpio-keys-polled";
137                 #address-cells = <1>;
138                 #size-cells = <0>;
139                 poll-interval = <100>;
140
141                 reset {
142                         label = "reset";
143                         gpios = <&gpio 6 1>;
144                         linux,code = <0x198>;
145                 };
146
147                 wps {
148                         label = "wps";
149                         gpios = <&gpio 9 1>;
150                         linux,code = <0x211>;
151                 };
152         };
153
154         gpio-leds {
155                 compatible = "gpio-leds";
156
157                 dsl: dsl {
158                         label = "vgv7510kw22:green:dsl";
159                         gpios = <&gpio 2 1>;
160                 };
161
162                 internet_red {
163                         label = "vgv7510kw22:red:internet";
164                         gpios = <&gpio 10 1>;
165                 };
166
167                 info_red {
168                         label = "vgv7510kw22:red:info";
169                         gpios = <&gpio 12 1>;
170                 };
171
172                 power_green: power {
173                         label = "vgv7510kw22:green:power";
174                         gpios = <&gpio 14 1>;
175                         default-state = "keep";
176                 };
177
178                 info_green {
179                         label = "vgv7510kw22:green:info";
180                         gpios = <&gpio 15 1>;
181                 };
182
183                 internet_green: internet_green {
184                         label = "vgv7510kw22:green:internet";
185                         gpios = <&gpio 19 1>;
186                 };
187
188                 wifi: wifi {
189                         label = "vgv7510kw22:green:wlan";
190                         gpios = <&gpio 20 1>;
191                 };
192
193                 power_red: power2 {
194                         label = "vgv7510kw22:red:power";
195                         gpios = <&gpio 28 1>;
196                 };
197
198                 phone {
199                         label = "vgv7510kw22:green:telefon";
200                         gpios = <&gpio 29 1>;
201                 };
202         };
203 };
204
205 &eth0 {
206         lan: interface@0 {
207                 compatible = "lantiq,xrx200-pdi";
208                 #address-cells = <1>;
209                 #size-cells = <0>;
210                 reg = <0>;
211                 mtd-mac-address = <&boardconfig 0x16>;
212                 lantiq,switch;
213
214                 ethernet@2 {
215                         compatible = "lantiq,xrx200-pdi-port";
216                         reg = <2>;
217                         phy-mode = "mii";
218                         phy-handle = <&phy11>;
219                 };
220                 ethernet@3 {
221                         compatible = "lantiq,xrx200-pdi-port";
222                         reg = <3>;
223                         phy-mode = "mii";
224                         phy-handle = <&phy12>;
225                 };
226                 ethernet@4 {
227                         compatible = "lantiq,xrx200-pdi-port";
228                         reg = <4>;
229                         phy-mode = "mii";
230                         phy-handle = <&phy13>;
231                 };
232                 ethernet@5 {
233                         compatible = "lantiq,xrx200-pdi-port";
234                         reg = <5>;
235                         phy-mode = "mii";
236                         phy-handle = <&phy14>;
237                 };
238         };
239
240         mdio@0 {
241                 #address-cells = <1>;
242                 #size-cells = <0>;
243                 compatible = "lantiq,xrx200-mdio";
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 };