OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | 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 | */ |
||
16 | |||
17 | #include "qcom-ipq4019.dtsi" |
||
18 | #include <dt-bindings/gpio/gpio.h> |
||
19 | #include <dt-bindings/input/input.h> |
||
20 | #include <dt-bindings/soc/qcom,tcsr.h> |
||
21 | |||
22 | / { |
||
23 | model = "GL.iNet GL-B1300"; |
||
24 | compatible = "glinet,gl-b1300", "qcom,ipq4019"; |
||
25 | |||
26 | aliases { |
||
27 | led-boot = &power; |
||
28 | led-failsafe = &power; |
||
29 | led-running = &power; |
||
30 | led-upgrade = &power; |
||
31 | }; |
||
32 | |||
33 | memory { |
||
34 | device_type = "memory"; |
||
35 | reg = <0x80000000 0x10000000>; |
||
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 | tcsr@194b000 { |
||
54 | /* select hostmode */ |
||
55 | compatible = "qcom,tcsr"; |
||
56 | reg = <0x194b000 0x100>; |
||
57 | qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>; |
||
58 | status = "okay"; |
||
59 | }; |
||
60 | |||
61 | ess_tcsr@1953000 { |
||
62 | compatible = "qcom,tcsr"; |
||
63 | reg = <0x1953000 0x1000>; |
||
64 | qcom,ess-interface-select = <TCSR_ESS_PSGMII>; |
||
65 | }; |
||
66 | |||
67 | tcsr@1957000 { |
||
68 | compatible = "qcom,tcsr"; |
||
69 | reg = <0x1957000 0x100>; |
||
70 | qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>; |
||
71 | }; |
||
72 | |||
73 | usb2@60f8800 { |
||
74 | status = "okay"; |
||
75 | }; |
||
76 | |||
3 | office | 77 | serial@78af000 { |
78 | pinctrl-0 = <&serial_pins>; |
||
79 | pinctrl-names = "default"; |
||
80 | status = "okay"; |
||
81 | }; |
||
82 | |||
1 | office | 83 | usb3@8af8800 { |
84 | status = "okay"; |
||
85 | }; |
||
86 | |||
87 | crypto@8e3a000 { |
||
88 | status = "okay"; |
||
89 | }; |
||
90 | |||
91 | watchdog@b017000 { |
||
92 | status = "okay"; |
||
93 | }; |
||
94 | |||
95 | ess-switch@c000000 { |
||
96 | status = "okay"; |
||
97 | switch_lan_bmp = <0x18>; |
||
98 | switch_wan_bmp = <0x20>; |
||
99 | }; |
||
100 | |||
101 | edma@c080000 { |
||
102 | status = "okay"; |
||
103 | }; |
||
104 | }; |
||
105 | |||
3 | office | 106 | gpio-keys { |
1 | office | 107 | compatible = "gpio-keys"; |
108 | |||
109 | wps { |
||
110 | label = "wps"; |
||
111 | gpios = <&tlmm 5 GPIO_ACTIVE_LOW>; |
||
112 | linux,code = <KEY_WPS_BUTTON>; |
||
113 | }; |
||
114 | |||
115 | reset { |
||
116 | label = "reset"; |
||
117 | gpios = <&tlmm 63 GPIO_ACTIVE_LOW>; |
||
118 | linux,code = <KEY_RESTART>; |
||
119 | }; |
||
120 | }; |
||
121 | |||
3 | office | 122 | gpio-leds { |
1 | office | 123 | compatible = "gpio-leds"; |
124 | |||
125 | power: power { |
||
126 | label = "gl-b1300:green:power"; |
||
127 | gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>; |
||
128 | default-state = "on"; |
||
129 | }; |
||
130 | |||
131 | mesh { |
||
132 | label = "gl-b1300:green:mesh"; |
||
133 | gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>; |
||
134 | }; |
||
135 | |||
136 | wlan { |
||
137 | label = "gl-b1300:green:wlan"; |
||
138 | gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>; |
||
139 | }; |
||
140 | }; |
||
141 | }; |
||
142 | |||
143 | &blsp_dma { |
||
144 | status = "okay"; |
||
145 | }; |
||
146 | |||
147 | &cryptobam { |
||
148 | status = "okay"; |
||
149 | }; |
||
150 | |||
3 | office | 151 | &spi_0 { |
1 | office | 152 | pinctrl-0 = <&spi_0_pins>; |
153 | pinctrl-names = "default"; |
||
154 | status = "okay"; |
||
155 | cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>; |
||
156 | |||
157 | mx25l25635f@0 { |
||
158 | compatible = "jedec,spi-nor"; |
||
159 | #address-cells = <1>; |
||
160 | #size-cells = <1>; |
||
161 | reg = <0>; |
||
162 | spi-max-frequency = <24000000>; |
||
163 | |||
3 | office | 164 | SBL1@0 { |
165 | label = "SBL1"; |
||
166 | reg = <0x0 0x40000>; |
||
167 | read-only; |
||
168 | }; |
||
1 | office | 169 | |
3 | office | 170 | MIBIB@40000 { |
171 | label = "MIBIB"; |
||
172 | reg = <0x40000 0x20000>; |
||
173 | read-only; |
||
174 | }; |
||
1 | office | 175 | |
3 | office | 176 | QSEE@60000 { |
177 | label = "QSEE"; |
||
178 | reg = <0x60000 0x60000>; |
||
179 | read-only; |
||
180 | }; |
||
1 | office | 181 | |
3 | office | 182 | CDT@c0000 { |
183 | label = "CDT"; |
||
184 | reg = <0xc0000 0x10000>; |
||
185 | read-only; |
||
186 | }; |
||
1 | office | 187 | |
3 | office | 188 | DDRPARAMS@d0000 { |
189 | label = "DDRPARAMS"; |
||
190 | reg = <0xd0000 0x10000>; |
||
191 | read-only; |
||
192 | }; |
||
1 | office | 193 | |
3 | office | 194 | APPSBLENV@e0000 { |
195 | label = "APPSBLENV"; |
||
196 | reg = <0xe0000 0x10000>; |
||
197 | read-only; |
||
198 | }; |
||
1 | office | 199 | |
3 | office | 200 | APPSBL@f0000 { |
201 | label = "APPSBL"; |
||
202 | reg = <0xf0000 0x80000>; |
||
203 | read-only; |
||
204 | }; |
||
1 | office | 205 | |
3 | office | 206 | ART@170000 { |
207 | label = "ART"; |
||
208 | reg = <0x170000 0x10000>; |
||
209 | read-only; |
||
210 | }; |
||
1 | office | 211 | |
3 | office | 212 | firmware@180000 { |
213 | label = "firmware"; |
||
214 | reg = <0x180000 0x1e80000>; |
||
1 | office | 215 | }; |
216 | }; |
||
217 | }; |
||
218 | |||
219 | &tlmm { |
||
220 | serial_pins: serial_pinmux { |
||
221 | mux { |
||
222 | pins = "gpio60", "gpio61"; |
||
223 | function = "blsp_uart0"; |
||
224 | bias-disable; |
||
225 | }; |
||
226 | }; |
||
227 | |||
228 | spi_0_pins: spi_0_pinmux { |
||
229 | pinmux { |
||
230 | function = "blsp_spi0"; |
||
231 | pins = "gpio55", "gpio56", "gpio57"; |
||
232 | }; |
||
233 | pinmux_cs { |
||
234 | function = "gpio"; |
||
235 | pins = "gpio54"; |
||
236 | }; |
||
237 | pinconf { |
||
238 | pins = "gpio55", "gpio56", "gpio57"; |
||
239 | drive-strength = <12>; |
||
240 | bias-disable; |
||
241 | }; |
||
242 | pinconf_cs { |
||
243 | pins = "gpio54"; |
||
244 | drive-strength = <2>; |
||
245 | bias-disable; |
||
246 | output-high; |
||
247 | }; |
||
248 | }; |
||
249 | }; |
||
250 | |||
251 | &usb2_hs_phy { |
||
252 | status = "okay"; |
||
253 | }; |
||
254 | |||
255 | &usb3_hs_phy { |
||
256 | status = "okay"; |
||
257 | }; |
||
258 | |||
259 | &usb3_ss_phy { |
||
260 | status = "okay"; |
||
261 | }; |
||
262 | |||
263 | &wifi0 { |
||
264 | status = "okay"; |
||
265 | qcom,ath10k-calibration-variant = "GL-B1300"; |
||
266 | }; |
||
267 | |||
268 | &wifi1 { |
||
269 | status = "okay"; |
||
270 | qcom,ath10k-calibration-variant = "GL-B1300"; |
||
271 | }; |