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