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 | * Copyright (c) 2017-2018, Sven Eckelmann <sven.eckelmann@openmesh.com> |
||
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" |
||
3 | office | 19 | #include "qcom-ipq4019-bus.dtsi" |
1 | office | 20 | #include <dt-bindings/gpio/gpio.h> |
21 | #include <dt-bindings/input/input.h> |
||
22 | #include <dt-bindings/soc/qcom,tcsr.h> |
||
23 | |||
24 | / { |
||
25 | model = "OpenMesh A62"; |
||
26 | compatible = "openmesh,a62", "qcom,ipq4019"; |
||
27 | |||
28 | soc { |
||
29 | mdio@90000 { |
||
30 | status = "okay"; |
||
31 | }; |
||
32 | |||
33 | ess-psgmii@98000 { |
||
34 | status = "okay"; |
||
35 | }; |
||
36 | |||
37 | tcsr@194b000 { |
||
38 | /* select hostmode */ |
||
39 | compatible = "qcom,tcsr"; |
||
40 | reg = <0x194b000 0x100>; |
||
41 | qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>; |
||
42 | status = "okay"; |
||
43 | }; |
||
44 | |||
45 | tcsr@1949000 { |
||
46 | compatible = "qcom,tcsr"; |
||
47 | reg = <0x1949000 0x100>; |
||
48 | qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>; |
||
49 | }; |
||
50 | |||
51 | ess_tcsr@1953000 { |
||
52 | compatible = "qcom,tcsr"; |
||
53 | reg = <0x1953000 0x1000>; |
||
54 | qcom,ess-interface-select = <TCSR_ESS_PSGMII>; |
||
55 | }; |
||
56 | |||
57 | tcsr@1957000 { |
||
58 | compatible = "qcom,tcsr"; |
||
59 | reg = <0x1957000 0x100>; |
||
60 | qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>; |
||
61 | }; |
||
62 | |||
63 | usb2: usb2@60f8800 { |
||
64 | status = "okay"; |
||
65 | }; |
||
66 | |||
3 | office | 67 | serial@78af000 { |
68 | pinctrl-0 = <&serial_pins>; |
||
69 | pinctrl-names = "default"; |
||
70 | status = "okay"; |
||
71 | }; |
||
72 | |||
1 | office | 73 | crypto@8e3a000 { |
74 | status = "okay"; |
||
75 | }; |
||
76 | |||
77 | watchdog@b017000 { |
||
78 | status = "okay"; |
||
79 | }; |
||
80 | |||
81 | ess-switch@c000000 { |
||
82 | switch_lan_bmp = <0x10>; |
||
83 | switch_wan_bmp = <0x20>; |
||
84 | |||
85 | status = "okay"; |
||
86 | }; |
||
87 | |||
88 | edma@c080000 { |
||
89 | status = "okay"; |
||
90 | }; |
||
91 | }; |
||
92 | |||
3 | office | 93 | gpio-keys { |
1 | office | 94 | compatible = "gpio-keys"; |
95 | |||
96 | reset { |
||
97 | label = "reset"; |
||
98 | gpios = <&tlmm 18 GPIO_ACTIVE_LOW>; |
||
99 | linux,code = <KEY_RESTART >; |
||
100 | }; |
||
101 | }; |
||
102 | |||
103 | aliases { |
||
104 | led-boot = &power; |
||
105 | led-failsafe = &power; |
||
106 | led-running = &power; |
||
107 | led-upgrade = &power; |
||
108 | }; |
||
109 | |||
3 | office | 110 | gpio-leds { |
1 | office | 111 | compatible = "gpio-leds"; |
112 | |||
113 | red { |
||
114 | label = "a62:red:status"; |
||
115 | gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>; |
||
116 | linux,default-trigger = "default-off"; |
||
117 | }; |
||
118 | |||
119 | power: green { |
||
120 | label = "a62:green:status"; |
||
121 | gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; |
||
122 | }; |
||
123 | |||
124 | blue { |
||
125 | label = "a62:blue:status"; |
||
126 | gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>; |
||
127 | linux,default-trigger = "default-off"; |
||
128 | }; |
||
129 | }; |
||
130 | |||
131 | watchdog { |
||
132 | compatible = "linux,wdt-gpio"; |
||
133 | gpios = <&tlmm 59 GPIO_ACTIVE_LOW>; |
||
134 | hw_algo = "toggle"; |
||
135 | /* hw_margin_ms is actually 300s but driver limits it to 60s */ |
||
136 | hw_margin_ms = <60000>; |
||
137 | always-running; |
||
138 | }; |
||
139 | }; |
||
140 | |||
141 | &tlmm { |
||
142 | serial_pins: serial_pinmux { |
||
143 | mux { |
||
144 | pins = "gpio16", "gpio17"; |
||
145 | function = "blsp_uart0"; |
||
146 | bias-disable; |
||
147 | }; |
||
148 | }; |
||
149 | |||
150 | spi_0_pins: spi_0_pinmux { |
||
151 | pin { |
||
152 | function = "blsp_spi0"; |
||
153 | pins = "gpio13", "gpio14", "gpio15"; |
||
154 | drive-strength = <12>; |
||
155 | bias-disable; |
||
156 | }; |
||
157 | pin_cs { |
||
158 | function = "gpio"; |
||
159 | pins = "gpio12"; |
||
160 | drive-strength = <2>; |
||
161 | bias-disable; |
||
162 | output-high; |
||
163 | }; |
||
164 | }; |
||
165 | |||
166 | enable-usb-power { |
||
167 | gpio-hog; |
||
168 | gpios = <58 GPIO_ACTIVE_HIGH>; |
||
169 | output-low; |
||
170 | line-name = "enable USB2 power"; |
||
171 | }; |
||
172 | }; |
||
173 | |||
174 | &blsp_dma { |
||
175 | status = "okay"; |
||
176 | }; |
||
177 | |||
3 | office | 178 | &spi_0 { |
1 | office | 179 | pinctrl-0 = <&spi_0_pins>; |
180 | pinctrl-names = "default"; |
||
181 | status = "okay"; |
||
182 | cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>; |
||
183 | |||
184 | m25p80@0 { |
||
185 | #address-cells = <1>; |
||
186 | #size-cells = <1>; |
||
187 | compatible = "jedec,spi-nor"; |
||
188 | reg = <0>; |
||
189 | spi-max-frequency = <24000000>; |
||
190 | /* partitions are passed via bootloader */ |
||
191 | }; |
||
192 | }; |
||
193 | |||
194 | &cryptobam { |
||
195 | status = "okay"; |
||
196 | }; |
||
197 | |||
198 | &gmac0 { |
||
199 | qcom,phy_mdio_addr = <3>; |
||
200 | qcom,poll_required = <1>; |
||
201 | qcom,forced_speed = <1000>; |
||
202 | qcom,forced_duplex = <1>; |
||
203 | vlan_tag = <1 0x10>; |
||
204 | }; |
||
205 | |||
206 | &usb2_hs_phy { |
||
207 | status = "okay"; |
||
208 | }; |
||
209 | |||
210 | &pcie0 { |
||
211 | status = "okay"; |
||
212 | perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>; |
||
213 | wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>; |
||
214 | |||
3 | office | 215 | pcie@0 { |
216 | reg = <0 0 0 0 0>; |
||
217 | #interrupt-cells = <1>; |
||
218 | #size-cells = <2>; |
||
1 | office | 219 | #address-cells = <3>; |
3 | office | 220 | device_type = "pci"; |
1 | office | 221 | |
3 | office | 222 | ath10k@0,0 { |
1 | office | 223 | compatible = "qcom,ath10k"; |
224 | status = "okay"; |
||
3 | office | 225 | reg = <0 0 0 0 0>; |
226 | device_type = "pci"; |
||
1 | office | 227 | qcom,ath10k-calibration-variant = "OM-A62"; |
228 | }; |
||
229 | }; |
||
230 | }; |
||
231 | |||
232 | &wifi0 { |
||
233 | status = "okay"; |
||
234 | qcom,ath10k-calibration-variant = "OM-A62"; |
||
235 | }; |
||
236 | |||
237 | &wifi1 { |
||
238 | status = "okay"; |
||
239 | qcom,ath10k-calibration-variant = "OM-A62"; |
||
240 | }; |