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