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", "qcom,ipq4019"; |
||
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 | mdio@90000 { |
||
40 | status = "okay"; |
||
41 | }; |
||
42 | |||
43 | ess-psgmii@98000 { |
||
44 | status = "okay"; |
||
45 | }; |
||
46 | |||
47 | tcsr@1949000 { |
||
48 | compatible = "qcom,tcsr"; |
||
49 | reg = <0x1949000 0x100>; |
||
50 | qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>; |
||
51 | }; |
||
52 | |||
53 | ess_tcsr@1953000 { |
||
54 | compatible = "qcom,tcsr"; |
||
55 | reg = <0x1953000 0x1000>; |
||
56 | qcom,ess-interface-select = <TCSR_ESS_PSGMII>; |
||
57 | }; |
||
58 | |||
59 | tcsr@1957000 { |
||
60 | compatible = "qcom,tcsr"; |
||
61 | reg = <0x1957000 0x100>; |
||
62 | qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>; |
||
63 | }; |
||
64 | |||
65 | crypto@8e3a000 { |
||
66 | status = "okay"; |
||
67 | }; |
||
68 | |||
69 | watchdog@b017000 { |
||
70 | status = "okay"; |
||
71 | }; |
||
72 | |||
73 | ess-switch@c000000 { |
||
74 | status = "okay"; |
||
75 | }; |
||
76 | |||
77 | edma@c080000 { |
||
78 | status = "okay"; |
||
79 | qcom,num_gmac = <1>; |
||
80 | }; |
||
81 | }; |
||
82 | |||
83 | leds { |
||
84 | compatible = "gpio-leds"; |
||
85 | |||
86 | wps { |
||
87 | label = "wre6606:green:wps"; |
||
88 | gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>; |
||
89 | }; |
||
90 | |||
91 | wlan5g_green { |
||
92 | label = "wre6606:green:wlan5g"; |
||
93 | gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>; |
||
94 | }; |
||
95 | |||
96 | power: power { |
||
97 | label = "wre6606:green:power"; |
||
98 | gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>; |
||
99 | }; |
||
100 | |||
101 | wlan5g_red { |
||
102 | label = "wre6606:red:wlan5g"; |
||
103 | gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>; |
||
104 | }; |
||
105 | |||
106 | wlan2g_red { |
||
107 | label = "wre6606:red:wlan2g"; |
||
108 | gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>; |
||
109 | }; |
||
110 | |||
111 | wlan2g_green { |
||
112 | label = "wre6606:green:wlan2g"; |
||
113 | gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>; |
||
114 | }; |
||
115 | }; |
||
116 | |||
117 | keys { |
||
118 | compatible = "gpio-keys"; |
||
119 | |||
120 | wps { |
||
121 | label = "wps"; |
||
122 | gpios = <&tlmm 63 GPIO_ACTIVE_LOW>; |
||
123 | linux,code = <KEY_WPS_BUTTON>; |
||
124 | }; |
||
125 | }; |
||
126 | }; |
||
127 | |||
128 | &tlmm { |
||
129 | serial_pins: serial_pinmux { |
||
130 | mux { |
||
131 | pins = "gpio60", "gpio61"; |
||
132 | function = "blsp_uart0"; |
||
133 | bias-disable; |
||
134 | }; |
||
135 | }; |
||
136 | |||
137 | spi_0_pins: spi_0_pinmux { |
||
138 | pin { |
||
139 | function = "blsp_spi0"; |
||
140 | pins = "gpio55", "gpio56", "gpio57"; |
||
141 | drive-strength = <12>; |
||
142 | bias-disable; |
||
143 | }; |
||
144 | pin_cs { |
||
145 | function = "gpio"; |
||
146 | pins = "gpio54"; |
||
147 | drive-strength = <2>; |
||
148 | bias-disable; |
||
149 | output-high; |
||
150 | }; |
||
151 | }; |
||
152 | }; |
||
153 | |||
154 | &blsp_dma { |
||
155 | status = "okay"; |
||
156 | }; |
||
157 | |||
158 | &blsp1_spi1 { |
||
159 | pinctrl-0 = <&spi_0_pins>; |
||
160 | pinctrl-names = "default"; |
||
161 | status = "okay"; |
||
162 | cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>; |
||
163 | |||
164 | mx25l12805d@0 { |
||
165 | compatible = "jedec,spi-nor"; |
||
166 | reg = <0>; |
||
167 | spi-max-frequency = <24000000>; |
||
168 | |||
169 | partitions { |
||
170 | compatible = "fixed-partitions"; |
||
171 | #address-cells = <1>; |
||
172 | #size-cells = <1>; |
||
173 | |||
174 | partition0@0 { |
||
175 | label = "SBL1"; |
||
176 | reg = <0x00000000 0x00040000>; |
||
177 | read-only; |
||
178 | }; |
||
179 | |||
180 | partition1@40000 { |
||
181 | label = "MIBIB"; |
||
182 | reg = <0x00040000 0x00020000>; |
||
183 | read-only; |
||
184 | }; |
||
185 | |||
186 | partition2@60000 { |
||
187 | label = "QSEE"; |
||
188 | reg = <0x00060000 0x00060000>; |
||
189 | read-only; |
||
190 | }; |
||
191 | |||
192 | partition3@c0000 { |
||
193 | label = "CDT"; |
||
194 | reg = <0x000c0000 0x00010000>; |
||
195 | read-only; |
||
196 | }; |
||
197 | |||
198 | partition4@d0000 { |
||
199 | label = "DDRPARAMS"; |
||
200 | reg = <0x000d0000 0x00010000>; |
||
201 | read-only; |
||
202 | }; |
||
203 | |||
204 | partition5@E0000 { |
||
205 | label = "APPSBLENV"; |
||
206 | reg = <0x000e0000 0x00010000>; |
||
207 | read-only; |
||
208 | }; |
||
209 | |||
210 | partition6@F0000 { |
||
211 | label = "APPSBL"; |
||
212 | reg = <0x000f0000 0x00080000>; |
||
213 | read-only; |
||
214 | }; |
||
215 | |||
216 | partition7@170000 { |
||
217 | label = "ART"; |
||
218 | reg = <0x00170000 0x00010000>; |
||
219 | read-only; |
||
220 | }; |
||
221 | |||
222 | partition8@180000 { |
||
223 | compatible = "denx,fit"; |
||
224 | label = "firmware"; |
||
225 | reg = <0x00180000 0x00ce0000>; |
||
226 | }; |
||
227 | |||
228 | partition9@e60000 { |
||
229 | label = "manufacture"; |
||
230 | reg = <0x00e60000 0x00050000>; |
||
231 | read-only; |
||
232 | }; |
||
233 | |||
234 | partition10@eb0000 { |
||
235 | label = "storage"; |
||
236 | reg = <0x00eb0000 0x00150000>; |
||
237 | read-only; |
||
238 | }; |
||
239 | }; |
||
240 | }; |
||
241 | }; |
||
242 | |||
243 | &blsp1_uart1 { |
||
244 | pinctrl-0 = <&serial_pins>; |
||
245 | pinctrl-names = "default"; |
||
246 | status = "okay"; |
||
247 | }; |
||
248 | |||
249 | &cryptobam { |
||
250 | status = "okay"; |
||
251 | }; |
||
252 | |||
253 | &wifi0 { |
||
254 | status = "okay"; |
||
255 | qcom,ath10k-calibration-variant = "ZyXEL-WRE6606"; |
||
256 | }; |
||
257 | |||
258 | &wifi1 { |
||
259 | status = "okay"; |
||
260 | qcom,ath10k-calibration-variant = "ZyXEL-WRE6606"; |
||
261 | }; |