lantiq: cleanup dts files
[openwrt/openwrt.git] / target / linux / lantiq / dts / P2812HNUFX.dtsi
1 #include "vr9.dtsi"
2
3 / {
4 chosen {
5 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
6 };
7
8 aliases {
9 led-boot = &power_green;
10 led-failsafe = &power_red;
11 led-running = &power_green;
12
13 led-dsl = &dsl_green;
14 led-internet = &internet_green;
15 led-wifi = &wireless_green;
16 };
17
18 memory@0 {
19 reg = <0x0 0x8000000>;
20 };
21
22 fpi@10000000 {
23 gpio: pinmux@E100B10 {
24 pinctrl-names = "default";
25 pinctrl-0 = <&state_default>;
26
27 state_default: pinmux {
28 exin3 {
29 lantiq,groups = "exin3";
30 lantiq,function = "exin";
31 };
32 mdio {
33 lantiq,groups = "mdio";
34 lantiq,function = "mdio";
35 };
36 gphy-leds {
37 lantiq,groups = "gphy0 led1", "gphy1 led1",
38 "gphy0 led2", "gphy1 led2";
39 lantiq,function = "gphy";
40 lantiq,pull = <2>;
41 lantiq,open-drain = <0>;
42 lantiq,output = <1>;
43 };
44 stp {
45 lantiq,groups = "stp";
46 lantiq,function = "stp";
47 lantiq,pull = <2>;
48 lantiq,open-drain = <0>;
49 lantiq,output = <1>;
50 };
51 pci-in {
52 lantiq,groups = "req1";
53 lantiq,function = "pci";
54 lantiq,output = <0>;
55 lantiq,open-drain = <1>;
56 lantiq,pull = <2>;
57 };
58 pci-out {
59 lantiq,groups = "gnt1";
60 lantiq,function = "pci";
61 lantiq,output = <1>;
62 lantiq,open-drain = <0>;
63 lantiq,pull = <0>;
64 };
65 pci_rst {
66 lantiq,pins = "io21";
67 lantiq,output = <1>;
68 lantiq,open-drain = <0>;
69 lantiq,pull = <2>;
70 };
71 pcie-rst {
72 lantiq,pins = "io38";
73 lantiq,pull = <0>;
74 lantiq,output = <1>;
75 };
76 ifxhcd-rst {
77 lantiq,pins = "io33";
78 lantiq,pull = <0>;
79 lantiq,open-drain = <0>;
80 lantiq,output = <1>;
81 };
82 nand_out {
83 lantiq,groups = "nand cle", "nand ale";
84 lantiq,function = "ebu";
85 lantiq,output = <1>;
86 lantiq,open-drain = <0>;
87 lantiq,pull = <0>;
88 };
89 nand_cs1 {
90 lantiq,groups = "nand cs1";
91 lantiq,function = "ebu";
92 lantiq,open-drain = <0>;
93 lantiq,pull = <0>;
94 };
95 };
96 };
97
98 stp: stp@E100BB0 {
99 compatible = "lantiq,gpio-stp-xway";
100 reg = <0xE100BB0 0x40>;
101 #gpio-cells = <2>;
102 gpio-controller;
103
104 lantiq,shadow = <0xffffff>;
105 lantiq,groups = <0x7>;
106 lantiq,dsl = <0x0>;
107 lantiq,phy1 = <0x0>;
108 lantiq,phy2 = <0x0>;
109 };
110
111 ifxhcd@E101000 {
112 status = "okay";
113 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
114 lantiq,portmask = <0x3>;
115 };
116
117 ifxhcd@E106000 {
118 status = "okay";
119 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
120 };
121
122 pci@E105400 {
123 status = "okay";
124 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
125 };
126 };
127
128 gphy-xrx200 {
129 compatible = "lantiq,phy-xrx200";
130 firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /*VR9 1.1*/
131 firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /*VR9 1.2*/
132 phys = [ 00 01 ];
133 };
134
135 gpio-keys-polled {
136 compatible = "gpio-keys-polled";
137 #address-cells = <1>;
138 #size-cells = <0>;
139 poll-interval = <100>;
140
141 reset {
142 label = "reset";
143 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
144 linux,code = <KEY_RESTART>;
145 };
146
147 rfkill {
148 label = "rfkill";
149 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
150 linux,code = <KEY_RFKILL>;
151 };
152 };
153
154 gpio-leds {
155 compatible = "gpio-leds";
156
157 internet_red {
158 label = "p2812hnufx:red:internet";
159 gpios = <&stp 16 GPIO_ACTIVE_LOW>;
160 };
161 internet_green: internet_green {
162 label = "p2812hnufx:green:internet";
163 gpios = <&stp 17 GPIO_ACTIVE_LOW>;
164 };
165 dsl_green: dsl_green {
166 label = "p2812hnufx:green:dsl";
167 gpios = <&stp 18 GPIO_ACTIVE_LOW>;
168 };
169 dsl_orange {
170 label = "p2812hnufx:orange:dsl";
171 gpios = <&stp 19 GPIO_ACTIVE_LOW>;
172 };
173 wireless_orange {
174 label = "p2812hnufx:orange:wlan";
175 gpios = <&stp 20 GPIO_ACTIVE_LOW>;
176 };
177 wireless_green: wireless_green {
178 label = "p2812hnufx:green:wlan";
179 gpios = <&stp 21 GPIO_ACTIVE_LOW>;
180 };
181 power_red: power {
182 label = "p2812hnufx:red:power";
183 gpios = <&stp 22 GPIO_ACTIVE_LOW>;
184 };
185 power_green: power2 {
186 label = "p2812hnufx:green:power";
187 gpios = <&stp 23 GPIO_ACTIVE_LOW>;
188 default-state = "keep";
189 };
190 phone1 {
191 label = "p2812hnufx:green:phone";
192 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
193 };
194 phone1warn {
195 label = "p2812hnufx:orange:phone";
196 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
197 };
198 phone2warn {
199 label = "p2812hnufx:orange:phone2";
200 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
201 };
202 phone2 {
203 label = "p2812hnufx:green:phone2";
204 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
205 };
206 };
207 };
208
209 &eth0 {
210 lan: interface@0 {
211 compatible = "lantiq,xrx200-pdi";
212 #address-cells = <1>;
213 #size-cells = <0>;
214 reg = <0>;
215 mac-address = [ 00 11 22 33 44 55 ];
216 lantiq,switch;
217
218 ethernet@0 {
219 compatible = "lantiq,xrx200-pdi-port";
220 reg = <0>;
221 phy-mode = "rgmii";
222 phy-handle = <&phy0>;
223 };
224 ethernet@1 {
225 compatible = "lantiq,xrx200-pdi-port";
226 reg = <1>;
227 phy-mode = "rgmii";
228 phy-handle = <&phy1>;
229 };
230 ethernet@2 {
231 compatible = "lantiq,xrx200-pdi-port";
232 reg = <2>;
233 phy-mode = "gmii";
234 phy-handle = <&phy11>;
235 };
236 ethernet@4 {
237 compatible = "lantiq,xrx200-pdi-port";
238 reg = <4>;
239 phy-mode = "gmii";
240 phy-handle = <&phy13>;
241 };
242 ethernet@5 {
243 compatible = "lantiq,xrx200-pdi-port";
244 reg = <5>;
245 phy-mode = "rgmii";
246 phy-handle = <&phy5>;
247 };
248 };
249
250 mdio@0 {
251 #address-cells = <1>;
252 #size-cells = <0>;
253 compatible = "lantiq,xrx200-mdio";
254
255 phy0: ethernet-phy@0 {
256 reg = <0x0>;
257 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
258 };
259 phy1: ethernet-phy@1 {
260 reg = <0x1>;
261 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
262 };
263 phy5: ethernet-phy@5 {
264 reg = <0x5>;
265 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
266 };
267 phy11: ethernet-phy@11 {
268 reg = <0x11>;
269 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
270 };
271 phy13: ethernet-phy@13 {
272 reg = <0x13>;
273 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
274 };
275 };
276 };