--- /dev/null
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "qca9563_dlink_dir-8x9-a1.dtsi"
+
+#include <dt-bindings/leds/common.h>
+
+/ {
+ compatible = "dlink,dir-859-a3", "qca,qca9563";
+ model = "D-Link DIR-859 A3";
+
+ aliases {
+ label-mac-device = &wmac;
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_power: power {
+ label = "green:power";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_POWER;
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
+ };
+
+ wan {
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_WAN;
+ gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
+ };
+
+ wlan {
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_WLAN;
+ gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "phy0tpt";
+ };
+
+ wps {
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_WPS;
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&ath10k {
+ nvmem-cells = <&calibration_ath10k>, <&macaddr_bdcfg_ethaddr 2>;
+ nvmem-cell-names = "calibration", "mac-address";
+};
+
+&bdcfg {
+ macaddr_bdcfg_ethaddr: ethaddr {
+ #nvmem-cell-cells = <1>;
+ };
+};
+
+&wmac {
+ nvmem-cells = <&calibration_ath9k>, <&macaddr_bdcfg_ethaddr 0>;
+ nvmem-cell-names = "calibration", "mac-address";
+};
endef
TARGET_DEVICES += dlink_dir-842-c3
-define Device/dlink_dir-859-a1
+define Device/dlink_dir-859-ax
$(Device/seama)
SOC := qca9563
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DIR-859
- DEVICE_VARIANT := A1
IMAGE_SIZE := 15872k
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859
endef
+
+define Device/dlink_dir-859-a1
+ $(Device/dlink_dir-859-ax)
+ DEVICE_VARIANT := A1
+endef
TARGET_DEVICES += dlink_dir-859-a1
+define Device/dlink_dir-859-a3
+ $(Device/dlink_dir-859-ax)
+ DEVICE_VARIANT := A3
+endef
+TARGET_DEVICES += dlink_dir-859-a3
+
define Device/dlink_dir-869-a1
$(Device/seama)
SOC := qca9563