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