df9425b12a880ce7b1610303fcbdd9cc77c81eca
[openwrt/staging/neocturne.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-rutx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019-ap.dk01.1.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 memory {
10 device_type = "memory";
11 reg = <0x80000000 0x10000000>;
12 };
13
14 soc {
15 pinctrl@1000000 {
16 mdio_pins: mdio_pinmux {
17 mux_1 {
18 pins = "gpio53";
19 function = "mdio";
20 bias-pull-up;
21 };
22 mux_2 {
23 pins = "gpio52";
24 function = "mdc";
25 bias-pull-up;
26 };
27 };
28
29 i2c_0_pins: i2c_0_pinmux {
30 mux {
31 pins = "gpio58", "gpio59";
32 function = "blsp_i2c0";
33 bias-disable;
34 };
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 reset {
42 label = "reset";
43 gpios = <&tlmm 4 1>;
44 linux,code = <KEY_RESTART>;
45 };
46 };
47 };
48 };
49
50 &blsp1_spi1 {
51 cs-gpios = <&tlmm 54 0>, <&tlmm 63 0>;
52 num-cs = <2>;
53
54 xt25f128b@0 {
55 /*
56 * Factory U-boot looks in 0:BOOTCONFIG partition for active
57 * partitions settings and mangles the partition config so
58 * 0:QSEE/0:QSEE_1, 0:CDT/0:CDT_1 and 0:APPSBL/0:APPSBL_1 pairs
59 * can be swaped. It isn't a problem but we never can be sure where
60 * OFW put factory images. "n25q128a11" is required for proper nor
61 * recognition in u-boot.
62 */
63 compatible = "jedec,spi-nor", "n25q128a11";
64 #address-cells = <1>;
65 #size-cells = <1>;
66 reg = <0>;
67 spi-max-frequency = <24000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "0:SBL1";
76 reg = <0x0 0x40000>;
77 read-only;
78 };
79
80 partition@40000 {
81 label = "0:MIBIB";
82 reg = <0x40000 0x20000>;
83 read-only;
84 };
85
86 partition@60000 {
87 label = "0:BOOTCONFIG";
88 reg = <0x60000 0x20000>;
89 read-only;
90 };
91
92 partition@80000 {
93 label = "0:BOOTCONFIG1";
94 reg = <0x80000 0x20000>;
95 read-only;
96 };
97
98 partition@a0000 {
99 label = "0:QSEE";
100 reg = <0xa0000 0x60000>;
101 read-only;
102 };
103
104 partition@100000 {
105 label = "0:QSEE_1";
106 reg = <0x100000 0x60000>;
107 read-only;
108 };
109
110 partition@160000 {
111 label = "0:CDT";
112 reg = <0x160000 0x10000>;
113 read-only;
114 };
115
116 partition@170000 {
117 label = "0:CDT_1";
118 reg = <0x170000 0x10000>;
119 read-only;
120 };
121
122 partition@180000 {
123 label = "0:DDRPARAMS";
124 reg = <0x180000 0x10000>;
125 read-only;
126 };
127
128 partition@190000 {
129 label = "0:APPSBLENV";
130 reg = <0x190000 0x10000>;
131 read-only;
132 };
133
134 partition@1a0000 {
135 label = "0:APPSBL";
136 reg = <0x1a0000 0xa0000>;
137 read-only;
138 };
139
140 partition@240000 {
141 label = "0:APPSBL_1";
142 reg = <0x240000 0xa0000>;
143 read-only;
144 };
145
146 partition@2e0000 {
147 label = "0:ART";
148 reg = <0x2e0000 0x10000>;
149 read-only;
150 };
151
152 config: partition@2f0000 {
153 label = "0:CONFIG";
154 reg = <0x2f0000 0x10000>;
155 read-only;
156 };
157
158 partition@300000 {
159 label = "0:CONFIG_RW";
160 reg = <0x300000 0x10000>;
161 read-only;
162 };
163
164 partition@310000 {
165 label = "0:EVENTSLOG";
166 reg = <0x310000 0x90000>;
167 read-only;
168 };
169 };
170 };
171
172 xt26g02a@1 {
173 /*
174 * Factory U-boot looks in 0:BOOTCONFIG partition for active
175 * partitions settings and mangles the partition config so
176 * rootfs/rootfs_1 pairs can be swaped.
177 * It isn't a problem but we never can be sure where OFW put
178 * factory images. "spinand,mt29f" value is required for proper
179 * nand recognition in u-boot.
180 */
181 compatible = "spi-nand", "spinand,mt29f";
182 #address-cells = <1>;
183 #size-cells = <1>;
184 reg = <1>;
185 spi-max-frequency = <24000000>;
186
187 partitions {
188 compatible = "fixed-partitions";
189 #address-cells = <1>;
190 #size-cells = <1>;
191
192 partition@0 {
193 label = "rootfs_1";
194 reg = <0x00000000 0x08000000>;
195 };
196
197 partition@8000000 {
198 label = "rootfs";
199 reg = <0x08000000 0x08000000>;
200 };
201 };
202 };
203 };
204
205 &mdio {
206 status = "okay";
207 pinctrl-0 = <&mdio_pins>;
208 pinctrl-names = "default";
209 phy-reset-gpio = <&tlmm 62 0>;
210 };