lantiq: use devicename:colour:function led naming scheme
[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                                 boardconfig: partition@fe0000 {
34                                         label = "board_config";
35                                         reg = <0xfe0000 0x20000>;
36                                         read-only;
37                                 };
38                         };
39                 };
40
41                 gpio: pinmux@E100B10 {
42                         pinctrl-names = "default";
43                         pinctrl-0 = <&state_default>;
44
45                         state_default: pinmux {
46                                 ip101a-rst {
47                                         lantiq,pins = "io46";
48                                         lantiq,output = <0>;
49                                         lantiq,pull = <1>;
50                                 };
51                                 gphy-leds {
52                                         lantiq,groups = "gphy0 led1",
53                                                         "gphy1 led0", "gphy1 led1";
54                                         lantiq,function = "gphy";
55                                         lantiq,open-drain = <0>;
56                                         lantiq,pull = <0>;
57                                         lantiq,output = <1>;
58                                 };
59                                 stp {
60                                         lantiq,groups = "stp";
61                                         lantiq,function = "stp";
62                                         lantiq,pull = <2>;
63                                         lantiq,open-drain = <0>;
64                                         lantiq,output = <1>;
65                                 };
66                                 mdio {
67                                         lantiq,groups = "mdio";
68                                         lantiq,function = "mdio";
69                                 };
70                                 pci-rst {
71                                         lantiq,pins = "io21";
72                                         lantiq,open-drain = <0>;
73                                         lantiq,pull = <0>;
74                                         lantiq,output = <1>;
75                                 };
76                                 spi {
77                                         lantiq,groups = "spi";
78                                         lantiq,function = "spi";
79                                 };
80                         };
81                 };
82
83                 eth@E108000 {
84                         #address-cells = <1>;
85                         #size-cells = <0>;
86                         compatible = "lantiq,xrx200-net";
87                         reg = < 0xE108000 0x3000 /* switch */
88                                 0xE10B100 0x70 /* mdio */
89                                 0xE10B1D8 0x30 /* mii */
90                                 0xE10B308 0x30 /* pmac */
91                         >;
92                         interrupt-parent = <&icu0>;
93                         interrupts = <73 72>;
94
95                         lan: interface@0 {
96                                 compatible = "lantiq,xrx200-pdi";
97                                 #address-cells = <1>;
98                                 #size-cells = <0>;
99                                 reg = <0>;
100                                 mtd-mac-address = <&boardconfig 0x16>;
101                                 lantiq,switch;
102
103                                 ethernet@2 {
104                                         compatible = "lantiq,xrx200-pdi-port";
105                                         reg = <2>;
106                                         phy-mode = "mii";
107                                         phy-handle = <&phy11>;
108                                 };
109                                 ethernet@3 {
110                                         compatible = "lantiq,xrx200-pdi-port";
111                                         reg = <3>;
112                                         phy-mode = "mii";
113                                         phy-handle = <&phy12>;
114                                 };
115                                 ethernet@4 {
116                                         compatible = "lantiq,xrx200-pdi-port";
117                                         reg = <4>;
118                                         phy-mode = "mii";
119                                         phy-handle = <&phy13>;
120                                 };
121                                 ethernet@5 {
122                                         compatible = "lantiq,xrx200-pdi-port";
123                                         reg = <5>;
124                                         phy-mode = "mii";
125                                         phy-handle = <&phy14>;
126                                 };
127                         };
128
129                         mdio@0 {
130                                 #address-cells = <1>;
131                                 #size-cells = <0>;
132                                 compatible = "lantiq,xrx200-mdio";
133
134                                 phy11: ethernet-phy@11 {
135                                         reg = <0x11>;
136                                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
137                                 };
138                                 phy12: ethernet-phy@12 {
139                                         reg = <0x12>;
140                                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
141                                 };
142                                 phy13: ethernet-phy@13 {
143                                         reg = <0x13>;
144                                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
145                                 };
146                                 phy14: ethernet-phy@14 {
147                                         reg = <0x14>;
148                                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
149                                 };
150                         };
151                 };
152
153                 stp: stp@E100BB0 {
154                         compatible = "lantiq,gpio-stp-xway";
155                         reg = <0xE100BB0 0x40>;
156                         #gpio-cells = <2>;
157                         gpio-controller;
158
159                         lantiq,shadow = <0xff>;
160                         lantiq,groups = <0x1>;
161                         lantiq,dsl = <0x0>;
162                         lantiq,phy1 = <0x7>;
163                         lantiq,phy2 = <0x7>; /* enable gphy0 led2 = LAN2 LED */
164                 };
165
166                 ifxhcd@E101000 {
167                         status = "okay";
168                         gpios = <&gpio 47 0>;
169                 };
170
171                 pci@E105400 {
172                         status = "okay";
173                         lantiq,bus-clock = <33333333>;
174                         interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
175                         interrupt-map = <
176                                 0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
177                                 >;
178                         gpio-reset = <&gpio 21 0>;
179                         req-mask = <0x1>;       /* GNT1 */
180                 };
181
182                 pcie@d900000 {
183                         status = "disabled";
184                 };
185         };
186
187         gphy-xrx200 {
188                 compatible = "lantiq,phy-xrx200";
189                 firmware1 = "lantiq/vr9_phy22f_a1x.bin";        /*VR9 1.1*/
190                 firmware2 = "lantiq/vr9_phy22f_a2x.bin";        /*VR9 1.2*/
191                 phys = [ 00 01 ];
192         };
193
194         ralink_eep {
195                 compatible = "ralink,eeprom";
196                 ralink,eeprom = "RT3062.eeprom";
197         };
198
199         gpio-keys-polled {
200                 compatible = "gpio-keys-polled";
201                 #address-cells = <1>;
202                 #size-cells = <0>;
203                 poll-interval = <100>;
204
205                 reset {
206                         label = "reset";
207                         gpios = <&gpio 6 1>;
208                         linux,code = <0x198>;
209                 };
210
211                 wps {
212                         label = "wps";
213                         gpios = <&gpio 9 1>;
214                         linux,code = <0x211>;
215                 };
216         };
217
218         gpio-leds {
219                 compatible = "gpio-leds";
220
221                 dsl: dsl {
222                         label = "vgv7510kw22:green:dsl";
223                         gpios = <&gpio 2 1>;
224                 };
225
226                 internet_red {
227                         label = "vgv7510kw22:red:internet";
228                         gpios = <&gpio 10 1>;
229                 };
230
231                 info_red {
232                         label = "vgv7510kw22:red:info";
233                         gpios = <&gpio 12 1>;
234                 };
235
236                 power_green: power {
237                         label = "vgv7510kw22:green:power";
238                         gpios = <&gpio 14 1>;
239                         default-state = "keep";
240                 };
241
242                 info_green {
243                         label = "vgv7510kw22:green:info";
244                         gpios = <&gpio 15 1>;
245                 };
246
247                 internet_green: internet_green {
248                         label = "vgv7510kw22:green:internet";
249                         gpios = <&gpio 19 1>;
250                 };
251
252                 wifi: wifi {
253                         label = "vgv7510kw22:green:wlan";
254                         gpios = <&gpio 20 1>;
255                 };
256
257                 power_red: power2 {
258                         label = "vgv7510kw22:red:power";
259                         gpios = <&gpio 28 1>;
260                 };
261
262                 phone {
263                         label = "vgv7510kw22:green:telefon";
264                         gpios = <&gpio 29 1>;
265                 };
266         };
267 };