OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
2 | * |
||
3 | * Copyright (c) 2018 Peng Zhang <sd20@qxwlan.com> |
||
4 | * |
||
5 | */ |
||
6 | |||
7 | #include "qcom-ipq4019.dtsi" |
||
8 | #include <dt-bindings/gpio/gpio.h> |
||
9 | #include <dt-bindings/input/input.h> |
||
10 | #include <dt-bindings/soc/qcom,tcsr.h> |
||
11 | |||
12 | / { |
||
13 | |||
14 | model = "Qxwlan E2600AC"; |
||
15 | compatible = "qcom,ipq4019"; |
||
16 | |||
17 | memory { |
||
18 | device_type = "memory"; |
||
19 | reg = <0x80000000 0x10000000>; /* 256MB */ |
||
20 | }; |
||
21 | |||
22 | soc { |
||
23 | mdio@90000 { |
||
24 | status = "okay"; |
||
25 | pinctrl-0 = <&mdio_pins>; |
||
26 | pinctrl-names = "default"; |
||
27 | }; |
||
28 | |||
29 | ess-psgmii@98000 { |
||
30 | status = "okay"; |
||
31 | }; |
||
32 | |||
33 | tcsr@1949000 { |
||
34 | compatible = "qcom,tcsr"; |
||
35 | reg = <0x1949000 0x100>; |
||
36 | qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>; |
||
37 | }; |
||
38 | |||
39 | tcsr@194b000 { |
||
40 | /* select hostmode */ |
||
41 | compatible = "qcom,tcsr"; |
||
42 | reg = <0x194b000 0x100>; |
||
43 | qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>; |
||
44 | status = "okay"; |
||
45 | }; |
||
46 | |||
47 | ess_tcsr@1953000 { |
||
48 | compatible = "qcom,tcsr"; |
||
49 | reg = <0x1953000 0x1000>; |
||
50 | qcom,ess-interface-select = <TCSR_ESS_PSGMII>; |
||
51 | }; |
||
52 | |||
53 | tcsr@1957000 { |
||
54 | compatible = "qcom,tcsr"; |
||
55 | reg = <0x1957000 0x100>; |
||
56 | qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>; |
||
57 | }; |
||
58 | |||
59 | usb2: usb2@60f8800 { |
||
60 | status = "okay"; |
||
61 | |||
62 | dwc3@6000000 { |
||
63 | #address-cells = <1>; |
||
64 | #size-cells = <0>; |
||
65 | |||
66 | usb2_port1: port@1 { |
||
67 | reg = <1>; |
||
68 | #trigger-source-cells = <0>; |
||
69 | }; |
||
70 | }; |
||
71 | }; |
||
72 | |||
73 | serial@78af000 { |
||
74 | pinctrl-0 = <&serial_0_pins>; |
||
75 | pinctrl-names = "default"; |
||
76 | status = "okay"; |
||
77 | }; |
||
78 | |||
79 | serial@78b0000 { |
||
80 | pinctrl-0 = <&serial_1_pins>; |
||
81 | pinctrl-names = "default"; |
||
82 | status = "okay"; |
||
83 | }; |
||
84 | |||
85 | i2c@78b7000 { /* BLSP1 QUP2 */ |
||
86 | pinctrl-0 = <&i2c_0_pins>; |
||
87 | pinctrl-names = "default"; |
||
88 | |||
89 | status = "okay"; |
||
90 | }; |
||
91 | |||
92 | usb3: usb3@8af8800 { |
||
93 | status = "okay"; |
||
94 | |||
95 | dwc3@8a00000 { |
||
96 | #address-cells = <1>; |
||
97 | #size-cells = <0>; |
||
98 | |||
99 | usb3_port1: port@1 { |
||
100 | reg = <1>; |
||
101 | #trigger-source-cells = <0>; |
||
102 | }; |
||
103 | |||
104 | usb3_port2: port@2 { |
||
105 | reg = <2>; |
||
106 | #trigger-source-cells = <0>; |
||
107 | }; |
||
108 | }; |
||
109 | }; |
||
110 | |||
111 | crypto@8e3a000 { |
||
112 | status = "okay"; |
||
113 | }; |
||
114 | |||
115 | watchdog@b017000 { |
||
116 | status = "okay"; |
||
117 | }; |
||
118 | |||
119 | ess-switch@c000000 { |
||
120 | status = "okay"; |
||
121 | }; |
||
122 | |||
123 | edma@c080000 { |
||
124 | status = "okay"; |
||
125 | }; |
||
126 | |||
127 | leds { |
||
128 | compatible = "gpio-leds"; |
||
129 | |||
130 | led1 { |
||
131 | label = "e2600ac:green:wlan0"; |
||
132 | gpios = <&tlmm 50 GPIO_ACTIVE_LOW>; |
||
133 | }; |
||
134 | |||
135 | led2 { |
||
136 | label = "e2600ac:green:wlan1"; |
||
137 | gpios = <&tlmm 36 GPIO_ACTIVE_LOW>; |
||
138 | }; |
||
139 | |||
140 | led3 { |
||
141 | label = "e2600ac:green:usb"; |
||
142 | gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; |
||
143 | trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>; |
||
144 | linux,default-trigger = "usbport"; |
||
145 | }; |
||
146 | |||
147 | led4 { |
||
148 | label = "e2600ac:green:ctrl1"; |
||
149 | gpios = <&tlmm 51 GPIO_ACTIVE_LOW>; |
||
150 | }; |
||
151 | |||
152 | led5 { |
||
153 | label = "e2600ac:green:ctrl2"; |
||
154 | gpios = <&tlmm 30 GPIO_ACTIVE_LOW>; |
||
155 | }; |
||
156 | |||
157 | led6 { |
||
158 | label = "e2600ac:green:ctrl3"; |
||
159 | gpios = <&tlmm 31 GPIO_ACTIVE_LOW>; |
||
160 | }; |
||
161 | }; |
||
162 | |||
163 | keys { |
||
164 | compatible = "gpio-keys"; |
||
165 | |||
166 | reset { |
||
167 | label = "reset"; |
||
168 | gpios = <&tlmm 18 GPIO_ACTIVE_LOW>; |
||
169 | linux,code = <KEY_RESTART>; |
||
170 | }; |
||
171 | }; |
||
172 | }; |
||
173 | }; |
||
174 | |||
175 | &blsp_dma { |
||
176 | status = "okay"; |
||
177 | }; |
||
178 | |||
179 | &cryptobam { |
||
180 | status = "okay"; |
||
181 | }; |
||
182 | |||
183 | &qpic_bam { |
||
184 | status = "okay"; |
||
185 | }; |
||
186 | |||
187 | &tlmm { |
||
188 | i2c_0_pins: i2c-0-pinmux { |
||
189 | mux { |
||
190 | pins = "gpio20", "gpio21"; |
||
191 | function = "blsp_i2c0"; |
||
192 | bias-disable; |
||
193 | }; |
||
194 | }; |
||
195 | |||
196 | mdio_pins: mdio_pinmux { |
||
197 | mux_1 { |
||
198 | pins = "gpio6"; |
||
199 | function = "mdio"; |
||
200 | bias-pull-up; |
||
201 | }; |
||
202 | mux_2 { |
||
203 | pins = "gpio7"; |
||
204 | function = "mdc"; |
||
205 | bias-pull-up; |
||
206 | }; |
||
207 | }; |
||
208 | |||
209 | serial_0_pins: serial0-pinmux { |
||
210 | mux { |
||
211 | pins = "gpio16", "gpio17"; |
||
212 | function = "blsp_uart0"; |
||
213 | bias-disable; |
||
214 | }; |
||
215 | }; |
||
216 | |||
217 | serial_1_pins: serial1_pinmux { |
||
218 | mux { |
||
219 | pins = "gpio8", "gpio9"; |
||
220 | function = "blsp_uart1"; |
||
221 | bias-disable; |
||
222 | }; |
||
223 | }; |
||
224 | |||
225 | spi_0_pins: spi_0_pinmux { |
||
226 | pinmux { |
||
227 | function = "blsp_spi0"; |
||
228 | pins = "gpio13", "gpio14", "gpio15"; |
||
229 | drive-strength = <12>; |
||
230 | bias-disable; |
||
231 | }; |
||
232 | pinmux_cs { |
||
233 | function = "gpio"; |
||
234 | pins = "gpio12"; |
||
235 | drive-strength = <2>; |
||
236 | bias-disable; |
||
237 | output-high; |
||
238 | }; |
||
239 | }; |
||
240 | }; |
||
241 | |||
242 | &usb3_ss_phy { |
||
243 | status = "okay"; |
||
244 | }; |
||
245 | |||
246 | &usb3_hs_phy { |
||
247 | status = "okay"; |
||
248 | }; |
||
249 | |||
250 | &usb2_hs_phy { |
||
251 | status = "okay"; |
||
252 | }; |
||
253 | |||
254 | &wifi0 { |
||
255 | status = "okay"; |
||
256 | qcom,ath10k-calibration-variant = "Qxwlan-E2600AC"; |
||
257 | }; |
||
258 | |||
259 | &wifi1 { |
||
260 | status = "okay"; |
||
261 | qcom,ath10k-calibration-variant = "Qxwlan-E2600AC"; |
||
262 | }; |