ipq40xx: switch default to 6.6
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4018-gl-ap1300.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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "GL.iNet GL-AP1300";
11 compatible = "glinet,gl-ap1300";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 memory {
21 device_type = "memory";
22 reg = <0x80000000 0x10000000>;
23 };
24
25 chosen {
26 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
27 };
28
29 soc {
30 rng@22000 {
31 status = "okay";
32 };
33
34 mdio@90000 {
35 status = "okay";
36 };
37
38 tcsr@1949000 {
39 compatible = "qcom,tcsr";
40 reg = <0x1949000 0x100>;
41 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
42 };
43
44 tcsr@194b000 {
45 /* select hostmode */
46 compatible = "qcom,tcsr";
47 reg = <0x194b000 0x100>;
48 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
49 status = "okay";
50 };
51
52 ess_tcsr@1953000 {
53 compatible = "qcom,tcsr";
54 reg = <0x1953000 0x1000>;
55 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
56 };
57
58 tcsr@1957000 {
59 compatible = "qcom,tcsr";
60 reg = <0x1957000 0x100>;
61 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
62 };
63
64 usb2@60f8800 {
65 status = "okay";
66 };
67
68 usb3@8af8800 {
69 status = "okay";
70 };
71
72 crypto@8e3a000 {
73 status = "okay";
74 };
75
76 watchdog@b017000 {
77 status = "okay";
78 };
79 };
80
81 keys {
82 compatible = "gpio-keys";
83
84 reset {
85 label = "reset";
86 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
88 };
89 };
90
91 leds {
92 compatible = "gpio-leds";
93
94 led_power: power {
95 function = LED_FUNCTION_POWER;
96 color = <LED_COLOR_ID_WHITE>;
97 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
98 default-state = "on";
99 };
100
101 wan {
102 function = LED_FUNCTION_WAN;
103 color = <LED_COLOR_ID_WHITE>;
104 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
105 };
106 };
107 };
108
109 &blsp_dma {
110 status = "okay";
111 };
112
113 &cryptobam {
114 status = "okay";
115 };
116
117 &blsp1_spi1 {
118 status = "okay";
119
120 pinctrl-0 = <&spi0_pins>;
121 pinctrl-names = "default";
122 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 5 GPIO_ACTIVE_HIGH>;
123
124 flash@0 {
125 status = "okay";
126
127 compatible = "jedec,spi-nor";
128 reg = <0>;
129 spi-max-frequency = <24000000>;
130
131 partitions {
132 compatible = "fixed-partitions";
133 #address-cells = <1>;
134 #size-cells = <1>;
135
136 partition@0 {
137 label = "SBL1";
138 reg = <0x00000000 0x00040000>;
139 read-only;
140 };
141
142 partition@40000 {
143 label = "MIBIB";
144 reg = <0x00040000 0x00020000>;
145 read-only;
146 };
147
148 partition@60000 {
149 label = "QSEE";
150 reg = <0x00060000 0x00060000>;
151 read-only;
152 };
153
154 partition@c0000 {
155 label = "CDT";
156 reg = <0x000c0000 0x00010000>;
157 read-only;
158 };
159
160 partition@d0000 {
161 label = "DDRPARAMS";
162 reg = <0x000d0000 0x00010000>;
163 read-only;
164 };
165
166 partition@e0000 {
167 label = "APPSBLENV"; /* uboot env*/
168 reg = <0x000e0000 0x00010000>;
169 };
170
171 partition@f0000 {
172 label = "APPSBL"; /* uboot */
173 reg = <0x000f0000 0x00080000>;
174 read-only;
175 };
176
177 partition@170000 {
178 label = "ART";
179 reg = <0x00170000 0x00010000>;
180 read-only;
181
182 nvmem-layout {
183 compatible = "fixed-layout";
184 #address-cells = <1>;
185 #size-cells = <1>;
186
187 macaddr_art_0: mac-address@0 {
188 reg = <0x0 0x6>;
189 };
190
191 macaddr_art_6: mac-address@6 {
192 reg = <0x6 0x6>;
193 };
194
195 precal_art_1000: precal@1000 {
196 reg = <0x1000 0x2f20>;
197 };
198
199 precal_art_5000: precal@5000 {
200 reg = <0x5000 0x2f20>;
201 };
202 };
203 };
204 };
205 };
206
207 spi-nand@1 {
208 status = "okay";
209
210 compatible = "spi-nand";
211 reg = <1>;
212 spi-max-frequency = <24000000>;
213
214 partitions {
215 compatible = "fixed-partitions";
216 #address-cells = <1>;
217 #size-cells = <1>;
218
219 partition@0 {
220 label = "ubi";
221 reg = <0x00000000 0x08000000>;
222 };
223 };
224 };
225 };
226
227 &blsp1_uart1 {
228 pinctrl-0 = <&serial_pins>;
229 pinctrl-names = "default";
230 status = "okay";
231 };
232
233 &tlmm {
234 serial_pins: serial_pinmux {
235 mux {
236 pins = "gpio60", "gpio61";
237 function = "blsp_uart0";
238 bias-disable;
239 };
240 };
241
242 spi0_pins: spi0_pinmux {
243 mux_spi {
244 function = "blsp_spi0";
245 pins = "gpio55", "gpio56", "gpio57";
246 drive-strength = <12>;
247 bias-disable;
248 };
249
250 mux_cs {
251 function = "gpio";
252 pins = "gpio54", "gpio5";
253 drive-strength = <2>;
254 bias-disable;
255 output-high;
256 };
257 };
258 };
259
260 &usb2_hs_phy {
261 status = "okay";
262 };
263
264 &usb3_hs_phy {
265 status = "okay";
266 };
267
268 &usb3_ss_phy {
269 status = "okay";
270 };
271
272 &gmac {
273 status = "okay";
274 };
275
276 &switch {
277 status = "okay";
278 };
279
280 &swport4 {
281 status = "okay";
282 label = "lan";
283
284 nvmem-cells = <&macaddr_art_0>;
285 nvmem-cell-names = "mac-address";
286 };
287
288 &swport5 {
289 status = "okay";
290 label = "wan";
291
292 nvmem-cells = <&macaddr_art_6>;
293 nvmem-cell-names = "mac-address";
294 };
295
296 &wifi0 {
297 status = "okay";
298 nvmem-cell-names = "pre-calibration";
299 nvmem-cells = <&precal_art_1000>;
300 qcom,ath10k-calibration-variant = "GL-AP1300";
301 };
302
303 &wifi1 {
304 status = "okay";
305 nvmem-cell-names = "pre-calibration";
306 nvmem-cells = <&precal_art_5000>;
307 qcom,ath10k-calibration-variant = "GL-AP1300";
308 };