1 diff --git a/openwrt/target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts b/openwrt/target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts
3 index 0000000000..df0b7f0d65
5 +++ b/openwrt/target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts
7 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
10 +#include <dt-bindings/gpio/gpio.h>
11 +#include <dt-bindings/input/input.h>
13 +#include "qca953x.dtsi"
16 + compatible = "comfast,cf-ew72", "qca,qca9531";
17 + model = "COMFAST CF-EW72";
21 + led-boot = &led_wan;
22 + led-failsafe = &led_wan;
23 + led-upgrade = &led_wan;
27 + compatible = "gpio-leds";
29 + pinctrl-names = "default";
30 + pinctrl-0 = <&jtag_disable_pins>;
33 + label = "cf-ew72:blue:lan";
34 + gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
38 + label = "cf-ew72:blue:wan";
39 + gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
43 + label = "cf-ew72:blue:wlan";
44 + gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
45 + linux,default-trigger = "phy0tpt";
50 + compatible = "gpio-keys";
54 + linux,code = <KEY_RESTART>;
55 + gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
56 + debounce-interval = <60>;
61 + compatible = "linux,wdt-gpio";
63 + gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
65 + hw_margin_ms = <1200>;
80 + compatible = "winbond,w25q128", "jedec,spi-nor";
82 + spi-max-frequency = <25000000>;
85 + compatible = "fixed-partitions";
86 + #address-cells = <1>;
91 + reg = <0x000000 0x010000>;
95 + art: partition@10000 {
97 + reg = <0x010000 0x010000>;
102 + compatible = "denx,uimage";
103 + label = "firmware";
104 + reg = <0x020000 0xfd0000>;
109 + reg = <0xff0000 0x010000>;
123 + phy-handle = <&swphy4>;
124 + mtd-mac-address = <&art 0x0>;
125 + mtd-mac-address-increment = <1>;
129 + mtd-mac-address = <&art 0x0>;
135 + mtd-cal-data = <&art 0x1000>;
136 + mtd-mac-address = <&art 0x0>;
137 + mtd-mac-address-increment = <3>;
140 diff --git a/openwrt/target/linux/ath79/base-files/etc/board.d/01_leds b/openwrt/target/linux/ath79/base-files/etc/board.d/01_leds
141 index 058ab006e5..de0e6da854 100755
142 --- a/openwrt/target/linux/ath79/base-files/etc/board.d/01_leds
143 +++ b/openwrt/target/linux/ath79/base-files/etc/board.d/01_leds
144 @@ -59,6 +59,10 @@ comfast,cf-e5)
145 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$boardname:blue:rssi1" "wlan0" "33" "100"
146 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:blue:rssi2" "wlan0" "66" "100"
149 + ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x02"
150 + ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:wan" "eth1"
153 ucidef_set_led_switch "internet" "WAN" "$boardname:green:internet" "switch0" "0x20"
155 diff --git a/openwrt/target/linux/ath79/image/generic.mk b/openwrt/target/linux/ath79/image/generic.mk
156 index 55053be34f..c843e22e8a 100644
157 --- a/openwrt/target/linux/ath79/image/generic.mk
158 +++ b/openwrt/target/linux/ath79/image/generic.mk
159 @@ -205,6 +205,16 @@ define Device/comfast_cf-e5
161 TARGET_DEVICES += comfast_cf-e5
163 +define Device/comfast_cf-ew72
165 + DEVICE_TITLE := COMFAST CF-EW72
166 + DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9888-ct \
167 + -uboot-envtools -swconfig
168 + IMAGE_SIZE := 16192k
171 +TARGET_DEVICES += comfast_cf-ew72
173 define Device/devolo_dvl1200e
175 DEVICE_TITLE := devolo WiFi pro 1200e
176 --- a/openwrt/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
177 +++ b/openwrt/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
180 "ath10k/pre-cal-pci-0000:00:00.0.bin")
183 + ath10kcal_extract "art" 20480 12064
184 + ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) +2)
185 + ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
186 + /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
187 + rm /lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
190 ath10kcal_extract "art" 20480 12064
191 ath10kcal_patch_mac_crc $(mtd_get_mac_ascii devdata wlan5mac)