tools/llvm: update to 18.1.7
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_zyxel_p-2812hnu-fx.dtsi
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
6
7 / {
8 compatible = "zyxel,p-2812hnu", "lantiq,xway", "lantiq,vr9";
9
10 chosen {
11 bootargs = "console=ttyLTQ0,115200";
12 };
13
14 aliases {
15 led-boot = &power_green;
16 led-failsafe = &power_red;
17 led-running = &power_green;
18 led-upgrade = &power_green;
19
20 led-dsl = &dsl_green;
21 led-internet = &internet_green;
22 led-wifi = &wireless_green;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x8000000>;
28 };
29
30 keys {
31 compatible = "gpio-keys-polled";
32 poll-interval = <100>;
33
34 reset {
35 label = "reset";
36 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39
40 rfkill {
41 label = "rfkill";
42 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RFKILL>;
44 };
45 };
46
47 leds {
48 compatible = "gpio-leds";
49
50 internet_red {
51 label = "red:internet";
52 gpios = <&stp 16 GPIO_ACTIVE_LOW>;
53 };
54 internet_green: internet_green {
55 label = "green:internet";
56 gpios = <&stp 17 GPIO_ACTIVE_LOW>;
57 };
58 dsl_green: dsl_green {
59 label = "green:dsl";
60 gpios = <&stp 18 GPIO_ACTIVE_LOW>;
61 };
62 dsl_orange {
63 label = "orange:dsl";
64 gpios = <&stp 19 GPIO_ACTIVE_LOW>;
65 };
66 wireless_orange {
67 function = LED_FUNCTION_WLAN;
68 color = <LED_COLOR_ID_ORANGE>;
69 gpios = <&stp 20 GPIO_ACTIVE_LOW>;
70 };
71 wireless_green: wireless_green {
72 function = LED_FUNCTION_WLAN;
73 color = <LED_COLOR_ID_GREEN>;
74 gpios = <&stp 21 GPIO_ACTIVE_LOW>;
75 };
76 power_red: power {
77 function = LED_FUNCTION_POWER;
78 color = <LED_COLOR_ID_RED>;
79 gpios = <&stp 22 GPIO_ACTIVE_LOW>;
80 };
81 power_green: power2 {
82 function = LED_FUNCTION_POWER;
83 color = <LED_COLOR_ID_GREEN>;
84 gpios = <&stp 23 GPIO_ACTIVE_LOW>;
85 default-state = "keep";
86 };
87 phone1 {
88 label = "green:phone";
89 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
90 };
91 phone1warn {
92 label = "orange:phone";
93 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
94 };
95 phone2warn {
96 label = "orange:phone2";
97 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
98 };
99 phone2 {
100 label = "green:phone2";
101 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
102 };
103 };
104
105 usb_vbus: regulator-usb-vbus {
106 compatible = "regulator-fixed";
107
108 regulator-name = "USB_VBUS";
109
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
112
113 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
114 enable-active-high;
115 };
116 };
117
118 &gphy0 {
119 lantiq,gphy-mode = <GPHY_MODE_GE>;
120 };
121
122 &gphy1 {
123 lantiq,gphy-mode = <GPHY_MODE_GE>;
124 };
125
126 &gpio {
127 pinctrl-names = "default";
128 pinctrl-0 = <&state_default>;
129
130 state_default: pinmux {
131 exin3 {
132 lantiq,groups = "exin3";
133 lantiq,function = "exin";
134 };
135 pci_rst {
136 lantiq,pins = "io21";
137 lantiq,output = <1>;
138 lantiq,open-drain = <0>;
139 lantiq,pull = <2>;
140 };
141 pcie-rst {
142 lantiq,pins = "io38";
143 lantiq,pull = <0>;
144 lantiq,output = <1>;
145 };
146 ifxhcd-rst {
147 lantiq,pins = "io33";
148 lantiq,pull = <0>;
149 lantiq,open-drain = <0>;
150 lantiq,output = <1>;
151 };
152 };
153 };
154
155 &gswip {
156 pinctrl-0 = <&mdio_pins>,
157 <&gphy0_led1_pins>, <&gphy0_led2_pins>,
158 <&gphy1_led1_pins>, <&gphy1_led2_pins>;
159 pinctrl-names = "default";
160 };
161
162 &gswip_mdio {
163 phy0: ethernet-phy@0 {
164 reg = <0x0>;
165 };
166 phy1: ethernet-phy@1 {
167 reg = <0x1>;
168 };
169 phy5: ethernet-phy@5 {
170 reg = <0x5>;
171 };
172 phy11: ethernet-phy@11 {
173 reg = <0x11>;
174 };
175 phy13: ethernet-phy@13 {
176 reg = <0x13>;
177 };
178 };
179
180 &gswip_ports {
181 port@0 {
182 reg = <0>;
183 label = "lan1";
184 phy-mode = "rgmii";
185 phy-handle = <&phy0>;
186 };
187 port@1 {
188 reg = <1>;
189 label = "lan2";
190 phy-mode = "rgmii";
191 phy-handle = <&phy1>;
192 };
193 port@2 {
194 reg = <2>;
195 label = "lan3";
196 phy-mode = "internal";
197 phy-handle = <&phy11>;
198 };
199 port@4 {
200 reg = <4>;
201 label = "lan4";
202 phy-mode = "internal";
203 phy-handle = <&phy13>;
204 };
205 port@5 {
206 reg = <5>;
207 label = "wan";
208 phy-mode = "rgmii";
209 phy-handle = <&phy5>;
210 };
211 };
212
213 &pci0 {
214 status = "okay";
215
216 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>;
217 pinctrl-names = "default";
218
219 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
220 };
221
222 &stp {
223 status = "okay";
224 };
225
226 &usb_phy0 {
227 status = "okay";
228 };
229
230 &usb_phy1 {
231 status = "okay";
232 };
233
234 &usb0 {
235 status = "okay";
236 vbus-supply = <&usb_vbus>;
237 };
238
239 &usb1 {
240 status = "okay";
241 vbus-supply = <&usb_vbus>;
242 };