lantiq: VGV7519 - cleanup pinmux configuration
[openwrt/openwrt.git] / target / linux / lantiq / dts / VGV7519.dtsi
1 /include/ "vr9.dtsi"
2
3 / {
4
5 model = "VGV7519 - KPN Experiabox V8";
6
7 chosen {
8 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
9
10 leds {
11 boot = &power_green;
12 failsafe = &power_red;
13 running = &power_green;
14
15 dsl = &broadband_green;
16 internet = &internet_green;
17 wifi = &wireless_green;
18 };
19 };
20
21 memory@0 {
22 reg = <0x0 0x4000000>;
23 };
24
25 fpi@10000000 {
26 localbus@0 {
27 nor-boot@0 {
28 compatible = "lantiq,nor";
29 bank-width = <2>;
30 reg = <0 0x0 0x800000>, <1 0x800000 0x800000>;
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partitions {
35 compatible = "fixed-partitions";
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 boardconfig: partition@40000 {
40 label = "board_config";
41 reg = <0x40000 0x10000>;
42 read-only;
43 };
44 };
45 };
46 };
47
48 gpio: pinmux@E100B10 {
49 pinctrl-names = "default";
50 pinctrl-0 = <&state_default>;
51
52 state_default: pinmux {
53 stp {
54 lantiq,groups = "stp";
55 lantiq,function = "stp";
56 lantiq,open-drain = <0>;
57 lantiq,output = <1>;
58 lantiq,pull = <0>;
59 };
60 mdio {
61 lantiq,groups = "mdio";
62 lantiq,function = "mdio";
63 };
64 pci-rst {
65 lantiq,pins = "io21";
66 lantiq,open-drain = <0>;
67 lantiq,pull = <0>;
68 lantiq,output = <1>;
69 };
70 gphy-leds {
71 lantiq,groups = "gphy0 led1", "gphy1 led0";
72 lantiq,function = "gphy";
73 lantiq,open-drain = <0>;
74 lantiq,pull = <0>;
75 lantiq,output = <1>;
76 };
77 };
78 };
79
80 stp: stp@E100BB0 {
81 compatible = "lantiq,gpio-stp-xway";
82 reg = <0xE100BB0 0x40>;
83 #gpio-cells = <2>;
84 gpio-controller;
85
86 lantiq,shadow = <0xffff>;
87 lantiq,groups = <0x3>;
88 lantiq,dsl = <0x0>;
89 lantiq,phy1 = <0x0>;
90 lantiq,phy2 = <0x0>;
91 /* lantiq,rising; */
92 };
93
94 ifxhcd@E101000 {
95 status = "okay";
96 gpios = <&gpio 32 0>;
97 lantiq,portmask = <0x3>;
98 };
99
100 pci@E105400 {
101 status = "okay";
102 lantiq,bus-clock = <33333333>;
103 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
104 interrupt-map = <
105 0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
106 >;
107 gpio-reset = <&gpio 21 0>;
108 req-mask = <0x1>; /* GNT1 */
109 };
110
111 pcie@d900000 {
112 status = "disabled";
113 };
114 };
115
116 gphy-xrx200 {
117 compatible = "lantiq,phy-xrx200";
118 firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /*VR9 1.1*/
119 firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /*VR9 1.2*/
120 phys = [ 00 01 ];
121 };
122
123 ralink_eep {
124 compatible = "ralink,eeprom";
125 ralink,eeprom = "RT2860.eeprom";
126 };
127
128 gpio-keys-polled {
129 compatible = "gpio-keys-polled";
130 #address-cells = <1>;
131 #size-cells = <0>;
132 poll-interval = <100>;
133 reset {
134 label = "reset";
135 gpios = <&gpio 9 1>;
136 linux,code = <0x198>;
137 };
138 eco {
139 label = "eco";
140 gpios = <&gpio 41 1>;
141 linux,code = <247>;
142 };
143 rfkill {
144 label = "rfkill";
145 gpios = <&gpio 45 1>;
146 linux,code = <0xf7>;
147 };
148 wps {
149 label = "wps";
150 gpios = <&gpio 10 1>;
151 linux,code = <0x211>;
152 };
153 };
154
155 gpio-leds {
156 compatible = "gpio-leds";
157
158 eco {
159 label = "vgv7519:blue:eco";
160 gpios = <&stp 2 1>;
161 };
162 wps_red {
163 label = "vgv7519:red:wps";
164 gpios = <&stp 3 1>;
165 };
166 wps_green {
167 label = "vgv7519:green:wps";
168 gpios = <&stp 4 1>;
169 };
170 upgrade {
171 label = "vgv7519:blue:upgrade";
172 gpios = <&stp 5 1>;
173 };
174 tv {
175 label = "vgv7519:green:tv";
176 gpios = <&stp 6 1>;
177 };
178 internet_green: internet_green {
179 label = "vgv7519:green:internet";
180 gpios = <&stp 7 1>;
181 };
182 internet_red {
183 label = "vgv7519:red:internet";
184 gpios = <&stp 8 1>;
185 };
186 broadband_red {
187 label = "vgv7519:red:broadband";
188 gpios = <&stp 9 1>;
189 };
190 broadband_green: broadband_green {
191 label = "vgv7519:green:broadband";
192 gpios = <&stp 10 1>;
193 };
194 voice {
195 label = "vgv7519:green:voice";
196 gpios = <&stp 11 1>;
197 };
198 wireless_red {
199 label = "vgv7519:red:wireless";
200 gpios = <&stp 12 1>;
201 };
202 wireless_green: wireless_green {
203 label = "vgv7519:green:wireless";
204 gpios = <&stp 13 1>;
205 };
206 power_green: power2 {
207 label = "vgv7519:green:power";
208 gpios = <&stp 14 1>;
209 default-state = "keep";
210 };
211 power_red: power {
212 label = "vgv7519:red:power";
213 gpios = <&stp 15 1>;
214 };
215 };
216 };
217
218 &eth0 {
219 lan: interface@0 {
220 compatible = "lantiq,xrx200-pdi";
221 #address-cells = <1>;
222 #size-cells = <0>;
223 reg = <0>;
224 mac-address = [ 00 11 22 33 44 55 ];
225
226 ethernet@0 {
227 compatible = "lantiq,xrx200-pdi-port";
228 reg = <0>;
229 phy-mode = "rgmii";
230 phy-handle = <&phy0>;
231 };
232 ethernet@1 {
233 compatible = "lantiq,xrx200-pdi-port";
234 reg = <1>;
235 phy-mode = "rgmii";
236 phy-handle = <&phy1>;
237 };
238 ethernet@2 {
239 compatible = "lantiq,xrx200-pdi-port";
240 reg = <2>;
241 phy-mode = "gmii";
242 phy-handle = <&phy11>;
243 };
244 ethernet@4 {
245 compatible = "lantiq,xrx200-pdi-port";
246 reg = <4>;
247 phy-mode = "gmii";
248 phy-handle = <&phy13>;
249 };
250 };
251
252 wan: interface@1 {
253 compatible = "lantiq,xrx200-pdi";
254 #address-cells = <1>;
255 #size-cells = <0>;
256 reg = <1>;
257 mac-address = [ 00 11 22 33 44 56 ];
258 lantiq,wan;
259
260 ethernet@5 {
261 compatible = "lantiq,xrx200-pdi-port";
262 reg = <5>;
263 phy-mode = "rgmii";
264 phy-handle = <&phy5>;
265 };
266 };
267
268 mdio@0 {
269 #address-cells = <1>;
270 #size-cells = <0>;
271 compatible = "lantiq,xrx200-mdio";
272 phy0: ethernet-phy@0 {
273 reg = <0x0>;
274 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
275 };
276 phy1: ethernet-phy@1 {
277 reg = <0x1>;
278 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
279 };
280 phy5: ethernet-phy@5 {
281 reg = <0x5>;
282 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
283 };
284 phy11: ethernet-phy@11 {
285 reg = <0x11>;
286 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
287 };
288 phy13: ethernet-phy@13 {
289 reg = <0x13>;
290 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
291 };
292 };
293 };