diff options
author | Piotr Dymacz <pepe2k@gmail.com> | 2018-01-23 21:37:16 +0100 |
---|---|---|
committer | Piotr Dymacz <pepe2k@gmail.com> | 2018-02-22 18:53:22 +0100 |
commit | 650a5e993b3b252da511e90706f3759d5ea68ce1 (patch) | |
tree | d154341bc8d38334e2e3d9b9cf98d2cb84a7022d /target/linux/ar71xx/base-files | |
parent | 29d7c29046dba69f92bce528c8dc9d2579862b4c (diff) | |
download | upstream-650a5e993b3b252da511e90706f3759d5ea68ce1.tar.gz upstream-650a5e993b3b252da511e90706f3759d5ea68ce1.tar.bz2 upstream-650a5e993b3b252da511e90706f3759d5ea68ce1.zip |
ar71xx: add support for COMFAST CF-E385AC
COMFAST CF-E385AC is an AC2200 ceiling mount AP with PoE support, based
on Qualcomm/Atheros QCA9558 + QCA9984 + QCA8337N.
Specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 256 MB of RAM (DDR2)
- 16 MB of FLASH (SPI NOR)
- 2x 10/100/1000 Mbps Ethernet, with PoE support
- 3T3R 2.4 GHz (QCA9558), with external LNA and PA (SE2576L)
- 4T4R 5 GHz (QCA9984), with external FEM (SKY85728-11)
- 7x internal antennas
- 1x RGB LED (driven by GPIO)
- 1x button (reset)
- UART, LEDs/GPIO and USB headers on PCB
- external watchdog (Pericon Technology PT7A7514)
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
6 files changed, 25 insertions, 3 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index 85f104a5fd..1b308d7f77 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -218,10 +218,19 @@ cf-e375ac) cf-e355ac-v1|\ cf-e355ac-v2|\ cf-e380ac-v1|\ -cf-e380ac-v2) - ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0" +cf-e380ac-v2|\ +cf-e385ac) ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt" ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:red:wlan5g" "phy0tpt" + + case "$board" in + cf-e385ac) + ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x04" + ;; + *) + ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0" + ;; + esac ;; cf-e520n|\ cf-e530n) diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index 0fe71e0760..434056a344 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -266,6 +266,11 @@ ar71xx_setup_interfaces() rme-eg200) ucidef_set_interface_lan "eth0" "dhcp" ;; + cf-e385ac) + ucidef_set_interfaces_lan_wan "eth0.1" "eth1.2" + ucidef_add_switch "switch0" \ + "0@eth0" "2:lan" "1:wan" "6@eth1" + ;; cpe210|\ cpe510|\ wbs210|\ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index facc77ee60..232e43b8dc 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -149,7 +149,8 @@ get_status_led() { status_led="$board:blue:wlan" ;; cf-e380ac-v1|\ - cf-e380ac-v2) + cf-e380ac-v2|\ + cf-e385ac) status_led="$board:blue:wlan2g" ;; cpe510) diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index 3aa5e3c90f..a3d4867b0b 100644 --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -161,6 +161,9 @@ case "$FIRMWARE" in ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \ /lib/firmware/ath10k/QCA9888/hw2.0/board.bin ;; + cf-e385ac) + ath10kcal_extract "art" 20480 12064 + ;; esac ;; *) diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 842f1c5081..fc578cec65 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -531,6 +531,9 @@ ar71xx_board_detect() { *"CF-E380AC v2") name="cf-e380ac-v2" ;; + *"CF-E385AC") + name="cf-e385ac" + ;; *"CF-E520N") name="cf-e520n" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index c408c7dfce..b080955359 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -213,6 +213,7 @@ platform_check_image() { cf-e375ac|\ cf-e380ac-v1|\ cf-e380ac-v2|\ + cf-e385ac|\ cf-e520n|\ cf-e530n|\ cpe505n|\ |