OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #include "qcom-ipq8064-v1.0.dtsi" |
2 | |||
3 | / { |
||
4 | model = "Qualcomm IPQ8064/AP161"; |
||
5 | compatible = "qcom,ipq8064-ap161", "qcom,ipq8064"; |
||
6 | |||
7 | memory@0 { |
||
8 | reg = <0x42000000 0x1e000000>; |
||
9 | device_type = "memory"; |
||
10 | }; |
||
11 | |||
12 | reserved-memory { |
||
13 | #address-cells = <1>; |
||
14 | #size-cells = <1>; |
||
15 | ranges; |
||
16 | rsvd@41200000 { |
||
17 | reg = <0x41200000 0x300000>; |
||
18 | no-map; |
||
19 | }; |
||
20 | }; |
||
21 | |||
22 | aliases { |
||
23 | serial0 = &gsbi4_serial; |
||
24 | mdio-gpio0 = &mdio0; |
||
25 | }; |
||
26 | |||
27 | chosen { |
||
28 | linux,stdout-path = "serial0:115200n8"; |
||
29 | }; |
||
30 | |||
31 | soc { |
||
32 | pinmux@800000 { |
||
33 | i2c4_pins: i2c4_pinmux { |
||
34 | pins = "gpio12", "gpio13"; |
||
35 | function = "gsbi4"; |
||
36 | bias-disable; |
||
37 | }; |
||
38 | |||
39 | spi_pins: spi_pins { |
||
40 | mux { |
||
41 | pins = "gpio18", "gpio19", "gpio21"; |
||
42 | function = "gsbi5"; |
||
43 | drive-strength = <10>; |
||
44 | bias-none; |
||
45 | }; |
||
46 | }; |
||
47 | nand_pins: nand_pins { |
||
48 | mux { |
||
49 | pins = "gpio34", "gpio35", "gpio36", |
||
50 | "gpio37", "gpio38", "gpio39", |
||
51 | "gpio40", "gpio41", "gpio42", |
||
52 | "gpio43", "gpio44", "gpio45", |
||
53 | "gpio46", "gpio47"; |
||
54 | function = "nand"; |
||
55 | drive-strength = <10>; |
||
56 | bias-disable; |
||
57 | }; |
||
58 | pullups { |
||
59 | pins = "gpio39"; |
||
60 | bias-pull-up; |
||
61 | }; |
||
62 | hold { |
||
63 | pins = "gpio40", "gpio41", "gpio42", |
||
64 | "gpio43", "gpio44", "gpio45", |
||
65 | "gpio46", "gpio47"; |
||
66 | bias-bus-hold; |
||
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 | |||
79 | rgmii2_pins: rgmii2_pins { |
||
80 | mux { |
||
81 | pins = "gpio2", "gpio27", "gpio28", |
||
82 | "gpio29", "gpio30", "gpio31", |
||
83 | "gpio32", "gpio51", "gpio52", |
||
84 | "gpio59", "gpio60", "gpio61", |
||
85 | "gpio62" , "gpio66"; |
||
86 | function = "rgmii2"; |
||
87 | drive-strength = <8>; |
||
88 | bias-disable; |
||
89 | }; |
||
90 | }; |
||
91 | }; |
||
92 | |||
93 | gsbi@16300000 { |
||
94 | qcom,mode = <GSBI_PROT_I2C_UART>; |
||
95 | status = "ok"; |
||
96 | serial@16340000 { |
||
97 | status = "ok"; |
||
98 | }; |
||
99 | |||
100 | /* |
||
101 | * The i2c device on gsbi4 should not be enabled. |
||
102 | * On ipq806x designs gsbi4 i2c is meant for exclusive |
||
103 | * RPM usage. Turning this on in kernel manifests as |
||
104 | * i2c failure for the RPM. |
||
105 | */ |
||
106 | }; |
||
107 | |||
108 | gsbi5: gsbi@1a200000 { |
||
109 | qcom,mode = <GSBI_PROT_SPI>; |
||
110 | status = "ok"; |
||
111 | |||
112 | spi4: spi@1a280000 { |
||
113 | status = "ok"; |
||
114 | spi-max-frequency = <50000000>; |
||
115 | |||
116 | pinctrl-0 = <&spi_pins>; |
||
117 | pinctrl-names = "default"; |
||
118 | |||
119 | cs-gpios = <&qcom_pinmux 20 0>; |
||
120 | |||
121 | flash: m25p80@0 { |
||
122 | compatible = "s25fl256s1"; |
||
123 | #address-cells = <1>; |
||
124 | #size-cells = <1>; |
||
125 | spi-max-frequency = <50000000>; |
||
126 | reg = <0>; |
||
127 | |||
128 | partitions { |
||
129 | compatible = "qcom,smem"; |
||
130 | }; |
||
131 | }; |
||
132 | }; |
||
133 | }; |
||
134 | |||
135 | sata-phy@1b400000 { |
||
136 | status = "ok"; |
||
137 | }; |
||
138 | |||
139 | sata@29000000 { |
||
140 | status = "ok"; |
||
141 | }; |
||
142 | |||
143 | phy@100f8800 { /* USB3 port 1 HS phy */ |
||
144 | status = "ok"; |
||
145 | }; |
||
146 | |||
147 | phy@100f8830 { /* USB3 port 1 SS phy */ |
||
148 | status = "ok"; |
||
149 | }; |
||
150 | |||
151 | phy@110f8800 { /* USB3 port 0 HS phy */ |
||
152 | status = "ok"; |
||
153 | }; |
||
154 | |||
155 | phy@110f8830 { /* USB3 port 0 SS phy */ |
||
156 | status = "ok"; |
||
157 | }; |
||
158 | |||
159 | usb30@0 { |
||
160 | status = "ok"; |
||
161 | }; |
||
162 | |||
163 | usb30@1 { |
||
164 | status = "ok"; |
||
165 | }; |
||
166 | |||
167 | pcie0: pci@1b500000 { |
||
168 | status = "ok"; |
||
169 | }; |
||
170 | |||
171 | pcie1: pci@1b700000 { |
||
172 | status = "ok"; |
||
173 | force_gen1 = <1>; |
||
174 | }; |
||
175 | |||
176 | pcie2: pci@1b900000 { |
||
177 | status = "ok"; |
||
178 | }; |
||
179 | |||
180 | nand@1ac00000 { |
||
181 | status = "ok"; |
||
182 | |||
183 | pinctrl-0 = <&nand_pins>; |
||
184 | pinctrl-names = "default"; |
||
185 | |||
186 | cs0 { |
||
187 | reg = <0>; |
||
188 | compatible = "qcom,nandcs"; |
||
189 | |||
190 | nand-ecc-strength = <4>; |
||
191 | nand-bus-width = <8>; |
||
192 | nand-ecc-step-size = <512>; |
||
193 | |||
194 | partitions { |
||
195 | compatible = "qcom,smem"; |
||
196 | }; |
||
197 | }; |
||
198 | }; |
||
199 | |||
200 | mdio0: mdio { |
||
201 | compatible = "virtual,mdio-gpio"; |
||
202 | #address-cells = <1>; |
||
203 | #size-cells = <0>; |
||
204 | gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>; |
||
205 | pinctrl-0 = <&mdio0_pins>; |
||
206 | pinctrl-names = "default"; |
||
207 | |||
208 | phy0: ethernet-phy@0 { |
||
209 | reg = <0>; |
||
210 | qca,ar8327-initvals = < |
||
211 | 0x00004 0x7600000 /* PAD0_MODE */ |
||
212 | 0x00008 0x1000000 /* PAD5_MODE */ |
||
213 | 0x0000c 0x20080 /* PAD6_MODE */ |
||
214 | 0x000e4 0x6a545 /* MAC_POWER_SEL */ |
||
215 | 0x000e0 0xc74164de /* SGMII_CTRL */ |
||
216 | 0x0007c 0x4e /* PORT0_STATUS */ |
||
217 | 0x00094 0x4e /* PORT6_STATUS */ |
||
218 | >; |
||
219 | }; |
||
220 | |||
221 | phy4: ethernet-phy@4 { |
||
222 | reg = <4>; |
||
223 | qca,phy-rgmii-en; |
||
224 | qca,txclk-delay-en; |
||
225 | qca,rxclk-delay-en; |
||
226 | }; |
||
227 | |||
228 | phy3: ethernet-phy@3 { |
||
229 | device_type = "ethernet-phy"; |
||
230 | reg = <3>; |
||
231 | }; |
||
232 | }; |
||
233 | |||
234 | gmac0: ethernet@37000000 { |
||
235 | status = "ok"; |
||
236 | phy-mode = "rgmii"; |
||
237 | qcom,id = <0>; |
||
238 | |||
239 | pinctrl-0 = <&rgmii2_pins>; |
||
240 | pinctrl-names = "default"; |
||
241 | mdiobus = <&mdio0>; |
||
242 | |||
243 | fixed-link { |
||
244 | speed = <1000>; |
||
245 | full-duplex; |
||
246 | }; |
||
247 | }; |
||
248 | |||
249 | gmac1: ethernet@37200000 { |
||
250 | status = "ok"; |
||
251 | phy-mode = "rgmii"; |
||
252 | qcom,id = <1>; |
||
253 | mdiobus = <&mdio0>; |
||
254 | |||
255 | fixed-link { |
||
256 | speed = <1000>; |
||
257 | full-duplex; |
||
258 | }; |
||
259 | }; |
||
260 | |||
261 | gmac2: ethernet@37400000 { |
||
262 | status = "ok"; |
||
263 | phy-mode = "sgmii"; |
||
264 | qcom,id = <2>; |
||
265 | mdiobus = <&mdio0>; |
||
266 | |||
267 | fixed-link { |
||
268 | speed = <1000>; |
||
269 | full-duplex; |
||
270 | }; |
||
271 | }; |
||
272 | }; |
||
273 | }; |
||
274 | |||
275 | &adm_dma { |
||
276 | status = "ok"; |
||
277 | }; |