2015-09-11 16:31:35 +00:00
|
|
|
/*
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
* Support for COMFAST boards:
|
|
|
|
* - CF-E316N v2 (AR9341)
|
|
|
|
* - CF-E320N v2 (QCA9531)
|
2018-02-05 20:31:07 +00:00
|
|
|
* - CF-E355AC v1 (QCA9531 + QCA9882)
|
2018-01-22 06:57:57 +00:00
|
|
|
* - CF-E355AC v2 (QCA9531 + QCA9886)
|
2018-02-07 03:47:52 +00:00
|
|
|
* - CF-E375AC (QCA9563 + QCA9886 + QCA8337)
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
* - CF-E380AC v1/v2 (QCA9558)
|
2018-01-23 20:37:16 +00:00
|
|
|
* - CF-E385AC (QCA9558 + QCA9984 + QCA8337)
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
* - CF-E520N/CF-E530N (QCA9531)
|
2015-09-11 16:31:35 +00:00
|
|
|
*
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
* Copyright (C) 2016 Piotr Dymacz <pepe2k@gmail.com>
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
* Copyright (C) 2016 Gareth Parker <gareth41@orcon.net.nz>
|
2015-09-11 16:31:35 +00:00
|
|
|
* Copyright (C) 2015 Paul Fertser <fercerpav@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
|
|
* by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/gpio.h>
|
2018-02-07 03:47:52 +00:00
|
|
|
#include <linux/ar8216_platform.h>
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
#include <linux/platform_data/phy-at803x.h>
|
2015-09-11 16:31:35 +00:00
|
|
|
#include <linux/platform_device.h>
|
|
|
|
#include <linux/timer.h>
|
|
|
|
|
|
|
|
#include <asm/mach-ath79/ath79.h>
|
|
|
|
#include <asm/mach-ath79/ar71xx_regs.h>
|
|
|
|
|
|
|
|
#include "common.h"
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
#include "dev-ap9x-pci.h"
|
2015-09-11 16:31:35 +00:00
|
|
|
#include "dev-eth.h"
|
|
|
|
#include "dev-gpio-buttons.h"
|
|
|
|
#include "dev-leds-gpio.h"
|
|
|
|
#include "dev-m25p80.h"
|
|
|
|
#include "dev-wmac.h"
|
|
|
|
#include "dev-usb.h"
|
|
|
|
#include "machtypes.h"
|
2018-01-23 20:37:16 +00:00
|
|
|
#include "pci.h"
|
2015-09-11 16:31:35 +00:00
|
|
|
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
#define CF_EXXXN_KEYS_POLL_INTERVAL 20
|
|
|
|
#define CF_EXXXN_KEYS_DEBOUNCE_INTERVAL (3 * CF_EXXXN_KEYS_POLL_INTERVAL)
|
|
|
|
|
|
|
|
/* CF-E316N v2 */
|
|
|
|
#define CF_E316N_V2_GPIO_LED_DIAG_B 0
|
|
|
|
#define CF_E316N_V2_GPIO_LED_DIAG_R 2
|
|
|
|
#define CF_E316N_V2_GPIO_LED_DIAG_G 3
|
|
|
|
#define CF_E316N_V2_GPIO_LED_WLAN 12
|
|
|
|
#define CF_E316N_V2_GPIO_LED_WAN 17
|
|
|
|
#define CF_E316N_V2_GPIO_LED_LAN 19
|
|
|
|
|
|
|
|
#define CF_E316N_V2_GPIO_EXT_WDT 16
|
|
|
|
|
|
|
|
#define CF_E316N_V2_GPIO_EXTERNAL_PA0 13
|
|
|
|
#define CF_E316N_V2_GPIO_EXTERNAL_PA1 14
|
|
|
|
|
|
|
|
#define CF_E316N_V2_GPIO_BTN_RESET 20
|
|
|
|
|
2015-09-11 16:31:35 +00:00
|
|
|
static struct gpio_led cf_e316n_v2_leds_gpio[] __initdata = {
|
|
|
|
{
|
|
|
|
.name = "cf-e316n-v2:blue:diag",
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
.gpio = CF_E316N_V2_GPIO_LED_DIAG_B,
|
2015-09-11 16:31:35 +00:00
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e316n-v2:red:diag",
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
.gpio = CF_E316N_V2_GPIO_LED_DIAG_R,
|
2015-09-11 16:31:35 +00:00
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e316n-v2:green:diag",
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
.gpio = CF_E316N_V2_GPIO_LED_DIAG_G,
|
2015-09-11 16:31:35 +00:00
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e316n-v2:blue:wlan",
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
.gpio = CF_E316N_V2_GPIO_LED_WLAN,
|
2015-09-11 16:31:35 +00:00
|
|
|
.active_low = 1,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e316n-v2:blue:wan",
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
.gpio = CF_E316N_V2_GPIO_LED_WAN,
|
2015-09-11 16:31:35 +00:00
|
|
|
.active_low = 1,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e316n-v2:blue:lan",
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
.gpio = CF_E316N_V2_GPIO_LED_LAN,
|
2015-09-11 16:31:35 +00:00
|
|
|
.active_low = 1,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct gpio_keys_button cf_e316n_v2_gpio_keys[] __initdata = {
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
{
|
|
|
|
.desc = "reset",
|
|
|
|
.type = EV_KEY,
|
|
|
|
.code = KEY_RESTART,
|
|
|
|
.debounce_interval = CF_EXXXN_KEYS_DEBOUNCE_INTERVAL,
|
|
|
|
.gpio = CF_E316N_V2_GPIO_BTN_RESET,
|
|
|
|
.active_low = 1,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
/* CF-E320N v2 */
|
|
|
|
#define CF_E320N_V2_GPIO_LED_WLAN 0
|
|
|
|
#define CF_E320N_V2_GPIO_LED_WAN 2
|
|
|
|
#define CF_E320N_V2_GPIO_LED_LAN 3
|
|
|
|
|
|
|
|
#define CF_E320N_V2_GPIO_HEADER_J9_1 14
|
|
|
|
#define CF_E320N_V2_GPIO_HEADER_J9_2 12
|
|
|
|
#define CF_E320N_V2_GPIO_HEADER_J9_3 11
|
|
|
|
#define CF_E320N_V2_GPIO_HEADER_J9_4 16
|
|
|
|
|
|
|
|
#define CF_E320N_V2_GPIO_EXT_WDT 13
|
|
|
|
|
|
|
|
#define CF_E320N_V2_GPIO_BTN_RESET 17
|
|
|
|
|
|
|
|
static struct gpio_led cf_e320n_v2_leds_gpio[] __initdata = {
|
|
|
|
{
|
|
|
|
.name = "cf-e320n-v2:green:lan",
|
|
|
|
.gpio = CF_E320N_V2_GPIO_LED_LAN,
|
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e320n-v2:red:wan",
|
|
|
|
.gpio = CF_E320N_V2_GPIO_LED_WAN,
|
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e320n-v2:blue:wlan",
|
|
|
|
.gpio = CF_E320N_V2_GPIO_LED_WLAN,
|
|
|
|
.active_low = 0,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct gpio_keys_button cf_e320n_v2_gpio_keys[] __initdata = {
|
2015-09-11 16:31:35 +00:00
|
|
|
{
|
|
|
|
.desc = "Reset button",
|
|
|
|
.type = EV_KEY,
|
|
|
|
.code = KEY_RESTART,
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
.debounce_interval = CF_EXXXN_KEYS_DEBOUNCE_INTERVAL,
|
|
|
|
.gpio = CF_E320N_V2_GPIO_BTN_RESET,
|
2015-09-11 16:31:35 +00:00
|
|
|
.active_low = 1,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2018-02-05 20:31:07 +00:00
|
|
|
/* CF-E355AC v1/v2 */
|
2017-06-29 10:03:03 +00:00
|
|
|
#define CF_E355AC_GPIO_LED_LAN 3
|
|
|
|
#define CF_E355AC_GPIO_LED_WLAN2G 0
|
|
|
|
#define CF_E355AC_GPIO_LED_WLAN5G 2
|
|
|
|
|
|
|
|
#define CF_E355AC_GPIO_EXT_WDT 13
|
|
|
|
|
|
|
|
#define CF_E355AC_GPIO_BTN_RESET 17
|
|
|
|
|
2018-02-05 20:31:07 +00:00
|
|
|
static struct gpio_led cf_e355ac_v1_leds_gpio[] __initdata = {
|
2017-06-29 10:03:03 +00:00
|
|
|
{
|
2018-02-05 20:31:07 +00:00
|
|
|
.name = "cf-e355ac-v1:green:lan",
|
2017-06-29 10:03:03 +00:00
|
|
|
.gpio = CF_E355AC_GPIO_LED_LAN,
|
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
2018-02-05 20:31:07 +00:00
|
|
|
.name = "cf-e355ac-v1:blue:wlan2g",
|
2017-06-29 10:03:03 +00:00
|
|
|
.gpio = CF_E355AC_GPIO_LED_WLAN2G,
|
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
2018-02-05 20:31:07 +00:00
|
|
|
.name = "cf-e355ac-v1:red:wlan5g",
|
|
|
|
.gpio = CF_E355AC_GPIO_LED_WLAN5G,
|
|
|
|
.active_low = 0,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct gpio_led cf_e355ac_v2_leds_gpio[] __initdata = {
|
|
|
|
{
|
|
|
|
.name = "cf-e355ac-v2:green:lan",
|
|
|
|
.gpio = CF_E355AC_GPIO_LED_LAN,
|
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e355ac-v2:blue:wlan2g",
|
|
|
|
.gpio = CF_E355AC_GPIO_LED_WLAN2G,
|
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e355ac-v2:red:wlan5g",
|
2017-06-29 10:03:03 +00:00
|
|
|
.gpio = CF_E355AC_GPIO_LED_WLAN5G,
|
|
|
|
.active_low = 0,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct gpio_keys_button cf_e355ac_gpio_keys[] __initdata = {
|
|
|
|
{
|
|
|
|
.desc = "Reset button",
|
|
|
|
.type = EV_KEY,
|
|
|
|
.code = KEY_RESTART,
|
|
|
|
.debounce_interval = CF_EXXXN_KEYS_DEBOUNCE_INTERVAL,
|
|
|
|
.gpio = CF_E355AC_GPIO_BTN_RESET,
|
|
|
|
.active_low = 1,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2018-02-07 03:47:52 +00:00
|
|
|
#define CF_E375AC_GPIO_XWDT_TRIGGER 6
|
|
|
|
|
|
|
|
#define CF_E375AC_GPIO_BTN_RESET_WPS 2
|
|
|
|
|
|
|
|
#define CF_E375AC_GPIO_LED_WAN 15
|
|
|
|
#define CF_E375AC_GPIO_LED_LAN 17
|
|
|
|
#define CF_E375AC_GPIO_LED_WLAN 16
|
|
|
|
|
|
|
|
static struct gpio_led cf_e375ac_leds_gpio[] __initdata = {
|
|
|
|
{
|
|
|
|
.name = "comfast:red:wan",
|
|
|
|
.gpio = CF_E375AC_GPIO_LED_WAN,
|
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "comfast:green:lan",
|
|
|
|
.gpio = CF_E375AC_GPIO_LED_LAN,
|
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "comfast:blue:wlan",
|
|
|
|
.gpio = CF_E375AC_GPIO_LED_WLAN,
|
|
|
|
.active_low = 0,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct gpio_keys_button cf_e375ac_gpio_keys[] __initdata = {
|
|
|
|
{
|
|
|
|
.desc = "Reset button/WPS button",
|
|
|
|
.type = EV_KEY,
|
|
|
|
.code = KEY_RESTART,
|
|
|
|
.debounce_interval = CF_EXXXN_KEYS_DEBOUNCE_INTERVAL,
|
|
|
|
.gpio = CF_E375AC_GPIO_BTN_RESET_WPS,
|
|
|
|
.active_low = 1,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct ar8327_pad_cfg cf_e375ac_ar8337_pad0_cfg = {
|
|
|
|
.mode = AR8327_PAD_MAC_SGMII,
|
|
|
|
.sgmii_delay_en = true,
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct ar8327_platform_data cf_e375ac_ar8337_data = {
|
|
|
|
.pad0_cfg = &cf_e375ac_ar8337_pad0_cfg,
|
|
|
|
.port0_cfg = {
|
|
|
|
.force_link = 1,
|
|
|
|
.speed = AR8327_PORT_SPEED_1000,
|
|
|
|
.duplex = 1,
|
|
|
|
.txpause = 1,
|
|
|
|
.rxpause = 1,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct mdio_board_info cf_e375ac_mdio0_info[] = {
|
|
|
|
{
|
|
|
|
.bus_id = "ag71xx-mdio.0",
|
|
|
|
.phy_addr = 0,
|
|
|
|
.platform_data = &cf_e375ac_ar8337_data,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2018-01-23 20:37:16 +00:00
|
|
|
/* CF-E380AC v1/v2, CF-E385AC */
|
|
|
|
#define CF_E38XAC_GPIO_LED_LAN 0
|
|
|
|
#define CF_E38XAC_GPIO_LED_WLAN2G 2
|
|
|
|
#define CF_E38XAC_GPIO_LED_WLAN5G 3
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
|
2018-01-23 20:37:16 +00:00
|
|
|
#define CF_E38XAC_GPIO_EXT_WDT 17
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
|
2018-01-23 20:37:16 +00:00
|
|
|
#define CF_E38XAC_GPIO_BTN_RESET 19
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
|
|
|
|
static struct gpio_led cf_e380ac_v1_leds_gpio[] __initdata = {
|
|
|
|
{
|
|
|
|
.name = "cf-e380ac-v1:green:lan",
|
2018-01-23 20:37:16 +00:00
|
|
|
.gpio = CF_E38XAC_GPIO_LED_LAN,
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e380ac-v1:blue:wlan2g",
|
2018-01-23 20:37:16 +00:00
|
|
|
.gpio = CF_E38XAC_GPIO_LED_WLAN2G,
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e380ac-v1:red:wlan5g",
|
2018-01-23 20:37:16 +00:00
|
|
|
.gpio = CF_E38XAC_GPIO_LED_WLAN5G,
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
.active_low = 0,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct gpio_led cf_e380ac_v2_leds_gpio[] __initdata = {
|
|
|
|
{
|
|
|
|
.name = "cf-e380ac-v2:green:lan",
|
2018-01-23 20:37:16 +00:00
|
|
|
.gpio = CF_E38XAC_GPIO_LED_LAN,
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e380ac-v2:blue:wlan2g",
|
2018-01-23 20:37:16 +00:00
|
|
|
.gpio = CF_E38XAC_GPIO_LED_WLAN2G,
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e380ac-v2:red:wlan5g",
|
2018-01-23 20:37:16 +00:00
|
|
|
.gpio = CF_E38XAC_GPIO_LED_WLAN5G,
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
.active_low = 0,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2018-01-23 20:37:16 +00:00
|
|
|
static struct gpio_led cf_e385ac_leds_gpio[] __initdata = {
|
|
|
|
{
|
|
|
|
.name = "cf-e385ac:green:lan",
|
|
|
|
.gpio = CF_E38XAC_GPIO_LED_LAN,
|
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e385ac:blue:wlan2g",
|
|
|
|
.gpio = CF_E38XAC_GPIO_LED_WLAN2G,
|
|
|
|
.active_low = 0,
|
|
|
|
}, {
|
|
|
|
.name = "cf-e385ac:red:wlan5g",
|
|
|
|
.gpio = CF_E38XAC_GPIO_LED_WLAN5G,
|
|
|
|
.active_low = 0,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct gpio_keys_button cf_e38xac_gpio_keys[] __initdata = {
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
{
|
|
|
|
.desc = "Reset button",
|
|
|
|
.type = EV_KEY,
|
|
|
|
.code = KEY_RESTART,
|
|
|
|
.debounce_interval = CF_EXXXN_KEYS_DEBOUNCE_INTERVAL,
|
2018-01-23 20:37:16 +00:00
|
|
|
.gpio = CF_E38XAC_GPIO_BTN_RESET,
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
.active_low = 1,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct at803x_platform_data cf_e380ac_v1v2_at803x_data = {
|
|
|
|
.disable_smarteee = 1,
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct mdio_board_info cf_e380ac_v1v2_mdio0_info[] = {
|
|
|
|
{
|
|
|
|
.bus_id = "ag71xx-mdio.0",
|
|
|
|
.phy_addr = 0,
|
|
|
|
.platform_data = &cf_e380ac_v1v2_at803x_data,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
/* CF-E520N/CF-E530N */
|
|
|
|
#define CF_E5X0N_GPIO_LED_WAN 11
|
|
|
|
#define CF_E5X0N_GPIO_BTN_RESET 17
|
|
|
|
|
|
|
|
static struct gpio_led cf_e520n_leds_gpio[] __initdata = {
|
|
|
|
{
|
|
|
|
.name = "cf-e520n:blue:wan",
|
|
|
|
.gpio = CF_E5X0N_GPIO_LED_WAN,
|
|
|
|
.active_low = 1,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct gpio_led cf_e530n_leds_gpio[] __initdata = {
|
|
|
|
{
|
|
|
|
.name = "cf-e530n:blue:wan",
|
|
|
|
.gpio = CF_E5X0N_GPIO_LED_WAN,
|
|
|
|
.active_low = 1,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Some COMFAST devices include external hardware watchdog chip,
|
|
|
|
* Pericon Technology PT7A7514, connected to a selected GPIO
|
|
|
|
* and WiSoC RESET_L input. Watchdog time-out is ~1.6 s.
|
|
|
|
*/
|
|
|
|
#define CF_EXXXN_EXT_WDT_TIMEOUT_MS 500
|
|
|
|
|
2015-09-11 16:31:35 +00:00
|
|
|
static struct timer_list gpio_wdt_timer;
|
|
|
|
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
static void gpio_wdt_toggle(unsigned long gpio)
|
2015-09-11 16:31:35 +00:00
|
|
|
{
|
|
|
|
static int state;
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
|
2015-09-11 16:31:35 +00:00
|
|
|
state = !state;
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
gpio_set_value(gpio, state);
|
|
|
|
|
|
|
|
mod_timer(&gpio_wdt_timer,
|
|
|
|
jiffies + msecs_to_jiffies(CF_EXXXN_EXT_WDT_TIMEOUT_MS));
|
2015-09-11 16:31:35 +00:00
|
|
|
}
|
|
|
|
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
static void __init cf_exxxn_common_setup(unsigned long art_ofs, int gpio_wdt)
|
2015-09-11 16:31:35 +00:00
|
|
|
{
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
u8 *art = (u8 *) KSEG1ADDR(0x1f001000 + art_ofs);
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
|
|
|
|
if (gpio_wdt > -1) {
|
|
|
|
gpio_request_one(gpio_wdt, GPIOF_OUT_INIT_HIGH,
|
|
|
|
"PT7A7514 watchdog");
|
2015-09-11 16:31:35 +00:00
|
|
|
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
setup_timer(&gpio_wdt_timer, gpio_wdt_toggle, gpio_wdt);
|
|
|
|
gpio_wdt_toggle(gpio_wdt);
|
|
|
|
}
|
2015-09-11 16:31:35 +00:00
|
|
|
|
|
|
|
ath79_register_m25p80(NULL);
|
|
|
|
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
ath79_register_wmac(art, NULL);
|
|
|
|
|
|
|
|
ath79_register_usb();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void __init cf_e316n_v2_setup(void)
|
|
|
|
{
|
|
|
|
u8 *mac = (u8 *) KSEG1ADDR(0x1f010000);
|
|
|
|
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
cf_exxxn_common_setup(0x10000, CF_E316N_V2_GPIO_EXT_WDT);
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
|
2015-09-11 16:31:35 +00:00
|
|
|
ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_SW_PHY_SWAP);
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
|
2015-09-11 16:31:35 +00:00
|
|
|
ath79_register_mdio(1, 0x0);
|
|
|
|
|
|
|
|
/* GMAC0 is connected to the PHY0 of the internal switch */
|
|
|
|
ath79_switch_data.phy4_mii_en = 1;
|
|
|
|
ath79_switch_data.phy_poll_mask = BIT(0);
|
|
|
|
ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
|
|
|
|
ath79_eth0_data.phy_mask = BIT(0);
|
|
|
|
ath79_eth0_data.mii_bus_dev = &ath79_mdio1_device.dev;
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
|
2015-09-11 16:31:35 +00:00
|
|
|
ath79_register_eth(0);
|
|
|
|
|
|
|
|
/* GMAC1 is connected to the internal switch */
|
|
|
|
ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
ath79_init_mac(ath79_eth1_data.mac_addr, mac, 2);
|
2015-09-11 16:31:35 +00:00
|
|
|
ath79_register_eth(1);
|
|
|
|
|
|
|
|
/* Enable 2x Skyworks SE2576L WLAN power amplifiers */
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
gpio_request_one(CF_E316N_V2_GPIO_EXTERNAL_PA0, GPIOF_OUT_INIT_HIGH,
|
|
|
|
"WLAN PA0");
|
|
|
|
gpio_request_one(CF_E316N_V2_GPIO_EXTERNAL_PA1, GPIOF_OUT_INIT_HIGH,
|
|
|
|
"WLAN PA1");
|
2015-09-11 16:31:35 +00:00
|
|
|
|
|
|
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e316n_v2_leds_gpio),
|
|
|
|
cf_e316n_v2_leds_gpio);
|
|
|
|
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
ath79_register_gpio_keys_polled(1, CF_EXXXN_KEYS_POLL_INTERVAL,
|
2015-09-11 16:31:35 +00:00
|
|
|
ARRAY_SIZE(cf_e316n_v2_gpio_keys),
|
|
|
|
cf_e316n_v2_gpio_keys);
|
|
|
|
}
|
|
|
|
|
|
|
|
MIPS_MACHINE(ATH79_MACH_CF_E316N_V2, "CF-E316N-V2", "COMFAST CF-E316N v2",
|
|
|
|
cf_e316n_v2_setup);
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
|
|
|
|
static void __init cf_exxxn_qca953x_eth_setup(void)
|
|
|
|
{
|
|
|
|
u8 *mac = (u8 *) KSEG1ADDR(0x1f010000);
|
|
|
|
|
|
|
|
ath79_setup_ar933x_phy4_switch(false, false);
|
|
|
|
|
|
|
|
ath79_register_mdio(0, 0x0);
|
|
|
|
|
|
|
|
ath79_switch_data.phy4_mii_en = 1;
|
|
|
|
ath79_switch_data.phy_poll_mask |= BIT(4);
|
|
|
|
|
|
|
|
/* LAN */
|
|
|
|
ath79_eth1_data.duplex = DUPLEX_FULL;
|
|
|
|
ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
|
|
|
|
ath79_eth1_data.speed = SPEED_1000;
|
|
|
|
ath79_init_mac(ath79_eth1_data.mac_addr, mac, 2);
|
|
|
|
ath79_register_eth(1);
|
|
|
|
|
|
|
|
/* WAN */
|
|
|
|
ath79_eth0_data.duplex = DUPLEX_FULL;
|
|
|
|
ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
|
|
|
|
ath79_eth0_data.speed = SPEED_100;
|
|
|
|
ath79_eth0_data.phy_mask = BIT(4);
|
|
|
|
ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
|
|
|
|
ath79_register_eth(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void __init cf_e320n_v2_setup(void)
|
|
|
|
{
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
cf_exxxn_common_setup(0x10000, CF_E320N_V2_GPIO_EXT_WDT);
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
|
|
|
|
cf_exxxn_qca953x_eth_setup();
|
|
|
|
|
|
|
|
/* Disable JTAG (enables GPIO0-3) */
|
|
|
|
ath79_gpio_function_enable(AR934X_GPIO_FUNC_JTAG_DISABLE);
|
|
|
|
|
|
|
|
ath79_gpio_direction_select(CF_E320N_V2_GPIO_LED_LAN, true);
|
|
|
|
ath79_gpio_direction_select(CF_E320N_V2_GPIO_LED_WAN, true);
|
|
|
|
ath79_gpio_direction_select(CF_E320N_V2_GPIO_LED_WLAN, true);
|
|
|
|
|
|
|
|
ath79_gpio_output_select(CF_E320N_V2_GPIO_LED_LAN, 0);
|
|
|
|
ath79_gpio_output_select(CF_E320N_V2_GPIO_LED_WAN, 0);
|
|
|
|
ath79_gpio_output_select(CF_E320N_V2_GPIO_LED_WLAN, 0);
|
|
|
|
|
|
|
|
/* Enable GPIO function for GPIOs in J9 header */
|
|
|
|
ath79_gpio_output_select(CF_E320N_V2_GPIO_HEADER_J9_1, 0);
|
|
|
|
ath79_gpio_output_select(CF_E320N_V2_GPIO_HEADER_J9_2, 0);
|
|
|
|
ath79_gpio_output_select(CF_E320N_V2_GPIO_HEADER_J9_3, 0);
|
|
|
|
ath79_gpio_output_select(CF_E320N_V2_GPIO_HEADER_J9_4, 0);
|
|
|
|
|
|
|
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e320n_v2_leds_gpio),
|
|
|
|
cf_e320n_v2_leds_gpio);
|
|
|
|
|
|
|
|
ath79_register_gpio_keys_polled(-1, CF_EXXXN_KEYS_POLL_INTERVAL,
|
|
|
|
ARRAY_SIZE(cf_e320n_v2_gpio_keys),
|
|
|
|
cf_e320n_v2_gpio_keys);
|
|
|
|
}
|
|
|
|
|
|
|
|
MIPS_MACHINE(ATH79_MACH_CF_E320N_V2, "CF-E320N-V2", "COMFAST CF-E320N v2",
|
|
|
|
cf_e320n_v2_setup);
|
|
|
|
|
2017-06-29 10:03:03 +00:00
|
|
|
static void __init cf_e355ac_setup(void)
|
|
|
|
{
|
|
|
|
u8 *art = (u8 *) KSEG1ADDR(0x1f010000);
|
|
|
|
|
|
|
|
/* Disable JTAG, enabling GPIOs 0-3 */
|
|
|
|
ath79_gpio_function_setup(AR934X_GPIO_FUNC_JTAG_DISABLE, 0);
|
|
|
|
|
|
|
|
cf_exxxn_common_setup(0x10000, CF_E355AC_GPIO_EXT_WDT);
|
|
|
|
|
|
|
|
cf_exxxn_qca953x_eth_setup();
|
|
|
|
|
|
|
|
ath79_gpio_output_select(CF_E355AC_GPIO_LED_LAN, 0);
|
|
|
|
ath79_gpio_output_select(CF_E355AC_GPIO_LED_WLAN2G, 0);
|
|
|
|
ath79_gpio_output_select(CF_E355AC_GPIO_LED_WLAN5G, 0);
|
|
|
|
|
|
|
|
ap91_pci_init(art + 0x5000, NULL);
|
|
|
|
|
|
|
|
ath79_register_gpio_keys_polled(1, CF_EXXXN_KEYS_POLL_INTERVAL,
|
|
|
|
ARRAY_SIZE(cf_e355ac_gpio_keys),
|
|
|
|
cf_e355ac_gpio_keys);
|
|
|
|
}
|
|
|
|
|
2018-02-05 20:31:07 +00:00
|
|
|
static void __init cf_e355ac_v1_setup(void)
|
|
|
|
{
|
|
|
|
cf_e355ac_setup();
|
|
|
|
|
|
|
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e355ac_v1_leds_gpio),
|
|
|
|
cf_e355ac_v1_leds_gpio);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void __init cf_e355ac_v2_setup(void)
|
|
|
|
{
|
|
|
|
cf_e355ac_setup();
|
|
|
|
|
|
|
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e355ac_v2_leds_gpio),
|
|
|
|
cf_e355ac_v2_leds_gpio);
|
|
|
|
}
|
|
|
|
|
|
|
|
MIPS_MACHINE(ATH79_MACH_CF_E355AC, "CF-E355AC-V1", "COMFAST CF-E355AC v1",
|
|
|
|
cf_e355ac_v1_setup);
|
2017-06-29 10:03:03 +00:00
|
|
|
|
2018-01-22 06:57:57 +00:00
|
|
|
MIPS_MACHINE(ATH79_MACH_CF_E355AC_V2, "CF-E355AC-V2", "COMFAST CF-E355AC v2",
|
2018-02-05 20:31:07 +00:00
|
|
|
cf_e355ac_v2_setup);
|
2018-01-22 06:57:57 +00:00
|
|
|
|
2018-02-07 03:47:52 +00:00
|
|
|
static void __init cf_e375ac_setup(void)
|
|
|
|
{
|
|
|
|
u8 *mac = (u8 *) KSEG1ADDR(0x1f040000);
|
|
|
|
u8 *art = (u8 *) KSEG1ADDR(0x1f040000);
|
|
|
|
u8 wlan1_mac[ETH_ALEN];
|
|
|
|
|
|
|
|
ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
|
|
|
|
ath79_init_mac(ath79_eth1_data.mac_addr, mac, 1);
|
|
|
|
ath79_init_mac(wlan1_mac, art, 3);
|
|
|
|
|
|
|
|
/* Disable JTAG, enabling GPIOs 0-3 */
|
|
|
|
/* Configure OBS4 line, for GPIO 4*/
|
|
|
|
ath79_gpio_function_setup(AR934X_GPIO_FUNC_JTAG_DISABLE, 0);
|
|
|
|
|
|
|
|
cf_exxxn_common_setup(0x40000, CF_E375AC_GPIO_XWDT_TRIGGER);
|
|
|
|
|
|
|
|
ath79_gpio_output_select(CF_E375AC_GPIO_LED_WAN, 0);
|
|
|
|
ath79_gpio_output_select(CF_E375AC_GPIO_LED_LAN, 0);
|
|
|
|
ath79_gpio_output_select(CF_E375AC_GPIO_LED_WLAN, 0);
|
|
|
|
|
|
|
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e375ac_leds_gpio),
|
|
|
|
cf_e375ac_leds_gpio);
|
|
|
|
ath79_register_gpio_keys_polled(-1, CF_EXXXN_KEYS_POLL_INTERVAL,
|
|
|
|
ARRAY_SIZE(cf_e375ac_gpio_keys),
|
|
|
|
cf_e375ac_gpio_keys);
|
|
|
|
|
|
|
|
platform_device_register(&ath79_mdio0_device);
|
|
|
|
|
|
|
|
mdiobus_register_board_info(cf_e375ac_mdio0_info,
|
|
|
|
ARRAY_SIZE(cf_e375ac_mdio0_info));
|
|
|
|
|
|
|
|
/* GMAC0 is connected to an AR8337 switch */
|
|
|
|
ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_SGMII;
|
|
|
|
ath79_eth0_data.speed = SPEED_1000;
|
|
|
|
ath79_eth0_data.duplex = DUPLEX_FULL;
|
|
|
|
ath79_eth0_data.phy_mask = BIT(0);
|
|
|
|
ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
|
|
|
|
ath79_register_eth(0);
|
|
|
|
|
|
|
|
ap91_pci_init(art + 0x5000, wlan1_mac);
|
|
|
|
}
|
|
|
|
MIPS_MACHINE(ATH79_MACH_CF_E375AC, "CF-E375AC", "COMFAST CF-E375AC", cf_e375ac_setup);
|
|
|
|
|
2018-01-23 20:37:16 +00:00
|
|
|
static void __init cf_e38xac_common_setup(unsigned long art_ofs)
|
|
|
|
{
|
|
|
|
cf_exxxn_common_setup(art_ofs, CF_E38XAC_GPIO_EXT_WDT);
|
|
|
|
|
|
|
|
ath79_register_pci();
|
|
|
|
|
|
|
|
/* Disable JTAG (enables GPIO0-3) */
|
|
|
|
ath79_gpio_function_enable(AR934X_GPIO_FUNC_JTAG_DISABLE);
|
|
|
|
|
|
|
|
ath79_gpio_direction_select(CF_E38XAC_GPIO_LED_LAN, true);
|
|
|
|
ath79_gpio_direction_select(CF_E38XAC_GPIO_LED_WLAN2G, true);
|
|
|
|
ath79_gpio_direction_select(CF_E38XAC_GPIO_LED_WLAN5G, true);
|
|
|
|
|
|
|
|
ath79_gpio_output_select(CF_E38XAC_GPIO_LED_LAN, 0);
|
|
|
|
ath79_gpio_output_select(CF_E38XAC_GPIO_LED_WLAN2G, 0);
|
|
|
|
ath79_gpio_output_select(CF_E38XAC_GPIO_LED_WLAN5G, 0);
|
|
|
|
|
|
|
|
/* For J7-4 */
|
|
|
|
ath79_gpio_function_disable(AR934X_GPIO_FUNC_CLK_OBS4_EN);
|
|
|
|
|
|
|
|
ath79_register_gpio_keys_polled(-1, CF_EXXXN_KEYS_POLL_INTERVAL,
|
|
|
|
ARRAY_SIZE(cf_e38xac_gpio_keys),
|
|
|
|
cf_e38xac_gpio_keys);
|
|
|
|
}
|
|
|
|
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
static void __init cf_e380ac_v1v2_common_setup(unsigned long art_ofs)
|
|
|
|
{
|
|
|
|
u8 *mac = (u8 *) KSEG1ADDR(0x1f000000 + art_ofs);
|
|
|
|
|
2018-01-23 20:37:16 +00:00
|
|
|
cf_e38xac_common_setup(art_ofs);
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
|
|
|
|
ath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN);
|
|
|
|
|
|
|
|
ath79_register_mdio(0, 0x0);
|
|
|
|
mdiobus_register_board_info(cf_e380ac_v1v2_mdio0_info,
|
|
|
|
ARRAY_SIZE(cf_e380ac_v1v2_mdio0_info));
|
|
|
|
|
|
|
|
/* LAN */
|
|
|
|
ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
|
|
|
|
ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
|
|
|
|
ath79_eth0_data.phy_mask = BIT(0);
|
|
|
|
ath79_eth0_pll_data.pll_1000 = 0xbe000000;
|
|
|
|
ath79_eth0_pll_data.pll_100 = 0xb0000101;
|
|
|
|
ath79_eth0_pll_data.pll_10 = 0xb0001313;
|
|
|
|
ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
|
|
|
|
ath79_register_eth(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void __init cf_e380ac_v1_setup(void)
|
|
|
|
{
|
|
|
|
cf_e380ac_v1v2_common_setup(0x20000);
|
|
|
|
|
|
|
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e380ac_v1_leds_gpio),
|
|
|
|
cf_e380ac_v1_leds_gpio);
|
|
|
|
}
|
|
|
|
|
|
|
|
MIPS_MACHINE(ATH79_MACH_CF_E380AC_V1, "CF-E380AC-V1", "COMFAST CF-E380AC v1",
|
|
|
|
cf_e380ac_v1_setup);
|
|
|
|
|
|
|
|
static void __init cf_e380ac_v2_setup(void)
|
|
|
|
{
|
|
|
|
cf_e380ac_v1v2_common_setup(0x40000);
|
|
|
|
|
|
|
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e380ac_v2_leds_gpio),
|
|
|
|
cf_e380ac_v2_leds_gpio);
|
|
|
|
}
|
|
|
|
|
|
|
|
MIPS_MACHINE(ATH79_MACH_CF_E380AC_V2, "CF-E380AC-V2", "COMFAST CF-E380AC v2",
|
|
|
|
cf_e380ac_v2_setup);
|
|
|
|
|
2018-01-23 20:37:16 +00:00
|
|
|
/* QCA8337 GMAC0 is connected with QCA9558 over RGMII */
|
|
|
|
static struct ar8327_pad_cfg cf_e385ac_qca8337_pad0_cfg = {
|
|
|
|
.mode = AR8327_PAD_MAC_RGMII,
|
|
|
|
.txclk_delay_en = true,
|
|
|
|
.rxclk_delay_en = true,
|
|
|
|
.txclk_delay_sel = AR8327_CLK_DELAY_SEL1,
|
|
|
|
.rxclk_delay_sel = AR8327_CLK_DELAY_SEL1,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* QCA8337 GMAC6 is connected with QCA9558 over SGMII */
|
|
|
|
static struct ar8327_pad_cfg cf_e385ac_qca8337_pad6_cfg = {
|
|
|
|
.mode = AR8327_PAD_MAC_SGMII,
|
|
|
|
.sgmii_delay_en = true,
|
|
|
|
.rxclk_delay_sel = AR8327_CLK_DELAY_SEL0,
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct ar8327_platform_data cf_e385ac_qca8337_data = {
|
|
|
|
.pad0_cfg = &cf_e385ac_qca8337_pad0_cfg,
|
|
|
|
.pad6_cfg = &cf_e385ac_qca8337_pad6_cfg,
|
|
|
|
.port0_cfg = {
|
|
|
|
.force_link = 1,
|
|
|
|
.speed = AR8327_PORT_SPEED_1000,
|
|
|
|
.duplex = 1,
|
|
|
|
.txpause = 1,
|
|
|
|
.rxpause = 1,
|
|
|
|
},
|
|
|
|
.port6_cfg = {
|
|
|
|
.force_link = 1,
|
|
|
|
.speed = AR8327_PORT_SPEED_1000,
|
|
|
|
.duplex = 1,
|
|
|
|
.txpause = 1,
|
|
|
|
.rxpause = 1,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct mdio_board_info cf_e385ac_mdio0_info[] = {
|
|
|
|
{
|
|
|
|
.bus_id = "ag71xx-mdio.0",
|
|
|
|
.phy_addr = 0,
|
|
|
|
.platform_data = &cf_e385ac_qca8337_data,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static void __init cf_e385ac_setup(void)
|
|
|
|
{
|
|
|
|
u8 *mac = (u8 *) KSEG1ADDR(0x1f040000);
|
|
|
|
|
|
|
|
cf_e38xac_common_setup(0x40000);
|
|
|
|
|
|
|
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e385ac_leds_gpio),
|
|
|
|
cf_e385ac_leds_gpio);
|
|
|
|
|
|
|
|
mdiobus_register_board_info(cf_e385ac_mdio0_info,
|
|
|
|
ARRAY_SIZE(cf_e385ac_mdio0_info));
|
|
|
|
ath79_register_mdio(0, 0x0);
|
|
|
|
|
|
|
|
ath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN);
|
|
|
|
|
|
|
|
/* QCA9558 GMAC0 is connected to RMGII interface */
|
|
|
|
ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
|
|
|
|
ath79_eth0_data.phy_mask = BIT(0);
|
|
|
|
ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
|
|
|
|
ath79_eth0_pll_data.pll_1000 = 0x96000000;
|
|
|
|
|
|
|
|
ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
|
|
|
|
ath79_register_eth(0);
|
|
|
|
|
|
|
|
/* QCA9558 GMAC1 is connected to SGMII interface */
|
|
|
|
ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_SGMII;
|
|
|
|
ath79_eth1_data.speed = SPEED_1000;
|
|
|
|
ath79_eth1_data.duplex = DUPLEX_FULL;
|
|
|
|
ath79_eth1_pll_data.pll_1000 = 0x03000101;
|
|
|
|
|
|
|
|
ath79_init_mac(ath79_eth1_data.mac_addr, mac, 1);
|
|
|
|
ath79_register_eth(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
MIPS_MACHINE(ATH79_MACH_CF_E385AC, "CF-E385AC", "COMFAST CF-E385AC",
|
|
|
|
cf_e385ac_setup);
|
|
|
|
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
static void __init cf_e5x0n_gpio_setup(void)
|
|
|
|
{
|
|
|
|
ath79_gpio_direction_select(CF_E5X0N_GPIO_LED_WAN, true);
|
|
|
|
|
|
|
|
ath79_gpio_output_select(CF_E5X0N_GPIO_LED_WAN, 0);
|
|
|
|
|
|
|
|
ath79_register_gpio_keys_polled(-1, CF_EXXXN_KEYS_POLL_INTERVAL,
|
|
|
|
ARRAY_SIZE(cf_e320n_v2_gpio_keys),
|
|
|
|
cf_e320n_v2_gpio_keys);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void __init cf_e520n_setup(void)
|
|
|
|
{
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
cf_exxxn_common_setup(0x10000, -1);
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
|
|
|
|
cf_exxxn_qca953x_eth_setup();
|
|
|
|
|
|
|
|
cf_e5x0n_gpio_setup();
|
|
|
|
|
|
|
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e520n_leds_gpio),
|
|
|
|
cf_e520n_leds_gpio);
|
|
|
|
}
|
|
|
|
|
|
|
|
MIPS_MACHINE(ATH79_MACH_CF_E520N, "CF-E520N", "COMFAST CF-E520N",
|
|
|
|
cf_e520n_setup);
|
|
|
|
|
|
|
|
static void __init cf_e530n_setup(void)
|
|
|
|
{
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) 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>
2016-11-14 16:38:23 +00:00
|
|
|
cf_exxxn_common_setup(0x10000, -1);
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 00:24:58 +00:00
|
|
|
|
|
|
|
cf_exxxn_qca953x_eth_setup();
|
|
|
|
|
|
|
|
cf_e5x0n_gpio_setup();
|
|
|
|
|
|
|
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e530n_leds_gpio),
|
|
|
|
cf_e530n_leds_gpio);
|
|
|
|
}
|
|
|
|
|
|
|
|
MIPS_MACHINE(ATH79_MACH_CF_E530N, "CF-E530N", "COMFAST CF-E530N",
|
|
|
|
cf_e530n_setup);
|