02ddbf31180fc18af6c9f13d63af0977fac5e6b7
[openwrt/openwrt.git] / target / linux / ipq806x / files-6.1 / 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 phy0: ethernet-phy@0 {
106 reg = <0>;
107 qca,ar8327-initvals = <
108 0x00004 0x7600000 /* PAD0_MODE */
109 0x00008 0x1000000 /* PAD5_MODE */
110 0x0000c 0x20080 /* PAD6_MODE */
111 0x000e4 0x6a545 /* MAC_POWER_SEL */
112 0x000e0 0xc74164de /* SGMII_CTRL */
113 0x0007c 0x4e /* PORT0_STATUS */
114 0x00094 0x4e /* PORT6_STATUS */
115 >;
116 };
117
118 phy4: ethernet-phy@4 {
119 reg = <4>;
120 qca,phy-rgmii-en;
121 qca,txclk-delay-en;
122 qca,rxclk-delay-en;
123 };
124
125 phy3: ethernet-phy@3 {
126 device_type = "ethernet-phy";
127 reg = <3>;
128 };
129 };
130
131 &gmac0 {
132 status = "okay";
133 phy-mode = "rgmii";
134 qcom,id = <0>;
135
136 pinctrl-0 = <&rgmii2_pins>;
137 pinctrl-names = "default";
138 mdiobus = <&mdio0>;
139
140 fixed-link {
141 speed = <1000>;
142 full-duplex;
143 };
144 };
145
146 &gmac1 {
147 status = "okay";
148 phy-mode = "rgmii";
149 qcom,id = <1>;
150 mdiobus = <&mdio0>;
151
152 fixed-link {
153 speed = <1000>;
154 full-duplex;
155 };
156 };
157
158 &gmac2 {
159 status = "okay";
160 phy-mode = "sgmii";
161 qcom,id = <2>;
162 mdiobus = <&mdio0>;
163
164 fixed-link {
165 speed = <1000>;
166 full-duplex;
167 };
168 };
169
170 &adm_dma {
171 status = "okay";
172 };