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