1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include "ipq8074-512m.dtsi"
6 #include "ipq8074-ac-cpu.dtsi"
7 #include "ipq8074-ess.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
13 compatible = "zte,mf269", "qcom,ipq8074";
16 serial0 = &blsp1_uart5;
17 led-boot = &led_power;
18 led-failsafe = &led_power;
19 led-running = &led_power;
20 led-upgrade = &led_power;
21 label-mac-device = &dp6_syn;
25 stdout-path = "serial0:115200n8";
26 bootargs-append = " root=/dev/ubiblock0_0";
30 compatible = "gpio-keys";
31 pinctrl-0 = <&button_pins>;
32 pinctrl-names = "default";
36 linux,code = <KEY_WPS_BUTTON>;
37 gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
48 compatible = "gpio-leds";
51 label = "white:power";
52 gpio = <&tlmm 56 GPIO_ACTIVE_HIGH>;
58 button_pins: button_pins {
60 pins = "gpio37", "gpio46";
68 pins = "gpio21", "gpio22";
69 function = "blsp4_i2c1";
74 mdio_pins: mdio-pins {
90 usb_pwr_pins: usb_pwr_pins {
102 pinctrl-0 = <&spi_0_pins>;
103 pinctrl-names = "default";
108 compatible = "jedec,spi-nor";
109 #address-cells = <1>;
112 spi-max-frequency = <50000000>;
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
127 reg = <0x50000 0x10000>;
132 label = "0:bootconfig";
133 reg = <0x60000 0x20000>;
138 label = "0:bootconfig1";
139 reg = <0x80000 0x20000>;
145 reg = <0xa0000 0x180000>;
151 reg = <0x220000 0x180000>;
157 reg = <0x3a0000 0x10000>;
162 label = "0:devcfg_1";
163 reg = <0x3b0000 0x10000>;
169 reg = <0x3c0000 0x10000>;
175 reg = <0x3d0000 0x10000>;
181 reg = <0x3e0000 0x40000>;
187 reg = <0x420000 0x40000>;
193 reg = <0x460000 0x10000>;
199 reg = <0x470000 0x10000>;
204 label = "0:appsblenv";
205 reg = <0x480000 0x10000>;
210 reg = <0x490000 0xc0000>;
215 label = "0:appsbl_1";
216 reg = <0x550000 0xc0000>;
222 reg = <0x610000 0x40000>;
227 label = "0:ethphyfw";
228 reg = <0x650000 0x80000>;
236 pinctrl-0 = <&i2c_pins>;
237 pinctrl-names = "default";
240 /* No driver exists */
241 aw9106: gpio-expander@5b {
243 reset-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
271 * Bootloader will find the NAND DT node by the compatible and
272 * then "fixup" it by adding the partitions from the SMEM table
273 * using the legacy bindings thus making it impossible for us
274 * to change the partition table or utilize NVMEM for calibration.
275 * So add a dummy partitions node that bootloader will populate
276 * and set it as disabled so the kernel ignores it instead of
277 * printing warnings due to the broken way bootloader adds the
286 nand-ecc-strength = <4>;
287 nand-ecc-step-size = <512>;
288 nand-bus-width = <8>;
291 compatible = "fixed-partitions";
292 #address-cells = <1>;
297 reg = <0x0000000 0x00a0000>;
303 reg = <0x00a0000 0x0080000>;
307 compatible = "fixed-layout";
308 #address-cells = <1>;
311 macaddr_mac_0: macaddr@0 {
312 compatible = "mac-base";
314 #nvmem-cell-cells = <1>;
321 reg = <0x0120000 0x1400000>;
327 reg = <0x1520000 0x0600000>;
333 reg = <0x1b20000 0x00a0000>;
339 reg = <0x1bc0000 0x0800000>;
344 label = "ubi_kernel";
345 reg = <0x23c0000 0x3400000>;
350 reg = <0x57c0000 0x0800000>;
354 /* rootfs partition is the result of squashing
355 * consecutive stock partitions:
356 * - openwrt_data (25 MiB)
362 reg = <0x5fc0000 0x9a00000>;
377 pinctrl-0 = <&usb_pwr_pins>;
378 pinctrl-names = "default";
385 pinctrl-0 = <&mdio_pins>;
386 pinctrl-names = "default";
388 qca8081_24: ethernet-phy@24 {
389 compatible = "ethernet-phy-id004d.d101";
391 reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
394 qca8081_28: ethernet-phy@28 {
395 compatible = "ethernet-phy-id004d.d101";
397 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
404 switch_lan_bmp = <ESS_PORT5>; /* lan port bitmap */
405 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
406 switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance1*/
407 switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
413 port_mac_sel = "QGMAC_PORT";
418 port_mac_sel = "QGMAC_PORT";
429 phy-handle = <&qca8081_24>;
431 nvmem-cell-names = "mac-address";
432 nvmem-cells = <&macaddr_mac_0 1>;
437 phy-handle = <&qca8081_28>;
439 nvmem-cell-names = "mac-address";
440 nvmem-cells = <&macaddr_mac_0 0>;
446 qcom,ath11k-calibration-variant = "ZTE-MF269";
447 qcom,ath11k-fw-memory-mode = <1>;