43e39bdf960017cfd2432c1b39c60f09ac7238e9
[openwrt/staging/hauke.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-mf287.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 MF287";
10 compatible = "zte,mf287";
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 compatible = "nvmem-cells";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 precal_art_1000: precal@1000 {
124 reg = <0x1000 0x2f20>;
125 };
126
127 precal_art_5000: precal@5000 {
128 reg = <0x5000 0x2f20>;
129 };
130 };
131
132 partition@280000 {
133 label = "mac";
134 reg = <0x280000 0x140000>;
135 read-only;
136 compatible = "nvmem-cells";
137 #address-cells = <1>;
138 #size-cells = <1>;
139
140 macaddr_mac_0: macaddr@0 {
141 reg = <0x0 0x6>;
142 };
143 };
144
145 partition@3c0000 {
146 label = "cfg-param";
147 reg = <0x3c0000 0x600000>;
148 read-only;
149 };
150
151 partition@9c0000 {
152 label = "oops";
153 reg = <0x9c0000 0x140000>;
154 };
155
156 partition@b00000 {
157 label = "web";
158 reg = <0xb00000 0x800000>;
159 };
160
161 partition@1300000 {
162 label = "rootfs";
163 reg = <0x1300000 0x2200000>;
164 };
165
166 partition@3500000 {
167 label = "data";
168 reg = <0x3500000 0x1900000>;
169 };
170
171 partition@4e00000 {
172 label = "fota";
173 reg = <0x4e00000 0x3200000>;
174 };
175 };
176 };
177
178 zigbee@2 {
179 #address-cells = <1>;
180 #size-cells = <0>;
181
182 compatible = "silabs,em3581";
183 reg = <2>;
184 spi-max-frequency = <12000000>;
185 };
186 };
187
188 &tlmm {
189 serial_pins: serial_pinmux {
190 mux {
191 pins = "gpio60", "gpio61";
192 function = "blsp_uart0";
193 bias-disable;
194 };
195 };
196
197 spi_0_pins: spi_0_pinmux {
198 pinmux {
199 function = "blsp_spi0";
200 pins = "gpio55", "gpio56", "gpio57";
201 drive-strength = <12>;
202 bias-disable;
203 };
204
205 pinmux_cs {
206 function = "gpio";
207 pins = "gpio54", "gpio59", "gpio1";
208 drive-strength = <2>;
209 bias-disable;
210 output-high;
211 };
212 };
213 };
214
215 &wifi0 {
216 qcom,ath10k-calibration-variant = "zte,mf287";
217 };
218
219 &wifi1{
220 qcom,ath10k-calibration-variant = "zte,mf287";
221 };