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