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