qualcommax: ipq60xx: add support for Netgear WAX610 and WAX610Y

Netgear WAX610 / WAX610Y is a 802.11ax AP claiming AX1800 support.

Specifications:
---------------
* CPU: Qualcomm IPQ6018 Quad core Cortex-A53
* RAM: 512MB
* Storage: Winbond W29N01HZBINF 128MB NAND
* Ethernet:
  * 2.5GbE RJ45 port with PoE input
* WLAN:
  * 2.4GHz/5GHz
* LEDs:
  * Power: Dual-color LED (Green / Orange), Single-color LED (Blue)
  * Ethernet: Dual-color LED (Green / Orange)
  * 2.4Ghz WiFi: 2x Single-color LED (Blue, Green)
  * 5Ghz WiFi: 2x Single-color LED (Blue, Green)
* Buttons:
  * 1x Reset
* UART: 4-pin populated header
  * Pinout 1 - VCC, 2 - GND, 3 - TX, 4 - RX

Installation:
=============

Web UI method
-------------

Set up the device using the stock web UI in local management mode.

Download the ui-factory.tar image.
 * Enter the Management tab
 * Select Maintenance->Upgrade->Firmware Upgrade
 * Ensure the "Upgrade Options" field has "Local" selected
 * Click "Browse File" and select the image
 * Click "Upgrade" (NOT "Upgrade Now") at the bottom of the page

The device will install the image but reboot back into the vendor
firmware. Return the to Firmware Upgrade page as above and select
"Boot up Backup Firmware". The device should reboot into OpenWRT.

TFTP method
-----------

To flash via tftp, first place the initramfs image on the TFTP server.

    setenv serverip <ip of tftp server>
    setenv ipaddr <ip in same subnet as tftp server>
    tftpboot netgear_wax610-initramfs-uImage.itb
    bootm

This should boot OpenWRT. Once booted, flash the sysupgrade.bin image
using either luci or the command line.

Signed-off-by: Erik Servili <serverror@serverror.com>
Link: https://github.com/openwrt/openwrt/pull/18377
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Erik Servili
2025-04-02 23:01:16 +02:00
committed by Robert Marko
parent 40851dae6a
commit a0c1c9df97
10 changed files with 296 additions and 4 deletions

View File

@@ -0,0 +1,206 @@
#include "ipq6018.dtsi"
#include "ipq6018-cp-cpu.dtsi"
#include "ipq6018-ess.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ {
aliases {
serial0 = &blsp1_uart3;
ethernet0 = &dp5;
label-mac-device = &dp5;
led-boot = &led_system_blue;
led-failsafe = &led_system_orange;
led-running = &led_system_green;
led-upgrade = &led_system_blue;
};
chosen {
stdout-path = "serial0:115200n8";
/*
* Netgear's U-Boot adds "ubi.mtd=rootfs root=mtd:ubi_rootfs"
* That fails to create a UBI block device, so add it here.
*/
bootargs-append = " root=/dev/ubiblock0_1";
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};
leds {
compatible = "gpio-leds";
led_system_orange: system-orange {
color = <LED_COLOR_ID_ORANGE>;
function = LED_FUNCTION_POWER;
function-enumerator = <0>;
gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
};
led_system_green: system-green {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_POWER;
function-enumerator = <1>;
gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
};
led_system_blue: system-blue {
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_POWER;
function-enumerator = <2>;
gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>;
};
led_lan_g {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
function-enumerator = <0>;
gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
};
led_lan_o {
color = <LED_COLOR_ID_ORANGE>;
function = LED_FUNCTION_LAN;
function-enumerator = <1>;
gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
};
led_2g_b {
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_WLAN;
function-enumerator = <0>;
gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
};
led_2g_g {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN;
function-enumerator = <1>;
gpios = <&tlmm 33 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0radio";
};
led_5g_b {
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_WLAN;
function-enumerator = <2>;
gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
};
led_5g_g {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN;
function-enumerator = <3>;
gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy1radio";
};
};
};
&edma {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT5>;
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>;
qcom,port_phyinfo {
port@5 {
port_id = <5>;
phy_address = <24>;
port_mac_sel = "QGMAC_PORT";
};
};
};
&tlmm {
mdio_pins: mdio-pins {
mdc {
pins = "gpio64";
function = "mdc";
drive-strength = <8>;
bias-pull-up;
};
mdio {
pins = "gpio65";
function = "mdio";
drive-strength = <8>;
bias-pull-up;
};
};
};
&mdio {
status = "okay";
pinctrl-0 = <&mdio_pins>;
pinctrl-names = "default";
reset-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
qca8081_24: ethernet-phy@24 {
reg = <24>;
};
};
&dp5 {
status = "okay";
phy-handle = <&qca8081_24>;
label = "lan";
};
&blsp1_uart3 {
pinctrl-0 = <&serial_3_pins>;
pinctrl-names = "default";
status = "okay";
};
&prng {
status = "okay";
};
&cryptobam {
status = "okay";
};
&crypto {
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,m3-dump-addr = <0x50100000>;
};

