mirror of https://github.com/aredn/aredn.git
72 lines
2.2 KiB
Diff
72 lines
2.2 KiB
Diff
|
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
|
||
|
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
|
||
|
@@ -151,6 +151,7 @@ tplink,archer-d50-v1)
|
||
|
ucidef_set_led_switch "wan_link" "WAN Link" "tp-link:white:wan" "switch0" "0x02" "" "link"
|
||
|
;;
|
||
|
tplink,cpe510-v1|\
|
||
|
+tplink,cpe210-v1|\
|
||
|
tplink,cpe220-v2|\
|
||
|
tplink,cpe220-v3)
|
||
|
ucidef_set_led_netdev "lan0" "LAN0" "tp-link:green:lan0" "eth1"
|
||
|
--- a/target/linux/ath79/base-files/etc/board.d/02_network
|
||
|
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
|
||
|
@@ -103,6 +103,7 @@ ath79_setup_interfaces()
|
||
|
comfast,cf-e110n-v2|\
|
||
|
comfast,cf-e120a-v3|\
|
||
|
tplink,cpe510-v1|\
|
||
|
+ tplink,cpe210-v1|\
|
||
|
tplink,cpe220-v2|\
|
||
|
tplink,cpe220-v3|\
|
||
|
ubnt,nanostation-m|\
|
||
|
--- a/target/linux/ath79/base-files/etc/board.d/03_gpio_switches
|
||
|
+++ b/target/linux/ath79/base-files/etc/board.d/03_gpio_switches
|
||
|
@@ -28,6 +28,7 @@ tplink,archer-c25-v1)
|
||
|
ucidef_add_gpio_switch "led_reset" "LED reset" "19" "1"
|
||
|
;;
|
||
|
tplink,cpe510-v1|\
|
||
|
+tplink,cpe210-v1|\
|
||
|
tplink,cpe220-v2|\
|
||
|
tplink,cpe220-v3)
|
||
|
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
|
||
|
--- /dev/null
|
||
|
+++ b/target/linux/ath79/dts/ar9344_tplink_cpe210-v1.dts
|
||
|
@@ -0,0 +1,13 @@
|
||
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||
|
+/dts-v1/;
|
||
|
+
|
||
|
+#include "ar9344_tplink_cpe_2port.dtsi"
|
||
|
+
|
||
|
+/ {
|
||
|
+ compatible = "tplink,cpe210-v1", "qca,ar9344";
|
||
|
+ model = "TP-Link CPE210 v1";
|
||
|
+};
|
||
|
+
|
||
|
+&led_link4 {
|
||
|
+ gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||
|
+};
|
||
|
--- a/target/linux/ath79/image/generic-tp-link.mk
|
||
|
+++ b/target/linux/ath79/image/generic-tp-link.mk
|
||
|
@@ -143,6 +143,22 @@ define Device/tplink_archer-c7-v5
|
||
|
endef
|
||
|
TARGET_DEVICES += tplink_archer-c7-v5
|
||
|
|
||
|
+define Device/tplink_cpe210-v1
|
||
|
+ $(Device/tplink-safeloader)
|
||
|
+ ATH_SOC := ar9344
|
||
|
+ IMAGE_SIZE := 7680k
|
||
|
+ DEVICE_TITLE := TP-Link CPE210 v1
|
||
|
+ DEVICE_PACKAGES := rssileds
|
||
|
+ TPLINK_BOARD_ID := CPE210
|
||
|
+ LOADER_TYPE := elf
|
||
|
+ LOADER_FLASH_OFFS := 0x43000
|
||
|
+ COMPILE := loader-$(1).elf
|
||
|
+ COMPILE/loader-$(1).elf := loader-okli-compile
|
||
|
+ KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 12288
|
||
|
+ SUPPORTED_DEVICES += cpe210
|
||
|
+endef
|
||
|
+TARGET_DEVICES += tplink_cpe210-v1
|
||
|
+
|
||
|
define Device/tplink_cpe210-v2
|
||
|
$(Device/tplink-safeloader)
|
||
|
ATH_SOC := qca9533
|