[OpenWrt-Devel] [PATCH v2] ipq40xx: add support for ASUS Lyra

Christian Lamparter chunkeey at gmail.com
Tue Feb 12 13:49:30 EST 2019


On Tuesday, February 12, 2019 5:19:51 PM CET Marius Genheimer wrote:
> SoC:   Qualcomm IPQ4019 (Dakota) 717 MHz, 4 cores
> RAM:   256 MiB (Nanya NT5CC128M16IP-DI)
> FLASH: 128 MiB (Macronix NAND)
> WiFi0: Qualcomm IPQ4019 b/g/n 2x2
> WiFi1: Qualcomm IPQ4019 a/n/ac 2x2
> WiFi2: Qualcomm Atheros QCA9886 a/n/ac
> BT:    Atheros AR3012
> IN:    WPS Button, Reset Button
> OUT:   RGB-LED via TI LP5523 9-channel Controller
> UART:  Front of Device - 115200 N-8
>        Pinout 3.3v - RX - TX - GND (Square is VCC)
> 
> Installation:
> 1. Transfer OpenWRT-initramfs image to the device via SSH to /tmp.
> Login credentials are identical to the Web UI.
> 
> 2. Login to the device via SSH.
> 
> 3. Flash the initramfs image using
> 
> > mtd-write -d linux -i openwrt-image-file
> 
> 4. Power-cycle the device and wait for OpenWRT to boot.
> 
> 5. From there flash the OpenWRT-sysupgrade image.
> 
> Ethernet-Ports: Although labeled identically, the port next to
> the power socket is the LAN port and the other one is WAN. This
> is the same behavior as in the stock firmware.
> 
> Signed-off-by: Marius Genheimer <mail at f0wl.cc>
> ---
Thanks. I made some changes to the commit, please let me know 
if the QCA9886 still works as expected (I copied the board WA
from ath79 for the time being - but it would be nice to have
the boardData for the QCA9886 upstream as well - see below).

https://git.openwrt.org/?p=openwrt/staging/chunkeey.git;a=commit;h=0be33481fbb784958476cd3449a0c3bd306ac535

> +&wifi0{
> +	status = "okay";
> +	qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
> +};
> +
> +&wifi1{
> +	status = "okay";
> +	qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
> +};
> +
> +&pcie0 {
> +	status = "okay";
> +	perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
> +	wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
> +
> +	bridge at 0,0 {
> +		reg = <0x00000000 0 0 0 0>;
> +		#address-cells = <3>;
> +		#size-cells = <2>;
> +		ranges;
> +
> +		wifi2: wifi at 1,0 {
> +			compatible = "qcom,ath10k";
> +			status = "okay";
> +			reg = <0x00010000 0 0 0 0>;
> +			qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
> +		};
> +	};
> +};
> +
Since you added the "qcom,ath10k-calibration-variant" for the QCA9886, I looked
into the stock firmware and compared the custom boardData with what's upstream
in the ath10k-firmware board-2.bin repositories. And indeed, you probably want
to also upstream the boardData of the QCA9886(variant of the QCA9888). 

The process is the same as with the IPQ4019/QCA4019 boardData:
<https://wireless.wiki.kernel.org/en/users/drivers/ath10k/boardfiles>

Best Regards,
Christian



_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list