tools/patchelf: update to 0.18.0
[openwrt/staging/dedeckeh.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-wr-1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "Pakedge WR-1";
11 compatible = "pakedge,wr-1";
12
13 aliases {
14 label-mac-device = &gmac;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23 pinctrl-0 = <&key_pins>;
24 pinctrl-names = "default";
25
26 reset {
27 label = "reset";
28 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35 pinctrl-0 = <&led_pins>;
36 pinctrl-names = "default";
37
38 led_power: power {
39 label = "blue:power";
40 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
41 color = <LED_COLOR_ID_BLUE>;
42 function = LED_FUNCTION_POWER;
43 };
44
45 wlan2g {
46 label = "blue:wlan2g";
47 gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
48 color = <LED_COLOR_ID_BLUE>;
49 function = LED_FUNCTION_WLAN;
50 linux,default-trigger = "phy0tpt";
51 };
52
53 wlan5g {
54 label = "blue:wlan5g";
55 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
56 color = <LED_COLOR_ID_BLUE>;
57 function = LED_FUNCTION_WLAN;
58 linux,default-trigger = "phy1tpt";
59 };
60 };
61
62 soc {
63 tcsr@1949000 {
64 compatible = "qcom,tcsr";
65 reg = <0x1949000 0x100>;
66 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
67 };
68
69 tcsr@194b000 {
70 compatible = "qcom,tcsr";
71 reg = <0x194b000 0x100>;
72 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
73 };
74
75 ess_tcsr@1953000 {
76 compatible = "qcom,tcsr";
77 reg = <0x1953000 0x1000>;
78 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
79 };
80
81 tcsr@1957000 {
82 compatible = "qcom,tcsr";
83 reg = <0x1957000 0x100>;
84 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
85 };
86 };
87 };
88
89 &blsp_dma {
90 status = "okay";
91 };
92
93 &blsp1_spi1 {
94 status = "okay";
95
96 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
97 pinctrl-0 = <&spi_0_pins>;
98 pinctrl-names = "default";
99
100 flash@0 {
101 compatible = "jedec,spi-nor";
102 reg = <0>;
103 spi-max-frequency = <24000000>;
104
105 partitions {
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
108 #size-cells = <1>;
109
110 partition@0 {
111 label = "0:SBL1";
112 reg = <0x0000000 0x0040000>;
113 read-only;
114 };
115
116 partition@40000 {
117 label = "0:MIBIB";
118 reg = <0x0040000 0x0020000>;
119 read-only;
120 };
121
122 partition@60000 {
123 label = "0:QSEE";
124 reg = <0x0060000 0x0060000>;
125 read-only;
126 };
127
128 partition@c0000 {
129 label = "0:CDT";
130 reg = <0x00c0000 0x0010000>;
131 read-only;
132 };
133
134 partition@d0000 {
135 label = "0:DDRPARAMS";
136 reg = <0x00d0000 0x0010000>;
137 read-only;
138 };
139
140 partition@e0000 {
141 label = "0:APPSBLENV";
142 reg = <0x00e0000 0x0010000>;
143 read-only;
144 };
145
146 partition@f0000 {
147 label = "0:APPSBL";
148 reg = <0x00f0000 0x0080000>;
149 read-only;
150 };
151
152 partition@170000 {
153 label = "0:ART";
154 reg = <0x0170000 0x0010000>;
155 read-only;
156 };
157
158 partition@180000 {
159 label = "firmware";
160 reg = <0x0180000 0x1e80000>;
161 };
162 };
163 };
164 };
165
166 &blsp1_uart1 {
167 status = "okay";
168
169 pinctrl-0 = <&serial_pins>;
170 pinctrl-names = "default";
171 };
172
173 &crypto {
174 status = "okay";
175 };
176
177 &cryptobam {
178 status = "okay";
179 };
180
181 &gmac {
182 status = "okay";
183 };
184
185 &mdio {
186 status = "okay";
187 };
188
189 &prng {
190 status = "okay";
191 };
192
193 &switch {
194 status = "okay";
195 };
196
197 &swport1 {
198 status = "okay";
199
200 label = "lan4";
201 };
202
203 &swport2 {
204 status = "okay";
205
206 label = "lan3";
207 };
208
209 &swport3 {
210 status = "okay";
211
212 label = "lan2";
213 };
214
215 &swport4 {
216 status = "okay";
217
218 label = "lan1";
219 };
220
221 &swport5 {
222 status = "okay";
223 };
224
225 &tlmm {
226 key_pins: key_pinmux {
227 mux {
228 function = "gpio";
229 pins = "gpio59";
230 bias-pull-up;
231 };
232 };
233
234 led_pins: led_pinmux {
235 mux {
236 function = "gpio";
237 pins = "gpio0", "gpio1", "gpio2";
238 bias-none;
239 drive-strength = <2>;
240 output-low;
241 };
242 };
243
244 serial_pins: serial_pinmux {
245 mux {
246 function = "blsp_uart0";
247 pins = "gpio60", "gpio61";
248 bias-disable;
249 };
250 };
251
252 spi_0_pins: spi_0_pinmux {
253 mux {
254 function = "blsp_spi0";
255 pins = "gpio55", "gpio56", "gpio57";
256 bias-disable;
257 drive-strength = <12>;
258 };
259
260 mux_cs {
261 function = "gpio";
262 pins = "gpio54";
263 bias-disable;
264 drive-strength = <2>;
265 output-high;
266 };
267 };
268 };
269
270 &usb2 {
271 status = "okay";
272 };
273
274 &usb2_hs_phy {
275 status = "okay";
276 };
277
278 &watchdog {
279 status = "okay";
280 };
281
282 &wifi0 {
283 status = "okay";
284
285 qcom,ath10k-calibration-variant = "Pakedge-WR-1";
286 };
287
288 &wifi1 {
289 status = "okay";
290
291 qcom,ath10k-calibration-variant = "Pakedge-WR-1";
292 };