ipq40xx: convert to nvmem-layout
[openwrt/staging/jow.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-mf287plus.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2022, Pawel Dembicki <paweldembicki@gmail.com>.
3 // Copyright (c) 2022, Giammarco Marzano <stich86@gmail.com>.
4 // Copyright (c) 2023, Andreas Böhler <dev@aboehler.at>
5
6 #include "qcom-ipq4018-mf287_common.dtsi"
7
8 / {
9 model = "ZTE MF287Plus";
10 compatible = "zte,mf287plus";
11 };
12
13 &gpio_modem_reset {
14 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
15 };
16
17 &key_reset {
18 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
19 };
20
21 &key_wps {
22 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
23 };
24
25 &led_status {
26 gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
27 };
28
29 &blsp1_spi1 {
30 pinctrl-0 = <&spi_0_pins>;
31 pinctrl-names = "default";
32 status = "okay";
33 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
34 <&tlmm 59 GPIO_ACTIVE_HIGH>,
35 <&tlmm 1 GPIO_ACTIVE_HIGH>;
36
37 flash@0 {
38 compatible = "jedec,spi-nor";
39 #address-cells = <1>;
40 #size-cells = <1>;
41 reg = <0>;
42 spi-max-frequency = <24000000>;
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 partition@0 {
50 label = "0:SBL1";
51 reg = <0x0 0x40000>;
52 read-only;
53 };
54
55 partition@40000 {
56 label = "0:MIBIB";
57 reg = <0x40000 0x20000>;
58 read-only;
59 };
60
61 partition@60000 {
62 label = "0:QSEE";
63 reg = <0x60000 0x60000>;
64 read-only;
65 };
66
67 partition@c0000 {
68 label = "0:CDT";
69 reg = <0xc0000 0x10000>;
70 read-only;
71 };
72
73 partition@d0000 {
74 label = "0:DDRPARAMS";
75 reg = <0xd0000 0x10000>;
76 read-only;
77 };
78
79 partition@e0000 {
80 label = "0:APPSBLENV";
81 reg = <0xe0000 0x10000>;
82 read-only;
83 };
84
85 partition@f0000 {
86 label = "0:APPSBL";
87 reg = <0xf0000 0xc0000>;
88 read-only;
89 };
90
91 partition@1b0000 {
92 label = "0:reserved1";
93 reg = <0x1b0000 0x50000>;
94 read-only;
95 };
96 };
97 };
98
99 spi-nand@1 { /* flash@1 ? */
100 compatible = "spi-nand";
101 reg = <1>;
102 spi-max-frequency = <24000000>;
103
104 partitions {
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 partition@0 {
110 label = "fota-flag";
111 reg = <0x0 0x140000>;
112 read-only;
113 };
114
115 partition@140000 {
116 label = "ART";
117 reg = <0x140000 0x140000>;
118 read-only;
119
120 nvmem-layout {
121 compatible = "fixed-layout";
122 #address-cells = <1>;
123 #size-cells = <1>;
124
125 precal_art_1000: precal@1000 {
126 reg = <0x1000 0x2f20>;
127 };
128
129 precal_art_5000: precal@5000 {
130 reg = <0x5000 0x2f20>;
131 };
132 };
133 };
134
135 partition@280000 {
136 label = "mac";
137 reg = <0x280000 0x140000>;
138 read-only;
139
140 nvmem-layout {
141 compatible = "fixed-layout";
142 #address-cells = <1>;
143 #size-cells = <1>;
144
145 macaddr_mac_0: macaddr@0 {
146 reg = <0x0 0x6>;
147 };
148 };
149 };
150
151 partition@3c0000 {
152 label = "cfg-param";
153 reg = <0x3c0000 0x600000>;
154 read-only;
155 };
156
157 partition@9c0000 {
158 label = "oops";
159 reg = <0x9c0000 0x140000>;
160 };
161
162 partition@b00000 {
163 label = "web";
164 reg = <0xb00000 0x800000>;
165 };
166
167 partition@1300000 {
168 label = "rootfs";
169 reg = <0x1300000 0x2200000>;
170 };
171
172 partition@3500000 {
173 label = "data";
174 reg = <0x3500000 0x1900000>;
175 };
176
177 partition@4e00000 {
178 label = "fota";
179 reg = <0x4e00000 0x3200000>;
180 };
181 };
182 };
183
184 zigbee@2 {
185 #address-cells = <1>;
186 #size-cells = <0>;
187
188 compatible = "silabs,em3581";
189 reg = <2>;
190 spi-max-frequency = <12000000>;
191 };
192 };
193
194 &tlmm {
195 serial_pins: serial_pinmux {
196 mux {
197 pins = "gpio60", "gpio61";
198 function = "blsp_uart0";
199 bias-disable;
200 };
201 };
202
203 spi_0_pins: spi_0_pinmux {
204 pinmux {
205 function = "blsp_spi0";
206 pins = "gpio55", "gpio56", "gpio57";
207 drive-strength = <12>;
208 bias-disable;
209 };
210
211 pinmux_cs {
212 function = "gpio";
213 pins = "gpio54", "gpio59", "gpio1";
214 drive-strength = <2>;
215 bias-disable;
216 output-high;
217 };
218 };
219 };
220
221 &wifi0 {
222 qcom,ath10k-calibration-variant = "zte,mf287plus";
223 };
224
225 &wifi1{
226 qcom,ath10k-calibration-variant = "zte,mf287plus";
227 };