OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | #include "qcom-ipq8065.dtsi" |
2 | |||
3 | #include <dt-bindings/input/input.h> |
||
4 | |||
5 | / { |
||
6 | model = "ZyXEL NBG6817"; |
||
7 | compatible = "zyxel,nbg6817", "qcom,ipq8065"; |
||
8 | |||
9 | memory@0 { |
||
10 | reg = <0x42000000 0x1e000000>; |
||
11 | device_type = "memory"; |
||
12 | }; |
||
13 | |||
14 | reserved-memory { |
||
15 | #address-cells = <1>; |
||
16 | #size-cells = <1>; |
||
17 | ranges; |
||
18 | rsvd@41200000 { |
||
19 | reg = <0x41200000 0x300000>; |
||
20 | no-map; |
||
21 | }; |
||
22 | }; |
||
23 | |||
24 | aliases { |
||
25 | serial0 = &gsbi4_serial; |
||
26 | mdio-gpio0 = &mdio0; |
||
27 | sdcc1 = &sdcc1; |
||
28 | |||
29 | led-boot = &power; |
||
30 | led-failsafe = &power; |
||
31 | led-running = &power; |
||
32 | led-upgrade = &power; |
||
33 | }; |
||
34 | |||
35 | chosen { |
||
36 | bootargs = "rootfstype=squashfs,ext4 rootwait noinitrd"; |
||
37 | linux,stdout-path = "serial0:115200n8"; |
||
38 | append-rootblock = "root=/dev/mmcblk0p"; |
||
39 | }; |
||
40 | |||
41 | soc { |
||
42 | pinmux@800000 { |
||
43 | button_pins: button_pins { |
||
44 | mux { |
||
45 | pins = "gpio53", "gpio54", "gpio65"; |
||
46 | function = "gpio"; |
||
47 | drive-strength = <2>; |
||
48 | bias-pull-up; |
||
49 | }; |
||
50 | }; |
||
51 | |||
52 | i2c4_pins: i2c4_pinmux { |
||
53 | mux { |
||
54 | pins = "gpio12", "gpio13"; |
||
55 | function = "gsbi4"; |
||
56 | drive-strength = <12>; |
||
57 | bias-disable; |
||
58 | }; |
||
59 | }; |
||
60 | |||
61 | led_pins: led_pins { |
||
62 | mux { |
||
63 | pins = "gpio9", "gpio26", "gpio33", "gpio64"; |
||
64 | function = "gpio"; |
||
65 | drive-strength = <2>; |
||
66 | bias-pull-down; |
||
67 | }; |
||
68 | }; |
||
69 | |||
70 | mdio0_pins: mdio0_pins { |
||
71 | mux { |
||
72 | pins = "gpio0", "gpio1"; |
||
73 | function = "gpio"; |
||
74 | drive-strength = <8>; |
||
75 | bias-disable; |
||
76 | }; |
||
77 | |||
78 | clk { |
||
79 | pins = "gpio1"; |
||
80 | input-disable; |
||
81 | }; |
||
82 | }; |
||
83 | |||
84 | rgmii2_pins: rgmii2_pins { |
||
85 | mux { |
||
86 | pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32", |
||
87 | "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ; |
||
88 | function = "rgmii2"; |
||
89 | drive-strength = <8>; |
||
90 | bias-disable; |
||
91 | }; |
||
92 | |||
93 | tx { |
||
94 | pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ; |
||
95 | input-disable; |
||
96 | }; |
||
97 | }; |
||
98 | |||
99 | spi_pins: spi_pins { |
||
100 | mux { |
||
101 | pins = "gpio18", "gpio19", "gpio21"; |
||
102 | function = "gsbi5"; |
||
103 | drive-strength = <10>; |
||
104 | bias-none; |
||
105 | }; |
||
106 | |||
107 | cs { |
||
108 | pins = "gpio20"; |
||
109 | drive-strength = <12>; |
||
110 | }; |
||
111 | }; |
||
112 | |||
113 | usb0_pwr_en_pins: usb0_pwr_en_pins { |
||
114 | mux { |
||
115 | pins = "gpio16", "gpio17"; |
||
116 | function = "gpio"; |
||
117 | drive-strength = <12>; |
||
118 | }; |
||
119 | |||
120 | pwr { |
||
121 | pins = "gpio17"; |
||
122 | bias-pull-down; |
||
123 | output-high; |
||
124 | }; |
||
125 | |||
126 | ovc { |
||
127 | pins = "gpio16"; |
||
128 | bias-pull-up; |
||
129 | }; |
||
130 | }; |
||
131 | |||
132 | usb1_pwr_en_pins: usb1_pwr_en_pins { |
||
133 | mux { |
||
134 | pins = "gpio14", "gpio15"; |
||
135 | function = "gpio"; |
||
136 | drive-strength = <12>; |
||
137 | }; |
||
138 | |||
139 | pwr { |
||
140 | pins = "gpio14"; |
||
141 | bias-pull-down; |
||
142 | output-high; |
||
143 | }; |
||
144 | |||
145 | ovc { |
||
146 | pins = "gpio15"; |
||
147 | bias-pull-up; |
||
148 | }; |
||
149 | }; |
||
150 | }; |
||
151 | |||
152 | gsbi@16300000 { |
||
153 | qcom,mode = <GSBI_PROT_I2C_UART>; |
||
154 | status = "ok"; |
||
155 | serial@16340000 { |
||
156 | status = "ok"; |
||
157 | }; |
||
158 | /* |
||
159 | * The i2c device on gsbi4 should not be enabled. |
||
160 | * On ipq806x designs gsbi4 i2c is meant for exclusive |
||
161 | * RPM usage. Turning this on in kernel manifests as |
||
162 | * i2c failure for the RPM. |
||
163 | */ |
||
164 | }; |
||
165 | |||
166 | gsbi5: gsbi@1a200000 { |
||
167 | qcom,mode = <GSBI_PROT_SPI>; |
||
168 | status = "ok"; |
||
169 | |||
170 | spi4: spi@1a280000 { |
||
171 | status = "ok"; |
||
172 | |||
173 | pinctrl-0 = <&spi_pins>; |
||
174 | pinctrl-names = "default"; |
||
175 | |||
176 | cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>; |
||
177 | |||
178 | flash: m25p80@0 { |
||
179 | compatible = "jedec,spi-nor"; |
||
180 | #address-cells = <1>; |
||
181 | #size-cells = <1>; |
||
182 | spi-max-frequency = <51200000>; |
||
183 | reg = <0>; |
||
184 | |||
185 | partitions { |
||
186 | compatible = "qcom,smem"; |
||
187 | }; |
||
188 | }; |
||
189 | }; |
||
190 | }; |
||
191 | |||
192 | phy@100f8800 { /* USB3 port 1 HS phy */ |
||
193 | status = "ok"; |
||
194 | }; |
||
195 | |||
196 | phy@100f8830 { /* USB3 port 1 SS phy */ |
||
197 | status = "ok"; |
||
198 | }; |
||
199 | |||
200 | phy@110f8800 { /* USB3 port 0 HS phy */ |
||
201 | status = "ok"; |
||
202 | }; |
||
203 | |||
204 | phy@110f8830 { /* USB3 port 0 SS phy */ |
||
205 | status = "ok"; |
||
206 | }; |
||
207 | |||
208 | usb30@0 { |
||
209 | status = "ok"; |
||
210 | |||
211 | pinctrl-0 = <&usb0_pwr_en_pins>; |
||
212 | pinctrl-names = "default"; |
||
213 | }; |
||
214 | |||
215 | usb30@1 { |
||
216 | status = "ok"; |
||
217 | |||
218 | pinctrl-0 = <&usb1_pwr_en_pins>; |
||
219 | pinctrl-names = "default"; |
||
220 | }; |
||
221 | |||
222 | pcie0: pci@1b500000 { |
||
223 | status = "ok"; |
||
224 | reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>; |
||
225 | pinctrl-0 = <&pcie0_pins>; |
||
226 | pinctrl-names = "default"; |
||
227 | }; |
||
228 | |||
229 | pcie1: pci@1b700000 { |
||
230 | status = "ok"; |
||
231 | reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>; |
||
232 | pinctrl-0 = <&pcie1_pins>; |
||
233 | pinctrl-names = "default"; |
||
234 | force_gen1 = <1>; |
||
235 | }; |
||
236 | |||
237 | mdio0: mdio { |
||
238 | compatible = "virtual,mdio-gpio"; |
||
239 | #address-cells = <1>; |
||
240 | #size-cells = <0>; |
||
241 | gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>; |
||
242 | pinctrl-0 = <&mdio0_pins>; |
||
243 | pinctrl-names = "default"; |
||
244 | |||
245 | phy0: ethernet-phy@0 { |
||
246 | device_type = "ethernet-phy"; |
||
247 | reg = <0>; |
||
248 | qca,ar8327-initvals = < |
||
249 | 0x00004 0x7600000 /* PAD0_MODE */ |
||
250 | 0x00008 0x1000000 /* PAD5_MODE */ |
||
251 | 0x0000c 0x80 /* PAD6_MODE */ |
||
252 | 0x000e4 0xaa545 /* MAC_POWER_SEL */ |
||
253 | 0x000e0 0xc74164de /* SGMII_CTRL */ |
||
254 | 0x0007c 0x4e /* PORT0_STATUS */ |
||
255 | 0x00094 0x4e /* PORT6_STATUS */ |
||
256 | 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */ |
||
257 | 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */ |
||
258 | 0x00978 0x19008643 /* QM_PORT1_CTRL0 */ |
||
259 | 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */ |
||
260 | 0x00980 0x19008643 /* QM_PORT2_CTRL0 */ |
||
261 | 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */ |
||
262 | 0x00988 0x19008643 /* QM_PORT3_CTRL0 */ |
||
263 | 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */ |
||
264 | 0x00990 0x19008643 /* QM_PORT4_CTRL0 */ |
||
265 | 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */ |
||
266 | 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */ |
||
267 | 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */ |
||
268 | 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */ |
||
269 | 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */ |
||
270 | >; |
||
271 | }; |
||
272 | |||
273 | phy4: ethernet-phy@4 { |
||
274 | device_type = "ethernet-phy"; |
||
275 | reg = <4>; |
||
276 | qca,ar8327-initvals = < |
||
277 | 0x000e4 0x6a545 /* MAC_POWER_SEL */ |
||
278 | 0x0000c 0x80 /* PAD6_MODE */ |
||
279 | >; |
||
280 | }; |
||
281 | }; |
||
282 | |||
283 | gmac1: ethernet@37200000 { |
||
284 | status = "ok"; |
||
285 | phy-mode = "rgmii"; |
||
286 | qcom,id = <1>; |
||
287 | qcom,phy_mdio_addr = <4>; |
||
288 | qcom,poll_required = <0>; |
||
289 | qcom,rgmii_delay = <1>; |
||
290 | qcom,phy_mii_type = <0>; |
||
291 | qcom,emulation = <0>; |
||
292 | qcom,irq = <255>; |
||
293 | mdiobus = <&mdio0>; |
||
294 | |||
295 | pinctrl-0 = <&rgmii2_pins>; |
||
296 | pinctrl-names = "default"; |
||
297 | |||
298 | fixed-link { |
||
299 | speed = <1000>; |
||
300 | full-duplex; |
||
301 | }; |
||
302 | }; |
||
303 | |||
304 | gmac2: ethernet@37400000 { |
||
305 | status = "ok"; |
||
306 | phy-mode = "sgmii"; |
||
307 | qcom,id = <2>; |
||
308 | qcom,phy_mdio_addr = <0>; /* none */ |
||
309 | qcom,poll_required = <0>; /* no polling */ |
||
310 | qcom,rgmii_delay = <0>; |
||
311 | qcom,phy_mii_type = <1>; |
||
312 | qcom,emulation = <0>; |
||
313 | qcom,irq = <258>; |
||
314 | mdiobus = <&mdio0>; |
||
315 | |||
316 | fixed-link { |
||
317 | speed = <1000>; |
||
318 | full-duplex; |
||
319 | }; |
||
320 | }; |
||
321 | |||
322 | amba { |
||
323 | sdcc1: sdcc@12400000 { |
||
324 | status = "okay"; |
||
325 | }; |
||
326 | }; |
||
327 | }; |
||
328 | |||
329 | gpio-keys { |
||
330 | compatible = "gpio-keys"; |
||
331 | pinctrl-0 = <&button_pins>; |
||
332 | pinctrl-names = "default"; |
||
333 | |||
334 | wifi { |
||
335 | label = "wifi"; |
||
336 | gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>; |
||
337 | linux,code = <KEY_RFKILL>; |
||
338 | linux,input-type = <EV_SW>; |
||
339 | }; |
||
340 | |||
341 | reset { |
||
342 | label = "reset"; |
||
343 | gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>; |
||
344 | linux,code = <KEY_RESTART>; |
||
345 | }; |
||
346 | |||
347 | wps { |
||
348 | label = "wps"; |
||
349 | gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>; |
||
350 | linux,code = <KEY_WPS_BUTTON>; |
||
351 | }; |
||
352 | }; |
||
353 | |||
354 | gpio-leds { |
||
355 | compatible = "gpio-leds"; |
||
356 | pinctrl-0 = <&led_pins>; |
||
357 | pinctrl-names = "default"; |
||
358 | |||
359 | internet { |
||
360 | label = "nbg6817:white:internet"; |
||
361 | gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>; |
||
362 | }; |
||
363 | |||
364 | power: power { |
||
365 | label = "nbg6817:white:power"; |
||
366 | gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>; |
||
367 | default-state = "keep"; |
||
368 | }; |
||
369 | |||
370 | wifi2g { |
||
371 | label = "nbg6817:amber:wifi2g"; |
||
372 | gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>; |
||
373 | }; |
||
374 | |||
375 | /* wifi2g amber from the manual is missing */ |
||
376 | |||
377 | wifi5g { |
||
378 | label = "nbg6817:amber:wifi5g"; |
||
379 | gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>; |
||
380 | }; |
||
381 | |||
382 | /* wifi5g amber from the manual is missing */ |
||
383 | }; |
||
384 | }; |
||
385 | |||
386 | &adm_dma { |
||
387 | status = "ok"; |
||
388 | }; |