8c7c3e6ed2219efa280e37f0dfc6cbd15b147036
[openwrt/staging/stintel.git] / target / linux / lantiq / dts / ARV7519RW22.dts
1 /dts-v1/;
2
3 /include/ "vr9.dtsi"
4
5 / {
6 model = "ARV7519RW22 - Astoria Networks ARV7519RW22-A-LT";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11 leds {
12 internet = &internet_green;
13 power = &power_green;
14 };
15 };
16
17 memory@0 {
18 reg = <0x0 0x8000000>;
19 };
20
21 fpi@10000000 {
22 localbus@0 {
23 nor-boot@0 {
24 compatible = "lantiq,nor";
25 bank-width = <2>;
26 reg = <0 0x0 0x2000000>;
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 partition@0 {
31 label = "uboot";
32 reg = <0x0 0x60000>;
33 read-only;
34 };
35
36 partition@60000 {
37 label = "uboot-env";
38 reg = <0x60000 0x20000>;
39 read-only;
40 };
41
42 partition@80000 {
43 label = "firmware";
44 reg = <0x80000 0x1f00000>;
45 };
46
47 boardconfig: partition@1f80000 {
48 label = "boardconfig";
49 reg = <0x1f80000 0x80000>;
50 read-only;
51 };
52 };
53 };
54
55 gpio: pinmux@E100B10 {
56 pinctrl-names = "default";
57 pinctrl-0 = <&state_default>;
58
59 state_default: pinmux {
60 mdio {
61 lantiq,groups = "mdio";
62 lantiq,function = "mdio";
63 };
64 pcie-rst {
65 lantiq,pins = "io21";
66 lantiq,pull = <0>;
67 lantiq,output = <1>;
68 };
69 };
70 };
71
72 eth@E108000 {
73 #address-cells = <1>;
74 #size-cells = <0>;
75 compatible = "lantiq,xrx200-net";
76 reg = < 0xE108000 0x3000 /* switch */
77 0xE10B100 0x70 /* mdio */
78 0xE10B1D8 0x30 /* mii */
79 0xE10B308 0x30 /* pmac */
80 >;
81 interrupt-parent = <&icu0>;
82 interrupts = <73 72>;
83
84 lan: interface@0 {
85 compatible = "lantiq,xrx200-pdi";
86 #address-cells = <1>;
87 #size-cells = <0>;
88 reg = <0>;
89 mtd-mac-address = <&boardconfig 0x16>;
90 lantiq,switch;
91
92 ethernet@0 {
93 compatible = "lantiq,xrx200-pdi-port";
94 reg = <0>;
95 phy-mode = "rgmii";
96 phy-handle = <&phy0>;
97 };
98 ethernet@1 {
99 compatible = "lantiq,xrx200-pdi-port";
100 reg = <4>;
101 phy-mode = "mii";
102 phy-handle = <&phy13>;
103 };
104 ethernet@2 {
105 compatible = "lantiq,xrx200-pdi-port";
106 reg = <5>;
107 phy-mode = "mii";
108 phy-handle = <&phy14>;
109 };
110 ethernet@3 {
111 compatible = "lantiq,xrx200-pdi-port";
112 reg = <2>;
113 phy-mode = "mii";
114 phy-handle = <&phy11>;
115 };
116 ethernet@4 {
117 compatible = "lantiq,xrx200-pdi-port";
118 reg = <3>;
119 phy-mode = "mii";
120 phy-handle = <&phy12>;
121 };
122 };
123
124 mdio@0 {
125 #address-cells = <1>;
126 #size-cells = <0>;
127 compatible = "lantiq,xrx200-mdio";
128 phy0: ethernet-phy@0 {
129 reg = <0x0>;
130 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
131 };
132 phy11: ethernet-phy@11 {
133 reg = <0x11>;
134 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
135 };
136 phy12: ethernet-phy@12 {
137 reg = <0x12>;
138 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
139 };
140 phy13: ethernet-phy@13 {
141 reg = <0x13>;
142 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
143 };
144 phy14: ethernet-phy@14 {
145 reg = <0x14>;
146 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
147 };
148 };
149 };
150
151 ifxhcd@E101000 {
152 status = "okay";
153 gpios = <&gpio 32 0>;
154 };
155
156 ifxhcd@E106000 {
157 status = "okay";
158 gpios = <&gpio 32 0>;
159 };
160
161 pcie@d900000 {
162 status = "disabled";
163 compatible = "lantiq,pcie-xway";
164 };
165
166 pci@E105400 {
167 status = "disabled";
168 compatible = "lantiq,pci-xway";
169 };
170 };
171
172 gphy-xrx200 {
173 compatible = "lantiq,phy-xrx200";
174 firmware1 = "lantiq/vr9_phy22f_a1x.bin"; /*VR9 1.1*/
175 firmware2 = "lantiq/vr9_phy22f_a2x.bin"; /*VR9 1.2*/
176 phys = [ 00 01 ];
177 };
178
179 gpio-keys-polled {
180 compatible = "gpio-keys-polled";
181 #address-cells = <1>;
182 #size-cells = <0>;
183 poll-interval = <100>;
184
185 reset {
186 label = "reset";
187 gpios = <&gpio 6 1>;
188 linux,code = <0x198>;
189 };
190 rfkill {
191 label = "rfkill";
192 gpios = <&gpio 33 1>;
193 linux,code = <0xf7>;
194 };
195 wps {
196 label = "wps";
197 gpios = <&gpio 37 1>;
198 linux,code = <0x211>;
199 };
200 };
201
202 gpio-leds {
203 compatible = "gpio-leds";
204
205 lan_green {
206 label = "lan";
207 gpios = <&gpio 2 1>;
208 };
209 internet_red {
210 label = "internet_red";
211 gpios = <&gpio 10 1>;
212 };
213 power_green: power_green {
214 label = "power";
215 gpios = <&gpio 14 1>;
216 default-state = "on";
217 };
218 alarm_blue {
219 label = "alarm";
220 gpios = <&gpio 15 1>;
221 };
222 internet_orange {
223 label = "internet_orange";
224 gpios = <&gpio 19 1>;
225 };
226 internet_green: internet_green {
227 label = "internet_green";
228 gpios = <&gpio 28 1>;
229 };
230 voice_green {
231 label = "voice";
232 gpios = <&gpio 29 1>;
233 };
234 };
235 };