OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* Copyright (c) 2015, The Linux Foundation. All rights reserved. |
2 | * Copyright (c) 2018, David Bauer <mail@david-bauer.net> |
||
3 | * |
||
4 | * Permission to use, copy, modify, and/or distribute this software for any |
||
5 | * purpose with or without fee is hereby granted, provided that the above |
||
6 | * copyright notice and this permission notice appear in all copies. |
||
7 | * |
||
8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
||
9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
||
10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
||
11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
||
12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
||
13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
||
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
||
15 | * |
||
16 | */ |
||
17 | |||
18 | #include "qcom-ipq4019.dtsi" |
||
19 | #include <dt-bindings/gpio/gpio.h> |
||
20 | #include <dt-bindings/input/input.h> |
||
21 | #include <dt-bindings/soc/qcom,tcsr.h> |
||
22 | |||
23 | / { |
||
24 | model = "ZyXEL WRE6606"; |
||
25 | compatible = "zyxel,wre6606"; |
||
26 | |||
27 | aliases { |
||
28 | led-boot = &power; |
||
29 | led-failsafe = &power; |
||
30 | led-running = &power; |
||
31 | led-upgrade = &power; |
||
32 | }; |
||
33 | |||
34 | chosen { |
||
35 | bootargs-append = " mtdparts="; |
||
36 | }; |
||
37 | |||
38 | soc { |
||
39 | rng@22000 { |
||
40 | status = "okay"; |
||
41 | }; |
||
42 | |||
43 | mdio@90000 { |
||
44 | status = "okay"; |
||
45 | }; |
||
46 | |||
47 | ess-psgmii@98000 { |
||
48 | status = "okay"; |
||
49 | }; |
||
50 | |||
51 | tcsr@1949000 { |
||
52 | compatible = "qcom,tcsr"; |
||
53 | reg = <0x1949000 0x100>; |
||
54 | qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>; |
||
55 | }; |
||
56 | |||
57 | ess_tcsr@1953000 { |
||
58 | compatible = "qcom,tcsr"; |
||
59 | reg = <0x1953000 0x1000>; |
||
60 | qcom,ess-interface-select = <TCSR_ESS_PSGMII>; |
||
61 | }; |
||
62 | |||
63 | tcsr@1957000 { |
||
64 | compatible = "qcom,tcsr"; |
||
65 | reg = <0x1957000 0x100>; |
||
66 | qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>; |
||
67 | }; |
||
68 | |||
69 | crypto@8e3a000 { |
||
70 | status = "okay"; |
||
71 | }; |
||
72 | |||
73 | watchdog@b017000 { |
||
74 | status = "okay"; |
||
75 | }; |
||
76 | |||
77 | ess-switch@c000000 { |
||
78 | status = "okay"; |
||
79 | }; |
||
80 | |||
81 | edma@c080000 { |
||
82 | status = "okay"; |
||
83 | qcom,num_gmac = <1>; |
||
84 | }; |
||
85 | }; |
||
86 | |||
87 | leds { |
||
88 | compatible = "gpio-leds"; |
||
89 | |||
90 | wps { |
||
91 | label = "wre6606:green:wps"; |
||
92 | gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>; |
||
93 | }; |
||
94 | |||
95 | wlan5g_green { |
||
96 | label = "wre6606:green:wlan5g"; |
||
97 | gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>; |
||
98 | }; |
||
99 | |||
100 | power: power { |
||
101 | label = "wre6606:green:power"; |
||
102 | gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>; |
||
103 | }; |
||
104 | |||
105 | wlan5g_red { |
||
106 | label = "wre6606:red:wlan5g"; |
||
107 | gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>; |
||
108 | }; |
||
109 | |||
110 | wlan2g_red { |
||
111 | label = "wre6606:red:wlan2g"; |
||
112 | gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>; |
||
113 | }; |
||
114 | |||
115 | wlan2g_green { |
||
116 | label = "wre6606:green:wlan2g"; |
||
117 | gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>; |
||
118 | }; |
||
119 | }; |
||
120 | |||
121 | keys { |
||
122 | compatible = "gpio-keys"; |
||
123 | |||
124 | wps { |
||
125 | label = "wps"; |
||
126 | gpios = <&tlmm 63 GPIO_ACTIVE_LOW>; |
||
127 | linux,code = <KEY_WPS_BUTTON>; |
||
128 | }; |
||
129 | }; |
||
130 | }; |
||
131 | |||
132 | &tlmm { |
||
133 | serial_pins: serial_pinmux { |
||
134 | mux { |
||
135 | pins = "gpio60", "gpio61"; |
||
136 | function = "blsp_uart0"; |
||
137 | bias-disable; |
||
138 | }; |
||
139 | }; |
||
140 | |||
141 | spi_0_pins: spi_0_pinmux { |
||
142 | pin { |
||
143 | function = "blsp_spi0"; |
||
144 | pins = "gpio55", "gpio56", "gpio57"; |
||
145 | drive-strength = <12>; |
||
146 | bias-disable; |
||
147 | }; |
||
148 | pin_cs { |
||
149 | function = "gpio"; |
||
150 | pins = "gpio54"; |
||
151 | drive-strength = <2>; |
||
152 | bias-disable; |
||
153 | output-high; |
||
154 | }; |
||
155 | }; |
||
156 | }; |
||
157 | |||
158 | &blsp_dma { |
||
159 | status = "okay"; |
||
160 | }; |
||
161 | |||
162 | &blsp1_spi1 { |
||
163 | pinctrl-0 = <&spi_0_pins>; |
||
164 | pinctrl-names = "default"; |
||
165 | status = "okay"; |
||
166 | cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>; |
||
167 | |||
168 | mx25l12805d@0 { |
||
169 | compatible = "jedec,spi-nor"; |
||
170 | reg = <0>; |
||
171 | spi-max-frequency = <24000000>; |
||
172 | |||
173 | partitions { |
||
174 | compatible = "fixed-partitions"; |
||
175 | #address-cells = <1>; |
||
176 | #size-cells = <1>; |
||
177 | |||
178 | partition0@0 { |
||
179 | label = "SBL1"; |
||
180 | reg = <0x00000000 0x00040000>; |
||
181 | read-only; |
||
182 | }; |
||
183 | |||
184 | partition1@40000 { |
||
185 | label = "MIBIB"; |
||
186 | reg = <0x00040000 0x00020000>; |
||
187 | read-only; |
||
188 | }; |
||
189 | |||
190 | partition2@60000 { |
||
191 | label = "QSEE"; |
||
192 | reg = <0x00060000 0x00060000>; |
||
193 | read-only; |
||
194 | }; |
||
195 | |||
196 | partition3@c0000 { |
||
197 | label = "CDT"; |
||
198 | reg = <0x000c0000 0x00010000>; |
||
199 | read-only; |
||
200 | }; |
||
201 | |||
202 | partition4@d0000 { |
||
203 | label = "DDRPARAMS"; |
||
204 | reg = <0x000d0000 0x00010000>; |
||
205 | read-only; |
||
206 | }; |
||
207 | |||
208 | partition5@E0000 { |
||
209 | label = "APPSBLENV"; |
||
210 | reg = <0x000e0000 0x00010000>; |
||
211 | read-only; |
||
212 | }; |
||
213 | |||
214 | partition6@F0000 { |
||
215 | label = "APPSBL"; |
||
216 | reg = <0x000f0000 0x00080000>; |
||
217 | read-only; |
||
218 | }; |
||
219 | |||
220 | partition7@170000 { |
||
221 | label = "ART"; |
||
222 | reg = <0x00170000 0x00010000>; |
||
223 | read-only; |
||
224 | }; |
||
225 | |||
226 | partition8@180000 { |
||
227 | compatible = "denx,fit"; |
||
228 | label = "firmware"; |
||
229 | reg = <0x00180000 0x00ce0000>; |
||
230 | }; |
||
231 | |||
232 | partition9@e60000 { |
||
233 | label = "manufacture"; |
||
234 | reg = <0x00e60000 0x00050000>; |
||
235 | read-only; |
||
236 | }; |
||
237 | |||
238 | partition10@eb0000 { |
||
239 | label = "storage"; |
||
240 | reg = <0x00eb0000 0x00150000>; |
||
241 | read-only; |
||
242 | }; |
||
243 | }; |
||
244 | }; |
||
245 | }; |
||
246 | |||
247 | &blsp1_uart1 { |
||
248 | pinctrl-0 = <&serial_pins>; |
||
249 | pinctrl-names = "default"; |
||
250 | status = "okay"; |
||
251 | }; |
||
252 | |||
253 | &cryptobam { |
||
254 | status = "okay"; |
||
255 | }; |
||
256 | |||
257 | &wifi0 { |
||
258 | status = "okay"; |
||
259 | qcom,ath10k-calibration-variant = "ZyXEL-WRE6606"; |
||
260 | }; |
||
261 | |||
262 | &wifi1 { |
||
263 | status = "okay"; |
||
264 | qcom,ath10k-calibration-variant = "ZyXEL-WRE6606"; |
||
265 | }; |