OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
3 | office | 1 | /* Copyright (c) 2015, The Linux Foundation. All rights reserved. |
2 | * |
||
3 | * Permission to use, copy, modify, and/or distribute this software for any |
||
4 | * purpose with or without fee is hereby granted, provided that the above |
||
5 | * copyright notice and this permission notice appear in all copies. |
||
6 | * |
||
7 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
||
8 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
||
9 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
||
10 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
||
11 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
||
12 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
||
13 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
||
14 | * |
||
15 | */ |
||
1 | office | 16 | |
17 | #include "qcom-ipq4019.dtsi" |
||
3 | office | 18 | #include "qcom-ipq4019-bus.dtsi" |
1 | office | 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 = "AVM FRITZ!Box 4040"; |
||
25 | compatible = "avm,fritzbox-4040", "qcom,ipq4019"; |
||
26 | |||
27 | aliases { |
||
28 | led-boot = &power; |
||
29 | led-failsafe = &flash; |
||
30 | led-running = &power; |
||
31 | led-upgrade = &flash; |
||
32 | }; |
||
33 | |||
34 | soc { |
||
35 | mdio@90000 { |
||
36 | status = "okay"; |
||
37 | }; |
||
38 | |||
39 | ess-psgmii@98000 { |
||
40 | status = "okay"; |
||
41 | }; |
||
42 | |||
43 | tcsr@1949000 { |
||
44 | compatible = "qcom,tcsr"; |
||
45 | reg = <0x1949000 0x100>; |
||
46 | qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>; |
||
47 | }; |
||
48 | |||
49 | tcsr@194b000 { |
||
50 | compatible = "qcom,tcsr"; |
||
51 | reg = <0x194b000 0x100>; |
||
52 | qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>; |
||
53 | }; |
||
54 | |||
55 | ess_tcsr@1953000 { |
||
56 | compatible = "qcom,tcsr"; |
||
57 | reg = <0x1953000 0x1000>; |
||
58 | qcom,ess-interface-select = <TCSR_ESS_PSGMII>; |
||
59 | }; |
||
60 | |||
61 | tcsr@1957000 { |
||
62 | compatible = "qcom,tcsr"; |
||
63 | reg = <0x1957000 0x100>; |
||
64 | qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>; |
||
65 | }; |
||
66 | |||
67 | usb2@60f8800 { |
||
68 | status = "okay"; |
||
69 | }; |
||
70 | |||
3 | office | 71 | serial@78af000 { |
72 | pinctrl-0 = <&serial_pins>; |
||
73 | pinctrl-names = "default"; |
||
74 | status = "okay"; |
||
75 | }; |
||
76 | |||
1 | office | 77 | usb3@8af8800 { |
78 | status = "okay"; |
||
79 | }; |
||
80 | |||
81 | crypto@8e3a000 { |
||
82 | status = "okay"; |
||
83 | }; |
||
84 | |||
3 | office | 85 | wifi@a000000 { |
86 | status = "okay"; |
||
87 | qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040"; |
||
88 | }; |
||
89 | |||
90 | wifi@a800000 { |
||
91 | status = "okay"; |
||
92 | qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040"; |
||
93 | }; |
||
94 | |||
1 | office | 95 | watchdog@b017000 { |
96 | status = "okay"; |
||
97 | }; |
||
98 | |||
99 | qca8075: ess-switch@c000000 { |
||
100 | status = "okay"; |
||
101 | |||
102 | #gpio-cells = <2>; |
||
103 | gpio-controller; |
||
104 | |||
105 | enable-usb-power { |
||
106 | gpio-hog; |
||
107 | line-name = "enable USB3 power"; |
||
108 | gpios = <7 GPIO_ACTIVE_HIGH>; |
||
109 | output-high; |
||
110 | }; |
||
111 | }; |
||
112 | |||
113 | edma@c080000 { |
||
114 | status = "okay"; |
||
115 | }; |
||
116 | }; |
||
117 | |||
3 | office | 118 | gpio-keys { |
1 | office | 119 | compatible = "gpio-keys"; |
120 | |||
121 | wlan { |
||
122 | label = "wlan"; |
||
123 | gpios = <&tlmm 58 GPIO_ACTIVE_LOW>; |
||
124 | linux,code = <KEY_RFKILL>; |
||
125 | }; |
||
126 | |||
127 | wps { |
||
128 | label = "wps"; |
||
129 | gpios = <&tlmm 63 GPIO_ACTIVE_LOW>; |
||
130 | linux,code = <KEY_WPS_BUTTON>; |
||
131 | }; |
||
132 | }; |
||
133 | |||
3 | office | 134 | gpio-leds { |
1 | office | 135 | compatible = "gpio-leds"; |
136 | |||
137 | wlan { |
||
138 | label = "fritz4040:green:wlan"; |
||
139 | gpios = <&qca8075 1 GPIO_ACTIVE_HIGH>; |
||
140 | }; |
||
141 | |||
142 | panic: info_red { |
||
143 | label = "fritz4040:red:info"; |
||
144 | gpios = <&qca8075 3 GPIO_ACTIVE_HIGH>; |
||
145 | panic-indicator; |
||
146 | }; |
||
147 | |||
148 | wan { |
||
149 | label = "fritz4040:green:wan"; |
||
150 | gpios = <&qca8075 5 GPIO_ACTIVE_HIGH>; |
||
151 | }; |
||
152 | |||
153 | power: power { |
||
154 | label = "fritz4040:green:power"; |
||
155 | gpios = <&qca8075 11 GPIO_ACTIVE_HIGH>; |
||
156 | }; |
||
157 | |||
158 | lan { |
||
159 | label = "fritz4040:green:lan"; |
||
160 | gpios = <&qca8075 13 GPIO_ACTIVE_HIGH>; |
||
161 | }; |
||
162 | |||
163 | flash: info_amber { |
||
164 | label = "fritz4040:amber:info"; |
||
165 | gpios = <&qca8075 15 GPIO_ACTIVE_HIGH>; |
||
166 | }; |
||
167 | }; |
||
168 | }; |
||
169 | |||
170 | &tlmm { |
||
171 | serial_pins: serial_pinmux { |
||
172 | mux { |
||
173 | pins = "gpio60", "gpio61"; |
||
174 | function = "blsp_uart0"; |
||
175 | bias-disable; |
||
176 | }; |
||
177 | }; |
||
178 | |||
179 | spi_0_pins: spi_0_pinmux { |
||
180 | mux { |
||
181 | function = "blsp_spi0"; |
||
182 | pins = "gpio55", "gpio56", "gpio57"; |
||
183 | drive-strength = <12>; |
||
184 | bias-disable; |
||
185 | }; |
||
186 | |||
187 | mux_cs { |
||
188 | function = "gpio"; |
||
189 | pins = "gpio54"; |
||
190 | drive-strength = <2>; |
||
191 | bias-disable; |
||
192 | output-high; |
||
193 | }; |
||
194 | }; |
||
195 | }; |
||
196 | |||
197 | &cryptobam { |
||
198 | status = "okay"; |
||
199 | }; |
||
200 | |||
201 | &blsp_dma { |
||
202 | status = "okay"; |
||
203 | }; |
||
204 | |||
3 | office | 205 | &spi_0 { /* BLSP1 QUP1 */ |
1 | office | 206 | pinctrl-0 = <&spi_0_pins>; |
207 | pinctrl-names = "default"; |
||
208 | status = "okay"; |
||
209 | cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>; |
||
210 | |||
3 | office | 211 | mx25l25635f@0 { |
1 | office | 212 | compatible = "jedec,spi-nor"; |
213 | #address-cells = <1>; |
||
214 | #size-cells = <0>; |
||
215 | reg = <0>; |
||
216 | spi-max-frequency = <24000000>; |
||
217 | status = "okay"; |
||
218 | m25p,fast-read; |
||
219 | |||
220 | partitions { |
||
221 | compatible = "fixed-partitions"; |
||
222 | #address-cells = <1>; |
||
223 | #size-cells = <1>; |
||
224 | |||
225 | partition0@0 { |
||
226 | label = "SBL1"; |
||
227 | reg = <0x00000000 0x00040000>; |
||
228 | read-only; |
||
229 | }; |
||
230 | partition1@40000 { |
||
231 | label = "MIBIB"; |
||
232 | reg = <0x00040000 0x00020000>; |
||
233 | read-only; |
||
234 | }; |
||
235 | partition2@60000 { |
||
236 | label = "QSEE"; |
||
237 | reg = <0x00060000 0x00060000>; |
||
238 | read-only; |
||
239 | }; |
||
240 | partition3@c0000 { |
||
241 | label = "CDT"; |
||
242 | reg = <0x000c0000 0x00010000>; |
||
243 | read-only; |
||
244 | }; |
||
245 | partition4@d0000 { |
||
246 | label = "DDRPARAMS"; |
||
247 | reg = <0x000d0000 0x00010000>; |
||
248 | read-only; |
||
249 | }; |
||
250 | partition5@e0000 { |
||
251 | label = "APPSBLENV"; /* uboot env - empty */ |
||
252 | reg = <0x000e0000 0x00010000>; |
||
253 | read-only; |
||
254 | }; |
||
255 | partition6@f0000 { |
||
256 | label = "urlader"; /* APPSBL */ |
||
257 | reg = <0x000f0000 0x0002dc000>; |
||
258 | read-only; |
||
259 | }; |
||
260 | partition7@11dc00 { |
||
261 | /* make a backup of this partition! */ |
||
262 | label = "urlader_config"; |
||
263 | reg = <0x0011dc00 0x00002400>; |
||
264 | read-only; |
||
265 | }; |
||
266 | partition8@120000 { |
||
267 | label = "tffs1"; |
||
268 | reg = <0x00120000 0x00080000>; |
||
269 | read-only; |
||
270 | }; |
||
271 | partition9@1a0000 { |
||
272 | label = "tffs2"; |
||
273 | reg = <0x001a0000 0x00080000>; |
||
274 | read-only; |
||
275 | }; |
||
276 | partition10@220000 { |
||
277 | label = "uboot"; |
||
278 | reg = <0x00220000 0x00080000>; |
||
279 | read-only; |
||
280 | }; |
||
281 | partition11@2A0000 { |
||
282 | label = "firmware"; |
||
283 | reg = <0x002a0000 0x01c60000>; |
||
284 | }; |
||
285 | partition12@1f00000 { |
||
286 | label = "jffs2"; |
||
287 | reg = <0x01f00000 0x00100000>; |
||
288 | }; |
||
289 | }; |
||
290 | }; |
||
291 | }; |
||
292 | |||
293 | &usb3_ss_phy { |
||
294 | status = "okay"; |
||
295 | }; |
||
296 | |||
297 | &usb3_hs_phy { |
||
298 | status = "okay"; |
||
299 | }; |
||
300 | |||
301 | &usb2_hs_phy { |
||
302 | status = "okay"; |
||
303 | }; |