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