ath79: add support for Phicomm K2T
authorWeijie Gao <hackpascal@gmail.com>
Wed, 13 Jun 2018 13:14:49 +0000 (21:14 +0800)
committerJohn Crispin <john@phrozen.org>
Mon, 18 Jun 2018 16:21:16 +0000 (18:21 +0200)
commit97c5cbc496e9cf8139994cd3ea987f4e9c70adbe
tree8d04f701b5020cc5c10d17826aa522ad08279281
parent8f804f42d52e49191429ad1d716e7adb3cd10ceb
ath79: add support for Phicomm K2T

This patch adds dts for qca956x and also support for Phicomm K2T

The qca965x.dtsi adds nearly all the necessary components.
Both ath9k AHB and PCIe worked well.

The Phicomm K2T uses MTD partition 'config' to store the mac addresses in
JSON format. To extract these fields correctly, a script is introduced:
    /lib/functions/k2t.sh
This script provides a helper function to extract mac addresses, and is used
in three places.

Hardware spec of Phicomm K2T:
CPU: QCA9563
DRAM: 64MB DDR2
Flash: 16MB SPI-NOR
Switch: QCA8337
WiFi 5.8GHz: QCA9886

Flash instruction:
Apply sysupgrade.bin via serial console:

tftp 0x80000000 sysupgrade.bin && erase 0x9f090000 +$filesize && cp.b $fileaddr 0x9f090000 $filesize

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
target/linux/ath79/base-files/etc/board.d/02_network
target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac [new file with mode: 0644]
target/linux/ath79/base-files/lib/functions/k2t.sh [new file with mode: 0755]
target/linux/ath79/dts/qca9563_phicomm-k2t.dts [new file with mode: 0644]
target/linux/ath79/dts/qca956x.dtsi [new file with mode: 0644]
target/linux/ath79/image/generic.mk