adf5192ac8cc0b3ce279f0e108cb5f4dde0f4630
[openwrt/staging/aparcar.git] / target / linux / ipq806x / files-5.15 / arch / arm / boot / dts / qcom-ipq8064-eax500.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq8064-v2.0-smb208.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 chosen {
9 bootargs = "console=ttyMSM0,115200n8";
10 /* append to bootargs adding the root deviceblock nbr from bootloader */
11 append-rootblock = "ubi.mtd=";
12 };
13 };
14
15 &hs_phy_0 {
16 status = "okay";
17 };
18
19 &ss_phy_0 {
20 status = "okay";
21 };
22
23 &usb3_0 {
24 status = "okay";
25 };
26
27 &hs_phy_1 {
28 status = "okay";
29 };
30
31 &ss_phy_1 {
32 status = "okay";
33 };
34
35 &usb3_1 {
36 status = "okay";
37 };
38
39 &pcie0 {
40 status = "okay";
41
42 max-link-speed = <1>;
43 };
44
45 &pcie1 {
46 status = "okay";
47 };
48
49 &pcie2 {
50 status = "okay";
51 };
52
53 &nand {
54 status = "okay";
55
56 nand@0 {
57 reg = <0>;
58 compatible = "qcom,nandcs";
59
60 nand-ecc-strength = <4>;
61 nand-bus-width = <8>;
62 nand-ecc-step-size = <512>;
63
64 nand-is-boot-medium;
65 qcom,boot-partitions = <0x0 0x0c80000>;
66
67 partitions: partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "SBL1";
74 reg = <0x0000000 0x0040000>;
75 read-only;
76 };
77
78 partition@40000 {
79 label = "MIBIB";
80 reg = <0x0040000 0x0140000>;
81 read-only;
82 };
83
84 partition@180000 {
85 label = "SBL2";
86 reg = <0x0180000 0x0140000>;
87 read-only;
88 };
89
90 partition@2c0000 {
91 label = "SBL3";
92 reg = <0x02c0000 0x0280000>;
93 read-only;
94 };
95
96 partition@540000 {
97 label = "DDRCONFIG";
98 reg = <0x0540000 0x0120000>;
99 read-only;
100 };
101
102 partition@660000 {
103 label = "SSD";
104 reg = <0x0660000 0x0120000>;
105 read-only;
106 };
107
108 partition@780000 {
109 label = "TZ";
110 reg = <0x0780000 0x0280000>;
111 read-only;
112 };
113
114 partition@a00000 {
115 label = "RPM";
116 reg = <0x0a00000 0x0280000>;
117 read-only;
118 };
119
120 art: partition@c80000 {
121 label = "art";
122 reg = <0x0c80000 0x0140000>;
123 read-only;
124 };
125
126 partition@dc0000 {
127 label = "APPSBL";
128 reg = <0x0dc0000 0x0100000>;
129 read-only;
130 };
131
132 partition@ec0000 {
133 label = "u_env";
134 reg = <0x0ec0000 0x0040000>;
135 };
136
137 partition@f00000 {
138 label = "s_env";
139 reg = <0x0f00000 0x0040000>;
140 };
141
142 partition@f40000 {
143 label = "devinfo";
144 reg = <0x0f40000 0x0040000>;
145 };
146
147 partition@f80000 {
148 label = "kernel1";
149 reg = <0x0f80000 0x2800000>; /* 4 MB, spill to rootfs */
150 };
151
152 partition@1380000 {
153 label = "rootfs1";
154 reg = <0x1380000 0x2400000>;
155 };
156
157 partition@3780000 {
158 label = "kernel2";
159 reg = <0x3780000 0x2800000>;
160 };
161
162 partition@3b80000 {
163 label = "rootfs2";
164 reg = <0x3b80000 0x2400000>;
165 };
166 };
167 };
168 };
169
170 &mdio0 {
171 status = "okay";
172
173 pinctrl-0 = <&mdio0_pins>;
174 pinctrl-names = "default";
175
176 phy0: ethernet-phy@0 {
177 reg = <0>;
178 qca,ar8327-initvals = <
179 0x00004 0x7600000 /* PAD0_MODE */
180 0x00008 0x1000000 /* PAD5_MODE */
181 0x0000c 0x80 /* PAD6_MODE */
182 0x00010 0x2613a0 /* PWS_REG */
183 0x000e4 0x6a545 /* MAC_POWER_SEL */
184 0x000e0 0xc74164de /* SGMII_CTRL */
185 0x0007c 0x4e /* PORT0_STATUS */
186 0x00094 0x4e /* PORT6_STATUS */
187 >;
188 };
189 };
190
191 &gmac1 {
192 status = "okay";
193
194 phy-mode = "rgmii";
195 qcom,id = <1>;
196
197 pinctrl-0 = <&rgmii2_pins>;
198 pinctrl-names = "default";
199
200 fixed-link {
201 speed = <1000>;
202 full-duplex;
203 };
204 };
205
206 &gmac2 {
207 status = "okay";
208
209 phy-mode = "sgmii";
210 qcom,id = <2>;
211
212 fixed-link {
213 speed = <1000>;
214 full-duplex;
215 };
216 };
217
218 &adm_dma {
219 status = "okay";
220 };