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