ipq40xx: convert GL-AP1300 to DSA
[openwrt/staging/dedeckeh.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-eap1300.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
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 EAP1300";
10 compatible = "engenius,eap1300";
11
12 soc {
13 rng@22000 {
14 status = "okay";
15 };
16
17 mdio@90000 {
18 status = "okay";
19 };
20
21 tcsr@1949000 {
22 compatible = "qcom,tcsr";
23 reg = <0x1949000 0x100>;
24 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
25 };
26
27 ess_tcsr@1953000 {
28 compatible = "qcom,tcsr";
29 reg = <0x1953000 0x1000>;
30 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
31 };
32
33 tcsr@1957000 {
34 compatible = "qcom,tcsr";
35 reg = <0x1957000 0x100>;
36 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
37 };
38
39 crypto@8e3a000 {
40 status = "okay";
41 };
42
43 watchdog@b017000 {
44 status = "okay";
45 };
46 };
47
48 keys {
49 compatible = "gpio-keys";
50
51 reset {
52 label = "reset";
53 gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
54 linux,code = <KEY_RESTART>;
55 };
56 };
57
58 aliases {
59 led-boot = &power;
60 led-failsafe = &power;
61 led-running = &power;
62 led-upgrade = &power;
63 };
64
65 leds {
66 compatible = "gpio-leds";
67
68 power: orange {
69 label = "orange:power";
70 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
71 };
72
73 lan {
74 label = "blue:lan";
75 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
76 };
77
78 mesh {
79 label = "blue:mesh";
80 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
81 };
82
83 wlan2g {
84 label = "blue:wlan2g";
85 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
86 };
87
88 wlan5g {
89 label = "yellow:wlan5g";
90 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
91 };
92 };
93 };
94
95 &tlmm {
96 serial_pins: serial_pinmux {
97 mux {
98 pins = "gpio60", "gpio61";
99 function = "blsp_uart0";
100 bias-disable;
101 };
102 };
103
104 spi_0_pins: spi_0_pinmux {
105 pin {
106 function = "blsp_spi0";
107 pins = "gpio54", "gpio55", "gpio56", "gpio57";
108 drive-strength = <12>;
109 bias-disable;
110 };
111 pin_cs {
112 function = "gpio";
113 pins = "gpio54";
114 drive-strength = <2>;
115 bias-disable;
116 output-high;
117 };
118 };
119 };
120
121 &blsp_dma {
122 status = "okay";
123 };
124
125 &blsp1_spi1 {
126 pinctrl-0 = <&spi_0_pins>;
127 pinctrl-names = "default";
128 status = "okay";
129 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
130
131 m25p80@0 {
132 compatible = "jedec,spi-nor";
133 reg = <0>;
134 spi-max-frequency = <24000000>;
135 partitions {
136 compatible = "fixed-partitions";
137 #address-cells = <1>;
138 #size-cells = <1>;
139
140 partition@0 {
141 label = "0:SBL1";
142 reg = <0x00000000 0x00040000>;
143 read-only;
144 };
145 partition1@40000 {
146 label = "0:MIBIB";
147 reg = <0x00040000 0x00020000>;
148 read-only;
149 };
150 partition2@60000 {
151 label = "0:QSEE";
152 reg = <0x00060000 0x00060000>;
153 read-only;
154 };
155 partition3@c0000 {
156 label = "0:CDT";
157 reg = <0x000c0000 0x00010000>;
158 read-only;
159 };
160 partition4@d0000 {
161 label = "0:DDRPARAMS";
162 reg = <0x000d0000 0x00010000>;
163 read-only;
164 };
165 partition5@e0000 {
166 label = "0:APPSBLENV";
167 reg = <0x000e0000 0x00010000>;
168 read-only;
169 };
170 partition6@f0000 {
171 label = "0:APPSBL";
172 reg = <0x000f0000 0x00090000>;
173 read-only;
174 };
175 partition7@180000 {
176 label = "0:ART";
177 reg = <0x00180000 0x00010000>;
178 read-only;
179 compatible = "nvmem-cells";
180 #address-cells = <1>;
181 #size-cells = <1>;
182
183 precal_art_1000: precal@1000 {
184 reg = <0x1000 0x2f20>;
185 };
186
187 precal_art_5000: precal@5000 {
188 reg = <0x5000 0x2f20>;
189 };
190 };
191 partition8@190000 {
192 compatible = "denx,fit";
193 label = "firmware";
194 reg = <0x190000 0x1dc0000>;
195 };
196 partition9@1f50000 {
197 label = "u-boot-env";
198 reg = <0x01f50000 0x00010000>;
199 };
200 partition10@1f60000 {
201 label = "userconfig";
202 reg = <0x01f60000 0x000a0000>;
203 };
204 };
205 };
206 };
207
208 &blsp1_uart1 {
209 pinctrl-0 = <&serial_pins>;
210 pinctrl-names = "default";
211 status = "okay";
212 };
213
214 &cryptobam {
215 status = "okay";
216 };
217
218 &wifi0 {
219 status = "okay";
220 nvmem-cell-names = "pre-calibration";
221 nvmem-cells = <&precal_art_1000>;
222 qcom,ath10k-calibration-variant = "EnGenius-EAP1300";
223 };
224
225 &wifi1 {
226 status = "okay";
227 nvmem-cell-names = "pre-calibration";
228 nvmem-cells = <&precal_art_5000>;
229 qcom,ath10k-calibration-variant = "EnGenius-EAP1300";
230 };