lntiq: add support for Astoria ARV7519RW.
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV7519RW.dtsi
1 /include/ "vr9.dtsi"
2
3 / {
4
5 model = "ARV7519 - Astoria Networks ARV7519RW22-A-LT";
6
7 chosen {
8 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
9 };
10
11 memory@0 {
12 reg = <0x0 0x8000000>;
13 };
14
15 fpi@10000000 {
16
17 gpio: pinmux@E100B10 {
18 pinctrl-names = "default";
19 pinctrl-0 = <&state_default>;
20
21 state_default: pinmux {
22 mdio {
23 lantiq,groups = "mdio";
24 lantiq,function = "mdio";
25 };
26 gphy-leds {
27 lantiq,groups = "gphy0 led1", "gphy1 led1";
28 lantiq,function = "gphy";
29 lantiq,pull = <2>;
30 lantiq,open-drain = <0>;
31 lantiq,output = <1>;
32 };
33 phy-rst {
34 lantiq,pins = "io42";
35 lantiq,pull = <0>;
36 lantiq,open-drain = <0>;
37 lantiq,output = <1>;
38 };
39 pcie-rst {
40 lantiq,pins = "io21";
41 lantiq,pull = <0>;
42 lantiq,output = <1>;
43 };
44 };
45 };
46
47 eth@E108000 {
48 #address-cells = <1>;
49 #size-cells = <0>;
50 compatible = "lantiq,xrx200-net";
51 reg = < 0xE108000 0x3000 /* switch */
52 0xE10B100 0x70 /* mdio */
53 0xE10B1D8 0x30 /* mii */
54 0xE10B308 0x30 /* pmac */
55 >;
56 interrupt-parent = <&icu0>;
57 interrupts = <73 72>;
58
59 lan: interface@0 {
60 compatible = "lantiq,xrx200-pdi";
61 #address-cells = <1>;
62 #size-cells = <0>;
63 reg = <0>;
64 mac-address = [ 00 11 22 33 44 55 ];
65
66 ethernet@2 {
67 compatible = "lantiq,xrx200-pdi-port";
68 reg = <2>;
69 phy-mode = "gmii";
70 phy-handle = <&phy11>;
71 };
72 ethernet@3 {
73 compatible = "lantiq,xrx200-pdi-port";
74 reg = <4>;
75 phy-mode = "gmii";
76 phy-handle = <&phy13>;
77 };
78 };
79
80 wan: interface@1 {
81 compatible = "lantiq,xrx200-pdi";
82 #address-cells = <1>;
83 #size-cells = <0>;
84 reg = <1>;
85 mac-address = [ 00 11 22 33 44 56 ];
86 lantiq,wan;
87 ethernet@4 {
88 compatible = "lantiq,xrx200-pdi-port";
89 reg = <0>;
90 phy-mode = "rgmii";
91 phy-handle = <&phy0>;
92 };
93 };
94
95 mdio@0 {
96 #address-cells = <1>;
97 #size-cells = <0>;
98 compatible = "lantiq,xrx200-mdio";
99 phy0: ethernet-phy@0 {
100 reg = <0x0>;
101 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
102 };
103 phy11: ethernet-phy@11 {
104 reg = <0x11>;
105 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
106 };
107 phy13: ethernet-phy@13 {
108 reg = <0x13>;
109 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
110 };
111 };
112 };
113
114 ifxhcd@E101000 {
115 status = "okay";
116 gpios = <&gpio 32 0>;
117 lantiq,portmask = <0x3>;
118 };
119
120 pcie@d900000 {
121 status = "disabled";
122 compatible = "lantiq,pcie-xway";
123 };
124
125 pci@E105400 {
126 status = "disabled";
127 compatible = "lantiq,pci-xway";
128 };
129 };
130
131 gpio-keys-polled {
132 compatible = "gpio-keys-polled";
133 #address-cells = <1>;
134 #size-cells = <0>;
135 poll-interval = <100>;
136 reset {
137 label = "reset";
138 gpios = <&gpio 22 1>;
139 linux,code = <0x198>;
140 };
141
142 rfkill {
143 label = "rfkill";
144 gpios = <&gpio 45 1>;
145 linux,code = <0xf7>;
146 };
147 wps {
148 gpios = <&gpio 20 1>;
149 linux,code = <0x211>;
150 };
151 };
152
153 gpio-leds {
154 compatible = "gpio-leds";
155
156 lan{ /* green */
157 label = "lan";
158 gpios = <&gpio 02 1>;
159 };
160 voice { /* green */
161 label = "voice";
162 gpios = <&gpio 29 1>;
163 };
164 message1 { /* red */
165 label = "message1";
166 gpios = <&gpio 10 1>;
167 };
168 message2 { /* green */
169 label = "message2";
170 gpios = <&gpio 19 1>;
171 };
172 message3 { /* orange */
173 label = "message3";
174 gpios = <&gpio 28 1>;
175 };
176 alarm { /* blue */
177 label = "alarm";
178 gpios = <&gpio 15 1>;
179 };
180 power { /* red */
181 label = "power";
182 gpios = <&gpio 14 1>;
183 default-state = "on";
184 };
185 };
186 };