ipq40xx: use existing labels for prng node
[openwrt/staging/blogic.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4019-a62.dts
1 // SPDX-License-Identifier: ISC
2 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
3 * Copyright (c) 2017-2018, Sven Eckelmann <sven.eckelmann@openmesh.com>
4 */
5
6 #include "qcom-ipq4019.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/soc/qcom,tcsr.h>
11
12 / {
13 model = "OpenMesh A62";
14 compatible = "openmesh,a62";
15
16 soc {
17 tcsr@194b000 {
18 /* select hostmode */
19 compatible = "qcom,tcsr";
20 reg = <0x194b000 0x100>;
21 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
22 status = "okay";
23 };
24
25 tcsr@1949000 {
26 compatible = "qcom,tcsr";
27 reg = <0x1949000 0x100>;
28 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
29 };
30
31 ess_tcsr@1953000 {
32 compatible = "qcom,tcsr";
33 reg = <0x1953000 0x1000>;
34 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
35 };
36
37 tcsr@1957000 {
38 compatible = "qcom,tcsr";
39 reg = <0x1957000 0x100>;
40 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
41 };
42
43 crypto@8e3a000 {
44 status = "okay";
45 };
46 };
47
48 keys {
49 compatible = "gpio-keys";
50
51 reset {
52 label = "reset";
53 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART >;
55 };
56 };
57
58 aliases {
59 led-boot = &led_status_green;
60 led-failsafe = &led_status_green;
61 led-running = &led_status_green;
62 led-upgrade = &led_status_green;
63 label-mac-device = &swport4;
64 };
65
66 leds {
67 compatible = "gpio-leds";
68
69 status_red {
70 function = LED_FUNCTION_STATUS;
71 color = <LED_COLOR_ID_RED>;
72 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
73 };
74
75 led_status_green: status_green {
76 function = LED_FUNCTION_STATUS;
77 color = <LED_COLOR_ID_GREEN>;
78 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
79 };
80
81 status_blue {
82 function = LED_FUNCTION_STATUS;
83 color = <LED_COLOR_ID_BLUE>;
84 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
85 };
86 };
87
88 watchdog {
89 compatible = "linux,wdt-gpio";
90 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
91 hw_algo = "toggle";
92 /* hw_margin_ms is actually 300s but driver limits it to 60s */
93 hw_margin_ms = <60000>;
94 always-running;
95 };
96 };
97
98 &watchdog {
99 status = "okay";
100 };
101
102 &prng {
103 status = "okay";
104 };
105
106 &tlmm {
107 serial_pins: serial_pinmux {
108 mux {
109 pins = "gpio16", "gpio17";
110 function = "blsp_uart0";
111 bias-disable;
112 };
113 };
114
115 spi_0_pins: spi_0_pinmux {
116 pin {
117 function = "blsp_spi0";
118 pins = "gpio13", "gpio14", "gpio15";
119 drive-strength = <12>;
120 bias-disable;
121 };
122 pin_cs {
123 function = "gpio";
124 pins = "gpio12";
125 drive-strength = <2>;
126 bias-disable;
127 output-high;
128 };
129 };
130
131 enable-usb-power {
132 gpio-hog;
133 gpios = <58 GPIO_ACTIVE_HIGH>;
134 output-low;
135 line-name = "enable USB2 power";
136 };
137 };
138
139 &blsp_dma {
140 status = "okay";
141 };
142
143 &blsp1_spi1 {
144 pinctrl-0 = <&spi_0_pins>;
145 pinctrl-names = "default";
146 status = "okay";
147 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
148
149 flash@0 {
150 #address-cells = <1>;
151 #size-cells = <1>;
152 compatible = "jedec,spi-nor";
153 reg = <0>;
154 spi-max-frequency = <24000000>;
155
156 /* partitions are passed via bootloader */
157 partitions {
158 partition-art {
159 label = "0:ART";
160
161 nvmem-layout {
162 compatible = "fixed-layout";
163 #address-cells = <1>;
164 #size-cells = <1>;
165
166 macaddr_gmac0: macaddr@0 {
167 reg = <0x0 0x6>;
168 };
169
170 macaddr_gmac1: macaddr@6 {
171 reg = <0x6 0x6>;
172 };
173
174 precal_art_1000: precal@1000 {
175 reg = <0x1000 0x2f20>;
176 };
177
178 precal_art_5000: precal@5000 {
179 reg = <0x5000 0x2f20>;
180 };
181
182 precal_art_9000: precal@9000 {
183 reg = <0x9000 0x2f20>;
184 };
185 };
186 };
187 };
188 };
189 };
190
191 &blsp1_uart1 {
192 pinctrl-0 = <&serial_pins>;
193 pinctrl-names = "default";
194 status = "okay";
195 };
196
197 &cryptobam {
198 status = "okay";
199 };
200
201 &usb2 {
202 status = "okay";
203 };
204
205 &usb2_hs_phy {
206 status = "okay";
207 };
208
209 &pcie0 {
210 status = "okay";
211 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
212 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
213
214 bridge@0,0 {
215 reg = <0x00000000 0 0 0 0>;
216 #address-cells = <3>;
217 #size-cells = <2>;
218 ranges;
219
220 wifi2: wifi@1,0 {
221 compatible = "qcom,ath10k";
222 status = "okay";
223 reg = <0x00010000 0 0 0 0>;
224 qcom,ath10k-calibration-variant = "OM-A62";
225 ieee80211-freq-limit = <5170000 5350000>;
226
227 nvmem-cell-names = "pre-calibration";
228 nvmem-cells = <&precal_art_9000>;
229 };
230 };
231 };
232
233 &mdio {
234 status = "okay";
235 };
236
237 &gmac {
238 status = "okay";
239 };
240
241 &switch {
242 status = "okay";
243 };
244
245 &swport4 {
246 status = "okay";
247 label = "ethernet1";
248
249 nvmem-cell-names = "mac-address";
250 nvmem-cells = <&macaddr_gmac0>;
251 };
252
253 &swport5 {
254 status = "okay";
255 label = "ethernet2";
256
257 nvmem-cell-names = "mac-address";
258 nvmem-cells = <&macaddr_gmac1>;
259 };
260
261 &wifi0 {
262 status = "okay";
263 qcom,ath10k-calibration-variant = "OM-A62";
264
265 nvmem-cell-names = "pre-calibration";
266 nvmem-cells = <&precal_art_1000>;
267 };
268
269 &wifi1 {
270 status = "okay";
271 qcom,ath10k-calibration-variant = "OM-A62";
272 ieee80211-freq-limit = <5470000 5875000>;
273
274 nvmem-cell-names = "pre-calibration";
275 nvmem-cells = <&precal_art_5000>;
276 };