ipq806x: switch default to 6.6
[openwrt/openwrt.git] / target / linux / ipq806x / files-6.1 / arch / arm / boot / dts / qcom-ipq8064-db149.dts
1 #include "qcom-ipq8064-v1.0.dtsi"
2
3 / {
4 model = "Qualcomm IPQ8064/DB149";
5 compatible = "qcom,ipq8064-db149", "qcom,ipq8064";
6
7 aliases {
8 serial0 = &gsbi2_serial;
9 };
10
11 reserved-memory {
12 #address-cells = <1>;
13 #size-cells = <1>;
14 ranges;
15 rsvd@41200000 {
16 reg = <0x41200000 0x300000>;
17 no-map;
18 };
19 };
20 };
21
22 &qcom_pinmux {
23 rgmii0_pins: rgmii0_pins {
24 mux {
25 pins = "gpio2", "gpio66";
26 drive-strength = <8>;
27 bias-disable;
28 };
29 };
30 };
31
32 &gsbi2 {
33 qcom,mode = <GSBI_PROT_I2C_UART>;
34 status = "okay";
35
36 gsbi2_serial: serial@12490000 {
37 status = "okay";
38 };
39 };
40
41 &gsbi4 {
42 status = "disabled";
43 };
44
45 &gsbi4_serial {
46 status = "disabled";
47 };
48
49 &flash {
50 m25p,fast-read;
51
52 partition@0 {
53 label = "lowlevel_init";
54 reg = <0x0 0x1b0000>;
55 };
56
57 partition@1 {
58 label = "u-boot";
59 reg = <0x1b0000 0x80000>;
60 };
61
62 partition@2 {
63 label = "u-boot-env";
64 reg = <0x230000 0x40000>;
65 };
66
67 partition@3 {
68 label = "caldata";
69 reg = <0x270000 0x40000>;
70 };
71
72 partition@4 {
73 label = "firmware";
74 reg = <0x2b0000 0x1d50000>;
75 };
76 };
77
78 &hs_phy_0 {
79 status = "okay";
80 };
81
82 &ss_phy_0 {
83 status = "okay";
84 };
85
86 &usb3_0 {
87 status = "okay";
88 };
89
90 &hs_phy_1 {
91 status = "okay";
92 };
93
94 &ss_phy_1 {
95 status = "okay";
96 };
97
98 &usb3_1 {
99 status = "okay";
100 };
101
102 &pcie0 {
103 status = "okay";
104 };
105
106 &pcie1 {
107 status = "okay";
108 };
109
110 &pcie2 {
111 status = "okay";
112 };
113
114 &mdio0 {
115 status = "okay";
116
117 pinctrl-0 = <&mdio0_pins>;
118 pinctrl-names = "default";
119
120 switch@10 {
121 compatible = "qca,qca8337";
122 #address-cells = <1>;
123 #size-cells = <0>;
124 reg = <0x10>;
125
126 ports {
127 #address-cells = <1>;
128 #size-cells = <0>;
129
130 port@0 {
131 reg = <0>;
132 label = "cpu";
133 ethernet = <&gmac0>;
134 phy-mode = "rgmii";
135 tx-internal-delay-ps = <1000>;
136 rx-internal-delay-ps = <1000>;
137
138 fixed-link {
139 speed = <1000>;
140 full-duplex;
141 };
142 };
143
144 port@1 {
145 reg = <1>;
146 label = "lan4";
147 phy-mode = "internal";
148 phy-handle = <&phy_port1>;
149 };
150
151 port@2 {
152 reg = <2>;
153 label = "lan3";
154 phy-mode = "internal";
155 phy-handle = <&phy_port2>;
156 };
157
158 port@3 {
159 reg = <3>;
160 label = "lan2";
161 phy-mode = "internal";
162 phy-handle = <&phy_port3>;
163 };
164
165 port@4 {
166 reg = <4>;
167 label = "lan1";
168 phy-mode = "internal";
169 phy-handle = <&phy_port4>;
170 };
171
172 port@5 {
173 reg = <5>;
174 label = "wan";
175 phy-mode = "internal";
176 phy-handle = <&phy_port5>;
177 };
178
179 /*
180 port@6 {
181 reg = <0>;
182 label = "cpu";
183 ethernet = <&gmac2>;
184 phy-mode = "rgmii";
185
186 fixed-link {
187 speed = <1000>;
188 full-duplex;
189 pause;
190 asym-pause;
191 };
192 };
193 */
194 };
195
196 mdio {
197 #address-cells = <1>;
198 #size-cells = <0>;
199
200 phy_port1: phy@0 {
201 reg = <0>;
202 };
203
204 phy_port2: phy@1 {
205 reg = <1>;
206 };
207
208 phy_port3: phy@2 {
209 reg = <2>;
210 };
211
212 phy_port4: phy@3 {
213 reg = <3>;
214 };
215
216 phy_port5: phy@4 {
217 reg = <4>;
218 };
219 };
220 };
221
222 phy6: ethernet-phy@6 {
223 reg = <6>;
224 };
225
226 phy7: ethernet-phy@7 {
227 reg = <7>;
228 };
229 };
230
231 &gmac0 {
232 status = "okay";
233 phy-mode = "rgmii";
234 qcom,id = <0>;
235
236 pinctrl-0 = <&rgmii0_pins>;
237 pinctrl-names = "default";
238 };
239
240 &gmac1 {
241 status = "okay";
242 phy-mode = "sgmii";
243 qcom,id = <1>;
244
245 fixed-link {
246 speed = <1000>;
247 full-duplex;
248 };
249 };
250
251 &gmac2 {
252 status = "okay";
253 phy-mode = "sgmii";
254 qcom,id = <2>;
255 phy-handle = <&phy6>;
256 };
257
258 &gmac3 {
259 status = "okay";
260 phy-mode = "sgmii";
261 qcom,id = <3>;
262 phy-handle = <&phy7>;
263 };