hostapd: bump to 2024-09-06 (wip)
[openwrt/staging/xback.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4018-sxtsq-5-ac.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/leds/common.h>
8 #include <dt-bindings/soc/qcom,tcsr.h>
9
10 / {
11 model = "MikroTik SXTsq 5 ac (RBSXTsqG-5acD)";
12 compatible = "mikrotik,sxtsq-5-ac";
13
14 memory {
15 device_type = "memory";
16 reg = <0x80000000 0x10000000>;
17 };
18
19 chosen {
20 stdout-path = "serial0:115200n8";
21 };
22
23 aliases {
24 led-boot = &led_user;
25 led-failsafe = &led_user;
26 led-running = &led_user;
27 led-upgrade = &led_user;
28 };
29
30 soc {
31 counter@4a1000 {
32 compatible = "qcom,qca-gcnt";
33 reg = <0x4a1000 0x4>;
34 };
35
36 tcsr@1949000 {
37 compatible = "qcom,tcsr";
38 reg = <0x1949000 0x100>;
39 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
40 };
41
42 ess_tcsr@1953000 {
43 compatible = "qcom,tcsr";
44 reg = <0x1953000 0x1000>;
45 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII4>;
46 };
47
48 tcsr@1957000 {
49 compatible = "qcom,tcsr";
50 reg = <0x1957000 0x100>;
51 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
52 };
53 };
54
55 keys {
56 compatible = "gpio-keys";
57
58 reset {
59 label = "reset";
60 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
62 };
63 };
64
65 leds {
66 compatible = "gpio-leds";
67
68 power {
69 function = LED_FUNCTION_POWER;
70 color = <LED_COLOR_ID_BLUE>;
71 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
72 default-state = "keep";
73 panic-indicator;
74 };
75
76 led_user: user {
77 label = "green:user";
78 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
79 };
80
81 rssilow {
82 label = "green:rssilow";
83 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
84 };
85
86 rssimediumlow {
87 label = "green:rssimediumlow";
88 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
89 };
90
91 rssimedium {
92 label = "green:rssimedium";
93 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
94 };
95
96 rssimediumhigh {
97 label = "green:rssimediumhigh";
98 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
99 };
100
101 rssihigh {
102 label = "green:rssihigh";
103 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
104 };
105 };
106 };
107
108 &watchdog {
109 status = "okay";
110 };
111
112 &prng {
113 status = "okay";
114 };
115
116 &crypto {
117 status = "okay";
118 };
119
120 &tlmm {
121 serial_pins: serial_pinmux {
122 mux {
123 pins = "gpio60", "gpio61";
124 function = "blsp_uart0";
125 bias-disable;
126 };
127 };
128
129 spi_0_pins: spi_0_pinmux {
130 pin {
131 function = "blsp_spi0";
132 pins = "gpio55", "gpio56", "gpio57";
133 drive-strength = <2>;
134 bias-disable;
135 };
136 pin_cs {
137 function = "gpio";
138 pins = "gpio54";
139 drive-strength = <2>;
140 bias-disable;
141 output-high;
142 };
143 };
144 };
145
146 &blsp_dma {
147 status = "okay";
148 };
149
150 &blsp1_spi1 {
151 status = "okay";
152
153 pinctrl-0 = <&spi_0_pins>;
154 pinctrl-names = "default";
155 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
156
157 flash@0 {
158 reg = <0>;
159 compatible = "jedec,spi-nor";
160 spi-max-frequency = <40000000>;
161
162 partitions {
163 compatible = "fixed-partitions";
164 #address-cells = <1>;
165 #size-cells = <1>;
166
167 partition@0 {
168 label = "Qualcomm";
169 reg = <0x0 0x80000>;
170 read-only;
171 };
172
173 partition@80000 {
174 compatible = "mikrotik,routerboot-partitions";
175 #address-cells = <1>;
176 #size-cells = <1>;
177 label = "RouterBoot";
178 reg = <0x80000 0x80000>;
179
180 hard_config {
181 read-only;
182 };
183
184 dtb_config {
185 read-only;
186 };
187
188 soft_config {
189 };
190 };
191
192 partition@100000 {
193 compatible = "mikrotik,minor";
194 label = "firmware";
195 reg = <0x100000 0xf00000>;
196 };
197 };
198 };
199 };
200
201 &blsp1_uart1 {
202 status = "okay";
203
204 pinctrl-0 = <&serial_pins>;
205 pinctrl-names = "default";
206 };
207
208 &cryptobam {
209 status = "okay";
210 };
211
212 &wifi1 {
213 status = "okay";
214
215 qcom,ath10k-calibration-variant = "MikroTik-SXTsq-5-ac";
216 };
217
218 &mdio {
219 status = "okay";
220 };
221
222 &gmac {
223 status = "okay";
224 };
225
226 &switch {
227 status = "okay";
228
229 /delete-property/ psgmii-ethphy;
230 };
231
232 &swport5 {
233 status = "okay";
234
235 label = "lan";
236 phy-mode = "rgmii";
237 };