lantiq: xrx200: switch the subtarget to the mainline DSA driver
[openwrt/staging/wigyori.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_lantiq_easy80920.dtsi
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
5
6 / {
7 compatible = "lantiq,easy80920", "lantiq,xway", "lantiq,vr9";
8
9 chosen {
10 bootargs = "console=ttyLTQ0,115200";
11 };
12
13 aliases {
14 led-boot = &power;
15 led-failsafe = &power;
16 led-running = &power;
17 led-upgrade = &power;
18 };
19
20 memory@0 {
21 device_type = "memory";
22 reg = <0x0 0x4000000>;
23 };
24
25 keys {
26 compatible = "gpio-keys-polled";
27 poll-interval = <100>;
28 /* reset {
29 label = "reset";
30 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
32 };*/
33 paging {
34 label = "paging";
35 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_PHONE>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 power: power {
44 label = "green:power";
45 gpios = <&stp 9 GPIO_ACTIVE_HIGH>;
46 default-state = "keep";
47 };
48 warning {
49 label = "green:warning";
50 gpios = <&stp 22 GPIO_ACTIVE_HIGH>;
51 };
52 fxs1 {
53 label = "green:fxs1";
54 gpios = <&stp 21 GPIO_ACTIVE_HIGH>;
55 };
56 fxs2 {
57 label = "green:fxs2";
58 gpios = <&stp 20 GPIO_ACTIVE_HIGH>;
59 };
60 fxo {
61 label = "green:fxo";
62 gpios = <&stp 19 GPIO_ACTIVE_HIGH>;
63 };
64 usb1 {
65 label = "green:usb1";
66 gpios = <&stp 18 GPIO_ACTIVE_HIGH>;
67 trigger-sources = <&ehci_port1>;
68 linux,default-trigger = "usbport";
69 };
70
71 usb2 {
72 label = "green:usb2";
73 gpios = <&stp 15 GPIO_ACTIVE_HIGH>;
74 trigger-sources = <&ehci_port2>;
75 linux,default-trigger = "usbport";
76 };
77 sd {
78 label = "green:sd";
79 gpios = <&stp 14 GPIO_ACTIVE_HIGH>;
80 };
81 wps {
82 label = "green:wps";
83 gpios = <&stp 12 GPIO_ACTIVE_HIGH>;
84 };
85 };
86
87 usb_vbus: regulator-usb-vbus {
88 compatible = "regulator-fixed";
89
90 regulator-name = "USB_VBUS";
91
92 regulator-min-microvolt = <5000000>;
93 regulator-max-microvolt = <5000000>;
94
95 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
96 enable-active-high;
97 };
98 };
99
100 &gphy0 {
101 lantiq,gphy-mode = <GPHY_MODE_GE>;
102 };
103
104 &gphy1 {
105 lantiq,gphy-mode = <GPHY_MODE_GE>;
106 };
107
108 &gpio {
109 pinctrl-names = "default";
110 pinctrl-0 = <&state_default>;
111
112 state_default: pinmux {
113 exin3 {
114 lantiq,groups = "exin3";
115 lantiq,function = "exin";
116 };
117 conf_out {
118 lantiq,pins = "io21",
119 "io33";
120 lantiq,open-drain;
121 lantiq,pull = <0>;
122 lantiq,output = <1>;
123 };
124 pcie-rst {
125 lantiq,pins = "io38";
126 lantiq,pull = <0>;
127 lantiq,output = <1>;
128 };
129 conf_in {
130 lantiq,pins = "io39"; /* exin3 */
131 lantiq,pull = <2>;
132 };
133 };
134 };
135
136 &gswip {
137 pinctrl-0 = <&mdio_pins>;
138 pinctrl-names = "default";
139 };
140
141 &gswip_mdio {
142 phy0: ethernet-phy@0 {
143 reg = <0x0>;
144 };
145 phy1: ethernet-phy@1 {
146 reg = <0x1>;
147 };
148 phy5: ethernet-phy@5 {
149 reg = <0x5>;
150 };
151 phy11: ethernet-phy@11 {
152 reg = <0x11>;
153 };
154 phy13: ethernet-phy@13 {
155 reg = <0x13>;
156 };
157 };
158
159 &gswip_ports {
160 port@0 {
161 reg = <0>;
162 label = "lan4";
163 phy-mode = "rgmii";
164 phy-handle = <&phy0>;
165 };
166 port@1 {
167 reg = <1>;
168 label = "lan3";
169 phy-mode = "rgmii";
170 phy-handle = <&phy1>;
171 };
172 port@2 {
173 reg = <2>;
174 label = "lan2";
175 phy-mode = "internal";
176 phy-handle = <&phy11>;
177 };
178 port@4 {
179 reg = <4>;
180 label = "lan1";
181 phy-mode = "internal";
182 phy-handle = <&phy13>;
183 };
184 port@5 {
185 reg = <5>;
186 label = "wan";
187 phy-mode = "rgmii";
188 phy-handle = <&phy5>;
189 };
190 };
191
192 &spi {
193 status = "okay";
194
195 flash@4 {
196 compatible = "jedec,spi-nor";
197 reg = <4>;
198 spi-max-frequency = <1000000>;
199
200 partitions {
201 compatible = "fixed-partitions";
202 #address-cells = <1>;
203 #size-cells = <1>;
204
205 partition@0 {
206 reg = <0x0 0x20000>;
207 label = "SPI (RO) U-Boot Image";
208 read-only;
209 };
210
211 partition@20000 {
212 reg = <0x20000 0x10000>;
213 label = "ENV_MAC";
214 read-only;
215 };
216
217 partition@30000 {
218 reg = <0x30000 0x10000>;
219 label = "DPF";
220 read-only;
221 };
222
223 partition@40000 {
224 reg = <0x40000 0x10000>;
225 label = "NVRAM";
226 read-only;
227 };
228
229 partition@50000 {
230 reg = <0x50000 0x3a0000>;
231 label = "kernel";
232 };
233 };
234 };
235 };
236
237 &pci0 {
238 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>;
239 pinctrl-names = "default";
240 };
241
242 &stp {
243 status = "okay";
244
245 lantiq,shadow = <0xffff>;
246 lantiq,dsl = <0x3>;
247 lantiq,phy1 = <0x7>;
248 lantiq,phy2 = <0x7>;
249 /* lantiq,rising; */
250 };
251
252 &usb_phy0 {
253 status = "okay";
254 };
255
256 &usb0 {
257 status = "okay";
258 vbus-supply = <&usb_vbus>;
259 };