OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 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/input/linux-event-codes.h> |
||
7 | #include <dt-bindings/soc/qcom,tcsr.h> |
||
8 | |||
9 | / { |
||
10 | model = "ZyXEL NBG6617"; |
||
11 | compatible = "zyxel,nbg6617", "qcom,ipq4019"; |
||
12 | |||
13 | chosen { |
||
14 | /* |
||
15 | * the vendor u-boot adds root and mtdparts cmdline parameters |
||
16 | * which we don't want... but we have to overwrite them or else |
||
17 | * the kernel will take them at face value. |
||
18 | */ |
||
19 | bootargs-append = " mtdparts= root=31:13"; |
||
20 | }; |
||
21 | |||
22 | aliases { |
||
23 | led-boot = &power; |
||
24 | led-failsafe = &power; |
||
25 | led-running = &power; |
||
26 | led-upgrade = &power; |
||
27 | }; |
||
28 | |||
29 | soc { |
||
30 | mdio@90000 { |
||
31 | status = "okay"; |
||
32 | }; |
||
33 | |||
34 | ess-psgmii@98000 { |
||
35 | status = "okay"; |
||
36 | }; |
||
37 | |||
38 | tcsr@1949000 { |
||
39 | compatible = "qcom,tcsr"; |
||
40 | reg = <0x1949000 0x100>; |
||
41 | qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>; |
||
42 | }; |
||
43 | |||
44 | tcsr@194b000 { |
||
45 | compatible = "qcom,tcsr"; |
||
46 | reg = <0x194b000 0x100>; |
||
47 | qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>; |
||
48 | }; |
||
49 | |||
50 | ess_tcsr@1953000 { |
||
51 | compatible = "qcom,tcsr"; |
||
52 | reg = <0x1953000 0x1000>; |
||
53 | qcom,ess-interface-select = <TCSR_ESS_PSGMII>; |
||
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 | usb2@60f8800 { |
||
63 | status = "okay"; |
||
64 | |||
65 | dwc3@6000000 { |
||
66 | #address-cells = <1>; |
||
67 | #size-cells = <0>; |
||
68 | |||
69 | usb2_port1: port@1 { |
||
70 | reg = <1>; |
||
71 | #trigger-source-cells = <0>; |
||
72 | }; |
||
73 | }; |
||
74 | }; |
||
75 | |||
76 | usb3@8af8800 { |
||
77 | status = "okay"; |
||
78 | |||
79 | dwc3@8a00000 { |
||
80 | #address-cells = <1>; |
||
81 | #size-cells = <0>; |
||
82 | |||
83 | usb3_port1: port@1 { |
||
84 | reg = <1>; |
||
85 | #trigger-source-cells = <0>; |
||
86 | }; |
||
87 | |||
88 | usb3_port2: port@2 { |
||
89 | reg = <2>; |
||
90 | #trigger-source-cells = <0>; |
||
91 | }; |
||
92 | }; |
||
93 | }; |
||
94 | |||
95 | crypto@8e3a000 { |
||
96 | status = "okay"; |
||
97 | }; |
||
98 | |||
99 | watchdog@b017000 { |
||
100 | status = "okay"; |
||
101 | }; |
||
102 | |||
103 | ess-switch@c000000 { |
||
104 | status = "okay"; |
||
105 | }; |
||
106 | |||
107 | edma@c080000 { |
||
108 | status = "okay"; |
||
109 | }; |
||
110 | }; |
||
111 | |||
112 | keys { |
||
113 | compatible = "gpio-keys"; |
||
114 | |||
115 | wlan { |
||
116 | label = "wlan"; |
||
117 | gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>; |
||
118 | linux,code = <KEY_RFKILL>; |
||
119 | linux,input-type = <EV_SW>; |
||
120 | }; |
||
121 | |||
122 | wps { |
||
123 | label = "wps"; |
||
124 | gpios = <&tlmm 63 GPIO_ACTIVE_LOW>; |
||
125 | linux,code = <KEY_WPS_BUTTON>; |
||
126 | }; |
||
127 | |||
128 | reset { |
||
129 | label = "reset"; |
||
130 | gpios = <&tlmm 4 GPIO_ACTIVE_LOW>; |
||
131 | linux,code = <KEY_RESTART>; |
||
132 | }; |
||
133 | }; |
||
134 | |||
135 | leds { |
||
136 | compatible = "gpio-leds"; |
||
137 | pinctrl-0 = <&led_pins>; |
||
138 | pinctrl-names = "default"; |
||
139 | |||
140 | power: power { |
||
141 | label = "nbg6617:green:power"; |
||
142 | gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>; |
||
143 | }; |
||
144 | |||
145 | usb { |
||
146 | label = "nbg6617:green:usb"; |
||
147 | gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; |
||
148 | trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>; |
||
149 | linux,default-trigger = "usbport"; |
||
150 | }; |
||
151 | |||
152 | wlan2G { |
||
153 | label = "nbg6617:green:wlan2G"; |
||
154 | gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>; |
||
155 | }; |
||
156 | |||
157 | wlan5G { |
||
158 | label = "nbg6617:green:wlan5G"; |
||
159 | gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>; |
||
160 | }; |
||
161 | |||
162 | wps { |
||
163 | label = "nbg6617:green:wps"; |
||
164 | gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>; |
||
165 | }; |
||
166 | }; |
||
167 | }; |
||
168 | |||
169 | &tlmm { |
||
170 | serial_pins: serial_pinmux { |
||
171 | mux { |
||
172 | pins = "gpio60", "gpio61"; |
||
173 | function = "blsp_uart0"; |
||
174 | bias-disable; |
||
175 | }; |
||
176 | }; |
||
177 | spi_0_pins: spi_0_pinmux { |
||
178 | mux { |
||
179 | function = "blsp_spi0"; |
||
180 | pins = "gpio55", "gpio56", "gpio57"; |
||
181 | drive-strength = <12>; |
||
182 | bias-disable; |
||
183 | }; |
||
184 | |||
185 | mux_cs { |
||
186 | function = "gpio"; |
||
187 | pins = "gpio54"; |
||
188 | drive-strength = <2>; |
||
189 | bias-disable; |
||
190 | output-low; |
||
191 | }; |
||
192 | }; |
||
193 | led_pins: led_pinmux { |
||
194 | mux { |
||
195 | pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58"; |
||
196 | drive-strength = <0x8>; |
||
197 | bias-disable; |
||
198 | output-low; |
||
199 | }; |
||
200 | }; |
||
201 | }; |
||
202 | |||
203 | &blsp1_spi1 { /* BLSP1 QUP1 */ |
||
204 | pinctrl-0 = <&spi_0_pins>; |
||
205 | pinctrl-names = "default"; |
||
206 | status = "okay"; |
||
207 | cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>; |
||
208 | |||
209 | mx25l25635f@0 { |
||
210 | compatible = "mx25l25635f", "jedec,spi-nor"; |
||
211 | #address-cells = <1>; |
||
212 | #size-cells = <0>; |
||
213 | reg = <0>; |
||
214 | spi-max-frequency = <24000000>; |
||
215 | status = "okay"; |
||
216 | m25p,fast-read; |
||
217 | |||
218 | partitions { |
||
219 | compatible = "fixed-partitions"; |
||
220 | #address-cells = <1>; |
||
221 | #size-cells = <1>; |
||
222 | |||
223 | partition0@0 { |
||
224 | label = "SBL1"; |
||
225 | reg = <0x00000000 0x00040000>; |
||
226 | read-only; |
||
227 | }; |
||
228 | partition1@40000 { |
||
229 | label = "MIBIB"; |
||
230 | reg = <0x00040000 0x00020000>; |
||
231 | read-only; |
||
232 | }; |
||
233 | partition2@60000 { |
||
234 | label = "QSEE"; |
||
235 | reg = <0x00060000 0x00060000>; |
||
236 | read-only; |
||
237 | }; |
||
238 | partition3@c0000 { |
||
239 | label = "CDT"; |
||
240 | reg = <0x000c0000 0x00010000>; |
||
241 | read-only; |
||
242 | }; |
||
243 | partition4@d0000 { |
||
244 | label = "DDRPARAMS"; |
||
245 | reg = <0x000d0000 0x00010000>; |
||
246 | read-only; |
||
247 | }; |
||
248 | partition5@e0000 { |
||
249 | label = "APPSBL"; /* u-boot */ |
||
250 | reg = <0x000e0000 0x00080000>; |
||
251 | /* U-Boot Standalone App "zloader" is located at 0x64000 */ |
||
252 | read-only; |
||
253 | }; |
||
254 | partition6@160000 { |
||
255 | label = "APPSBLENV"; /* u-boot env */ |
||
256 | reg = <0x00160000 0x00010000>; |
||
257 | }; |
||
258 | partition7@170000 { |
||
259 | /* make a backup of this partition! */ |
||
260 | label = "ART"; |
||
261 | reg = <0x00170000 0x00010000>; |
||
262 | read-only; |
||
263 | }; |
||
264 | partition8@180000 { |
||
265 | label = "kernel"; |
||
266 | reg = <0x00180000 0x00400000>; |
||
267 | }; |
||
268 | partition9@580000 { |
||
269 | label = "dualflag"; |
||
270 | reg = <0x00580000 0x00010000>; |
||
271 | read-only; |
||
272 | }; |
||
273 | partition10@590000 { |
||
274 | label = "header"; |
||
275 | reg = <0x00590000 0x00010000>; |
||
276 | }; |
||
277 | partition11@5a0000 { |
||
278 | label = "romd"; |
||
279 | reg = <0x005a0000 0x00100000>; |
||
280 | read-only; |
||
281 | }; |
||
282 | partition12@6a0000 { |
||
283 | label = "not_root_data"; |
||
284 | /* |
||
285 | * for some strange reason, someone at ZyXEL |
||
286 | * had the "great" idea to put the rootfs_data |
||
287 | * in front of rootfs... Don't do that! |
||
288 | * As a result this one, full MebiByte remains |
||
289 | * unused. |
||
290 | */ |
||
291 | reg = <0x006a0000 0x00100000>; |
||
292 | }; |
||
293 | partition13@7a0000 { |
||
294 | label = "rootfs"; |
||
295 | reg = <0x007a0000 0x01860000>; |
||
296 | }; |
||
297 | }; |
||
298 | }; |
||
299 | }; |
||
300 | |||
301 | &blsp1_uart1 { |
||
302 | pinctrl-0 = <&serial_pins>; |
||
303 | pinctrl-names = "default"; |
||
304 | status = "okay"; |
||
305 | }; |
||
306 | |||
307 | &cryptobam { |
||
308 | status = "okay"; |
||
309 | }; |
||
310 | |||
311 | &blsp_dma { |
||
312 | status = "okay"; |
||
313 | }; |
||
314 | |||
315 | &wifi0 { |
||
316 | status = "okay"; |
||
317 | qcom,ath10k-calibration-variant = "ZyXEL-NBG6617"; |
||
318 | }; |
||
319 | |||
320 | &wifi1 { |
||
321 | status = "okay"; |
||
322 | qcom,ath10k-calibration-variant = "ZyXEL-NBG6617"; |
||
323 | }; |
||
324 | |||
325 | &usb3_ss_phy { |
||
326 | status = "okay"; |
||
327 | }; |
||
328 | |||
329 | &usb3_hs_phy { |
||
330 | status = "okay"; |
||
331 | }; |
||
332 | |||
333 | &usb2_hs_phy { |
||
334 | status = "okay"; |
||
335 | }; |