c771a627ca1b831dae34c43ed03c6c5f25847bb8
[openwrt/staging/ldir.git] / target / linux / ipq806x / files-5.10 / 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 &usb3_0 {
46 status = "okay";
47 };
48
49 &usb3_1 {
50 status = "okay";
51 };
52
53 &pcie0 {
54 status = "okay";
55 };
56
57 &pcie1 {
58 status = "okay";
59 max-link-speed = <1>;
60 };
61
62 &pcie2 {
63 status = "okay";
64 };
65
66 &nand {
67 status = "okay";
68
69 pinctrl-0 = <&nand_pins>;
70 pinctrl-names = "default";
71
72 nand@0 {
73 reg = <0>;
74 compatible = "qcom,nandcs";
75
76 nand-ecc-strength = <4>;
77 nand-bus-width = <8>;
78 nand-ecc-step-size = <512>;
79
80 partitions {
81 compatible = "qcom,smem-part";
82 };
83 };
84 };
85
86 &mdio0 {
87 status = "okay";
88
89 pinctrl-0 = <&mdio0_pins>;
90 pinctrl-names = "default";
91
92 phy0: ethernet-phy@0 {
93 reg = <0>;
94 qca,ar8327-initvals = <
95 0x00004 0x7600000 /* PAD0_MODE */
96 0x00008 0x1000000 /* PAD5_MODE */
97 0x0000c 0x20080 /* PAD6_MODE */
98 0x000e4 0x6a545 /* MAC_POWER_SEL */
99 0x000e0 0xc74164de /* SGMII_CTRL */
100 0x0007c 0x4e /* PORT0_STATUS */
101 0x00094 0x4e /* PORT6_STATUS */
102 >;
103 };
104
105 phy4: ethernet-phy@4 {
106 reg = <4>;
107 qca,phy-rgmii-en;
108 qca,txclk-delay-en;
109 qca,rxclk-delay-en;
110 };
111
112 phy3: ethernet-phy@3 {
113 device_type = "ethernet-phy";
114 reg = <3>;
115 };
116 };
117
118 &gmac0 {
119 status = "okay";
120 phy-mode = "rgmii";
121 qcom,id = <0>;
122
123 pinctrl-0 = <&rgmii2_pins>;
124 pinctrl-names = "default";
125 mdiobus = <&mdio0>;
126
127 fixed-link {
128 speed = <1000>;
129 full-duplex;
130 };
131 };
132
133 &gmac1 {
134 status = "okay";
135 phy-mode = "rgmii";
136 qcom,id = <1>;
137 mdiobus = <&mdio0>;
138
139 fixed-link {
140 speed = <1000>;
141 full-duplex;
142 };
143 };
144
145 &gmac2 {
146 status = "okay";
147 phy-mode = "sgmii";
148 qcom,id = <2>;
149 mdiobus = <&mdio0>;
150
151 fixed-link {
152 speed = <1000>;
153 full-duplex;
154 };
155 };
156
157 &adm_dma {
158 status = "okay";
159 };