base-files: reduce IPv6 ULA prefix generation to a single call
[openwrt/staging/stintel.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / 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 rng@22000 {
32 status = "okay";
33 };
34
35 mdio@90000 {
36 status = "okay";
37 };
38
39 counter@4a1000 {
40 compatible = "qcom,qca-gcnt";
41 reg = <0x4a1000 0x4>;
42 };
43
44 tcsr@1949000 {
45 compatible = "qcom,tcsr";
46 reg = <0x1949000 0x100>;
47 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
48 };
49
50 ess_tcsr@1953000 {
51 compatible = "qcom,tcsr";
52 reg = <0x1953000 0x1000>;
53 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII4>;
54 };
55
56 tcsr@1957000 {
57 compatible = "qcom,tcsr";
58 reg = <0x1957000 0x100>;
59 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
60 };
61
62 crypto@8e3a000 {
63 status = "okay";
64 };
65
66 watchdog@b017000 {
67 status = "okay";
68 };
69 };
70
71 keys {
72 compatible = "gpio-keys";
73
74 reset {
75 label = "reset";
76 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RESTART>;
78 };
79 };
80
81 leds {
82 compatible = "gpio-leds";
83
84 power {
85 function = LED_FUNCTION_POWER;
86 color = <LED_COLOR_ID_BLUE>;
87 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
88 default-state = "keep";
89 panic-indicator;
90 };
91
92 led_user: user {
93 label = "green:user";
94 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
95 };
96
97 rssilow {
98 label = "green:rssilow";
99 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
100 };
101
102 rssimediumlow {
103 label = "green:rssimediumlow";
104 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
105 };
106
107 rssimedium {
108 label = "green:rssimedium";
109 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
110 };
111
112 rssimediumhigh {
113 label = "green:rssimediumhigh";
114 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
115 };
116
117 rssihigh {
118 label = "green:rssihigh";
119 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
120 };
121 };
122 };
123
124 &tlmm {
125 serial_pins: serial_pinmux {
126 mux {
127 pins = "gpio60", "gpio61";
128 function = "blsp_uart0";
129 bias-disable;
130 };
131 };
132
133 spi_0_pins: spi_0_pinmux {
134 pin {
135 function = "blsp_spi0";
136 pins = "gpio55", "gpio56", "gpio57";
137 drive-strength = <2>;
138 bias-disable;
139 };
140 pin_cs {
141 function = "gpio";
142 pins = "gpio54";
143 drive-strength = <2>;
144 bias-disable;
145 output-high;
146 };
147 };
148 };
149
150 &blsp_dma {
151 status = "okay";
152 };
153
154 &blsp1_spi1 {
155 status = "okay";
156
157 pinctrl-0 = <&spi_0_pins>;
158 pinctrl-names = "default";
159 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
160
161 flash@0 {
162 reg = <0>;
163 compatible = "jedec,spi-nor";
164 spi-max-frequency = <40000000>;
165
166 partitions {
167 compatible = "fixed-partitions";
168 #address-cells = <1>;
169 #size-cells = <1>;
170
171 partition@0 {
172 label = "Qualcomm";
173 reg = <0x0 0x80000>;
174 read-only;
175 };
176
177 partition@80000 {
178 compatible = "mikrotik,routerboot-partitions";
179 #address-cells = <1>;
180 #size-cells = <1>;
181 label = "RouterBoot";
182 reg = <0x80000 0x80000>;
183
184 hard_config {
185 read-only;
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 &wifi1 {
217 status = "okay";
218
219 qcom,ath10k-calibration-variant = "MikroTik-SXTsq-5-ac";
220 };
221
222 &mdio {
223 status = "okay";
224 };
225
226 &gmac {
227 status = "okay";
228 };
229
230 &switch {
231 status = "okay";
232
233 /delete-property/ psgmii-ethphy;
234 };
235
236 &swport5 {
237 status = "okay";
238
239 label = "lan";
240 phy-mode = "rgmii";
241 };