mac80211: update to version 5.9.1
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4019-fritzrepeater-1200.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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "AVM FRITZ!Repeater 1200";
11 compatible = "avm,fritzrepeater-1200";
12
13 aliases {
14 led-boot = &power_green;
15 led-failsafe = &power_red;
16 led-running = &power_green;
17 led-upgrade = &power_red;
18 label-mac-device = &wifi0;
19 };
20
21 soc {
22 rng@22000 {
23 status = "okay";
24 };
25
26 tcsr@1949000 {
27 compatible = "qcom,tcsr";
28 reg = <0x1949000 0x100>;
29 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
30 };
31
32 ess_tcsr@1953000 {
33 compatible = "qcom,tcsr";
34 reg = <0x1953000 0x1000>;
35 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
36 };
37
38 tcsr@1957000 {
39 compatible = "qcom,tcsr";
40 reg = <0x1957000 0x100>;
41 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
42 };
43
44 crypto@8e3a000 {
45 status = "okay";
46 };
47
48 watchdog@b017000 {
49 status = "okay";
50 };
51 };
52
53 key {
54 compatible = "gpio-keys";
55
56 wps {
57 label = "WPS button";
58 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
60 };
61 };
62
63 leds {
64 compatible = "gpio-leds";
65
66 power_red: power_red {
67 function = LED_FUNCTION_POWER;
68 color = <LED_COLOR_ID_RED>;
69 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
70 };
71
72 power_green: power_green {
73 function = LED_FUNCTION_POWER;
74 color = <LED_COLOR_ID_GREEN>;
75 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
76 };
77
78 power_yellow {
79 function = LED_FUNCTION_POWER;
80 color = <LED_COLOR_ID_YELLOW>;
81 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
82 };
83 };
84 };
85
86 &tlmm {
87 serial_0_pins: serial_pinmux {
88 mux {
89 pins = "gpio16", "gpio17";
90 function = "blsp_uart0";
91 bias-disable;
92 };
93 };
94
95 nand_pins: nand_pins {
96 pullups {
97 pins = "gpio53", "gpio58", "gpio59";
98 function = "qpic";
99 bias-pull-up;
100 };
101
102 pulldowns {
103 pins = "gpio54", "gpio55", "gpio56",
104 "gpio57", "gpio60", "gpio61",
105 "gpio62", "gpio63", "gpio64",
106 "gpio65", "gpio66", "gpio67",
107 "gpio68", "gpio69";
108 function = "qpic";
109 bias-pull-down;
110 };
111 };
112
113 mdio_pins: mdio_pinmux {
114 mux_1 {
115 pins = "gpio6";
116 function = "mdio";
117 bias-pull-up;
118 };
119 mux_2 {
120 pins = "gpio7";
121 function = "mdc";
122 bias-pull-up;
123 };
124 };
125
126 phy-reset {
127 line-name = "PHY-reset";
128 gpios = <19 GPIO_ACTIVE_HIGH>;
129 gpio-hog;
130 output-high;
131 };
132
133 phy-reset-2 {
134 line-name = "PHY-reset-2";
135 gpios = <47 GPIO_ACTIVE_HIGH>;
136 gpio-hog;
137 output-high;
138 };
139 };
140
141 &nand {
142 pinctrl-0 = <&nand_pins>;
143 pinctrl-names = "default";
144 status = "okay";
145
146 nand@0 {
147 partitions {
148 compatible = "fixed-partitions";
149 #address-cells = <1>;
150 #size-cells = <1>;
151
152 partition@0 {
153 label = "SBL1";
154 reg = <0x0 0x80000>;
155 read-only;
156 };
157
158 partition@80000 {
159 label = "MIBIB";
160 reg = <0x80000 0x80000>;
161 read-only;
162 };
163
164 partition@100000 {
165 label = "QSEE";
166 reg = <0x100000 0x80000>;
167 read-only;
168 };
169
170 partition@180000 {
171 label = "CDT";
172 reg = <0x180000 0x40000>;
173 read-only;
174 };
175
176 partition@1c0000 {
177 label = "QSEE_B";
178 reg = <0x1c0000 0x80000>;
179 read-only;
180 };
181
182 partition@240000 {
183 label = "urlader0";
184 reg = <0x240000 0x40000>;
185 read-only;
186 };
187
188 partition@280000 {
189 label = "urlader1";
190 reg = <0x280000 0x40000>;
191 read-only;
192 };
193
194 partition@2c0000 {
195 label = "nand-tffs";
196 reg = <0x2c0000 0x840000>;
197 read-only;
198 };
199
200 partition@b00000 {
201 /* 'kernel1' in AVM firmware */
202 label = "uboot0";
203 reg = <0xb00000 0x400000>;
204 };
205
206 partition@f00000 {
207 /* 'kernel2' in AVM firmware */
208 label = "uboot1";
209 reg = <0xf00000 0x400000>;
210 };
211
212 partition@1300000 {
213 label = "ubi";
214 reg = <0x1300000 0x6d00000>;
215 };
216 };
217 };
218 };
219
220 &cryptobam {
221 status = "okay";
222 };
223
224 &blsp_dma {
225 status = "okay";
226 };
227
228 &blsp1_uart1 {
229 pinctrl-0 = <&serial_0_pins>;
230 pinctrl-names = "default";
231 status = "okay";
232 };
233
234 &qpic_bam {
235 status = "okay";
236 };
237
238 &wifi0 {
239 status = "okay";
240 qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-1200";
241 };
242
243 &wifi1 {
244 status = "okay";
245 qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-1200";
246 };
247
248 &mdio {
249 status = "okay";
250 pinctrl-0 = <&mdio_pins>;
251 pinctrl-names = "default";
252
253 ethphy: ethernet-phy@0 {
254 reg = <0x0>;
255 };
256 };
257
258 &gmac {
259 status = "okay";
260 };
261
262 &switch {
263 status = "okay";
264
265 /delete-property/ psgmii-ethphy;
266 };
267
268 &swport5 {
269 status = "okay";
270
271 label = "lan";
272 phy-handle = <&ethphy>;
273 phy-mode = "rgmii-id";
274 };
275
276 &qca807x {
277 status = "disabled";
278 };
279
280 &ethphy1 {
281 status = "disabled";
282 };
283
284 &ethphy2 {
285 status = "disabled";
286 };
287
288 &ethphy3 {
289 status = "disabled";
290 };
291
292 &ethphy4 {
293 status = "disabled";
294 };
295
296 &psgmiiphy {
297 status = "disabled";
298 };