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