255598438455479699b6b46f3d315d84a1c7fdca
[openwrt/staging/pepe2k.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4019-fritzrepeater-3000.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 3000";
11 compatible = "avm,fritzrepeater-3000";
12
13 aliases {
14 led-boot = &power_led;
15 led-failsafe = &power_led;
16 led-running = &power_led;
17 led-upgrade = &power_led;
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 ess_tcsr@1953000 {
36 compatible = "qcom,tcsr";
37 reg = <0x1953000 0x1000>;
38 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
39 };
40
41 tcsr@1957000 {
42 compatible = "qcom,tcsr";
43 reg = <0x1957000 0x100>;
44 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
45 };
46
47 crypto@8e3a000 {
48 status = "okay";
49 };
50
51 watchdog@b017000 {
52 status = "okay";
53 };
54 };
55
56 key {
57 compatible = "gpio-keys";
58
59 connect {
60 label = "Connect";
61 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
63 };
64 };
65
66 leds {
67 compatible = "gpio-leds";
68
69 connect_red {
70 label = "red:connect";
71 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
72 };
73
74 connect_green {
75 label = "green:connect";
76 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
77 };
78
79 connect_blue {
80 label = "blue:connect";
81 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
82 };
83
84 power_led: power {
85 function = LED_FUNCTION_POWER;
86 color = <LED_COLOR_ID_GREEN>;
87 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
88 };
89 };
90 };
91
92 &tlmm {
93 serial_0_pins: serial_pinmux {
94 mux {
95 pins = "gpio16", "gpio17";
96 function = "blsp_uart0";
97 bias-disable;
98 };
99 };
100
101 nand_pins: nand_pins {
102 pullups {
103 pins = "gpio53", "gpio58", "gpio59";
104 function = "qpic";
105 bias-pull-up;
106 };
107
108 pulldowns {
109 pins = "gpio54", "gpio55", "gpio56",
110 "gpio57", "gpio60", "gpio61",
111 "gpio62", "gpio63", "gpio64",
112 "gpio65", "gpio66", "gpio67",
113 "gpio68", "gpio69";
114 function = "qpic";
115 bias-pull-down;
116 };
117 };
118 };
119
120 &nand {
121 pinctrl-0 = <&nand_pins>;
122 pinctrl-names = "default";
123 status = "okay";
124
125 nand@0 {
126 /delete-property/ nand-ecc-strength;
127 /delete-property/ nand-ecc-step-size;
128
129 partitions {
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
132 #size-cells = <1>;
133
134 partition@0 {
135 label = "SBL1";
136 reg = <0x000000 0x80000>;
137 read-only;
138 };
139
140 partition@80000 {
141 label = "MIBIB";
142 reg = <0x080000 0x80000>;
143 read-only;
144 };
145
146 partition@100000 {
147 label = "QSEE";
148 reg = <0x100000 0x80000>;
149 read-only;
150 };
151
152 partition@180000 {
153 label = "CDT";
154 reg = <0x180000 0x40000>;
155 read-only;
156 };
157
158 partition@1c0000 {
159 label = "QSEE_B";
160 reg = <0x1c0000 0x80000>;
161 read-only;
162 };
163
164 partition@240000 {
165 label = "urlader0";
166 reg = <0x240000 0x40000>;
167 read-only;
168 };
169
170 partition@280000 {
171 label = "urlader1";
172 reg = <0x280000 0x40000>;
173 read-only;
174 };
175
176 partition@2c0000 {
177 label = "nand-tffs";
178 reg = <0x2c0000 0x840000>;
179 read-only;
180 };
181
182 partition@b00000 {
183 /* 'kernel1' in AVM firmware */
184 label = "uboot0";
185 reg = <0xb00000 0x400000>;
186 };
187
188 partition@f00000 {
189 /* 'kernel2' in AVM firmware */
190 label = "uboot1";
191 reg = <0xf00000 0x400000>;
192 };
193
194 partition@1300000 {
195 label = "ubi";
196 reg = <0x1300000 0x6d00000>;
197 };
198 };
199 };
200 };
201
202 &cryptobam {
203 status = "okay";
204 };
205
206 &blsp_dma {
207 status = "okay";
208 };
209
210 &blsp1_uart1 {
211 pinctrl-0 = <&serial_0_pins>;
212 pinctrl-names = "default";
213 status = "okay";
214 };
215
216 &qpic_bam {
217 status = "okay";
218 };
219
220 &wifi0 {
221 status = "okay";
222 /* BDFs are identical for the FRITZ!Box 7530 and the FRITZ!Repeater 3000 */
223 qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-3000";
224 };
225
226 &wifi1 {
227 status = "okay";
228 ieee80211-freq-limit = <5170000 5350000>;
229 /* BDFs are identical for the FRITZ!Box 7530 and the FRITZ!Repeater 3000 */
230 qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-3000";
231 };
232
233 &pcie0 {
234 status = "okay";
235
236 perst-gpio = <&tlmm 35 GPIO_ACTIVE_LOW>;
237 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
238
239 bridge@0,0 {
240 reg = <0x00000000 0 0 0 0>;
241 #address-cells = <3>;
242 #size-cells = <2>;
243 ranges;
244
245 wifi@1,0 {
246 /* QCA9984 */
247 compatible = "qcom,ath10k";
248 status = "okay";
249 reg = <0x00010000 0 0 0 0>;
250 ieee80211-freq-limit = <5470000 5875000>;
251 /* Uses the reference BDF */
252 };
253 };
254 };
255
256 &gmac {
257 status = "okay";
258 };
259
260 &switch {
261 status = "okay";
262 };
263
264 &swport4 {
265 status = "okay";
266
267 label = "lan1";
268 };
269
270 &swport5 {
271 status = "okay";
272
273 label = "lan2";
274 };