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