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