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