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 // Copyright (c) 2022 David Bauer <mail@david-bauer.net>
6 #include "qca956x.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,mf281", "qca,qca9563";
17 led-boot = &led_debug;
18 led-failsafe = &led_debug;
19 led-running = &led_debug;
20 led-upgrade = &led_debug;
21 label-mac-device = ð0;
25 compatible = "gpio-leds";
26 pinctrl-names = "default";
27 pinctrl-0 = <&enable_wlan_led_gpio>;
29 /* Hidden SMD LED below signal strength LEDs.
30 * Visible through slits underside of the case.
33 label = "green:debug";
34 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
40 compatible = "gpio-keys";
44 linux,code = <KEY_RESTART>;
45 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
46 debounce-interval = <60>;
51 linux,code = <KEY_WPS_BUTTON>;
52 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
53 debounce-interval = <60>;
57 /* This GPIO is used to reset whole board _including_ the modem */
59 compatible = "gpio-restart";
60 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
61 active-delay = <3000>;
62 inactive-delay = <1000>;
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <25000000>;
75 compatible = "fixed-partitions";
87 reg = <0xa0000 0x20000>;
94 compatible = "spi-nand";
96 spi-max-frequency = <25000000>;
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
105 reg = <0x000000 0xa0000>;
111 reg = <0xa0000 0x80000>;
114 compatible = "nvmem-cells";
115 #address-cells = <1>;
118 cal_caldata_1000: cal@1000 {
119 reg = <0x1000 0x440>;
122 cal_caldata_5000: cal@5000 {
123 reg = <0x5000 0x2f20>;
129 reg = <0x120000 0x80000>;
132 compatible = "nvmem-cells";
133 #address-cells = <1>;
136 macaddr_mac_0: macaddr@0 {
143 reg = <0x1a0000 0xc0000>;
149 reg = <0x260000 0x400000>;
155 reg = <0x660000 0x400000>;
161 reg = <0xa60000 0xa0000>;
167 reg = <0xb00000 0x500000>;
173 reg = <0x1000000 0x800000>;
179 reg = <0x1800000 0x1d00000>;
181 compatible = "fixed-partitions";
182 #address-cells = <1>;
187 reg = <0x0 0x600000>;
192 reg = <0x600000 0x1700000>;
198 reg = <0x3500000 0x1900000>;
204 reg = <0x4e00000 0x3200000>;
214 phy0: ethernet-phy@0 {
218 qca,ar8327-initvals = <
219 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
220 0x7c 0x0000007e /* PORT0_STATUS */
229 phy-handle = <&phy0>;
231 nvmem-cells = <&macaddr_mac_0>;
232 nvmem-cell-names = "mac-address";
239 compatible = "qcom,ath10k";
242 nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_5000>;
243 nvmem-cell-names = "mac-address", "pre-calibration";
244 mac-address-increment = <1>;
249 enable_wlan_led_gpio: pinmux_wlan_led_gpio {
250 pinctrl-single,bits = <0x10 0x0 0xff000000>;
257 nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_1000>;
258 nvmem-cell-names = "mac-address", "calibration";