ipq40xx: switch default to 6.6
[openwrt/staging/blocktrron.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4018-ens620ext.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 = "EnGenius ENS620EXT";
11 compatible = "engenius,ens620ext";
12
13 memory {
14 device_type = "memory";
15 reg = <0x80000000 0x10000000>;
16 };
17
18 aliases {
19 led-boot = &power;
20 led-failsafe = &power;
21 led-running = &power;
22 led-upgrade = &power;
23 };
24
25 soc {
26 rng@22000 {
27 status = "okay";
28 };
29
30 tcsr@1949000 {
31 compatible = "qcom,tcsr";
32 reg = <0x1949000 0x100>;
33 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
34 };
35
36 ess_tcsr@1953000 {
37 compatible = "qcom,tcsr";
38 reg = <0x1953000 0x1000>;
39 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
40 };
41
42 tcsr@1957000 {
43 compatible = "qcom,tcsr";
44 reg = <0x1957000 0x100>;
45 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
46 };
47
48 crypto@8e3a000 {
49 status = "okay";
50 };
51
52 watchdog@b017000 {
53 status = "okay";
54 };
55
56 /*
57 * Disable the broken restart as a workaround for the buggy
58 * 3.0.0/3.0.1 U-boots that ship with the device.
59 * Note: The watchdog is now used to restart this device.
60 */
61 restart@4ab000 {
62 status = "disabled";
63 };
64 };
65
66 buttons {
67 compatible = "gpio-keys";
68
69 wps {
70 label = "wps";
71 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_WPS_BUTTON>;
73 };
74 };
75
76 leds {
77 compatible = "gpio-leds";
78
79 power: power {
80 function = LED_FUNCTION_POWER;
81 color = <LED_COLOR_ID_AMBER>;
82 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
83 };
84
85 lan1 {
86 label = "green:lan1";
87 gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
88 };
89
90 lan2 {
91 label = "green:lan2";
92 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
93 };
94
95 wlan2g {
96 label = "green:wlan2g";
97 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
98 };
99
100 wlan5g {
101 label = "green:wlan5g";
102 gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
103 };
104 };
105 };
106
107 &cryptobam {
108 status = "okay";
109 };
110
111 &blsp_dma {
112 status = "okay";
113 };
114
115 &tlmm {
116 serial_pins: serial_pinmux {
117 mux {
118 pins = "gpio60", "gpio61";
119 function = "blsp_uart0";
120 bias-disable;
121 };
122 };
123
124 spi_0_pins: spi_0_pinmux {
125 mux {
126 function = "blsp_spi0";
127 pins = "gpio55", "gpio56", "gpio57";
128 drive-strength = <12>;
129 bias-disable;
130 };
131
132 mux_cs {
133 function = "gpio";
134 pins = "gpio54";
135 drive-strength = <2>;
136 bias-disable;
137 output-high;
138 };
139 };
140 };
141
142 &blsp1_spi1 { /* BLSP1 QUP1 */
143 pinctrl-0 = <&spi_0_pins>;
144 pinctrl-names = "default";
145 status = "okay";
146 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
147
148 flash@0 {
149 #address-cells = <1>;
150 #size-cells = <0>;
151 compatible = "jedec,spi-nor";
152 reg = <0>;
153 spi-max-frequency = <50000000>;
154 m25p,fast-read;
155
156 partitions {
157 compatible = "fixed-partitions";
158 #address-cells = <1>;
159 #size-cells = <1>;
160
161 partition@0 {
162 label = "SBL1";
163 reg = <0x00000000 0x00040000>;
164 read-only;
165 };
166 partition@40000 {
167 label = "MIBIB";
168 reg = <0x00040000 0x00020000>;
169 read-only;
170 };
171 partition@60000 {
172 label = "QSEE";
173 reg = <0x00060000 0x00060000>;
174 read-only;
175 };
176 partition@c0000 {
177 label = "CDT";
178 reg = <0x000c0000 0x00010000>;
179 read-only;
180 };
181 partition@d0000 {
182 label = "DDRPARAMS";
183 reg = <0x000d0000 0x00010000>;
184 read-only;
185 };
186 partition@e0000 {
187 label = "APPSBLENV"; /* uboot env*/
188 reg = <0x000e0000 0x00010000>;
189 read-only;
190 };
191 partition@f0000 {
192 label = "APPSBL"; /* uboot */
193 reg = <0x000f0000 0x00090000>;
194 read-only;
195 };
196 partition@180000 {
197 label = "ART";
198 reg = <0x00180000 0x00010000>;
199 read-only;
200 };
201 partition@190000 {
202 compatible = "denx,fit";
203 label = "firmware";
204 reg = <0x00190000 0x14d0000>;
205 };
206 partition@1660000 {
207 label = "failsafe";
208 reg = <0x01660000 0x008F0000>;
209 read-only;
210 };
211 partition@1f50000 {
212 label = "u-boot-env";
213 reg = <0x01f50000 0x00010000>;
214 read-only;
215 };
216 partition@1f60000 {
217 label = "userconfig";
218 reg = <0x01f60000 0x000a0000>;
219 read-only;
220 };
221 };
222 };
223 };
224
225 &blsp1_uart1 {
226 pinctrl-0 = <&serial_pins>;
227 pinctrl-names = "default";
228 status = "okay";
229 };
230
231 &usb3_ss_phy {
232 status = "okay";
233 };
234
235 &usb3_hs_phy {
236 status = "okay";
237 };
238
239 &usb2_hs_phy {
240 status = "okay";
241 };
242
243 &wifi0 {
244 status = "okay";
245 qcom,ath10k-calibration-variant = "EnGenius-ENS620EXT";
246 };
247
248 &wifi1 {
249 status = "okay";
250 qcom,ath10k-calibration-variant = "EnGenius-ENS620EXT";
251 };