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