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>
6 #include "qcom-ipq4018-mf287.dtsi"
9 model = "ZTE MF287Pro";
10 compatible = "zte,mf287pro";
13 compatible = "gpio-export";
17 gpio-export,name = "modem-reset";
18 gpio-export,output = <0>;
19 gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>;
24 compatible = "regulator-fixed";
25 regulator-name = "USB_VBUS";
26 regulator-min-microvolt = <5000000>;
27 regulator-max-microvolt = <5000000>;
30 gpio = <&tlmm 25 GPIO_ACTIVE_LOW>;
35 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
39 gpios = <&tlmm 68 GPIO_ACTIVE_LOW>;
43 gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
48 pinctrl-0 = <&mdio_pins>;
49 pinctrl-names = "default";
50 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
51 reset-delay-us = <2000>;
55 pinctrl-0 = <&spi_0_pins>;
56 pinctrl-names = "default";
58 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>,
59 <&tlmm 54 GPIO_ACTIVE_HIGH>;
62 compatible = "jedec,spi-nor";
66 spi-max-frequency = <24000000>;
69 compatible = "fixed-partitions";
81 reg = <0x40000 0x20000>;
87 reg = <0x60000 0x60000>;
93 reg = <0xc0000 0x10000>;
98 label = "0:DDRPARAMS";
99 reg = <0xd0000 0x10000>;
104 label = "0:APPSBLENV";
105 reg = <0xe0000 0x10000>;
111 reg = <0xf0000 0xc0000>;
116 label = "0:reserved1";
117 reg = <0x1b0000 0x50000>;
123 spi-nand@1 { /* flash@1 ? */
124 compatible = "spi-nand";
126 spi-max-frequency = <24000000>;
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
141 reg = <0xa0000 0x80000>;
143 compatible = "nvmem-cells";
144 #address-cells = <1>;
147 precal_art_1000: precal@1000 {
148 reg = <0x1000 0x2f20>;
151 precal_art_5000: precal@5000 {
152 reg = <0x5000 0x2f20>;
158 reg = <0x120000 0x80000>;
160 compatible = "nvmem-cells";
161 #address-cells = <1>;
164 macaddr_mac_0: macaddr@0 {
171 reg = <0x1a0000 0xc0000>;
176 reg = <0x260000 0x400000>;
182 reg = <0x660000 0x400000>;
187 reg = <0xa60000 0xa0000>;
192 reg = <0xb00000 0x500000>;
197 reg = <0x1000000 0x800000>;
202 reg = <0x1800000 0x1d00000>;
207 reg = <0x3500000 0x1900000>;
212 reg = <0x4e00000 0x3200000>;
219 i2c_0_pins: i2c_0_pinmux {
221 pins = "gpio20", "gpio21";
222 function = "blsp_i2c0";
227 mdio_pins: mdio_pinmux {
241 serial_pins: serial_pinmux {
243 pins = "gpio16", "gpio17";
244 function = "blsp_uart0";
249 spi_0_pins: spi_0_pinmux {
251 function = "blsp_spi0";
252 pins = "gpio12", "gpio13", "gpio14", "gpio15";
253 drive-strength = <12>;
259 pins = "gpio12", "gpio54";
260 drive-strength = <2>;