ipq40xx: re-add label MAC address for FritzBox 4040
[openwrt/staging/neocturne.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-fritzbox-4040.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
7
8 / {
9 model = "AVM FRITZ!Box 4040";
10 compatible = "avm,fritzbox-4040";
11
12 aliases {
13 led-boot = &power;
14 led-failsafe = &flash;
15 led-running = &power;
16 led-upgrade = &flash;
17 label-mac-device = &gmac;
18 };
19
20 soc {
21 rng@22000 {
22 status = "okay";
23 };
24
25 mdio@90000 {
26 status = "okay";
27 };
28
29 tcsr@1949000 {
30 compatible = "qcom,tcsr";
31 reg = <0x1949000 0x100>;
32 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
33 };
34
35 tcsr@194b000 {
36 compatible = "qcom,tcsr";
37 reg = <0x194b000 0x100>;
38 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
39 };
40
41 ess_tcsr@1953000 {
42 compatible = "qcom,tcsr";
43 reg = <0x1953000 0x1000>;
44 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
45 };
46
47 tcsr@1957000 {
48 compatible = "qcom,tcsr";
49 reg = <0x1957000 0x100>;
50 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
51 };
52
53 usb2@60f8800 {
54 status = "okay";
55 };
56
57 usb3@8af8800 {
58 status = "okay";
59 };
60
61 crypto@8e3a000 {
62 status = "okay";
63 };
64
65 watchdog@b017000 {
66 status = "okay";
67 };
68 };
69
70 keys {
71 compatible = "gpio-keys";
72
73 wlan {
74 label = "wlan";
75 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RFKILL>;
77 };
78
79 wps {
80 label = "wps";
81 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
83 };
84 };
85
86 switch-leds {
87 compatible = "gpio-leds";
88
89 wlan {
90 label = "green:wlan";
91 gpios = <&ethphy0 0 GPIO_ACTIVE_HIGH>;
92 };
93
94 panic: info_red {
95 label = "red:info";
96 gpios = <&ethphy0 1 GPIO_ACTIVE_HIGH>;
97 panic-indicator;
98 };
99
100 wan {
101 label = "green:wan";
102 gpios = <&ethphy1 0 GPIO_ACTIVE_HIGH>;
103 };
104
105 power: power {
106 label = "green:power";
107 gpios = <&ethphy2 1 GPIO_ACTIVE_HIGH>;
108 };
109
110 lan {
111 label = "green:lan";
112 gpios = <&ethphy3 0 GPIO_ACTIVE_HIGH>;
113 };
114
115 flash: info_amber {
116 label = "amber:info";
117 gpios = <&ethphy3 1 GPIO_ACTIVE_HIGH>;
118 };
119 };
120 };
121
122 &tlmm {
123 serial_pins: serial_pinmux {
124 mux {
125 pins = "gpio60", "gpio61";
126 function = "blsp_uart0";
127 bias-disable;
128 };
129 };
130
131 spi_0_pins: spi_0_pinmux {
132 mux {
133 function = "blsp_spi0";
134 pins = "gpio55", "gpio56", "gpio57";
135 drive-strength = <12>;
136 bias-disable;
137 };
138
139 mux_cs {
140 function = "gpio";
141 pins = "gpio54";
142 drive-strength = <2>;
143 bias-disable;
144 output-high;
145 };
146 };
147 };
148
149 &cryptobam {
150 status = "okay";
151 };
152
153 &blsp_dma {
154 status = "okay";
155 };
156
157 &blsp1_spi1 { /* BLSP1 QUP1 */
158 pinctrl-0 = <&spi_0_pins>;
159 pinctrl-names = "default";
160 status = "okay";
161 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
162
163 flash@0 {
164 compatible = "jedec,spi-nor";
165 reg = <0>;
166 spi-max-frequency = <24000000>;
167 status = "okay";
168 m25p,fast-read;
169
170 partitions {
171 compatible = "fixed-partitions";
172 #address-cells = <1>;
173 #size-cells = <1>;
174
175 partition0@0 {
176 label = "SBL1";
177 reg = <0x00000000 0x00040000>;
178 read-only;
179 };
180 partition1@40000 {
181 label = "MIBIB";
182 reg = <0x00040000 0x00020000>;
183 read-only;
184 };
185 partition2@60000 {
186 label = "QSEE";
187 reg = <0x00060000 0x00060000>;
188 read-only;
189 };
190 partition3@c0000 {
191 label = "CDT";
192 reg = <0x000c0000 0x00010000>;
193 read-only;
194 };
195 partition4@d0000 {
196 label = "DDRPARAMS";
197 reg = <0x000d0000 0x00010000>;
198 read-only;
199 };
200 partition5@e0000 {
201 label = "APPSBLENV"; /* uboot env - empty */
202 reg = <0x000e0000 0x00010000>;
203 read-only;
204 };
205 partition6@f0000 {
206 label = "urlader"; /* APPSBL */
207 reg = <0x000f0000 0x0002dc000>;
208 read-only;
209 };
210 partition7@11dc00 {
211 /* make a backup of this partition! */
212 label = "urlader_config";
213 reg = <0x0011dc00 0x00002400>;
214 read-only;
215 };
216 partition8@120000 {
217 label = "tffs1";
218 reg = <0x00120000 0x00080000>;
219 read-only;
220 };
221 partition9@1a0000 {
222 label = "tffs2";
223 reg = <0x001a0000 0x00080000>;
224 read-only;
225 };
226 partition10@220000 {
227 label = "uboot";
228 reg = <0x00220000 0x00080000>;
229 read-only;
230 };
231 partition11@2A0000 {
232 compatible = "denx,fit";
233 label = "firmware";
234 reg = <0x002a0000 0x01c60000>;
235 };
236 partition12@1f00000 {
237 label = "jffs2";
238 reg = <0x01f00000 0x00100000>;
239 };
240 };
241 };
242 };
243
244 &blsp1_uart1 {
245 pinctrl-0 = <&serial_pins>;
246 pinctrl-names = "default";
247 status = "okay";
248 };
249
250 &ethphy0 {
251 gpio-controller;
252 #gpio-cells = <2>;
253 };
254
255 &ethphy1 {
256 gpio-controller;
257 #gpio-cells = <2>;
258
259 enable-usb-power {
260 gpio-hog;
261 line-name = "enable USB3 power";
262 gpios = <1 GPIO_ACTIVE_HIGH>;
263 output-high;
264 };
265 };
266
267 &ethphy2 {
268 gpio-controller;
269 #gpio-cells = <2>;
270 };
271
272 &ethphy3 {
273 gpio-controller;
274 #gpio-cells = <2>;
275 };
276
277 &gmac {
278 status = "okay";
279 };
280
281 &switch {
282 status = "okay";
283 };
284
285 &swport1 {
286 status = "okay";
287 };
288
289 &swport2 {
290 status = "okay";
291 };
292
293 &swport3 {
294 status = "okay";
295 };
296
297 &swport4 {
298 status = "okay";
299 };
300
301 &swport5 {
302 status = "okay";
303 };
304
305 &usb3_ss_phy {
306 status = "okay";
307 };
308
309 &usb3_hs_phy {
310 status = "okay";
311 };
312
313 &usb2_hs_phy {
314 status = "okay";
315 };
316
317 &wifi0 {
318 status = "okay";
319 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
320 };
321
322 &wifi1 {
323 status = "okay";
324 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
325 };