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