1. diff --git a/target/linux/ramips/dts/CF-WR617AC.dts b/target/linux/ramips/dts/CF-WR617AC.dts
  2. new file mode 100644
  3. index 0000000000..f669dc1590
  4. --- /dev/null
  5. +++ b/target/linux/ramips/dts/CF-WR617AC.dts
  6. @@ -0,0 +1,70 @@
  7. +/dts-v1/;
  8. +
  9. +#include "mt7628an.dtsi"
  10. +
  11. +/ {
  12. + compatible = "comfast,cf-wr617ac", "mediatek,mt7628an-soc";
  13. + model = "Comfast CF-WR617AC";
  14. +
  15. + chosen {
  16. + bootargs = "console=ttyS0,115200";
  17. + };
  18. +
  19. + memory@0 {
  20. + device_type = "memory";
  21. + reg = <0x0 0x4000000>;
  22. + };
  23. +};
  24. +
  25. +&pinctrl {
  26. + state_default: pinctrl0 {
  27. + gpio {
  28. + ralink,group = "i2c";
  29. + ralink,function = "gpio";
  30. + };
  31. + };
  32. +};
  33. +
  34. +&spi0 {
  35. + status = "okay";
  36. +
  37. + m25p80@0 {
  38. + compatible = "jedec,spi-nor";
  39. + reg = <0>;
  40. + spi-max-frequency = <10000000>;
  41. +
  42. + partitions {
  43. + compatible = "fixed-partitions";
  44. + #address-cells = <1>;
  45. + #size-cells = <1>;
  46. +
  47. + partition@0 {
  48. + label = "u-boot";
  49. + reg = <0x0 0x30000>;
  50. + read-only;
  51. + };
  52. +
  53. + partition@30000 {
  54. + label = "u-boot-env";
  55. + reg = <0x30000 0x10000>;
  56. + read-only;
  57. + };
  58. +
  59. + factory: partition@40000 {
  60. + label = "factory";
  61. + reg = <0x40000 0x10000>;
  62. + read-only;
  63. + };
  64. +
  65. + partition@50000 {
  66. + compatible = "denx,uimage";
  67. + label = "firmware";
  68. + reg = <0x50000 0x760000>;
  69. + };
  70. + };
  71. + };
  72. +};
  73. +
  74. +&wmac {
  75. + status = "okay";
  76. +};
  77. diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk
  78. index 7df5c04297..ceaef7797f 100644
  79. --- a/target/linux/ramips/image/mt76x8.mk
  80. +++ b/target/linux/ramips/image/mt76x8.mk
  81. @@ -40,6 +40,17 @@ define Device/cudy_wr1000
  82. endef
  83. TARGET_DEVICES += cudy_wr1000
  84. +define Device/comfast_cf-wr617ac
  85. + IMAGE_SIZE := $(ralink_default_fw_size_16M)
  86. + DTS := CF-WR617AC
  87. + DEVICE_VENDOR := Comfast
  88. + DEVICE_MODEL := CF-WR617AC
  89. + DEVICE_PACKAGES := kmod-mt76x2
  90. + DEVICE_TITLE := Comfast CF-WR617AC
  91. + SUPPORTED_DEVICES += cf-wr617ac
  92. +endef
  93. +TARGET_DEVICES += comfast_cf-wr617ac
  94. +
  95. define Device/tama_w06
  96. DTS := W06
  97. IMAGE_SIZE := 15040k