cf4f793f21c97eff58dbac9788ddc5cacee0190f
[openwrt/staging/chunkeey.git] / target / linux / ipq40xx / files-5.4 / arch / arm / boot / dts / qcom-ipq4018-emd1.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 EMD1";
10 compatible = "engenius,emd1";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 soc {
20 rng@22000 {
21 status = "okay";
22 };
23
24 mdio@90000 {
25 status = "okay";
26 };
27
28 ess-psgmii@98000 {
29 status = "okay";
30 };
31
32 tcsr@1949000 {
33 compatible = "qcom,tcsr";
34 reg = <0x1949000 0x100>;
35 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
36 };
37
38 ess_tcsr@1953000 {
39 compatible = "qcom,tcsr";
40 reg = <0x1953000 0x1000>;
41 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
42 };
43
44 tcsr@1957000 {
45 compatible = "qcom,tcsr";
46 reg = <0x1957000 0x100>;
47 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
48 };
49
50 crypto@8e3a000 {
51 status = "okay";
52 };
53
54 watchdog@b017000 {
55 status = "okay";
56 };
57
58 ess-switch@c000000 {
59 status = "okay";
60 switch_lan_bmp = <0x20>;
61 switch_wan_bmp = <0x00>;
62 };
63
64 edma@c080000 {
65 status = "okay";
66 qcom,num_gmac = <1>;
67 };
68 };
69
70 keys {
71 compatible = "gpio-keys";
72
73 reset {
74 label = "reset";
75 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
77 };
78 };
79
80 leds {
81 compatible = "gpio-leds";
82
83 led_power: power {
84 label = "emd1:white:power";
85 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
86 };
87
88 wlan2g {
89 label = "emd1:red:wlan2g";
90 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
91 linux,default-trigger = "phy0tpt";
92 };
93
94 wlan5g {
95 label = "emd1:blue:wlan5g";
96 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
97 linux,default-trigger = "phy1tpt";
98 };
99
100 mesh {
101 label = "emd1:orange:mesh";
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
124 pin_cs {
125 function = "gpio";
126 pins = "gpio54";
127 drive-strength = <2>;
128 bias-disable;
129 output-high;
130 };
131 };
132 };
133
134 &blsp_dma {
135 status = "okay";
136 };
137
138 &blsp1_spi1 {
139 pinctrl-0 = <&spi_0_pins>;
140 pinctrl-names = "default";
141 status = "okay";
142 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
143
144 flash@0 {
145 compatible = "jedec,spi-nor";
146 reg = <0>;
147 spi-max-frequency = <24000000>;
148 partitions {
149 compatible = "fixed-partitions";
150 #address-cells = <1>;
151 #size-cells = <1>;
152
153 partition0@0 {
154 label = "0:SBL1";
155 reg = <0x00000000 0x00040000>;
156 read-only;
157 };
158 partition1@40000 {
159 label = "0:MIBIB";
160 reg = <0x00040000 0x00020000>;
161 read-only;
162 };
163 partition2@60000 {
164 label = "0:QSEE";
165 reg = <0x00060000 0x00060000>;
166 read-only;
167 };
168 partition3@c0000 {
169 label = "0:CDT";
170 reg = <0x000c0000 0x00010000>;
171 read-only;
172 };
173 partition4@d0000 {
174 label = "0:DDRPARAMS";
175 reg = <0x000d0000 0x00010000>;
176 read-only;
177 };
178 partition5@e0000 {
179 label = "0:APPSBLENV";
180 reg = <0x000e0000 0x00010000>;
181 read-only;
182 };
183 partition6@f0000 {
184 label = "0:APPSBL";
185 reg = <0x000f0000 0x00080000>;
186 read-only;
187 };
188 partition7@170000 {
189 label = "0:ART";
190 reg = <0x00170000 0x00010000>;
191 read-only;
192 };
193 partition8@180000 {
194 label = "userconfig";
195 reg = <0x00180000 0x00080000>;
196 read-only;
197 };
198 partition9@200000 {
199 compatible = "denx,fit";
200 label = "firmware";
201 reg = <0x200000 0x01e00000>;
202 };
203 };
204 };
205 };
206
207 &blsp1_uart1 {
208 pinctrl-0 = <&serial_pins>;
209 pinctrl-names = "default";
210 status = "okay";
211 };
212
213 &gmac0 {
214 qcom,phy_mdio_addr = <4>;
215 qcom,poll_required = <1>;
216 qcom,forced_speed = <1000>;
217 qcom,forced_duplex = <1>;
218 vlan_tag = <1 0x20>;
219 };
220
221 &cryptobam {
222 status = "okay";
223 };
224
225 &wifi0 {
226 status = "okay";
227 qcom,ath10k-calibration-variant = "EnGenius-EMD1";
228 };
229
230 &wifi1 {
231 status = "okay";
232 qcom,ath10k-calibration-variant = "EnGenius-EMD1";
233 };