1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2021 Cezary Jackiewicz
3 // Copyright (c) 2021, 2022 Lech Perczak
4 #include "qca956x.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/leds/common.h>
12 compatible = "zte,mf286", "qca,qca9563";
15 led-boot = &led_debug;
16 led-failsafe = &led_debug;
17 led-running = &led_debug;
18 led-upgrade = &led_debug;
19 label-mac-device = ð0;
23 compatible = "gpio-leds";
25 /* Hidden green SMD LED below signal strength LEDs
26 * Visible through slits underside of the case,
27 * and slightly through the case below signal state LEDs */
29 color = <LED_COLOR_ID_GREEN>;
30 function = LED_FUNCTION_DEBUG;
31 label = "green:debug";
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-keys";
42 linux,code = <KEY_RESTART>;
43 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
49 linux,code = <KEY_WPS_BUTTON>;
50 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
51 debounce-interval = <60>;
56 linux,code = <KEY_RFKILL>;
57 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
58 debounce-interval = <60>;
62 /* This GPIO is used to reset whole board _including_ the modem */
64 compatible = "gpio-restart";
65 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
66 active-delay = <3000>;
67 inactive-delay = <1000>;
71 compatible = "mtd-concat";
72 devices = <&ubiconcat0 &ubiconcat1>;
75 compatible = "fixed-partitions";
80 reg = <0x0 0x7840000>;
88 /* GPIO19 is used as a mask to enable WLAN LED
89 * in stock firmware, which is controlled directly
90 * by 5GHz Wi-Fi chip, which currently is inactive
94 gpios = <19 GPIO_ACTIVE_LOW>;
96 line-name = "led:wlan";
104 compatible = "jedec,spi-nor";
106 spi-max-frequency = <25000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
115 reg = <0x000000 0x080000>;
120 label = "u-boot-env";
121 reg = <0x080000 0x020000>;
128 compatible = "spi-nand";
130 spi-max-frequency = <25000000>;
133 compatible = "fixed-partitions";
134 #address-cells = <1>;
139 reg = <0x000000 0x140000>;
143 caldata: partition@140000 {
145 reg = <0x140000 0x140000>;
148 compatible = "nvmem-cells";
149 #address-cells = <1>;
152 cal_caldata_1000: cal@1000 {
153 reg = <0x1000 0x440>;
156 cal_caldata_5000: cal@5000 {
157 reg = <0x5000 0x844>;
161 mac: partition@280000 {
163 reg = <0x280000 0x140000>;
166 compatible = "nvmem-cells";
167 #address-cells = <1>;
170 macaddr_mac_0: macaddr@0 {
175 /* This encompasses stock cfg-param, oops, web partitions,
176 * which can be overwritten safely */
177 ubiconcat0: partition@3c0000 {
178 label = "ubiconcat0";
179 reg = <0x3c0000 0xf40000>;
182 /* Kernel MTD size is increased to 4MB from stock 3MB */
185 reg = <0x1300000 0x400000>;
188 /* This encompasses stock rootfs, data, fota partitions,
189 * which can be overwritten safely */
190 ubiconcat1: partition@1600000 {
191 label = "ubiconcat1";
192 reg = <0x1700000 0x6900000>;
202 phy0: ethernet-phy@0 {
206 qca,ar8327-initvals = <
207 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
208 0x7c 0x0000007e /* PORT0_STATUS */
216 nvmem-cells = <&macaddr_mac_0>;
217 nvmem-cell-names = "mac-address";
219 phy-handle = <&phy0>;
226 compatible = "qcom,ath10k";
229 nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_5000>;
230 nvmem-cell-names = "mac-address", "calibration";
231 mac-address-increment = <1>;
238 nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_1000>;
239 nvmem-cell-names = "mac-address", "calibration";