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>
10 #include <dt-bindings/leds/common.h>
14 compatible = "zte,mf269", "qcom,ipq8074";
17 serial0 = &blsp1_uart5;
18 led-boot = &led_power;
19 led-failsafe = &led_power;
20 led-running = &led_power;
21 led-upgrade = &led_power;
22 label-mac-device = &dp6_syn;
26 stdout-path = "serial0:115200n8";
27 bootargs-append = " root=/dev/ubiblock0_0";
31 compatible = "gpio-keys";
32 pinctrl-0 = <&button_pins>;
33 pinctrl-names = "default";
37 linux,code = <KEY_WPS_BUTTON>;
38 gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-leds";
52 function = LED_FUNCTION_POWER;
53 color = <LED_COLOR_ID_WHITE>;
54 gpio = <&tlmm 56 GPIO_ACTIVE_HIGH>;
60 button_pins: button_pins {
62 pins = "gpio37", "gpio46";
70 pins = "gpio21", "gpio22";
71 function = "blsp4_i2c1";
76 mdio_pins: mdio-pins {
92 usb_pwr_pins: usb_pwr_pins {
104 pinctrl-0 = <&spi_0_pins>;
105 pinctrl-names = "default";
110 compatible = "jedec,spi-nor";
111 #address-cells = <1>;
114 spi-max-frequency = <50000000>;
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
129 reg = <0x50000 0x10000>;
134 label = "0:bootconfig";
135 reg = <0x60000 0x20000>;
140 label = "0:bootconfig1";
141 reg = <0x80000 0x20000>;
147 reg = <0xa0000 0x180000>;
153 reg = <0x220000 0x180000>;
159 reg = <0x3a0000 0x10000>;
164 label = "0:devcfg_1";
165 reg = <0x3b0000 0x10000>;
171 reg = <0x3c0000 0x10000>;
177 reg = <0x3d0000 0x10000>;
183 reg = <0x3e0000 0x40000>;
189 reg = <0x420000 0x40000>;
195 reg = <0x460000 0x10000>;
201 reg = <0x470000 0x10000>;
206 label = "0:appsblenv";
207 reg = <0x480000 0x10000>;
212 reg = <0x490000 0xc0000>;
217 label = "0:appsbl_1";
218 reg = <0x550000 0xc0000>;
224 reg = <0x610000 0x40000>;
229 label = "0:ethphyfw";
230 reg = <0x650000 0x80000>;
238 pinctrl-0 = <&i2c_pins>;
239 pinctrl-names = "default";
242 /* No driver exists */
243 aw9106: gpio-expander@5b {
245 reset-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
273 * Bootloader will find the NAND DT node by the compatible and
274 * then "fixup" it by adding the partitions from the SMEM table
275 * using the legacy bindings thus making it impossible for us
276 * to change the partition table or utilize NVMEM for calibration.
277 * So add a dummy partitions node that bootloader will populate
278 * and set it as disabled so the kernel ignores it instead of
279 * printing warnings due to the broken way bootloader adds the
288 nand-ecc-strength = <4>;
289 nand-ecc-step-size = <512>;
290 nand-bus-width = <8>;
293 compatible = "fixed-partitions";
294 #address-cells = <1>;
299 reg = <0x0000000 0x00a0000>;
305 reg = <0x00a0000 0x0080000>;
309 compatible = "fixed-layout";
310 #address-cells = <1>;
313 macaddr_mac_0: macaddr@0 {
314 compatible = "mac-base";
316 #nvmem-cell-cells = <1>;
323 reg = <0x0120000 0x1400000>;
329 reg = <0x1520000 0x0600000>;
335 reg = <0x1b20000 0x00a0000>;
341 reg = <0x1bc0000 0x0800000>;
346 label = "ubi_kernel";
347 reg = <0x23c0000 0x3400000>;
352 reg = <0x57c0000 0x0800000>;
356 /* rootfs partition is the result of squashing
357 * consecutive stock partitions:
358 * - openwrt_data (25 MiB)
364 reg = <0x5fc0000 0x9a00000>;
379 pinctrl-0 = <&usb_pwr_pins>;
380 pinctrl-names = "default";
387 pinctrl-0 = <&mdio_pins>;
388 pinctrl-names = "default";
390 qca8081_24: ethernet-phy@24 {
391 compatible = "ethernet-phy-id004d.d101";
393 reset-deassert-us = <10000>;
394 reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
397 qca8081_28: ethernet-phy@28 {
398 compatible = "ethernet-phy-id004d.d101";
400 reset-deassert-us = <10000>;
401 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
408 switch_lan_bmp = <ESS_PORT5>; /* lan port bitmap */
409 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
410 switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance1*/
411 switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
417 port_mac_sel = "QGMAC_PORT";
422 port_mac_sel = "QGMAC_PORT";
433 phy-handle = <&qca8081_24>;
435 nvmem-cell-names = "mac-address";
436 nvmem-cells = <&macaddr_mac_0 1>;
441 phy-handle = <&qca8081_28>;
443 nvmem-cell-names = "mac-address";
444 nvmem-cells = <&macaddr_mac_0 0>;
450 qcom,ath11k-calibration-variant = "ZTE-MF269";
451 qcom,ath11k-fw-memory-mode = <1>;