1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2022, Pawel Dembicki <paweldembicki@gmail.com>.
4 #include "qcom-ipq4019.dtsi"
5 #include <dt-bindings/soc/qcom,tcsr.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/leds/common.h>
12 compatible = "zte,mf286d";
15 led-boot = &led_internal;
16 led-failsafe = &led_internal;
17 led-running = &led_internal;
18 led-upgrade = &led_internal;
23 * bootargs forced by u-boot bootipq command:
24 * 'ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs rootwait'
26 bootargs-append = " root=/dev/ubiblock0_1";
30 compatible = "gpio-restart";
31 gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>;
35 compatible = "gpio-leds";
38 function = LED_FUNCTION_STATUS;
39 color = <LED_COLOR_ID_BLUE>;
40 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
41 label = "blue:internal_led";
42 default-state = "keep";
46 function = LED_FUNCTION_WLAN;
47 color = <LED_COLOR_ID_BLUE>;
48 gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy0tpt";
54 compatible = "gpio-keys";
58 linux,code = <KEY_RFKILL>;
59 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_RESTART>;
65 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_WPS_BUTTON>;
71 gpios = <&tlmm 68 GPIO_ACTIVE_LOW>;
82 pinctrl-0 = <&mdio_pins>;
83 pinctrl-names = "default";
84 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
85 reset-delay-us = <2000>;
89 compatible = "qcom,tcsr";
90 reg = <0x1949000 0x100>;
91 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
96 compatible = "qcom,tcsr";
97 reg = <0x194b000 0x100>;
98 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
103 compatible = "qcom,tcsr";
104 reg = <0x1953000 0x1000>;
105 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
109 compatible = "qcom,tcsr";
110 reg = <0x1957000 0x100>;
111 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
137 pinctrl-0 = <&spi_0_pins>;
138 pinctrl-names = "default";
140 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
143 /* u-boot is looking for "n25q128a11" property */
144 compatible = "jedec,spi-nor", "n25q128a11";
145 #address-cells = <1>;
148 spi-max-frequency = <24000000>;
151 compatible = "fixed-partitions";
152 #address-cells = <1>;
163 reg = <0x40000 0x20000>;
169 reg = <0x60000 0x60000>;
175 reg = <0xc0000 0x10000>;
180 label = "0:DDRPARAMS";
181 reg = <0xd0000 0x10000>;
186 label = "0:APPSBLENV";
187 reg = <0xe0000 0x10000>;
193 reg = <0xf0000 0xc0000>;
198 label = "0:reserved1";
199 reg = <0x1b0000 0x50000>;
207 pinctrl-0 = <&serial_pins>;
208 pinctrl-names = "default";
218 nvmem-cell-names = "mac-address";
219 nvmem-cells = <&macaddr_config_0>;
223 pinctrl-0 = <&nand_pins>;
224 pinctrl-names = "default";
229 compatible = "fixed-partitions";
230 #address-cells = <1>;
241 reg = <0xa0000 0x80000>;
243 compatible = "nvmem-cells";
244 #address-cells = <1>;
247 precal_art_1000: precal@1000 {
248 reg = <0x1000 0x2f20>;
251 precal_art_5000: precal@5000 {
252 reg = <0x5000 0x2f20>;
258 reg = <0x120000 0x80000>;
260 compatible = "nvmem-cells";
261 #address-cells = <1>;
264 macaddr_config_0: macaddr@0 {
271 reg = <0x1a0000 0xc0000>;
277 reg = <0x260000 0x400000>;
283 reg = <0x660000 0x400000>;
288 reg = <0xa60000 0xa0000>;
293 reg = <0xb00000 0x500000>;
299 reg = <0x1000000 0x800000>;
304 reg = <0x1800000 0x1d00000>;
309 reg = <0x3500000 0x1900000>;
314 reg = <0x4e00000 0x3200000>;
349 nvmem-cell-names = "mac-address";
350 nvmem-cells = <&macaddr_config_0>;
351 mac-address-increment = <1>;
355 i2c_0_pins: i2c_0_pinmux {
357 pins = "gpio20", "gpio21";
358 function = "blsp_i2c0";
363 mdio_pins: mdio_pinmux {
377 nand_pins: nand_pins {
379 pins = "gpio52", "gpio53", "gpio58",
386 pins = "gpio54", "gpio55", "gpio56",
388 "gpio62", "gpio63", "gpio64",
389 "gpio65", "gpio66", "gpio67",
396 serial_pins: serial_pinmux {
398 pins = "gpio16", "gpio17";
399 function = "blsp_uart0";
404 spi_0_pins: spi_0_pinmux {
406 function = "blsp_spi0";
407 pins = "gpio13", "gpio14", "gpio15";
408 drive-strength = <12>;
415 drive-strength = <2>;
436 nvmem-cell-names = "pre-calibration", "mac-address";
437 nvmem-cells = <&precal_art_1000>, <&macaddr_config_0>;
438 mac-address-increment = <2>;
439 qcom,ath10k-calibration-variant = "zte,mf286d";
444 nvmem-cell-names = "pre-calibration", "mac-address";
445 nvmem-cells = <&precal_art_5000>, <&macaddr_config_0>;
446 mac-address-increment = <3>;
447 qcom,ath10k-calibration-variant = "zte,mf286d";