uclient: update to Git HEAD (2024-04-19)
[openwrt/openwrt.git] / target / linux / lantiq / files-5.4 / arch / mips / boot / dts / lantiq / danube_arcadyan_arv752dpw.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv752dpw", "lantiq,xway", "lantiq,danube";
9 model = "Arcor 802";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_red;
17 led-failsafe = &power_blue;
18 led-running = &power_red;
19 led-upgrade = &power_red;
20
21 led-dsl = &internet_red;
22 led-usb = &umts;
23 led-wifi = &wifi;
24
25 label-mac-device = &wifi0;
26 };
27
28 memory@0 {
29 device_type = "memory";
30 reg = <0x0 0x4000000>;
31 };
32
33 keys {
34 compatible = "gpio-keys-polled";
35 poll-interval = <100>;
36
37 wps {
38 label = "wps";
39 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 };
42 restart {
43 label = "restart";
44 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_POWER>;
46 };
47 dsl {
48 label = "dsl";
49 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
50 linux,code = <BTN_0>;
51 };
52 reset {
53 label = "reset";
54 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
56 };
57 };
58
59 leds {
60 compatible = "gpio-leds";
61 power_blue: power1 {
62 label = "arv752dpw:blue:power";
63 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
64 };
65 internet_red: internet {
66 label = "arv752dpw:red:internet";
67 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
68 };
69 message {
70 label = "arv752dpw:red:message";
71 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
72 };
73 power_red: power {
74 label = "arv752dpw:red:power";
75 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
76 default-state = "keep";
77 };
78 voice1 {
79 label = "arv752dpw:red:voice";
80 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
81 };
82 umts: umts {
83 label = "arv752dpw:red:umts";
84 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
85 };
86 wifi: wifi {
87 label = "arv752dpw:red:wifi";
88 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
89 };
90 fxs1 {
91 label = "arv752dpw:green:tae-n";
92 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
93 };
94 fxs2 {
95 label = "arv752dpw:green:tae-u";
96 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
97 };
98 fxo {
99 label = "arv752dpw:green:isdn";
100 gpios = <&gpiomm 7 GPIO_ACTIVE_LOW>;
101 };
102 internet2 {
103 label = "arv752dpw:blue:internet";
104 gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
105 };
106 voice2 {
107 label = "arv752dpw:blue:voice";
108 gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
109 };
110 };
111
112 usb_vbus: regulator-usb-vbus {
113 compatible = "regulator-fixed";
114
115 regulator-name = "USB_VBUS";
116
117 regulator-min-microvolt = <5000000>;
118 regulator-max-microvolt = <5000000>;
119
120 gpio = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
121 enable-active-high;
122 };
123 };
124
125 &gpio {
126 pinctrl-names = "default";
127 pinctrl-0 = <&state_default>;
128
129 state_default: pinmux {
130 ebu {
131 lantiq,groups = "ebu cs1";
132 lantiq,function = "ebu";
133 };
134 exin {
135 lantiq,groups = "exin1";
136 lantiq,function = "exin";
137 lantiq,pull = <2>;
138 lantiq,output = <0>;
139 };
140 pci_rst {
141 lantiq,pins = "io21";
142 lantiq,pull = <2>;
143 lantiq,output = <1>;
144 };
145 leds {
146 lantiq,pins = "io3", "io5", "io6", "io8";
147 lantiq,output = <1>;
148 lantiq,pull = <0>;
149 };
150 keys {
151 lantiq,pins = "io11", "io12", "io13", "io28";
152 lantiq,output = <0>;
153 lantiq,pull = <2>;
154 lantiq,open-drain = <1>;
155 };
156 };
157 };
158
159 &gsw {
160 phy-mode = "rmii";
161 mtd-mac-address = <&boardconfig 0x16>;
162 };
163
164 &localbus {
165 flash@0 {
166 compatible = "lantiq,nor";
167 bank-width = <2>;
168 reg = <0 0x0 0x800000>;
169
170 partitions {
171 compatible = "fixed-partitions";
172 #address-cells = <1>;
173 #size-cells = <1>;
174
175 partition@0 {
176 label = "uboot";
177 reg = <0x00000 0x10000>;
178 read-only;
179 };
180
181 partition@10000 {
182 label = "uboot_env";
183 reg = <0x10000 0x10000>;
184 read-only;
185 };
186
187 partition@20000 {
188 label = "firmware";
189 reg = <0x20000 0x7d0000>;
190 };
191
192 boardconfig: partition@7f0000 {
193 label = "board_config";
194 reg = <0x7f0000 0x10000>;
195 read-only;
196 };
197 };
198 };
199
200 gpiomm: gpio@1 {
201 compatible = "lantiq,gpio-mm";
202 reg = <1 0x0 0x10 >;
203 #address-cells = <1>;
204 #size-cells = <1>;
205 #gpio-cells = <2>;
206 gpio-controller;
207 lantiq,shadow = <0x3>;
208 };
209 };
210
211 &pci0 {
212 status = "okay";
213
214 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>, <&pci_req2_pins>;
215 pinctrl-names = "default";
216
217 lantiq,external-clock;
218 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
219 interrupt-map = <0x7000 0 0 1 &icu0 135>;
220 req-mask = <0x3>;
221
222 wifi0: wifi@1814,0601 {
223 compatible = "pci1814,0601";
224 reg = <0x7000 0 0 0 0>;
225 mtd-mac-address = <&boardconfig 0x16>;
226 ralink,mtd-eeprom = <&boardconfig 0x410>;
227 ralink,mtd-eeprom-swap;
228 };
229 };
230
231 &usb_phy {
232 status = "okay";
233 };
234
235 &usb {
236 status = "okay";
237 vbus-supply = <&usb_vbus>;
238 };
239
240 &vmmc {
241 status = "okay";
242 gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
243 };