From 7dd3d7e1d3845160c2ef51e6148b452e666bd6f5 Mon Sep 17 00:00:00 2001 From: Lucian Cristian Date: Tue, 26 Jun 2018 10:30:46 +0300 Subject: ath79: add support for Ubiquiti UniFi AC-Pro rework the dts to a common unifi-ac dtsi pro network is connected via phy0 and has usb ports lite network is connected via phy4 without usb ports Signed-off-by: Lucian Cristian --- target/linux/ath79/base-files/etc/board.d/02_network | 4 ++++ .../linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'target/linux/ath79/base-files/etc') diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index e880abe5ac..3282d8ad90 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -98,6 +98,10 @@ ath79_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth0" "3:lan:1" "5:lan:2" "4:wan" ;; + "ubnt,unifiac-pro") + ucidef_add_switch "switch0" \ + "0@eth0" "2:lan" "3:wan" + ;; *) ucidef_set_interfaces_lan_wan "eth0" "eth1" ;; diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index c3cc4d9986..dff33b70ce 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -95,7 +95,8 @@ case "$FIRMWARE" in ath10kcal_extract "art" 20480 2116 ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2) ;; - "ubnt,unifiac-lite") + "ubnt,unifiac-lite"|\ + "ubnt,unifiac-pro") ath10kcal_extract "EEPROM" 20480 2116 ;; esac -- cgit v1.2.3