3e6732e9df2f52ad92a54fe44b5717baa621cc10
[openwrt/staging/zorun.git] / target / linux / ipq806x / files / 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.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 &usb3_0 {
16 status = "okay";
17 };
18
19 &usb3_1 {
20 status = "okay";
21 };
22
23 &pcie0 {
24 status = "okay";
25
26 max-link-speed = <1>;
27 };
28
29 &pcie1 {
30 status = "okay";
31 };
32
33 &pcie2 {
34 status = "okay";
35 };
36
37 &nand_controller {
38 status = "okay";
39
40 pinctrl-0 = <&nand_pins>;
41 pinctrl-names = "default";
42
43 nand@0 {
44 reg = <0>;
45 compatible = "qcom,nandcs";
46
47 nand-ecc-strength = <4>;
48 nand-bus-width = <8>;
49 nand-ecc-step-size = <512>;
50
51 partitions: partitions {
52 compatible = "fixed-partitions";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 partition@0 {
57 label = "SBL1";
58 reg = <0x0000000 0x0040000>;
59 read-only;
60 };
61
62 partition@40000 {
63 label = "MIBIB";
64 reg = <0x0040000 0x0140000>;
65 read-only;
66 };
67
68 partition@180000 {
69 label = "SBL2";
70 reg = <0x0180000 0x0140000>;
71 read-only;
72 };
73
74 partition@2c0000 {
75 label = "SBL3";
76 reg = <0x02c0000 0x0280000>;
77 read-only;
78 };
79
80 partition@540000 {
81 label = "DDRCONFIG";
82 reg = <0x0540000 0x0120000>;
83 read-only;
84 };
85
86 partition@660000 {
87 label = "SSD";
88 reg = <0x0660000 0x0120000>;
89 read-only;
90 };
91
92 partition@780000 {
93 label = "TZ";
94 reg = <0x0780000 0x0280000>;
95 read-only;
96 };
97
98 partition@a00000 {
99 label = "RPM";
100 reg = <0x0a00000 0x0280000>;
101 read-only;
102 };
103
104 art: partition@c80000 {
105 label = "art";
106 reg = <0x0c80000 0x0140000>;
107 read-only;
108 };
109
110 partition@dc0000 {
111 label = "APPSBL";
112 reg = <0x0dc0000 0x0100000>;
113 read-only;
114 };
115
116 partition@ec0000 {
117 label = "u_env";
118 reg = <0x0ec0000 0x0040000>;
119 };
120
121 partition@f00000 {
122 label = "s_env";
123 reg = <0x0f00000 0x0040000>;
124 };
125
126 partition@f40000 {
127 label = "devinfo";
128 reg = <0x0f40000 0x0040000>;
129 };
130
131 partition@f80000 {
132 label = "kernel1";
133 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs */
134 };
135
136 partition@1280000 {
137 label = "rootfs1";
138 reg = <0x1280000 0x2500000>;
139 };
140
141 partition@3780000 {
142 label = "kernel2";
143 reg = <0x3780000 0x2800000>;
144 };
145
146 partition@3a80000 {
147 label = "rootfs2";
148 reg = <0x3a80000 0x2500000>;
149 };
150 };
151 };
152 };
153
154 &mdio0 {
155 status = "okay";
156
157 pinctrl-0 = <&mdio0_pins>;
158 pinctrl-names = "default";
159
160 phy0: ethernet-phy@0 {
161 reg = <0>;
162 qca,ar8327-initvals = <
163 0x00004 0x7600000 /* PAD0_MODE */
164 0x00008 0x1000000 /* PAD5_MODE */
165 0x0000c 0x80 /* PAD6_MODE */
166 0x00010 0x2613a0 /* PWS_REG */
167 0x000e4 0x6a545 /* MAC_POWER_SEL */
168 0x000e0 0xc74164de /* SGMII_CTRL */
169 0x0007c 0x4e /* PORT0_STATUS */
170 0x00094 0x4e /* PORT6_STATUS */
171 >;
172 };
173 };
174
175 &gmac1 {
176 status = "okay";
177
178 phy-mode = "rgmii";
179 qcom,id = <1>;
180
181 pinctrl-0 = <&rgmii2_pins>;
182 pinctrl-names = "default";
183
184 fixed-link {
185 speed = <1000>;
186 full-duplex;
187 };
188 };
189
190 &gmac2 {
191 status = "okay";
192
193 phy-mode = "sgmii";
194 qcom,id = <2>;
195
196 fixed-link {
197 speed = <1000>;
198 full-duplex;
199 };
200 };
201
202 &adm_dma {
203 status = "okay";
204 };