ipq40xx: drop redundant label with new LED color/function format
[openwrt/staging/nbd.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 /delete-property/ nand-ecc-strength;
125 /delete-property/ nand-ecc-step-size;
126
127 partitions {
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
130 #size-cells = <1>;
131
132 partition@0 {
133 label = "SBL1";
134 reg = <0x000000 0x80000>;
135 read-only;
136 };
137
138 partition@80000 {
139 label = "MIBIB";
140 reg = <0x080000 0x80000>;
141 read-only;
142 };
143
144 partition@100000 {
145 label = "QSEE";
146 reg = <0x100000 0x80000>;
147 read-only;
148 };
149
150 partition@180000 {
151 label = "CDT";
152 reg = <0x180000 0x40000>;
153 read-only;
154 };
155
156 partition@1c0000 {
157 label = "QSEE_B";
158 reg = <0x1c0000 0x80000>;
159 read-only;
160 };
161
162 partition@240000 {
163 label = "urlader0";
164 reg = <0x240000 0x40000>;
165 read-only;
166 };
167
168 partition@280000 {
169 label = "urlader1";
170 reg = <0x280000 0x40000>;
171 read-only;
172 };
173
174 partition@2c0000 {
175 label = "nand-tffs";
176 reg = <0x2c0000 0x840000>;
177 read-only;
178 };
179
180 partition@b00000 {
181 /* 'kernel1' in AVM firmware */
182 label = "uboot0";
183 reg = <0xb00000 0x400000>;
184 };
185
186 partition@f00000 {
187 /* 'kernel2' in AVM firmware */
188 label = "uboot1";
189 reg = <0xf00000 0x400000>;
190 };
191
192 partition@1300000 {
193 label = "ubi";
194 reg = <0x1300000 0x6d00000>;
195 };
196 };
197 };
198 };
199
200 &cryptobam {
201 status = "okay";
202 };
203
204 &blsp_dma {
205 status = "okay";
206 };
207
208 &blsp1_uart1 {
209 pinctrl-0 = <&serial_0_pins>;
210 pinctrl-names = "default";
211 status = "okay";
212 };
213
214 &qpic_bam {
215 status = "okay";
216 };
217
218 &wifi0 {
219 status = "okay";
220 /* BDFs are identical for the FRITZ!Box 7530 and the FRITZ!Repeater 3000 */
221 qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-3000";
222 };
223
224 &wifi1 {
225 status = "okay";
226 ieee80211-freq-limit = <5170000 5350000>;
227 /* BDFs are identical for the FRITZ!Box 7530 and the FRITZ!Repeater 3000 */
228 qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-3000";
229 };
230
231 &pcie0 {
232 status = "okay";
233
234 perst-gpio = <&tlmm 35 GPIO_ACTIVE_LOW>;
235 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
236
237 bridge@0,0 {
238 reg = <0x00000000 0 0 0 0>;
239 #address-cells = <3>;
240 #size-cells = <2>;
241 ranges;
242
243 wifi@1,0 {
244 /* QCA9984 */
245 compatible = "qcom,ath10k";
246 status = "okay";
247 reg = <0x00010000 0 0 0 0>;
248 ieee80211-freq-limit = <5470000 5875000>;
249 /* Uses the reference BDF */
250 };
251 };
252 };
253
254 &gmac {
255 status = "okay";
256 };
257
258 &switch {
259 status = "okay";
260 };
261
262 &swport4 {
263 status = "okay";
264
265 label = "lan1";
266 };
267
268 &swport5 {
269 status = "okay";
270
271 label = "lan2";
272 };