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