OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #include "qcom-ipq8064-v1.0.dtsi" |
2 | |||
3 | / { |
||
4 | model = "Qualcomm IPQ8064/AP148"; |
||
5 | compatible = "qcom,ipq8064-ap148", "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 { |
||
3 | office | 28 | linux,stdout-path = "serial0:115200n8"; |
1 | office | 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 = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32", |
||
82 | "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ; |
||
83 | function = "rgmii2"; |
||
84 | drive-strength = <8>; |
||
85 | bias-disable; |
||
86 | }; |
||
87 | }; |
||
88 | }; |
||
89 | |||
90 | gsbi@16300000 { |
||
91 | qcom,mode = <GSBI_PROT_I2C_UART>; |
||
92 | status = "ok"; |
||
93 | serial@16340000 { |
||
94 | status = "ok"; |
||
95 | }; |
||
96 | |||
97 | /* |
||
98 | * The i2c device on gsbi4 should not be enabled. |
||
99 | * On ipq806x designs gsbi4 i2c is meant for exclusive |
||
100 | * RPM usage. Turning this on in kernel manifests as |
||
101 | * i2c failure for the RPM. |
||
102 | */ |
||
103 | }; |
||
104 | |||
105 | gsbi5: gsbi@1a200000 { |
||
106 | qcom,mode = <GSBI_PROT_SPI>; |
||
107 | status = "ok"; |
||
108 | |||
109 | spi4: spi@1a280000 { |
||
110 | status = "ok"; |
||
111 | spi-max-frequency = <50000000>; |
||
112 | |||
113 | pinctrl-0 = <&spi_pins>; |
||
114 | pinctrl-names = "default"; |
||
115 | |||
116 | cs-gpios = <&qcom_pinmux 20 0>; |
||
117 | |||
118 | flash: m25p80@0 { |
||
119 | compatible = "s25fl256s1"; |
||
120 | #address-cells = <1>; |
||
121 | #size-cells = <1>; |
||
122 | spi-max-frequency = <50000000>; |
||
123 | reg = <0>; |
||
124 | |||
125 | partitions { |
||
126 | compatible = "qcom,smem"; |
||
127 | }; |
||
128 | }; |
||
129 | }; |
||
130 | }; |
||
131 | |||
132 | sata-phy@1b400000 { |
||
133 | status = "ok"; |
||
134 | }; |
||
135 | |||
136 | sata@29000000 { |
||
137 | status = "ok"; |
||
138 | }; |
||
139 | |||
140 | phy@100f8800 { /* USB3 port 1 HS phy */ |
||
141 | status = "ok"; |
||
142 | }; |
||
143 | |||
144 | phy@100f8830 { /* USB3 port 1 SS phy */ |
||
145 | status = "ok"; |
||
146 | }; |
||
147 | |||
148 | phy@110f8800 { /* USB3 port 0 HS phy */ |
||
149 | status = "ok"; |
||
150 | }; |
||
151 | |||
152 | phy@110f8830 { /* USB3 port 0 SS phy */ |
||
153 | status = "ok"; |
||
154 | }; |
||
155 | |||
156 | usb30@0 { |
||
157 | status = "ok"; |
||
158 | }; |
||
159 | |||
160 | usb30@1 { |
||
161 | status = "ok"; |
||
162 | }; |
||
163 | |||
164 | pcie0: pci@1b500000 { |
||
165 | status = "ok"; |
||
166 | }; |
||
167 | |||
168 | pcie1: pci@1b700000 { |
||
169 | status = "ok"; |
||
170 | force_gen1 = <1>; |
||
171 | }; |
||
172 | |||
173 | nand@1ac00000 { |
||
174 | status = "ok"; |
||
175 | |||
176 | pinctrl-0 = <&nand_pins>; |
||
177 | pinctrl-names = "default"; |
||
178 | |||
179 | cs0 { |
||
180 | reg = <0>; |
||
181 | compatible = "qcom,nandcs"; |
||
182 | |||
183 | nand-ecc-strength = <4>; |
||
184 | nand-bus-width = <8>; |
||
185 | nand-ecc-step-size = <512>; |
||
186 | |||
187 | partitions { |
||
188 | compatible = "qcom,smem"; |
||
189 | }; |
||
190 | }; |
||
191 | }; |
||
192 | |||
193 | mdio0: mdio { |
||
194 | compatible = "virtual,mdio-gpio"; |
||
195 | #address-cells = <1>; |
||
196 | #size-cells = <0>; |
||
197 | gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>; |
||
198 | pinctrl-0 = <&mdio0_pins>; |
||
199 | pinctrl-names = "default"; |
||
200 | |||
201 | phy0: ethernet-phy@0 { |
||
3 | office | 202 | device_type = "ethernet-phy"; |
1 | office | 203 | reg = <0>; |
204 | qca,ar8327-initvals = < |
||
205 | 0x00004 0x7600000 /* PAD0_MODE */ |
||
206 | 0x00008 0x1000000 /* PAD5_MODE */ |
||
207 | 0x0000c 0x80 /* PAD6_MODE */ |
||
208 | 0x000e4 0x6a545 /* MAC_POWER_SEL */ |
||
209 | 0x000e0 0xc74164de /* SGMII_CTRL */ |
||
210 | 0x0007c 0x4e /* PORT0_STATUS */ |
||
211 | 0x00094 0x4e /* PORT6_STATUS */ |
||
212 | >; |
||
213 | }; |
||
214 | |||
215 | phy4: ethernet-phy@4 { |
||
3 | office | 216 | device_type = "ethernet-phy"; |
1 | office | 217 | reg = <4>; |
218 | }; |
||
219 | }; |
||
220 | |||
221 | gmac1: ethernet@37200000 { |
||
222 | status = "ok"; |
||
223 | phy-mode = "rgmii"; |
||
224 | qcom,id = <1>; |
||
225 | |||
226 | pinctrl-0 = <&rgmii2_pins>; |
||
227 | pinctrl-names = "default"; |
||
228 | |||
229 | fixed-link { |
||
230 | speed = <1000>; |
||
231 | full-duplex; |
||
232 | }; |
||
233 | }; |
||
234 | |||
235 | gmac2: ethernet@37400000 { |
||
236 | status = "ok"; |
||
237 | phy-mode = "sgmii"; |
||
238 | qcom,id = <2>; |
||
239 | |||
240 | fixed-link { |
||
241 | speed = <1000>; |
||
242 | full-duplex; |
||
243 | }; |
||
244 | }; |
||
245 | }; |
||
246 | }; |
||
247 | |||
248 | &adm_dma { |
||
249 | status = "ok"; |
||
250 | }; |