- diff --git a/target/linux/ramips/dts/mt7628an_comfast_cf-wr617ac.dts b/target/linux/ramips/dts/mt7628an_comfast_cf-wr617ac.dts
- new file mode 100644
- index 0000000000..b4b2163ab4
- --- /dev/null
- +++ b/target/linux/ramips/dts/mt7628an_comfast_cf-wr617ac.dts
- @@ -0,0 +1,93 @@
- +/dts-v1/;
- +
- +#include "mt7628an.dtsi"
- +
- +/ {
- + compatible = "comfast,cf-wr617ac", "mediatek,mt7628an-soc";
- + model = "Comfast CF-WR617AC";
- +
- + chosen {
- + bootargs = "console=ttyS0,115200";
- + };
- +
- + memory@0 {
- + device_type = "memory";
- + reg = <0x0 0x4000000>;
- + };
- +};
- +
- +&pinctrl {
- + state_default: pinctrl0 {
- + gpio {
- + ralink,group = "i2c";
- + ralink,function = "gpio";
- + };
- + };
- +};
- +
- +&spi0 {
- + status = "okay";
- +
- + m25p80@0 {
- + compatible = "jedec,spi-nor";
- + reg = <0>;
- + spi-max-frequency = <10000000>;
- +
- + partitions {
- + compatible = "fixed-partitions";
- + #address-cells = <1>;
- + #size-cells = <1>;
- +
- + partition@0 {
- + label = "u-boot";
- + reg = <0x0 0x30000>;
- + read-only;
- + };
- +
- + ubootenv: partition@30000 {
- + label = "u-boot-env";
- + reg = <0x30000 0x10000>;
- + read-only;
- + };
- +
- + factory: partition@40000 {
- + label = "factory";
- + reg = <0x40000 0x10000>;
- + read-only;
- + };
- +
- + partition@50000 {
- + compatible = "denx,uimage";
- + label = "firmware";
- + reg = <0x50000 0x760000>;
- + };
- + };
- + };
- +};
- +
- +&pcie {
- + status = "okay";
- +};
- +
- +&pcie0 {
- + wifi@0,0 {
- + compatible = "mediatek,mt76";
- + reg = <0x0000 0 0 0 0>;
- + mediatek,mtd-eeprom = <&factory 0x8000>;
- + ieee80211-freq-limit = <5000000 6000000>;
- + };
- +};
- +
- +ðernet {
- + mtd-mac-address = <&factory 0x4>;
- + mtd-mac-address-increment = <(-1)>;
- +};
- +
- +&esw {
- + mediatek,portmap = <0x2f>;
- + mediatek,portdisable = <0x2a>;
- +};
- +
- +&wmac {
- + status = "okay";
- +};
- diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk
- index 16b5958ad1..396e877da2 100644
- --- a/target/linux/ramips/image/mt76x8.mk
- +++ b/target/linux/ramips/image/mt76x8.mk
- @@ -618,3 +618,14 @@ define Device/zyxel_keenetic-extra-ii
- check-size | zyimage -d 6162 -v "ZyXEL Keenetic Extra II"
- endef
- TARGET_DEVICES += zyxel_keenetic-extra-ii
- +
- +define Device/comfast_cf-wr617ac
- + IMAGE_SIZE := $(ralink_default_fw_size_32M)
- + DTS := CF-WR617AC
- + DEVICE_VENDOR := Comfast
- + DEVICE_MODEL := CF-WR617AC
- + DEVICE_TITLE := Comfast CF-WR617AC
- + DEVICE_PACKAGES := kmod-mt76x2 kmod-rt2800-pci
- + SUPPORTED_DEVICES += cf-wr617ac
- +endef
- +TARGET_DEVICES += comfast_cf-wr617ac