ipq40xx: remove model name from LED labels
[openwrt/staging/jow.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 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 = <0x30>;
62 switch_wan_bmp = <0x02>;
63 };
64
65 edma@c080000 {
66 status = "okay";
67 qcom,num_gmac = <1>;
68 };
69 };
70
71 key {
72 compatible = "gpio-keys";
73
74 connect {
75 label = "Connect";
76 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_WPS_BUTTON>;
78 };
79 };
80
81 leds {
82 compatible = "gpio-leds";
83
84 connect_red {
85 label = "red:connect";
86 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
87 };
88
89 connect_green {
90 label = "green:connect";
91 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
92 };
93
94 connect_blue {
95 label = "blue:connect";
96 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
97 };
98
99 power_led: power {
100 label = "green:power";
101 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
102 };
103 };
104 };
105
106 &tlmm {
107 serial_0_pins: serial_pinmux {
108 mux {
109 pins = "gpio16", "gpio17";
110 function = "blsp_uart0";
111 bias-disable;
112 };
113 };
114
115 nand_pins: nand_pins {
116 pullups {
117 pins = "gpio53", "gpio58", "gpio59";
118 function = "qpic";
119 bias-pull-up;
120 };
121
122 pulldowns {
123 pins = "gpio54", "gpio55", "gpio56",
124 "gpio57", "gpio60", "gpio61",
125 "gpio62", "gpio63", "gpio64",
126 "gpio65", "gpio66", "gpio67",
127 "gpio68", "gpio69";
128 function = "qpic";
129 bias-pull-down;
130 };
131 };
132 };
133
134 &nand {
135 pinctrl-0 = <&nand_pins>;
136 pinctrl-names = "default";
137 status = "okay";
138
139 nand@0 {
140 partitions {
141 compatible = "fixed-partitions";
142 #address-cells = <1>;
143 #size-cells = <1>;
144
145 partition@0 {
146 label = "SBL1";
147 reg = <0x000000 0x80000>;
148 read-only;
149 };
150
151 partition@80000 {
152 label = "MIBIB";
153 reg = <0x080000 0x80000>;
154 read-only;
155 };
156
157 partition@100000 {
158 label = "QSEE";
159 reg = <0x100000 0x80000>;
160 read-only;
161 };
162
163 partition@180000 {
164 label = "CDT";
165 reg = <0x180000 0x40000>;
166 read-only;
167 };
168
169 partition@1c0000 {
170 label = "QSEE_B";
171 reg = <0x1c0000 0x80000>;
172 read-only;
173 };
174
175 partition@240000 {
176 label = "urlader0";
177 reg = <0x240000 0x40000>;
178 read-only;
179 };
180
181 partition@280000 {
182 label = "urlader1";
183 reg = <0x280000 0x40000>;
184 read-only;
185 };
186
187 partition@2c0000 {
188 label = "nand-tffs";
189 reg = <0x2c0000 0x840000>;
190 read-only;
191 };
192
193 partition@b00000 {
194 /* 'kernel1' in AVM firmware */
195 label = "uboot0";
196 reg = <0xb00000 0x400000>;
197 };
198
199 partition@f00000 {
200 /* 'kernel2' in AVM firmware */
201 label = "uboot1";
202 reg = <0xf00000 0x400000>;
203 };
204
205 partition@1300000 {
206 label = "ubi";
207 reg = <0x1300000 0x6d00000>;
208 };
209 };
210 };
211 };
212
213 &gmac0 {
214 vlan_tag = <1 0x30>;
215 };
216
217 &cryptobam {
218 status = "okay";
219 };
220
221 &blsp_dma {
222 status = "okay";
223 };
224
225 &blsp1_uart1 {
226 pinctrl-0 = <&serial_0_pins>;
227 pinctrl-names = "default";
228 status = "okay";
229 };
230
231 &qpic_bam {
232 status = "okay";
233 };
234
235 &wifi0 {
236 status = "okay";
237 /* BDFs are identical for the FRITZ!Box 7530 and the FRITZ!Repeater 3000 */
238 qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-3000";
239 };
240
241 &wifi1 {
242 status = "okay";
243 ieee80211-freq-limit = <5170000 5350000>;
244 /* BDFs are identical for the FRITZ!Box 7530 and the FRITZ!Repeater 3000 */
245 qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-3000";
246 };
247
248 &pcie0 {
249 status = "okay";
250
251 perst-gpio = <&tlmm 35 GPIO_ACTIVE_LOW>;
252 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
253
254 bridge@0,0 {
255 reg = <0x00000000 0 0 0 0>;
256 #address-cells = <3>;
257 #size-cells = <2>;
258 ranges;
259
260 wifi@1,0 {
261 /* QCA9984 */
262 compatible = "qcom,ath10k";
263 status = "okay";
264 reg = <0x00010000 0 0 0 0>;
265 ieee80211-freq-limit = <5470000 5875000>;
266 /* Uses the reference BDF */
267 };
268 };
269 };