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