tools/patchelf: update to 0.18.0
[openwrt/staging/dedeckeh.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4019-pa2200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2017-2020, Sven Eckelmann <sven@narfation.org>
3 * Copyright (c) 2018, Marek Lindner <marek.lindner@kaiwoo.ai>
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/soc/qcom,tcsr.h>
10
11 / {
12 model = "Plasma Cloud PA2200";
13 compatible = "plasmacloud,pa2200";
14
15 soc {
16 rng@22000 {
17 status = "okay";
18 };
19
20 tcsr@1949000 {
21 compatible = "qcom,tcsr";
22 reg = <0x1949000 0x100>;
23 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
24 };
25
26 ess_tcsr@1953000 {
27 compatible = "qcom,tcsr";
28 reg = <0x1953000 0x1000>;
29 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
30 };
31
32 tcsr@1957000 {
33 compatible = "qcom,tcsr";
34 reg = <0x1957000 0x100>;
35 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
36 };
37
38 crypto@8e3a000 {
39 status = "okay";
40 };
41
42 watchdog@b017000 {
43 status = "okay";
44 };
45 };
46
47 keys {
48 compatible = "gpio-keys";
49
50 reset {
51 label = "reset";
52 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART >;
54 };
55 };
56
57 aliases {
58 led-boot = &led_power_orange;
59 led-failsafe = &led_status_blue;
60 led-running = &led_power_orange;
61 led-upgrade = &led_status_blue;
62 label-mac-device = &swport4;
63 };
64
65 leds {
66 compatible = "gpio-leds";
67
68 led_power_orange: power_orange {
69 label = "orange:power";
70 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
71 };
72
73 2g_blue {
74 label = "blue:2g";
75 gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
76 linux,default-trigger = "phy1tpt";
77 };
78
79 2g_green {
80 label = "green:5g1";
81 gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
82 linux,default-trigger = "phy0tpt";
83 };
84
85 5g2_green {
86 label = "green:5g2";
87 gpios = <&tlmm 48 GPIO_ACTIVE_LOW>;
88 linux,default-trigger = "phy2tpt";
89 };
90
91 led_status_blue: status_blue {
92 label = "blue:status";
93 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
94 };
95 };
96 };
97
98 &tlmm {
99 serial_pins: serial_pinmux {
100 mux {
101 pins = "gpio16", "gpio17";
102 function = "blsp_uart0";
103 bias-disable;
104 };
105 };
106
107 spi_0_pins: spi_0_pinmux {
108 pin {
109 function = "blsp_spi0";
110 pins = "gpio13", "gpio14", "gpio15";
111 drive-strength = <12>;
112 bias-disable;
113 };
114 pin_cs {
115 function = "gpio";
116 pins = "gpio12";
117 drive-strength = <2>;
118 bias-disable;
119 output-high;
120 };
121 };
122 };
123
124 &blsp_dma {
125 status = "okay";
126 };
127
128 &blsp1_spi1 {
129 pinctrl-0 = <&spi_0_pins>;
130 pinctrl-names = "default";
131 status = "okay";
132 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
133
134 flash@0 {
135 #address-cells = <1>;
136 #size-cells = <1>;
137 compatible = "jedec,spi-nor";
138 reg = <0>;
139 spi-max-frequency = <24000000>;
140
141 /* partitions are passed via bootloader */
142 partitions {
143 partition-art {
144 compatible = "nvmem-cells";
145 #address-cells = <1>;
146 #size-cells = <1>;
147 label = "0:ART";
148
149 precal_art_1000: precal@1000 {
150 reg = <0x1000 0x2f20>;
151 };
152
153 precal_art_5000: precal@5000 {
154 reg = <0x5000 0x2f20>;
155 };
156
157 precal_art_9000: precal@9000 {
158 reg = <0x9000 0x2f20>;
159 };
160
161 macaddr_gmac0: macaddr@0 {
162 reg = <0x0 0x6>;
163 };
164
165 macaddr_gmac1: macaddr@6 {
166 reg = <0x6 0x6>;
167 };
168 };
169 };
170 };
171 };
172
173 &blsp1_uart1 {
174 pinctrl-0 = <&serial_pins>;
175 pinctrl-names = "default";
176 status = "okay";
177 };
178
179 &cryptobam {
180 status = "okay";
181 };
182
183 &pcie0 {
184 status = "okay";
185 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
186 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
187
188 bridge@0,0 {
189 reg = <0x00000000 0 0 0 0>;
190 #address-cells = <3>;
191 #size-cells = <2>;
192 ranges;
193
194 wifi2: wifi@1,0 {
195 compatible = "qcom,ath10k";
196 status = "okay";
197 reg = <0x00010000 0 0 0 0>;
198 qcom,ath10k-calibration-variant = "PlasmaCloud-PA2200";
199 ieee80211-freq-limit = <5170000 5350000>;
200
201 nvmem-cell-names = "pre-calibration";
202 nvmem-cells = <&precal_art_9000>;
203 };
204 };
205 };
206
207 &mdio {
208 status = "okay";
209 };
210
211 &gmac {
212 status = "okay";
213 };
214
215 &switch {
216 status = "okay";
217 };
218
219 &swport4 {
220 status = "okay";
221 label = "ethernet1";
222
223 nvmem-cell-names = "mac-address";
224 nvmem-cells = <&macaddr_gmac0>;
225 };
226
227 &swport5 {
228 status = "okay";
229 label = "ethernet2";
230
231 nvmem-cell-names = "mac-address";
232 nvmem-cells = <&macaddr_gmac1>;
233 };
234
235 &wifi0 {
236 status = "okay";
237 qcom,ath10k-calibration-variant = "PlasmaCloud-PA2200";
238
239 nvmem-cell-names = "pre-calibration";
240 nvmem-cells = <&precal_art_1000>;
241 };
242
243 &wifi1 {
244 status = "okay";
245 qcom,ath10k-calibration-variant = "PlasmaCloud-PA2200";
246 ieee80211-freq-limit = <5470000 5875000>;
247
248 nvmem-cell-names = "pre-calibration";
249 nvmem-cells = <&precal_art_5000>;
250 };