ath79: Add support for D-Link DIR-869-A1
authorJan Forman <forman.jan96@gmail.com>
Fri, 28 May 2021 07:45:52 +0000 (09:45 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 20 May 2023 11:43:09 +0000 (13:43 +0200)
Specifications
The D-Link EXO AC1750 (DIR-869) router released in 2016.
It is powered by Qualcomm Atheros QCA9563 @ 750 MHz chipset, 64 MB RAM and 16 MB flash.
10/100/1000 Gigabit Ethernet WAN port
Four 10/100/1000 Gigabit Ethernet LAN ports
Power Button, Reset Button, WPS Button, Mode Switch

Flashing
1. Upload factory.bin via D-link web interface (Management/Upgrade).

Revert to stock
Upload original firmware via OpenWrt sysupgrade interface.

Debricking
D-Link Recovery GUI (192.168.0.1)

Signed-off-by: Jan Forman <forman.jan96@gmail.com>
target/linux/ath79/dts/qca9563_dlink_dir-869-a1.dts [new file with mode: 0644]
target/linux/ath79/generic/base-files/etc/board.d/02_network
target/linux/ath79/generic/base-files/etc/uci-defaults/09_fix-checksum
target/linux/ath79/image/generic.mk

diff --git a/target/linux/ath79/dts/qca9563_dlink_dir-869-a1.dts b/target/linux/ath79/dts/qca9563_dlink_dir-869-a1.dts
new file mode 100644 (file)
index 0000000..eab713e
--- /dev/null
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "qca9563_dlink_dir-8x9-a1.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+       model = "D-Link DIR-869 A1";
+       compatible = "dlink,dir-869-a1", "qca,qca9563";
+
+       aliases {
+               led-boot = &led_power_orange;
+               led-failsafe = &led_power_orange;
+               led-running = &led_power_white;
+               led-upgrade = &led_power_orange;
+       };
+
+       leds {
+               compatible = "gpio-leds";
+
+               led_power_orange: power_orange {
+                       label = "orange:power";
+                       gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
+               };
+
+               led_power_white: power_white {
+                       label = "white:power";
+                       gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
+               };
+       };
+};
+
index 1d89f0b86c5e9830de064f8ec3c9bf5bd921e56d..487467cd598d9b965db5b443a658deff217d072a 100644 (file)
@@ -291,6 +291,7 @@ ath79_setup_interfaces()
        dlink,dir-842-c2|\
        dlink,dir-842-c3|\
        dlink,dir-859-a1|\
+       dlink,dir-869-a1|\
        engenius,epg5000|\
        engenius,esr1200|\
        engenius,esr1750|\
@@ -656,6 +657,10 @@ ath79_setup_macs()
                label_mac=$lan_mac
                ;;
        dlink,dir-859-a1|\
+       dlink,dir-869-a1)
+               lan_mac=$(mtd_get_mac_text "devdata" 0xc9)
+               wan_mac=$(mtd_get_mac_text "devdata" 0x79)
+               ;;
        qihoo,c301|\
        wd,mynet-n600|\
        wd,mynet-n750)
index 4d961f26d2980e94ea70cae2d815dc148449bf9e..7f4d6cf428caa05927d9eb1dc4fd21319232aa49 100644 (file)
@@ -22,6 +22,7 @@ dlink,dap-3662-a1)
        fixwrgg
        ;;
 dlink,dir-629-a1|\
+dlink,dir-869-a1|\
 qihoo,c301)
        fix_seama_header
        ;;
index fc9ffa6de9660a159f17bf9990b7bf7521946c5d..d4a419501c0a84fe14a0b917c147204fc9a37d5f 100644 (file)
@@ -1150,11 +1150,24 @@ define Device/dlink_dir-859-a1
   DEVICE_MODEL := DIR-859
   DEVICE_VARIANT := A1
   IMAGE_SIZE := 15872k
-  DEVICE_PACKAGES :=  kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
+  DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
   SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859
 endef
 TARGET_DEVICES += dlink_dir-859-a1
 
+define Device/dlink_dir-869-a1
+  $(Device/seama)
+  SOC := qca9563
+  DEVICE_VENDOR := D-Link
+  DEVICE_MODEL := DIR-869
+  DEVICE_VARIANT := A1
+  IMAGE_SIZE := 15872k
+  DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
+  SEAMA_SIGNATURE := wrgac54_dlink.2015_dir869
+  SUPPORTED_DEVICES += dir-869-a1
+endef
+TARGET_DEVICES += dlink_dir-869-a1
+
 define Device/elecom_wrc-1750ghbk2-i
   SOC := qca9563
   DEVICE_VENDOR := ELECOM