9d0b451f4360cb548c68fa37d46e8736daa961dd
[openwrt/openwrt.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-ap161.dts
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 mdio-gpio0 = &mdio0;
24 };
25 };
26
27 &qcom_pinmux {
28 rgmii2_pins: rgmii2-pins {
29 mux {
30 pins = "gpio27", "gpio28", "gpio29",
31 "gpio30", "gpio31", "gpio32",
32 "gpio51", "gpio52", "gpio59",
33 "gpio60", "gpio61", "gpio62",
34 "gpio2", "gpio66";
35 };
36 };
37 };
38
39 &flash {
40 partitions {
41 compatible = "qcom,smem-part";
42 };
43 };
44
45 &hs_phy_0 {
46 status = "okay";
47 };
48
49 &ss_phy_0 {
50 status = "okay";
51 };
52
53 &usb3_0 {
54 status = "okay";
55 };
56
57 &hs_phy_1 {
58 status = "okay";
59 };
60
61 &ss_phy_1 {
62 status = "okay";
63 };
64
65 &usb3_1 {
66 status = "okay";
67 };
68
69 &pcie0 {
70 status = "okay";
71 };
72
73 &pcie1 {
74 status = "okay";
75 max-link-speed = <1>;
76 };
77
78 &pcie2 {
79 status = "okay";
80 };
81
82 &nand {
83 status = "okay";
84
85 nand@0 {
86 reg = <0>;
87 compatible = "qcom,nandcs";
88
89 nand-ecc-strength = <4>;
90 nand-bus-width = <8>;
91 nand-ecc-step-size = <512>;
92
93 partitions {
94 compatible = "qcom,smem-part";
95 };
96 };
97 };
98
99 &mdio0 {
100 status = "okay";
101
102 pinctrl-0 = <&mdio0_pins>;
103 pinctrl-names = "default";
104
105 switch@10 {
106 compatible = "qca,qca8337";
107 #address-cells = <1>;
108 #size-cells = <0>;
109 reg = <0x10>;
110
111 ports {
112 #address-cells = <1>;
113 #size-cells = <0>;
114
115 port@0 {
116 reg = <0>;
117 label = "cpu";
118 ethernet = <&gmac0>;
119 phy-mode = "rgmii";
120 tx-internal-delay-ps = <1000>;
121 rx-internal-delay-ps = <1000>;
122
123 fixed-link {
124 speed = <1000>;
125 full-duplex;
126 };
127 };
128
129 port@1 {
130 reg = <1>;
131 label = "lan4";
132 phy-mode = "internal";
133 phy-handle = <&phy_port1>;
134 };
135
136 port@2 {
137 reg = <2>;
138 label = "lan3";
139 phy-mode = "internal";
140 phy-handle = <&phy_port2>;
141 };
142
143 port@3 {
144 reg = <3>;
145 label = "lan2";
146 phy-mode = "internal";
147 phy-handle = <&phy_port3>;
148 };
149
150 port@4 {
151 reg = <4>;
152 label = "lan1";
153 phy-mode = "internal";
154 phy-handle = <&phy_port4>;
155 };
156
157 port@5 {
158 reg = <5>;
159 label = "wan";
160 phy-mode = "internal";
161 phy-handle = <&phy_port5>;
162 };
163
164 /*
165 port@6 {
166 reg = <0>;
167 label = "cpu";
168 ethernet = <&gmac2>;
169 phy-mode = "rgmii";
170
171 fixed-link {
172 speed = <1000>;
173 full-duplex;
174 pause;
175 asym-pause;
176 };
177 };
178 */
179 };
180
181 mdio {
182 #address-cells = <1>;
183 #size-cells = <0>;
184
185 phy_port1: phy@0 {
186 reg = <0>;
187 };
188
189 phy_port2: phy@1 {
190 reg = <1>;
191 };
192
193 phy_port3: phy@2 {
194 reg = <2>;
195 };
196
197 phy_port4: phy@3 {
198 reg = <3>;
199 };
200
201 phy_port5: phy@4 {
202 reg = <4>;
203 };
204 };
205 };
206
207 phy3: ethernet-phy@3 {
208 device_type = "ethernet-phy";
209 reg = <3>;
210 };
211 };
212
213 &gmac0 {
214 status = "okay";
215 phy-mode = "rgmii";
216 qcom,id = <0>;
217
218 pinctrl-0 = <&rgmii2_pins>;
219 pinctrl-names = "default";
220 mdiobus = <&mdio0>;
221
222 fixed-link {
223 speed = <1000>;
224 full-duplex;
225 };
226 };
227
228 &gmac1 {
229 status = "okay";
230 phy-mode = "rgmii";
231 qcom,id = <1>;
232 mdiobus = <&mdio0>;
233
234 fixed-link {
235 speed = <1000>;
236 full-duplex;
237 };
238 };
239
240 &gmac2 {
241 status = "okay";
242 phy-mode = "sgmii";
243 qcom,id = <2>;
244 mdiobus = <&mdio0>;
245
246 fixed-link {
247 speed = <1000>;
248 full-duplex;
249 };
250 };
251
252 &adm_dma {
253 status = "okay";
254 };