View File

@@ -0,0 +1,14 @@
// SPDX-License-Identifier: (GPL-2.0+)
/dts-v1/;
#include "ipq6010-wax610-base.dtsi"
/ {
model = "Netgear WAX610";
compatible = "netgear,wax610", "qcom,ipq6018";
};
&wifi {
qcom,ath11k-calibration-variant = "Netgear-WAX610";
};

View File

@@ -0,0 +1,14 @@
// SPDX-License-Identifier: (GPL-2.0+)
/dts-v1/;
#include "ipq6010-wax610-base.dtsi"
/ {
model = "Netgear WAX610Y";
compatible = "netgear,wax610y", "qcom,ipq6018";
};
&wifi {
qcom,ath11k-calibration-variant = "Netgear-WAX610Y";
};

View File

@@ -1,5 +1,15 @@
DEVICE_VARS += TPLINK_SUPPORT_STRING
define Build/wax610-netgear-tar
mkdir $@.tmp
mv $@ $@.tmp/nand-ipq6018-apps.img
md5sum $@.tmp/nand-ipq6018-apps.img | cut -c 1-32 > $@.tmp/nand-ipq6018-apps.md5sum
echo "WAX610" > $@.tmp/metadata.txt
echo "WAX610-610Y_V99.9.9.9" > $@.tmp/version
tar -C $@.tmp/ -cf $@ .
rm -rf $@.tmp
endef
define Device/8devices_mango-dvk
$(call Device/FitImageLzma)
DEVICE_VENDOR := 8devices
@@ -100,6 +110,32 @@ define Device/netgear_wax214
endef
TARGET_DEVICES += netgear_wax214
define Device/netgear_wax610-common
$(call Device/FitImage)
DEVICE_VENDOR := Netgear
BLOCKSIZE := 128k
PAGESIZE := 2048
DEVICE_DTS_CONFIG := config@cp03-c1
SOC := ipq6010
KERNEL_IN_UBI := 1
IMAGES += ui-factory.tar
IMAGE/ui-factory.tar := append-ubi | qsdk-ipq-factory-nand | pad-to 4096 | wax610-netgear-tar
endef
define Device/netgear_wax610
$(Device/netgear_wax610-common)
DEVICE_MODEL := WAX610
DEVICE_PACKAGES := ipq-wifi-netgear_wax610
endef
TARGET_DEVICES += netgear_wax610
define Device/netgear_wax610y
$(Device/netgear_wax610-common)
DEVICE_MODEL := WAX610Y
DEVICE_PACKAGES := ipq-wifi-netgear_wax610y
endef
TARGET_DEVICES += netgear_wax610y
define Device/qihoo_360v6
$(call Device/FitImage)
$(call Device/UbiFit)

View File

@@ -30,6 +30,8 @@ ipq60xx_setup_interfaces()
qihoo,360v6)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
;;
netgear,wax610|\
netgear,wax610y|\
tplink,eap610-outdoor)
ucidef_set_interface_lan "lan" "dhcp"
;;

View File

@@ -35,6 +35,14 @@ case "$FIRMWARE" in
netgear,wax214)
caldata_extract "0:art" 0x1000 0x10000
;;
netgear,wax610|\
netgear,wax610y)
caldata_extract "0:art" 0x1000 0x10000
label_mac=$(get_mac_label)
ath11k_patch_mac $(macaddr_add $label_mac -30) 1
ath11k_patch_mac $(macaddr_add $label_mac 2) 0
ath11k_set_macflag
;;
qihoo,360v6)
caldata_extract "0:art" 0x1000 0x10000
label_mac=$(mtd_get_mac_ascii factory lanMac)

View File

@@ -11,5 +11,9 @@ boot() {
yuncore,fap650)
fw_setenv owrt_bootcount 0
;;
netgear,wax610|\
netgear,wax610y)
fw_setenv boot_count 0
;;
esac
}

View File

@@ -113,6 +113,8 @@ platform_do_upgrade() {
glinet,gl-ax1800|\
glinet,gl-axt1800|\
netgear,wax214|\
netgear,wax610|\
netgear,wax610y|\
qihoo,360v6)
nand_do_upgrade "$1"
;;