ipq40xx: drop ESSEDMA + AR40xx DTS nodes
[openwrt/staging/jow.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-hap-ac2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2020, Robert Marko <robimarko@gmail.com> */
3
4 #include "qcom-ipq4019.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "MikroTik hAP ac2";
11 compatible = "mikrotik,hap-ac2";
12
13 memory {
14 device_type = "memory";
15 reg = <0x80000000 0x08000000>;
16 };
17
18 chosen {
19 stdout-path = "serial0:115200n8";
20 };
21
22 aliases {
23 led-boot = &led_user;
24 led-failsafe = &led_user;
25 led-running = &led_user;
26 led-upgrade = &led_user;
27 };
28
29 soc {
30 rng@22000 {
31 status = "okay";
32 };
33
34 counter@4a1000 {
35 compatible = "qcom,qca-gcnt";
36 reg = <0x4a1000 0x4>;
37 };
38
39 tcsr@1949000 {
40 compatible = "qcom,tcsr";
41 reg = <0x1949000 0x100>;
42 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
43 };
44
45 tcsr@194b000 {
46 /* select hostmode */
47 compatible = "qcom,tcsr";
48 reg = <0x194b000 0x100>;
49 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
50 status = "okay";
51 };
52
53 ess_tcsr@1953000 {
54 compatible = "qcom,tcsr";
55 reg = <0x1953000 0x1000>;
56 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
57 };
58
59 tcsr@1957000 {
60 compatible = "qcom,tcsr";
61 reg = <0x1957000 0x100>;
62 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
63 };
64
65 usb3@8af8800 {
66 status = "okay";
67
68 dwc3@8a00000 {
69 phys = <&usb3_hs_phy>;
70 phy-names = "usb2-phy";
71 };
72 };
73
74 crypto@8e3a000 {
75 status = "okay";
76 };
77
78 watchdog@b017000 {
79 status = "okay";
80 };
81 };
82
83 keys {
84 compatible = "gpio-keys";
85
86 reset {
87 label = "reset";
88 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_RESTART>;
90 };
91
92 mode {
93 label = "mode";
94 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_RFKILL>;
96 };
97 };
98
99 leds {
100 compatible = "gpio-leds";
101
102 power {
103 label = "green:power";
104 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
105 default-state = "keep";
106 panic-indicator;
107 };
108
109 led_user: user {
110 label = "green:user";
111 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
112 };
113 };
114 };
115
116 &tlmm {
117 serial_pins: serial_pinmux {
118 mux {
119 pins = "gpio60", "gpio61";
120 function = "blsp_uart0";
121 bias-disable;
122 };
123 };
124
125 spi_0_pins: spi_0_pinmux {
126 pin {
127 function = "blsp_spi0";
128 pins = "gpio55", "gpio56", "gpio57";
129 drive-strength = <2>;
130 bias-disable;
131 };
132 pin_cs {
133 function = "gpio";
134 pins = "gpio54";
135 drive-strength = <2>;
136 bias-disable;
137 output-high;
138 };
139 };
140
141 enable-usb-power {
142 gpio-hog;
143 gpios = <2 GPIO_ACTIVE_HIGH>;
144 output-high;
145 line-name = "enable USB power";
146 };
147 };
148
149 &blsp_dma {
150 status = "okay";
151 };
152
153 &blsp1_spi1 {
154 status = "okay";
155
156 pinctrl-0 = <&spi_0_pins>;
157 pinctrl-names = "default";
158 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
159
160 flash@0 {
161 reg = <0>;
162 compatible = "jedec,spi-nor";
163 spi-max-frequency = <40000000>;
164
165 partitions {
166 compatible = "fixed-partitions";
167 #address-cells = <1>;
168 #size-cells = <1>;
169
170 partition@0 {
171 label = "Qualcomm";
172 reg = <0x0 0x80000>;
173 read-only;
174 };
175
176 partition@80000 {
177 compatible = "mikrotik,routerboot-partitions";
178 #address-cells = <1>;
179 #size-cells = <1>;
180 label = "RouterBoot";
181 reg = <0x80000 0x80000>;
182
183 hard_config {
184 read-only;
185 size = <0x2000>;
186 };
187
188 dtb_config {
189 read-only;
190 };
191
192 soft_config {
193 };
194 };
195
196 partition@100000 {
197 compatible = "mikrotik,minor";
198 label = "firmware";
199 reg = <0x100000 0xf00000>;
200 };
201 };
202 };
203 };
204
205 &blsp1_uart1 {
206 status = "okay";
207
208 pinctrl-0 = <&serial_pins>;
209 pinctrl-names = "default";
210 };
211
212 &cryptobam {
213 status = "okay";
214 };
215
216 &usb3_hs_phy {
217 status = "okay";
218 };
219
220 &mdio {
221 status = "okay";
222 };
223
224 &ethphy0 {
225 qcom,single-led-1000;
226 qcom,single-led-100;
227 qcom,single-led-10;
228 };
229
230 &ethphy1 {
231 qcom,single-led-1000;
232 qcom,single-led-100;
233 qcom,single-led-10;
234 };
235
236 &ethphy2 {
237 qcom,single-led-1000;
238 qcom,single-led-100;
239 qcom,single-led-10;
240 };
241
242 &ethphy3 {
243 qcom,single-led-1000;
244 qcom,single-led-100;
245 qcom,single-led-10;
246 };
247
248 &ethphy4 {
249 qcom,single-led-1000;
250 qcom,single-led-100;
251 qcom,single-led-10;
252 };
253
254 &wifi0 {
255 status = "okay";
256
257 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac2";
258 };
259
260 &wifi1 {
261 status = "okay";
262
263 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac2";
264 };