Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
commit
4245e51c04
@ -34,6 +34,7 @@ esac
|
||||
case "$DISTRIB_TARGET" in
|
||||
"bcm27xx"/*)
|
||||
cpu_temp="$(vcgencmd measure_temp | awk -F '=' '{print $2}' | awk -F "'" '{print $1}')°C" ;;
|
||||
"ipq40xx"/*|"ipq806x"/*|"ipq807x"/*|"mediatek"/*|) ;;
|
||||
"x86"/*)
|
||||
if [ -n "$(uci -q get "wechatpush.config.server_host")" ]; then
|
||||
cpu_temp="$(/usr/share/wechatpush/wechatpush soc)°C"
|
||||
@ -49,11 +50,9 @@ case "$DISTRIB_TARGET" in
|
||||
;;
|
||||
esac
|
||||
|
||||
if grep -Eq "mediatek" "/etc/openwrt_release"; then
|
||||
echo -n "$cpu_arch x $cpu_cores"
|
||||
elif [ -z "$cpu_freq" ] && [ -n "$cpu_temp" ]; then
|
||||
if [ -z "$cpu_freq" ] && [ -n "$cpu_temp" ]; then
|
||||
echo -n "$cpu_arch x $cpu_cores ($cpu_temp)"
|
||||
elif [ -z "$cpu_temp" ] && [ -n "$cpu_freq" ] || grep -Eq "ipq" "/etc/openwrt_release"; then
|
||||
elif [ -z "$cpu_temp" ] && [ -n "$cpu_freq" ]; then
|
||||
echo -n "$cpu_arch x $cpu_cores ($cpu_freq)"
|
||||
elif [ -n "$cpu_temp" ] && [ -n "$cpu_freq" ]; then
|
||||
echo -n "$cpu_arch x $cpu_cores ($cpu_freq, ${cpu_temp})"
|
||||
|
||||
@ -327,6 +327,11 @@ mac80211_hostapd_setup_base() {
|
||||
[ "$rx_stbc" -lt "$cap_rx_stbc" ] && cap_rx_stbc="$rx_stbc"
|
||||
vht_cap="$(( ($vht_cap & ~(0x700)) | ($cap_rx_stbc << 8) ))"
|
||||
|
||||
[ "$vht_oper_chwidth" -lt 2 ] && {
|
||||
vht160=0
|
||||
short_gi_160=0
|
||||
}
|
||||
|
||||
mac80211_add_capabilities vht_capab $vht_cap \
|
||||
RXLDPC:0x10::$rxldpc \
|
||||
SHORT-GI-80:0x20::$short_gi_80 \
|
||||
|
||||
35
target/linux/ath79/dts/qca9563_ubnt_uk-ultra.dts
Normal file
35
target/linux/ath79/dts/qca9563_ubnt_uk-ultra.dts
Normal file
@ -0,0 +1,35 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "qca9563_ubnt_unifiac-lite.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "ubnt,uk-ultra", "qca,qca9563";
|
||||
model = "Ubiquiti UniFi Swiss Army Knife Ultra";
|
||||
};
|
||||
|
||||
&leds {
|
||||
led-rssi0 {
|
||||
label = "white:rssi0";
|
||||
gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
led-rssi1 {
|
||||
label = "white:rssi1";
|
||||
gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
led-rssi2 {
|
||||
label = "white:rssi2";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
led-rssi3 {
|
||||
label = "white:rssi3";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Antenna selection on GPIO5 and GPIO6
|
||||
* High = Internal ; Low = External
|
||||
*/
|
||||
@ -13,7 +13,7 @@
|
||||
led-upgrade = &led_blue;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_white: led_white {
|
||||
|
||||
@ -494,6 +494,13 @@ ubnt,rocket-m)
|
||||
ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "51" "100"
|
||||
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "76" "100"
|
||||
;;
|
||||
ubnt,uk-ultra)
|
||||
ucidef_set_rssimon "wlan0" "200000" "1"
|
||||
ucidef_set_led_rssi "rssilow" "RSSILOW" "white:rssi0" "wlan0" "1" "100"
|
||||
ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "white:rssi1" "wlan0" "26" "100"
|
||||
ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "white:rssi2" "wlan0" "51" "100"
|
||||
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "white:rssi3" "wlan0" "76" "100"
|
||||
;;
|
||||
wallys,dr531)
|
||||
ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
|
||||
ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x2"
|
||||
|
||||
@ -113,6 +113,7 @@ ath79_setup_interfaces()
|
||||
ubnt,powerbridge-m|\
|
||||
ubnt,rocket-5ac-lite|\
|
||||
ubnt,rocket-m|\
|
||||
ubnt,uk-ultra|\
|
||||
ubnt,unifiac-lite|\
|
||||
ubnt,unifiac-lr|\
|
||||
ubnt,unifiac-mesh|\
|
||||
|
||||
@ -92,6 +92,10 @@ ubnt,nanostation-m)
|
||||
ubnt,nanostation-m-xw)
|
||||
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "2"
|
||||
;;
|
||||
ubnt,uk-ultra)
|
||||
ucidef_add_gpio_switch "ant0_internal" "ANT0 Internal" "5" "1"
|
||||
ucidef_add_gpio_switch "ant1_internal" "ANT1 Internal" "6" "1"
|
||||
;;
|
||||
zbtlink,zbt-wd323)
|
||||
ucidef_add_gpio_switch "io0" "IO#0" "0"
|
||||
ucidef_add_gpio_switch "io1" "IO#1" "1"
|
||||
|
||||
@ -36,6 +36,7 @@ case "$FIRMWARE" in
|
||||
sophos,ap100|\
|
||||
sophos,ap100c|\
|
||||
ubnt,bullet-ac|\
|
||||
ubnt,uk-ultra|\
|
||||
ubnt,unifiac-lite|\
|
||||
ubnt,unifiac-lr|\
|
||||
ubnt,unifiac-mesh|\
|
||||
|
||||
@ -121,6 +121,13 @@ define Device/ubnt-xw
|
||||
UBNT_VERSION := 6.0.4
|
||||
endef
|
||||
|
||||
define Device/ubnt_unifiac
|
||||
DEVICE_VENDOR := Ubiquiti
|
||||
SOC := qca9563
|
||||
IMAGE_SIZE := 15488k
|
||||
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
||||
endef
|
||||
|
||||
define Device/ubnt-unifi-jffs2
|
||||
$(Device/ubnt)
|
||||
KERNEL_SIZE := 3072k
|
||||
|
||||
@ -229,6 +229,13 @@ define Device/ubnt_routerstation-pro
|
||||
endef
|
||||
TARGET_DEVICES += ubnt_routerstation-pro
|
||||
|
||||
define Device/ubnt_uk-ultra
|
||||
$(Device/ubnt_unifiac)
|
||||
DEVICE_MODEL := UniFi Swiss Army Knife Ultra
|
||||
DEVICE_PACKAGES += rssileds -swconfig
|
||||
endef
|
||||
TARGET_DEVICES += ubnt_uk-ultra
|
||||
|
||||
define Device/ubnt_unifi-ap
|
||||
$(Device/ubnt-bz)
|
||||
DEVICE_MODEL := UniFi AP
|
||||
@ -244,13 +251,6 @@ define Device/ubnt_unifi-ap-lr
|
||||
endef
|
||||
TARGET_DEVICES += ubnt_unifi-ap-lr
|
||||
|
||||
define Device/ubnt_unifiac
|
||||
DEVICE_VENDOR := Ubiquiti
|
||||
SOC := qca9563
|
||||
IMAGE_SIZE := 15488k
|
||||
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
||||
endef
|
||||
|
||||
define Device/ubnt_unifiac-lite
|
||||
$(Device/ubnt_unifiac)
|
||||
DEVICE_MODEL := UniFi AC Lite
|
||||
|
||||
@ -0,0 +1,33 @@
|
||||
From 661edfc3dab943a67c8821353b63cc23057f7ce9 Mon Sep 17 00:00:00 2001
|
||||
From: David Bauer <mail@david-bauer.net>
|
||||
Date: Tue, 9 Jan 2024 20:48:46 +0100
|
||||
Subject: [PATCH] reset: ath79: read back reset register
|
||||
|
||||
Read back the reset register in order to flush the cache. This fixes
|
||||
spurious reboot hangs on TP-Link TL-WDR3600 and TL-WDR4300 with Zentel
|
||||
DRAM chips.
|
||||
|
||||
This issue was fixed in the past, but switching to the reset-driver
|
||||
specific implementation removed the old fix.
|
||||
|
||||
Link: https://github.com/freifunk-gluon/gluon/issues/2904
|
||||
Link: https://github.com/openwrt/openwrt/issues/13043
|
||||
Link: https://dev.archive.openwrt.org/ticket/17839
|
||||
Link: f8a7bfe1cb2c ("MIPS: ath79: fix system restart")
|
||||
|
||||
Signed-off-by: David Bauer <mail@david-bauer.net>
|
||||
---
|
||||
drivers/reset/reset-ath79.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
--- a/drivers/reset/reset-ath79.c
|
||||
+++ b/drivers/reset/reset-ath79.c
|
||||
@@ -37,6 +37,8 @@ static int ath79_reset_update(struct res
|
||||
else
|
||||
val &= ~BIT(id);
|
||||
writel(val, ath79_reset->base);
|
||||
+ /* Flush cache */
|
||||
+ readl(ath79_reset->base);
|
||||
spin_unlock_irqrestore(&ath79_reset->lock, flags);
|
||||
|
||||
return 0;
|
||||
@ -32,9 +32,9 @@ case "$board" in
|
||||
[ "$PHYNBR" = "1" ] && echo "$addr" > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
bananapi,bpi-r3)
|
||||
addr=$(macaddr_add $(cat /sys/class/net/eth0/address) 2)
|
||||
[ "$PHYNBR" = "0" ] && macaddr_unsetbit $addr 6 > /sys${DEVPATH}/macaddress
|
||||
[ "$PHYNBR" = "1" ] && macaddr_setbit $addr 6 > /sys${DEVPATH}/macaddress
|
||||
addr=$(cat /sys/class/net/eth0/address)
|
||||
[ "$PHYNBR" = "0" ] && macaddr_add $addr 2 > /sys${DEVPATH}/macaddress
|
||||
[ "$PHYNBR" = "1" ] && macaddr_add $addr 3 > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
bananapi,bpi-r3-mini)
|
||||
addr=$(macaddr_generate_from_mmc_cid mmcblk0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user