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