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