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