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