ipq40xx: remove non-existent ethernet PHY
[openwrt/openwrt.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 /delete-node/ ethernet-phy@1;
31 /delete-node/ ethernet-phy@2;
32 /delete-node/ ethernet-phy@3;
33 /delete-node/ ethernet-phy@4;
34 /delete-node/ psgmii-phy@5;
35 };
36
37 tcsr@1949000 {
38 compatible = "qcom,tcsr";
39 reg = <0x1949000 0x100>;
40 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
41 };
42
43 ess_tcsr@1953000 {
44 compatible = "qcom,tcsr";
45 reg = <0x1953000 0x1000>;
46 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
47 };
48
49 tcsr@1957000 {
50 compatible = "qcom,tcsr";
51 reg = <0x1957000 0x100>;
52 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
53 };
54
55 crypto@8e3a000 {
56 status = "okay";
57 };
58
59 watchdog@b017000 {
60 status = "okay";
61 };
62
63 ess-switch@c000000 {
64 switch_mac_mode = <0x3>; /* mac mode for RGMII RMII */
65 switch_lan_bmp = <0x0>; /* lan port bitmap */
66 switch_wan_bmp = <0x10>; /* wan port bitmap */
67 };
68
69 edma@c080000 {
70 status = "okay";
71 phy-mode = "rgmii-rxid";
72 qcom,num_gmac = <1>;
73 qcom,single-phy;
74 };
75 };
76
77 key {
78 compatible = "gpio-keys";
79
80 wps {
81 label = "WPS button";
82 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_WPS_BUTTON>;
84 };
85 };
86
87 leds {
88 compatible = "gpio-leds";
89
90 power_red: power_red {
91 label = "red:power";
92 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
93 };
94
95 power_green: power_green {
96 label = "green:power";
97 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
98 };
99
100 power_yellow {
101 label = "yellow:power";
102 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
103 };
104 };
105 };
106
107 &tlmm {
108 serial_0_pins: serial_pinmux {
109 mux {
110 pins = "gpio16", "gpio17";
111 function = "blsp_uart0";
112 bias-disable;
113 };
114 };
115
116 nand_pins: nand_pins {
117 pullups {
118 pins = "gpio53", "gpio58", "gpio59";
119 function = "qpic";
120 bias-pull-up;
121 };
122
123 pulldowns {
124 pins = "gpio54", "gpio55", "gpio56",
125 "gpio57", "gpio60", "gpio61",
126 "gpio62", "gpio63", "gpio64",
127 "gpio65", "gpio66", "gpio67",
128 "gpio68", "gpio69";
129 function = "qpic";
130 bias-pull-down;
131 };
132 };
133
134 mdio_pins: mdio_pinmux {
135 mux_1 {
136 pins = "gpio6";
137 function = "mdio";
138 bias-pull-up;
139 };
140 mux_2 {
141 pins = "gpio7";
142 function = "mdc";
143 bias-pull-up;
144 };
145 };
146
147 phy-reset {
148 line-name = "PHY-reset";
149 gpios = <19 GPIO_ACTIVE_HIGH>;
150 gpio-hog;
151 output-high;
152 };
153
154 phy-reset-2 {
155 line-name = "PHY-reset-2";
156 gpios = <47 GPIO_ACTIVE_HIGH>;
157 gpio-hog;
158 output-high;
159 };
160 };
161
162 &nand {
163 pinctrl-0 = <&nand_pins>;
164 pinctrl-names = "default";
165 status = "okay";
166
167 nand@0 {
168 partitions {
169 compatible = "fixed-partitions";
170 #address-cells = <1>;
171 #size-cells = <1>;
172
173 partition@0 {
174 label = "SBL1";
175 reg = <0x0 0x80000>;
176 read-only;
177 };
178
179 partition@80000 {
180 label = "MIBIB";
181 reg = <0x80000 0x80000>;
182 read-only;
183 };
184
185 partition@100000 {
186 label = "QSEE";
187 reg = <0x100000 0x80000>;
188 read-only;
189 };
190
191 partition@180000 {
192 label = "CDT";
193 reg = <0x180000 0x40000>;
194 read-only;
195 };
196
197 partition@1c0000 {
198 label = "QSEE_B";
199 reg = <0x1c0000 0x80000>;
200 read-only;
201 };
202
203 partition@240000 {
204 label = "urlader0";
205 reg = <0x240000 0x40000>;
206 read-only;
207 };
208
209 partition@280000 {
210 label = "urlader1";
211 reg = <0x280000 0x40000>;
212 read-only;
213 };
214
215 partition@2c0000 {
216 label = "nand-tffs";
217 reg = <0x2c0000 0x840000>;
218 read-only;
219 };
220
221 partition@b00000 {
222 /* 'kernel1' in AVM firmware */
223 label = "uboot0";
224 reg = <0xb00000 0x400000>;
225 };
226
227 partition@f00000 {
228 /* 'kernel2' in AVM firmware */
229 label = "uboot1";
230 reg = <0xf00000 0x400000>;
231 };
232
233 partition@1300000 {
234 label = "ubi";
235 reg = <0x1300000 0x6d00000>;
236 };
237 };
238 };
239 };
240
241 &cryptobam {
242 status = "okay";
243 };
244
245 &blsp_dma {
246 status = "okay";
247 };
248
249 &blsp1_uart1 {
250 pinctrl-0 = <&serial_0_pins>;
251 pinctrl-names = "default";
252 status = "okay";
253 };
254
255 &qpic_bam {
256 status = "okay";
257 };
258
259 &wifi0 {
260 status = "okay";
261 qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-1200";
262 };
263
264 &wifi1 {
265 status = "okay";
266 qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-1200";
267 };
268
269 &gmac0 {
270 qcom,phy_mdio_addr = <0>;
271 qcom,poll_required = <1>;
272 vlan_tag = <0 0x20>;
273 };