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