-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipq807x: add support for TP-Link EAP660 HD v1
Specifications: * SoC: Qualcomm IPQ8072A (64-bit Quad-core Arm Cortex-A53 @ 2200MHz) * Memory: 2x ESMT M15T4G16256A-DEBG2G (1 GiB DDR3-1866 13-13-13) * Serial Port: 3v3 TTL 115200n8 * Wi-Fi: QCN5054 (4x4 5 GHz 802.11ax) * Wi-Fi: QCN5024 (4x4 2.4 GHz 802.11b/g/n/ax) * Ethernet: QCA8081 (10/100/1000/2.5GBASE-T) * Flash: Winbond W29N01HZSINF (128 MiB) * LEDs: 1x Blue Status (GPIO 42 Active High) * Buttons: 1x Reset (GPIO 50 Active Low) Installation Instructions (Serial+TFTP): 1. Solder 4 pin header to JP1 and bridge pads of R58 and R62. 2. Connect 3V3 TTL port to TX, RX, and GND, which are positions 1, 2, and 3 respectively. Be sure to crossover TX and RX. 3. Copy RAM firmware image openwrt-qualcommax-ipq807x-tplink_eap660hd-v1-initramfs-uImage.itb to TFTP server root, available at 192.168.10.1. 4. Connect PoE ethernet cable to the RJ45 port and hold Ctrl+B in the serial console (115200 baud) until autoboot is halted. 5. Run the following commands in the U-boot prompt: # tftpboot 0x44000000 openwrt-qualcommax-ipq807x-tplink_eap660hd-v1-initramfs-uImage.itb # bootm You may need to type Ctrl+C and Enter before running these commands to clear invisible characters from the buffer. 6. Run the following command in a terminal to copy the sysupgrade image to be installed (check IP address): $ scp openwrt-qualcommax-ipq807x-tplink_eap660hd-v1-squashfs-sysupgrade.bin [email protected]:/tmp/ 7. Activate the OpenWrt serial console and run the following commands: # cd /tmp # sysupgrade -n openwrt-qualcommax-ipq807x-tplink_eap660hd-v1-squashfs-sysupgrade.bin 8. The AP will reboot and OpenWrt will be successfully installed. Signed-off-by: George Witt <[email protected]> Link: openwrt/openwrt#15832 Signed-off-by: Robert Marko <[email protected]>
- Loading branch information
1 parent
fe6c079
commit 9b33645
Showing
8 changed files
with
258 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131 changes: 131 additions & 0 deletions
131
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-eap660hd-v1.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause | ||
|
||
/dts-v1/; | ||
|
||
#include "ipq8074.dtsi" | ||
#include "ipq8074-hk-cpu.dtsi" | ||
#include "ipq8074-ess.dtsi" | ||
#include <dt-bindings/leds/common.h> | ||
#include <dt-bindings/input/input.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
model = "TP-Link EAP660 HD v1"; | ||
compatible = "tplink,eap660hd-v1", "qcom,ipq8074"; | ||
|
||
aliases { | ||
serial0 = &blsp1_uart5; | ||
led-boot = &led_status_blue; | ||
led-failsafe = &led_status_blue; | ||
led-running = &led_status_blue; | ||
led-upgrade = &led_status_blue; | ||
}; | ||
|
||
chosen { | ||
stdout-path = "serial0,115200n8"; | ||
bootargs-append = " root=/dev/ubiblock0_1"; | ||
}; | ||
|
||
keys { | ||
compatible = "gpio-keys"; | ||
|
||
reset { | ||
label = "reset"; | ||
gpios = <&tlmm 50 GPIO_ACTIVE_LOW>; | ||
linux,code = <KEY_RESTART>; | ||
}; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
led_status_blue: status-blue { | ||
function = LED_FUNCTION_STATUS; | ||
gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>; | ||
color = <LED_COLOR_ID_BLUE>; | ||
}; | ||
}; | ||
}; | ||
|
||
&blsp1_uart5 { | ||
status = "okay"; | ||
}; | ||
|
||
&tlmm { | ||
mdio_pins: mdio-pins { | ||
mdc { | ||
pins = "gpio68"; | ||
function = "mdc"; | ||
drive-strength = <8>; | ||
bias-pull-up; | ||
}; | ||
|
||
mdio { | ||
pins = "gpio69"; | ||
function = "mdio"; | ||
drive-strength = <8>; | ||
bias-pull-up; | ||
}; | ||
}; | ||
}; | ||
|
||
&mdio { | ||
status = "okay"; | ||
pinctrl-0 = <&mdio_pins>; | ||
pinctrl-names = "default"; | ||
reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; | ||
|
||
qca8081_28: ethernet-phy@28 { | ||
compatible = "ethernet-phy-ieee802.3-c22"; | ||
reg = <28>; | ||
}; | ||
}; | ||
|
||
&dp5 { | ||
status = "okay"; | ||
phy-mode = "sgmii"; | ||
phy-handle = <&qca8081_28>; | ||
label = "lan"; | ||
}; | ||
|
||
&switch { | ||
status = "okay"; | ||
switch_lan_bmp = <ESS_PORT5>; | ||
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>; | ||
|
||
qcom,port_phyinfo { | ||
port@5 { | ||
phy_address = <28>; | ||
port_id = <5>; | ||
port_mac_sel = "QGMAC_PORT"; | ||
}; | ||
}; | ||
}; | ||
|
||
&edma { | ||
status = "okay"; | ||
}; | ||
|
||
&qpic_bam { | ||
status = "okay"; | ||
}; | ||
|
||
&qpic_nand { | ||
status = "okay"; | ||
|
||
nand@0 { | ||
reg = <0>; | ||
nand-ecc-strength = <4>; | ||
nand-ecc-step-size = <512>; | ||
nand-bus-width = <8>; | ||
|
||
partitions { | ||
compatible = "qcom,smem-part"; | ||
}; | ||
}; | ||
}; | ||
|
||
&wifi { | ||
status = "okay"; | ||
qcom,ath11k-calibration-variant = "TP-Link-EAP660-HD-v1"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
target/linux/qualcommax/ipq807x/base-files/lib/preinit/09_mount_factory_data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
preinit_mount_factory_data() { | ||
local mtd_path | ||
|
||
. /lib/functions.sh | ||
. /lib/functions/system.sh | ||
|
||
case $(board_name) in | ||
tplink,eap660hd-v1) | ||
mtd_path=$(find_mtd_chardev "factory_data") | ||
ubiattach --dev-path="$mtd_path" --devn=1 | ||
mkdir /tmp/factory_data | ||
mount -o ro,noatime -t ubifs ubi1:ubi_factory_data /tmp/factory_data | ||
;; | ||
esac | ||
} | ||
|
||
boot_hook_add preinit_main preinit_mount_factory_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters