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