Merge source from official

This commit is contained in:
CN_SZTL 2019-11-07 09:58:13 +08:00
commit ab84b9bdc3
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
266 changed files with 22686 additions and 2926 deletions

1
.gitignore vendored
View File

@ -16,6 +16,7 @@
/overlay
/package/feeds
/package/openwrt-packages
/*.patch
key-build*
*.orig
*.rej

View File

@ -287,7 +287,7 @@ define Image/mkfs/ubifs
endef
define Image/mkfs/ext4
$(STAGING_DIR_HOST)/bin/make_ext4fs \
$(STAGING_DIR_HOST)/bin/make_ext4fs -L rootfs \
-l $(ROOTFS_PARTSIZE) -b $(CONFIG_TARGET_EXT4_BLOCKSIZE) \
$(if $(CONFIG_TARGET_EXT4_RESERVED_PCT),-m $(CONFIG_TARGET_EXT4_RESERVED_PCT)) \
$(if $(CONFIG_TARGET_EXT4_JOURNAL),,-J) \

View File

@ -33,6 +33,9 @@ yuncore,a770)
buffalo,wzr-hp-ag300h)
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
;;
netgear,wndr4300)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
;;
qihoo,c301)
ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
;;

View File

@ -64,92 +64,92 @@ define Download/ct-firmware-htt
URL_FILE:=$($(1)_FIRMWARE_FILE_CT_HTT)
endef
QCA988X_FIRMWARE_FILE_CT:=firmware-2-ct-full-community-22.bin.lede.011
QCA988X_FIRMWARE_FILE_CT:=firmware-2-ct-full-community-22.bin.lede.012
define Download/ath10k-firmware-qca988x-ct
$(call Download/ct-firmware,QCA988X,)
HASH:=5872fe046d90d844a6d3e232e47a6865bac551d7043b2874147c077e356b35d8
HASH:=3b2c584f7070c3e286ce27a370cc181d70b45f9cdaa462fb4f44c6c20d2ee8c1
endef
$(eval $(call Download,ath10k-firmware-qca988x-ct))
QCA988X_FIRMWARE_FILE_CT_HTT:=firmware-2-ct-full-htt-mgt-community-22.bin.lede.011
QCA988X_FIRMWARE_FILE_CT_HTT:=firmware-2-ct-full-htt-mgt-community-22.bin.lede.012
define Download/ath10k-firmware-qca988x-ct-htt
$(call Download/ct-firmware-htt,QCA988X,)
HASH:=4568c3895a101ad28363491ea935f56a48bddea4c1be1889a6ba8d151902062a
HASH:=a7042b2c90de82b21e87f243411b6fb12142bb4fb28266ea92cdf3101557b6de
endef
$(eval $(call Download,ath10k-firmware-qca988x-ct-htt))
QCA9887_FIRMWARE_FILE_CT:=firmware-2-ct-full-community-22.bin.lede.011
QCA9887_FIRMWARE_FILE_CT:=firmware-2-ct-full-community-22.bin.lede.012
define Download/ath10k-firmware-qca9887-ct
$(call Download/ct-firmware,QCA9887,ath10k-9887)
HASH:=2c64ab22159d04cd345b8caffdd76ac95c0409729121a7a4095c5192f46013b2
HASH:=c3f891b2cd4e225e1c635a328af3dce94481b096432020e445f71144dda749d5
endef
$(eval $(call Download,ath10k-firmware-qca9887-ct))
QCA9887_FIRMWARE_FILE_CT_HTT:=firmware-2-ct-full-htt-mgt-community-22.bin.lede.011
QCA9887_FIRMWARE_FILE_CT_HTT:=firmware-2-ct-full-htt-mgt-community-22.bin.lede.012
define Download/ath10k-firmware-qca9887-ct-htt
$(call Download/ct-firmware-htt,QCA9887,ath10k-9887)
HASH:=c806b8894faf3bbb11004f77196c6d711b9a6c187b1512d84e05fa98a5aba2ab
HASH:=f5e9825279d590a2362f44aef4ced345376cccd65d9b826c131d4dbcef4e689c
endef
$(eval $(call Download,ath10k-firmware-qca9887-ct-htt))
QCA99X0_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.011
QCA99X0_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.012
define Download/ath10k-firmware-qca99x0-ct
$(call Download/ct-firmware,QCA99X0,ath10k-10-4b)
HASH:=4ed106dbe8431945afc6a995765f245f574713095b567df35f1397bba5f6fa2e
HASH:=4b90fa91dcab68350fe695b3c918cb9a4fb09c2b419519b8b84b71da4cfde5e8
endef
$(eval $(call Download,ath10k-firmware-qca99x0-ct))
QCA99X0_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.011
QCA99X0_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.012
define Download/ath10k-firmware-qca99x0-ct-htt
$(call Download/ct-firmware-htt,QCA99X0,ath10k-10-4b)
HASH:=7434c84c501e00a24cbca338569ba150a9ec137ee2b9fa52d13484794300924c
HASH:=6dd40233fe99d99c69781d6514cf9ba7862b3f66c647f7921ca8be6100799986
endef
$(eval $(call Download,ath10k-firmware-qca99x0-ct-htt))
QCA9984_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.011
QCA9984_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.012
define Download/ath10k-firmware-qca9984-ct
$(call Download/ct-firmware,QCA9984,ath10k-9984-10-4b)
HASH:=9af817e65dc9f195517f05ad25f0eca693632ea03b55739a2e0f0fc82e810405
HASH:=2551f5c0bfa6c1b1222bd9452e14f60b8e29c8c0fe85de8af95393f31d544ea3
endef
$(eval $(call Download,ath10k-firmware-qca9984-ct))
QCA9984_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.011
QCA9984_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.012
define Download/ath10k-firmware-qca9984-ct-htt
$(call Download/ct-firmware-htt,QCA9984,ath10k-9984-10-4b)
HASH:=11e116631555550185e712f70bd29ac41b495bf0ecbfc3334cada8a8c10a42f0
HASH:=90f947257e1f42496b22cbdd29be99fbc8ea8700045b4ed2380acc980b4c247b
endef
$(eval $(call Download,ath10k-firmware-qca9984-ct-htt))
QCA4019_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.011
QCA4019_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.012
define Download/ath10k-firmware-qca4019-ct
$(call Download/ct-firmware,QCA4019,ath10k-4019-10-4b)
HASH:=21a6b5b69e3c1591cb9fe6077971ddadb003cac698f2962d4d8d73bc04038bbf
HASH:=cd85fc9df8b3652f7b12c2ab745b2a9691dca5ca38f8d65a02003e938ad8b570
endef
$(eval $(call Download,ath10k-firmware-qca4019-ct))
QCA4019_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.011
QCA4019_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.012
define Download/ath10k-firmware-qca4019-ct-htt
$(call Download/ct-firmware-htt,QCA4019,ath10k-4019-10-4b)
HASH:=87111717ec5279125d397bea45386707684ee707a91f6c58298818fd02bf567f
HASH:=67a923cda6ec3936ef23ec6c30c80dfc9bfd2cee73a142d2e308e8f035b8ed3a
endef
$(eval $(call Download,ath10k-firmware-qca4019-ct-htt))
QCA9888_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.011
QCA9888_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.012
define Download/ath10k-firmware-qca9888-ct
$(call Download/ct-firmware,QCA9888,ath10k-9888-10-4b)
HASH:=3c9f2e914d2a5eb3a413872239045dfcca105483ba83dd9b293e6b8855fda883
HASH:=4bdb71b50c68f1a07c88d21f84a6c054fe1b8cb5bacd089a6b9f0a56448535d3
endef
$(eval $(call Download,ath10k-firmware-qca9888-ct))
QCA9888_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.011
QCA9888_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.012
define Download/ath10k-firmware-qca9888-ct-htt
$(call Download/ct-firmware-htt,QCA9888,ath10k-9888-10-4b)
HASH:=dcb1bd826e5e1ef266fd7ee04410b44d4474d59f6eca0cc634e6432aaf326426
HASH:=e1f0242a91af58ec5628bb4f7c015f6c8dba55f92e2813f8f0b97c86ec496d2d
endef
$(eval $(call Download,ath10k-firmware-qca9888-ct-htt))

View File

@ -768,6 +768,7 @@ define KernelPackage/crypto-user
TITLE:=CryptoAPI userspace interface
DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
KCONFIG:= \
CONFIG_CRYPTO_USER \
CONFIG_CRYPTO_USER_API \
CONFIG_CRYPTO_USER_API_AEAD \
CONFIG_CRYPTO_USER_API_HASH \
@ -778,8 +779,9 @@ define KernelPackage/crypto-user
$(LINUX_DIR)/crypto/algif_aead.ko \
$(LINUX_DIR)/crypto/algif_hash.ko \
$(LINUX_DIR)/crypto/algif_rng.ko \
$(LINUX_DIR)/crypto/algif_skcipher.ko
AUTOLOAD:=$(call AutoLoad,09,af_alg algif_aead algif_hash algif_rng algif_skcipher)
$(LINUX_DIR)/crypto/algif_skcipher.ko \
$(LINUX_DIR)/crypto/crypto_user.ko
AUTOLOAD:=$(call AutoLoad,09,af_alg algif_aead algif_hash algif_rng algif_skcipher crypto_user)
$(call AddDepends/crypto)
endef

View File

@ -546,6 +546,7 @@ endef
define KernelPackage/cfg80211/install
$(INSTALL_DIR) $(1)/lib/wifi $(1)/lib/netifd/wireless
$(INSTALL_DATA) ./files/lib/wifi/mac80211.sh $(1)/lib/wifi
$(INSTALL_DATA) ./files/lib/netifd/mac80211.sh $(1)/lib/netifd
$(INSTALL_BIN) ./files/lib/netifd/wireless/mac80211.sh $(1)/lib/netifd/wireless
$(INSTALL_DIR) $(1)/etc/hotplug.d/ieee80211
$(INSTALL_DATA) ./files/mac80211.hotplug $(1)/etc/hotplug.d/ieee80211/10-wifi-detect

View File

@ -0,0 +1,36 @@
mac80211_phy_to_path() {
local phy="$1"
[ -x /usr/bin/readlink -a -h /sys/class/ieee80211/${phy} ] || return
local path="$(readlink -f /sys/class/ieee80211/${phy}/device)"
[ -n "$path" ] || return
path="${path##/sys/devices/}"
case "$path" in
platform*/pci*) path="${path##platform/}";;
esac
local p
local seq=""
for p in $(ls /sys/class/ieee80211/$phy/device/ieee80211); do
[ "$p" = "$phy" ] && {
echo "$path${seq:++$seq}"
break
}
seq=$((${seq:-0} + 1))
done
}
mac80211_path_to_phy() {
local path="$1"
local p
for p in $(ls /sys/class/ieee80211); do
local cur="$(mac80211_phy_to_path "$p")"
case "$cur" in
*$path) echo "$p"; return;;
esac
done
}

View File

@ -1,6 +1,7 @@
#!/bin/sh
. /lib/netifd/netifd-wireless.sh
. /lib/netifd/hostapd.sh
. /lib/netifd/mac80211.sh
init_wireless_driver "$@"
@ -407,11 +408,8 @@ mac80211_generate_mac() {
find_phy() {
[ -n "$phy" -a -d /sys/class/ieee80211/$phy ] && return 0
[ -n "$path" ] && {
for phy in $(ls /sys/class/ieee80211 2>/dev/null); do
case "$(readlink -f /sys/class/ieee80211/$phy/device)" in
*$path) return 0;;
esac
done
phy="$(mac80211_path_to_phy "$path")"
[ -n "$phy" ] && return 0
}
[ -n "$macaddr" ] && {
for phy in $(ls /sys/class/ieee80211 2>/dev/null); do
@ -740,6 +738,9 @@ mac80211_interface_cleanup() {
local phy="$1"
for wdev in $(list_phy_interfaces "$phy"); do
local wdev_phy="$(readlink /sys/class/net/${wdev}/phy80211)"
wdev_phy="$(basename "$wdev_phy")"
[ -n "$wdev_phy" -a "$wdev_phy" != "$phy" ] && continue
ip link set dev "$wdev" down 2>/dev/null
iw dev "$wdev" del
done

View File

@ -1,4 +1,6 @@
#!/bin/sh
. /lib/netifd/mac80211.sh
append DRIVERS "mac80211"
lookup_phy() {
@ -9,11 +11,8 @@ lookup_phy() {
local devpath
config_get devpath "$device" path
[ -n "$devpath" ] && {
for phy in $(ls /sys/class/ieee80211 2>/dev/null); do
case "$(readlink -f /sys/class/ieee80211/$phy/device)" in
*$devpath) return;;
esac
done
phy="$(mac80211_path_to_phy "$devpath")"
[ -n "$phy" ] && return
}
local macaddr="$(config_get "$device" macaddr | tr 'A-Z' 'a-z')"
@ -91,16 +90,8 @@ detect_mac80211() {
[ -n "$htmode" ] && ht_capab="set wireless.radio${devidx}.htmode=$htmode"
if [ -x /usr/bin/readlink -a -h /sys/class/ieee80211/${dev} ]; then
path="$(readlink -f /sys/class/ieee80211/${dev}/device)"
else
path=""
fi
path="$(mac80211_phy_to_path "$dev")"
if [ -n "$path" ]; then
path="${path##/sys/devices/}"
case "$path" in
platform*/pci*) path="${path##platform/}";;
esac
dev_id="set wireless.radio${devidx}.path='$path'"
else
dev_id="set wireless.radio${devidx}.macaddr=$(cat /sys/class/ieee80211/${dev}/macaddress)"

View File

@ -16,7 +16,7 @@
static const struct platform_device_id ath9k_platform_id_table[] = {
{
@@ -69,6 +77,235 @@ static const struct ath_bus_ops ath_ahb_
@@ -69,6 +77,242 @@ static const struct ath_bus_ops ath_ahb_
.eeprom_read = ath_ahb_eeprom_read,
};
@ -232,7 +232,14 @@
+ pdata->external_reset = data->wmac_reset;
+ }
+
+ if (data->bootstrap_reg && data->bootstrap_ref) {
+ if (data->dev_id == AR9300_DEVID_AR953X) {
+ /*
+ * QCA953x only supports 25MHz refclk.
+ * Some vendors have an invalid bootstrap option
+ * set, which would break the WMAC here.
+ */
+ pdata->is_clk_25mhz = true;
+ } else if (data->bootstrap_reg && data->bootstrap_ref) {
+ u32 t = ath79_reset_rr(data->bootstrap_reg);
+ if (t & data->bootstrap_ref)
+ pdata->is_clk_25mhz = false;
@ -252,7 +259,7 @@
static int ath_ahb_probe(struct platform_device *pdev)
{
void __iomem *mem;
@@ -80,6 +317,17 @@ static int ath_ahb_probe(struct platform
@@ -80,6 +324,17 @@ static int ath_ahb_probe(struct platform
int ret = 0;
struct ath_hw *ah;
char hw_name[64];
@ -270,7 +277,7 @@
if (!dev_get_platdata(&pdev->dev)) {
dev_err(&pdev->dev, "no platform data specified\n");
@@ -122,13 +370,16 @@ static int ath_ahb_probe(struct platform
@@ -122,13 +377,16 @@ static int ath_ahb_probe(struct platform
sc->mem = mem;
sc->irq = irq;
@ -288,7 +295,7 @@
if (ret) {
dev_err(&pdev->dev, "failed to initialize device\n");
goto err_irq;
@@ -159,6 +410,9 @@ static int ath_ahb_remove(struct platfor
@@ -159,6 +417,9 @@ static int ath_ahb_remove(struct platfor
free_irq(sc->irq, sc);
ieee80211_free_hw(sc->hw);
}
@ -298,7 +305,7 @@
return 0;
}
@@ -168,6 +422,9 @@ static struct platform_driver ath_ahb_dr
@@ -168,6 +429,9 @@ static struct platform_driver ath_ahb_dr
.remove = ath_ahb_remove,
.driver = {
.name = "ath9k",

View File

@ -0,0 +1,24 @@
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: Fri, 27 Sep 2019 23:12:08 +0200
Subject: [PATCH] backports: pci: Include linux/pci-aspm.h
In upstream commit 7ce2e76a0420 linux/pci-aspm.h was removed and the
content included into pci.h. Add an include to have the functions
defined in linux/pci-aspm.h available when linux/pci.h is included.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
--- a/backport-include/linux/pci.h
+++ b/backport-include/linux/pci.h
@@ -3,6 +3,10 @@
#include_next <linux/pci.h>
#include <linux/version.h>
+#if LINUX_VERSION_IS_LESS(5,4,0)
+#include <linux/pci-aspm.h>
+#endif
+
#ifndef module_pci_driver
/**
* module_pci_driver() - Helper macro for registering a PCI driver

View File

@ -0,0 +1,43 @@
From: Felix Fietkau <nbd@nbd.name>
Date: Mon, 28 Oct 2019 15:20:40 +0100
Subject: [PATCH] backport: add pci_disable_link_state wrapper with return code
The signature of pci_disable_link_state was changed to indicate if the state
was successfully disabled. Since the old version did not have this, add a
wrapper which checks the pcie register to determine the return code
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
--- a/backport-include/linux/pci.h
+++ b/backport-include/linux/pci.h
@@ -236,4 +236,29 @@ static inline struct pci_dev *pcie_find_
(PCI_IRQ_LEGACY | PCI_IRQ_MSI | PCI_IRQ_MSIX)
#endif
+#if defined(CONFIG_PCI) && LINUX_VERSION_IS_LESS(5,3,0)
+
+static inline int
+LINUX_BACKPORT(pci_disable_link_state)(struct pci_dev *pdev, int state)
+{
+ u16 aspmc;
+
+ pci_disable_link_state(pdev, state);
+
+ pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &aspmc);
+ if ((state & PCIE_LINK_STATE_L0S) &&
+ (aspmc & PCI_EXP_LNKCTL_ASPM_L0S))
+ return -EPERM;
+
+ if ((state & PCIE_LINK_STATE_L1) &&
+ (aspmc & PCI_EXP_LNKCTL_ASPM_L1))
+ return -EPERM;
+
+ return 0;
+}
+
+#define pci_disable_link_state LINUX_BACKPORT(pci_disable_link_state)
+
+#endif
+
#endif /* _BACKPORT_LINUX_PCI_H */

View File

@ -0,0 +1,88 @@
From patchwork Sat Nov 2 17:47:01 2019
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Daniel Golle <daniel@makrotopia.org>
X-Patchwork-Id: 11224189
X-Patchwork-Delegate: kvalo@adurom.com
Return-Path: <SRS0=CgQo=Y2=vger.kernel.org=linux-wireless-owner@kernel.org>
Date: Sat, 2 Nov 2019 18:47:01 +0100
From: Daniel Golle <daniel@makrotopia.org>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: linux-wireless@vger.kernel.org, Roman Yeryomin <roman@advem.lv>,
wbob <wbob@jify.de>
Subject: [PATCH v2] rt2800: remove errornous duplicate condition
Message-ID: <20191102174701.GA1489@makrotopia.org>
References: <20191102154639.GA4589@redhat.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20191102154639.GA4589@redhat.com>
User-Agent: Mutt/1.12.2 (2019-09-21)
Sender: linux-wireless-owner@vger.kernel.org
Precedence: bulk
List-ID: <linux-wireless.vger.kernel.org>
X-Mailing-List: linux-wireless@vger.kernel.org
On 2019-10-28 06:07, wbob wrote:
> Hello Roman,
>
> while reading around drivers/net/wireless/ralink/rt2x00/rt2800lib.c
> I stumbled on what I think is an edit of yours made in error in march
> 2017:
>
> https://github.com/torvalds/linux/commit/41977e86#diff-dae5dc10da180f3b055809a48118e18aR5281
>
> RT6352 in line 5281 should not have been introduced as the "else if"
> below line 5291 can then not take effect for a RT6352 device. Another
> possibility is for line 5291 to be not for RT6352, but this seems
> very unlikely. Are you able to clarify still after this substantial time?
>
> 5277: static int rt2800_init_registers(struct rt2x00_dev *rt2x00dev)
> ...
> 5279: } else if (rt2x00_rt(rt2x00dev, RT5390) ||
> 5280: rt2x00_rt(rt2x00dev, RT5392) ||
> 5281: rt2x00_rt(rt2x00dev, RT6352)) {
> ...
> 5291: } else if (rt2x00_rt(rt2x00dev, RT6352)) {
> ...
Hence remove errornous line 5281 to make the driver actually
execute the correct initialization routine for MT7620 chips.
As it was requested by Stanislaw Gruszka remove setting values of
MIMO_PS_CFG and TX_PIN_CFG. MIMO_PS_CFG is responsible for MIMO
power-safe mode (which is disabled), hence we can drop setting it.
TX_PIN_CFG is set correctly in other functions, and as setting this
value breaks some devices, rather don't set it here during init, but
only modify it later on.
Fixes: 41977e86c984 ("rt2x00: add support for MT7620")
Reported-by: wbob <wbob@jify.de>
Reported-by: Roman Yeryomin <roman@advem.lv>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
@@ -5839,8 +5839,7 @@ static int rt2800_init_registers(struct
rt2800_register_write(rt2x00dev, TX_TXBF_CFG_0, 0x8000fc21);
rt2800_register_write(rt2x00dev, TX_TXBF_CFG_3, 0x00009c40);
} else if (rt2x00_rt(rt2x00dev, RT5390) ||
- rt2x00_rt(rt2x00dev, RT5392) ||
- rt2x00_rt(rt2x00dev, RT6352)) {
+ rt2x00_rt(rt2x00dev, RT5392)) {
rt2800_register_write(rt2x00dev, TX_SW_CFG0, 0x00000404);
rt2800_register_write(rt2x00dev, TX_SW_CFG1, 0x00080606);
rt2800_register_write(rt2x00dev, TX_SW_CFG2, 0x00000000);
@@ -5854,8 +5853,6 @@ static int rt2800_init_registers(struct
rt2800_register_write(rt2x00dev, TX_SW_CFG0, 0x00000401);
rt2800_register_write(rt2x00dev, TX_SW_CFG1, 0x000C0000);
rt2800_register_write(rt2x00dev, TX_SW_CFG2, 0x00000000);
- rt2800_register_write(rt2x00dev, MIMO_PS_CFG, 0x00000002);
- rt2800_register_write(rt2x00dev, TX_PIN_CFG, 0x00150F0F);
rt2800_register_write(rt2x00dev, TX_ALC_VGA3, 0x00000000);
rt2800_register_write(rt2x00dev, TX0_BB_GAIN_ATTEN, 0x0);
rt2800_register_write(rt2x00dev, TX1_BB_GAIN_ATTEN, 0x0);

View File

@ -8,7 +8,7 @@
#include "rt2x00.h"
#include "rt2800lib.h"
@@ -9534,6 +9535,17 @@ static int rt2800_init_eeprom(struct rt2
@@ -9531,6 +9532,17 @@ static int rt2800_init_eeprom(struct rt2
rt2800_init_led(rt2x00dev, &rt2x00dev->led_assoc, LED_TYPE_ASSOC);
rt2800_init_led(rt2x00dev, &rt2x00dev->led_qual, LED_TYPE_QUALITY);

View File

@ -76,7 +76,7 @@ Signed-off-by: Tomislav Po=C5=BEega <pozega.tomislav@gmail.com>
bbp = rt2800_bbp_read(rt2x00dev, 4);
rt2x00_set_field8(&bbp, BBP4_BANDWIDTH, 2 * conf_is_ht40(conf));
rt2800_bbp_write(rt2x00dev, 4, bbp);
@@ -9563,7 +9602,8 @@ static int rt2800_init_eeprom(struct rt2
@@ -9560,7 +9599,8 @@ static int rt2800_init_eeprom(struct rt2
*/
eeprom = rt2800_eeprom_read(rt2x00dev, EEPROM_NIC_CONF1);
@ -86,7 +86,7 @@ Signed-off-by: Tomislav Po=C5=BEega <pozega.tomislav@gmail.com>
if (rt2x00_get_field16(eeprom,
EEPROM_NIC_CONF1_EXTERNAL_TX0_PA_3352))
__set_bit(CAPABILITY_EXTERNAL_PA_TX0,
@@ -9574,6 +9614,18 @@ static int rt2800_init_eeprom(struct rt2
@@ -9571,6 +9611,18 @@ static int rt2800_init_eeprom(struct rt2
&rt2x00dev->cap_flags);
}

View File

@ -1,6 +1,6 @@
--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
@@ -8425,6 +8425,58 @@ static void rt2800_init_rfcsr_5592(struc
@@ -8422,6 +8422,58 @@ static void rt2800_init_rfcsr_5592(struc
rt2800_led_open_drain_enable(rt2x00dev);
}
@ -59,7 +59,7 @@
static void rt2800_bbp_core_soft_reset(struct rt2x00_dev *rt2x00dev,
bool set_bw, bool is_ht40)
{
@@ -9032,6 +9084,7 @@ static void rt2800_init_rfcsr_6352(struc
@@ -9029,6 +9081,7 @@ static void rt2800_init_rfcsr_6352(struc
rt2800_rfcsr_write_dccal(rt2x00dev, 5, 0x00);
rt2800_rfcsr_write_dccal(rt2x00dev, 17, 0x7C);

View File

@ -1,6 +1,6 @@
--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
@@ -8477,6 +8477,160 @@ void rt2800_rf_self_txdc_cal(struct rt2x
@@ -8474,6 +8474,160 @@ void rt2800_rf_self_txdc_cal(struct rt2x
}
EXPORT_SYMBOL_GPL(rt2800_rf_self_txdc_cal);
@ -161,7 +161,7 @@
static void rt2800_bbp_core_soft_reset(struct rt2x00_dev *rt2x00dev,
bool set_bw, bool is_ht40)
{
@@ -9084,6 +9238,7 @@ static void rt2800_init_rfcsr_6352(struc
@@ -9081,6 +9235,7 @@ static void rt2800_init_rfcsr_6352(struc
rt2800_rfcsr_write_dccal(rt2x00dev, 5, 0x00);
rt2800_rfcsr_write_dccal(rt2x00dev, 17, 0x7C);

View File

@ -1,6 +1,6 @@
--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
@@ -8631,6 +8631,71 @@ void rt2800_r_calibration(struct rt2x00_
@@ -8628,6 +8628,71 @@ void rt2800_r_calibration(struct rt2x00_
}
EXPORT_SYMBOL_GPL(rt2800_r_calibration);
@ -72,7 +72,7 @@
static void rt2800_bbp_core_soft_reset(struct rt2x00_dev *rt2x00dev,
bool set_bw, bool is_ht40)
{
@@ -9240,6 +9305,7 @@ static void rt2800_init_rfcsr_6352(struc
@@ -9237,6 +9302,7 @@ static void rt2800_init_rfcsr_6352(struc
rt2800_r_calibration(rt2x00dev);
rt2800_rf_self_txdc_cal(rt2x00dev);

View File

@ -1,6 +1,6 @@
--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
@@ -8696,6 +8696,386 @@ void rt2800_rxdcoc_calibration(struct rt
@@ -8693,6 +8693,386 @@ void rt2800_rxdcoc_calibration(struct rt
}
EXPORT_SYMBOL_GPL(rt2800_rxdcoc_calibration);
@ -387,7 +387,7 @@
static void rt2800_bbp_core_soft_reset(struct rt2x00_dev *rt2x00dev,
bool set_bw, bool is_ht40)
{
@@ -9308,6 +9688,7 @@ static void rt2800_init_rfcsr_6352(struc
@@ -9305,6 +9685,7 @@ static void rt2800_init_rfcsr_6352(struc
rt2800_rxdcoc_calibration(rt2x00dev);
rt2800_bw_filter_calibration(rt2x00dev, true);
rt2800_bw_filter_calibration(rt2x00dev, false);

View File

@ -1,6 +1,6 @@
--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
@@ -9076,6 +9076,954 @@ restore_value:
@@ -9073,6 +9073,954 @@ restore_value:
}
EXPORT_SYMBOL_GPL(rt2800_rxiq_calibration);
@ -955,7 +955,7 @@
static void rt2800_bbp_core_soft_reset(struct rt2x00_dev *rt2x00dev,
bool set_bw, bool is_ht40)
{
@@ -9688,6 +10636,7 @@ static void rt2800_init_rfcsr_6352(struc
@@ -9685,6 +10633,7 @@ static void rt2800_init_rfcsr_6352(struc
rt2800_rxdcoc_calibration(rt2x00dev);
rt2800_bw_filter_calibration(rt2x00dev, true);
rt2800_bw_filter_calibration(rt2x00dev, false);

View File

@ -12,14 +12,16 @@ PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/libnl-tiny.git
PKG_SOURCE_DATE:=2017-11-16
PKG_SOURCE_VERSION:=8ee5f3a4023f822d1c916bb2b5e845d3597ac674
PKG_MIRROR_HASH:=4ec0e67dc3234858da513832906f653e3644a261ac043cbeb95f3a3591daed86
PKG_SOURCE_DATE:=2019-10-04
PKG_SOURCE_VERSION:=0230d0698e596ab2e836abd2459d970b14bacb25
PKG_MIRROR_HASH:=a2543a577a91fbf9ee7fe662a1e2675da1d65d2f56bba8471a2cfe2ddd1cd46a
CMAKE_INSTALL:=1
PKG_LICENSE:=LGPL-2.1
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libnl-tiny
SECTION:=libs
@ -31,25 +33,16 @@ define Package/libnl-tiny/description
This package contains a stripped down version of libnl
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/src \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
all
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(1)/usr/include/libnl-tiny
$(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/libnl-tiny
$(CP) $(PKG_BUILD_DIR)/src/libnl-tiny.so $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/files/libnl-tiny.pc $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/include/libnl-tiny/* $(1)/usr/include/libnl-tiny
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnl-tiny.so $(1)/usr/lib/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/libnl-tiny.pc $(1)/usr/lib/pkgconfig
endef
define Package/libnl-tiny/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/src/libnl-tiny.so $(1)/usr/lib/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnl-tiny.so $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libnl-tiny))

View File

@ -5,9 +5,9 @@ PKG_RELEASE=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/libubox.git
PKG_SOURCE_DATE:=2019-10-21
PKG_SOURCE_VERSION:=eb30a03048f83e733a9530b5741808d7d0932ff2
PKG_MIRROR_HASH:=04c0edc0df8c9336ca3d68d3e3536de42805837c72ceb5fb4ecaab87a59ff2cd
PKG_MIRROR_HASH:=58f6f6b21a00b69d466bcbce31e8adbef364d139715731430194746be5211840
PKG_SOURCE_DATE:=2019-10-29
PKG_SOURCE_VERSION:=301303911dded723b7eda4d6a4a933b22d2c1b60
CMAKE_INSTALL:=1
PKG_LICENSE:=ISC

View File

@ -5,9 +5,9 @@ PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ustream-ssl.git
PKG_SOURCE_DATE:=2019-11-01
PKG_SOURCE_VERSION:=465f8dc31d85cdd54369a5650d5daa1d3995dfaa
PKG_MIRROR_HASH:=abf0c516f9a4b25a672b9d2d5b4f3fa05456ded46704817453b3e6ad928a30ac
PKG_SOURCE_DATE:=2019-11-05
PKG_SOURCE_VERSION:=c9b6668215a27f2346d5eedd6f29cc720985b448
PKG_MIRROR_HASH:=28b53b7e27b68d62c8fbbc57660d915bdcb6a464157c1930f16ed67e151398e9
CMAKE_INSTALL:=1
PKG_LICENSE:=ISC

View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=wolfssl
PKG_VERSION:=4.1.0-stable
PKG_RELEASE:=2
PKG_VERSION:=4.2.0-stable
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/wolfSSL/wolfssl/archive/v$(PKG_VERSION)
PKG_HASH:=f0d630c3ddfeb692b8ae38cc739f47d5e9f0fb708662aa241ede0c42a5eb3dd8
PKG_HASH:=3562af485c26cd7abe94d9404fbfc0c5c9bceb4aab29b81ebf5e6c2467507e12
PKG_FIXUP:=libtool
PKG_INSTALL:=1
@ -44,7 +44,7 @@ define Package/libwolfssl
MENU:=1
PROVIDES:=libcyassl
DEPENDS:=+WOLFSSL_HAS_DEVCRYPTO:kmod-cryptodev +WOLFSSL_HAS_AFALG:kmod-crypto-user
ABI_VERSION:=19
ABI_VERSION:=23
endef
define Package/libwolfssl/description

View File

@ -1,74 +0,0 @@
From e8e1d35744c68b165e172a687e870a549438bdf0 Mon Sep 17 00:00:00 2001
From: Jacob Barthelmeh <jacob@wolfssl.com>
Date: Tue, 13 Aug 2019 14:12:45 -0600
Subject: [PATCH] build with devcrypto and aesccm
diff --git a/configure.ac b/configure.ac
index f943cc6ef..cf03e7f52 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1096,6 +1096,10 @@ then
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DEVCRYPTO"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DEVCRYPTO_CBC"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DEVCRYPTO_AES"
+ if test "$ENABLED_AESCCM" = "yes"
+ then
+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AES_DIRECT"
+ fi
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DEVCRYPTO_HASH"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_NO_HASH_RAW"
ENABLED_DEVCRYPTO=yes
@@ -1106,6 +1110,10 @@ then
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DEVCRYPTO"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DEVCRYPTO_AES"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DEVCRYPTO_CBC"
+ if test "$ENABLED_AESCCM" = "yes"
+ then
+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AES_DIRECT"
+ fi
ENABLED_DEVCRYPTO=yes
fi
if test "$ENABLED_DEVCRYPTO" = "cbc"
diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c
index beeae72a6..b583d03e9 100644
--- a/wolfcrypt/src/aes.c
+++ b/wolfcrypt/src/aes.c
@@ -760,6 +760,14 @@
#elif defined(WOLFSSL_DEVCRYPTO_AES)
/* if all AES is enabled with devcrypto then tables are not needed */
+ #if defined(HAVE_AESCCM)
+ static int wc_AesEncrypt(Aes* aes, const byte* inBlock, byte* outBlock)
+ {
+ wc_AesEncryptDirect(aes, outBlock, inBlock);
+ return 0;
+ }
+ #endif
+
#else
/* using wolfCrypt software implementation */
@@ -1314,7 +1322,8 @@ static const word32 Td[4][256] = {
};
-#if defined(HAVE_AES_CBC) || defined(WOLFSSL_AES_DIRECT)
+#if (defined(HAVE_AES_CBC) && !defined(WOLFSSL_DEVCRYPTO_CBC)) \
+ || defined(WOLFSSL_AES_DIRECT)
static const byte Td4[256] =
{
0x52U, 0x09U, 0x6aU, 0xd5U, 0x30U, 0x36U, 0xa5U, 0x38U,
diff --git a/wolfcrypt/src/port/devcrypto/devcrypto_aes.c b/wolfcrypt/src/port/devcrypto/devcrypto_aes.c
index 5c63421e2..d5061f364 100644
--- a/wolfcrypt/src/port/devcrypto/devcrypto_aes.c
+++ b/wolfcrypt/src/port/devcrypto/devcrypto_aes.c
@@ -168,7 +168,7 @@ static int wc_DevCrypto_AesDirect(Aes* aes, byte* out, const byte* in,
#endif
-#if defined(WOLFSSL_AES_DIRECT)
+#if defined(WOLFSSL_AES_DIRECT) || defined(HAVE_AESCCM)
void wc_AesEncryptDirect(Aes* aes, byte* out, const byte* in)
{
wc_DevCrypto_AesDirect(aes, out, in, AES_BLOCK_SIZE, COP_ENCRYPT);

View File

@ -1,64 +0,0 @@
From 9fd38dc340c38dee6e5935da174f90270a63bfbf Mon Sep 17 00:00:00 2001
From: Jacob Barthelmeh <jacob@wolfssl.com>
Date: Fri, 30 Aug 2019 16:15:48 -0600
Subject: [PATCH] build fix for aesccm + devcrypto=cbc + wpas and afalg
diff --git a/configure.ac b/configure.ac
index 61fad39dd..30731eb52 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1045,6 +1045,10 @@ AC_ARG_ENABLE([afalg],
if test "$ENABLED_AFALG" = "yes"
then
+ if test "$ENABLED_AESCCM" = "yes"
+ then
+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AES_DIRECT"
+ fi
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AFALG"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AFALG_HASH"
fi
diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c
index fef2f9c74..d294f6236 100644
--- a/wolfcrypt/src/aes.c
+++ b/wolfcrypt/src/aes.c
@@ -759,7 +759,9 @@
}
#endif /* HAVE_AES_DECRYPT */
-#elif defined(WOLFSSL_IMX6_CAAM) && !defined(NO_IMX6_CAAM_AES)
+#elif (defined(WOLFSSL_IMX6_CAAM) && !defined(NO_IMX6_CAAM_AES)) || \
+ ((defined(WOLFSSL_AFALG) || defined(WOLFSSL_DEVCRYPTO_AES)) && \
+ defined(HAVE_AESCCM))
static int wc_AesEncrypt(Aes* aes, const byte* inBlock, byte* outBlock)
{
wc_AesEncryptDirect(aes, outBlock, inBlock);
@@ -768,16 +770,6 @@
#elif defined(WOLFSSL_AFALG)
#elif defined(WOLFSSL_DEVCRYPTO_AES)
- /* if all AES is enabled with devcrypto then tables are not needed */
-
- #if defined(HAVE_AESCCM)
- static int wc_AesEncrypt(Aes* aes, const byte* inBlock, byte* outBlock)
- {
- wc_AesEncryptDirect(aes, outBlock, inBlock);
- return 0;
- }
- #endif
-
#else
/* using wolfCrypt software implementation */
@@ -1593,8 +1585,8 @@ static void wc_AesEncrypt(Aes* aes, const byte* inBlock, byte* outBlock)
#endif /* HAVE_AES_CBC || WOLFSSL_AES_DIRECT || HAVE_AESGCM */
#if defined(HAVE_AES_DECRYPT)
-#if (defined(HAVE_AES_CBC) || defined(WOLFSSL_AES_DIRECT)) && \
- !defined(WOLFSSL_DEVCRYPTO_CBC)
+#if (defined(HAVE_AES_CBC) && !defined(WOLFSSL_DEVCRYPTO_CBC)) || \
+ defined(WOLFSSL_AES_DIRECT)
/* load 4 Td Tables into cache by cache line stride */
static WC_INLINE word32 PreFetchTd(void)

View File

@ -223,6 +223,8 @@ hostapd_common_add_bss_config() {
config_add_int time_advertisement
config_add_string time_zone
config_add_boolean ieee80211k rrm_neighbor_report rrm_beacon_report
config_add_boolean ieee80211r pmk_r1_push ft_psk_generate_local ft_over_ds
config_add_int r0_key_lifetime reassociation_deadline
config_add_string mobility_domain r1_key_holder
@ -489,6 +491,17 @@ hostapd_set_bss_options() {
append bss_conf "bss_transition=$bss_transition" "$N"
fi
json_get_vars ieee80211k
set_default ieee80211k 0
if [ "$ieee80211k" -eq "1" ]; then
json_get_vars rrm_neighbor_report rrm_beacon_report
set_default rrm_neighbor_report 1
set_default rrm_beacon_report 1
append bss_conf "rrm_neighbor_report=$rrm_neighbor_report" "$N"
append bss_conf "rrm_beacon_report=$rrm_beacon_report" "$N"
fi
if [ "$wpa" -ge "1" ]; then
json_get_vars ieee80211r
set_default ieee80211r 0
@ -540,7 +553,14 @@ hostapd_set_bss_options() {
append bss_conf "rsn_preauth=1" "$N"
append bss_conf "rsn_preauth_interfaces=$network_bridge" "$N"
else
set_default auth_cache 0
case "$auth_type" in
sae|psk-sae|owe)
set_default auth_cache 1
;;
*)
set_default auth_cache 0
;;
esac
fi
append bss_conf "okc=$auth_cache" "$N"

View File

@ -12,9 +12,9 @@ PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/fstools.git
PKG_SOURCE_DATE:=2019-09-21
PKG_SOURCE_VERSION:=4327ed40d96c95803b2d4d09ddf997c895eea071
PKG_MIRROR_HASH:=34e4510fbf8eb01571e4af632754c2f6799719e1f743037b998ca7fc838e6288
PKG_MIRROR_HASH:=7d67fe080d91b4bd6d32d5ee6c237c64a620c49cbd47b1ed9670f875b8f275f9
PKG_SOURCE_DATE:=2019-11-03
PKG_SOURCE_VERSION:=f438552ec8e777c271f5c2ec6713d9567eafa5b6
CMAKE_INSTALL:=1
PKG_LICENSE:=GPL-2.0

View File

@ -12,9 +12,9 @@ PKG_RELEASE:=3
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git
PKG_MIRROR_HASH:=f009c56bee61940973412157907564f69a30133c4359a6f2dc95b240173a6869
PKG_SOURCE_DATE:=2019-10-08
PKG_SOURCE_VERSION:=258aa04328a20213b12228d01d494c1e22f8d510
PKG_MIRROR_HASH:=eca6681bc12558ebb06535491710c61676a31e562b4feb1e9e43c24d11b39b8b
PKG_SOURCE_DATE:=2019-11-02
PKG_SOURCE_VERSION:=f47622e89c4d681a6441a3e51c0369f2baaaa1e6
CMAKE_INSTALL:=1
PKG_LICENSE:=GPL-2.0

View File

@ -174,7 +174,7 @@ TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)$(if $(CONFIG_DEBUG), -g3) $(call qstrip,$(
TARGET_CXXFLAGS = $(TARGET_CFLAGS)
TARGET_ASFLAGS_DEFAULT = $(TARGET_CFLAGS)
TARGET_ASFLAGS = $(TARGET_ASFLAGS_DEFAULT)
TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include
TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
ifneq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
LIBGCC_S_PATH=$(realpath $(wildcard $(call qstrip,$(CONFIG_LIBGCC_ROOT_DIR))/$(call qstrip,$(CONFIG_LIBGCC_FILE_SPEC))))

View File

@ -177,7 +177,7 @@ class GitHubCommitTsCache(object):
def set(self, k, v):
"""Update timestamp with ``k``."""
fileno = os.open(self.cachef, os.O_RDWR | os.O_CREAT)
with os.fdopen(fileno, 'wb+') as f:
with os.fdopen(fileno, 'w+') as f:
try:
fcntl.lockf(fileno, fcntl.LOCK_EX)
self._cache_init(f)
@ -203,7 +203,7 @@ class GitHubCommitTsCache(object):
ts = ent[0]
updated = ent[1]
line = '{0} {1} {2}\n'.format(k, ts, updated)
fout.write(line.encode('utf-8'))
fout.write(line)
class DownloadGitHubTarball(object):

View File

@ -30,6 +30,6 @@ ROOTFSSIZE="$(($4 / 512))"
[ -n "$PADDING" ] && dd if=/dev/zero of="$OUTPUT" bs=512 seek="$ROOTFSOFFSET" conv=notrunc count="$ROOTFSSIZE"
dd if="$ROOTFSIMAGE" of="$OUTPUT" bs=512 seek="$ROOTFSOFFSET" conv=notrunc
make_ext4fs -J -l "$KERNELSIZE" "$OUTPUT.kernel" "$KERNELDIR"
make_ext4fs -J -L kernel -l "$KERNELSIZE" "$OUTPUT.kernel" "$KERNELDIR"
dd if="$OUTPUT.kernel" of="$OUTPUT" bs=512 seek="$KERNELOFFSET" conv=notrunc
rm -f "$OUTPUT.kernel"

View File

@ -9,6 +9,7 @@ kernel=""
rootfs=""
outfile=""
err=""
ubinize_seq=""
ubivol() {
volid=$1
@ -81,6 +82,12 @@ ubilayout() {
[ "$rootfs_type" = "ubifs" ] || ubivol $vol_id rootfs_data "" 1
}
set_ubinize_seq() {
if [ -n "$SOURCE_DATE_EPOCH" ] ; then
ubinize_seq="-Q $SOURCE_DATE_EPOCH"
fi
}
while [ "$1" ]; do
case "$1" in
"--uboot-env")
@ -137,8 +144,9 @@ if [ -z "$ubinizecfg" ]; then
fi
ubilayout "$ubootenv" "$rootfs" "$kernel" > "$ubinizecfg"
set_ubinize_seq
cat "$ubinizecfg"
ubinize -o "$outfile" $ubinize_param "$ubinizecfg"
ubinize $ubinize_seq -o "$outfile" $ubinize_param "$ubinizecfg"
err="$?"
[ ! -e "$outfile" ] && err=2
rm "$ubinizecfg"

View File

@ -11,16 +11,16 @@
model = "I-O DATA WN-AG300DGR";
aliases {
led-boot = &router;
led-failsafe = &router;
led-running = &router;
led-upgrade = &router;
led-boot = &led_router;
led-failsafe = &led_router;
led-running = &led_router;
led-upgrade = &led_router;
};
leds {
compatible = "gpio-leds";
router: router {
led_router: router {
label = "wn-ag300dgr:green:router";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on";
@ -108,9 +108,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
@ -212,5 +213,6 @@
&wmac {
status = "okay";
qca,no-eeprom;
};

View File

@ -11,10 +11,10 @@
compatible = "sitecom,wlr-7100", "qca,ar9344";
aliases {
led-boot = &power;
led-failsafe = &power;
led-running = &power;
led-upgrade = &power;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
keys {
@ -41,7 +41,7 @@
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
power: power {
led_power: power {
label = "wlr-7100:amber:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "on";
@ -100,9 +100,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;

View File

@ -12,10 +12,10 @@
};
aliases {
led-boot = &led_green_status;
led-failsafe = &led_yellow_status;
led-running = &led_green_status;
led-upgrade = &led_yellow_status;
led-boot = &led_status_green;
led-failsafe = &led_status_yellow;
led-running = &led_status_green;
led-upgrade = &led_status_yellow;
};
leds {
@ -33,12 +33,12 @@
linux,default-trigger = "phy0tpt";
};
led_green_status: green_status {
led_status_green: status_green {
label = "bluesocket:green:status";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
led_yellow_status: yellow_status {
led_status_yellow: status_yellow {
label = "bluesocket:yellow:status";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
@ -79,6 +79,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -15,10 +15,10 @@
};
aliases {
led-boot = &power_green;
led-failsafe = &power_red;
led-running = &power_green;
led-upgrade = &power_green;
led-boot = &led_power_green;
led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
label-mac-device = &eth0;
};
@ -32,23 +32,23 @@
leds {
compatible = "gpio-leds";
power_green: power_green {
led_power_green: power_green {
label = "ap-105:green:power";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
power_red: power_red {
led_power_red: power_red {
label = "ap-105:red:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
panic-indicator;
};
wifi_2g_red: wifi_2g_red {
wifi_2g_red {
label = "ap-105:red:wlan2g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
wifi_5g_red: wifi_5g_red {
wifi_5g_red {
label = "ap-105:red:wlan5g";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
@ -151,6 +151,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -11,9 +11,9 @@
model = "Buffalo WZR-HP-AG300H/WZR-600DHP";
aliases {
led-boot = &diag;
led-failsafe = &diag;
led-upgrade = &diag;
led-boot = &led_diag;
led-failsafe = &led_diag;
led-upgrade = &led_diag;
};
chosen {
@ -27,19 +27,18 @@
clock-frequency = <40000000>;
};
gpio-leds {
leds {
compatible = "gpio-leds";
diag: diag {
led_diag: diag {
label = "buffalo:red:diag";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
};
ath9k-leds {
// those leds are indeed attached to the wifi chips
compatible = "gpio-leds";
band2g_a {
label = "buffalo:amber:band2g";
gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
@ -228,6 +227,7 @@
&spi {
status = "okay";
num-cs = <2>;
cs-gpios = <0>, <0>;

View File

@ -11,10 +11,10 @@
model = "D-Link DIR825B1";
aliases {
led-boot = &orange_power;
led-failsafe = &orange_power;
led-running = &blue_power;
led-upgrade = &orange_power;
led-boot = &led_power_orange;
led-failsafe = &led_power_orange;
led-running = &led_power_blue;
led-upgrade = &led_power_orange;
};
chosen {
@ -30,35 +30,36 @@
leds {
compatible = "gpio-leds";
blue_usb {
usb {
label = "d-link:blue:usb";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
linux,default-trigger = "usbport";
};
orange_power: orange_power {
led_power_orange: power_orange {
label = "d-link:orange:power";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "on";
};
blue_power: blue_power {
led_power_blue: power_blue {
label = "d-link:blue:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
blue_wps {
wps {
label = "d-link:blue:wps";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
orange_planet {
planet_orange {
label = "d-link:orange:planet";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
blue_planet {
planet_blue {
label = "d-link:blue:planet";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
@ -173,6 +174,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {
@ -220,6 +222,7 @@
&eth0 {
status = "okay";
pll-data = <0x11110000 0x00001099 0x00991099>;
fixed-link {
@ -230,6 +233,7 @@
&eth1 {
status = "okay";
pll-data = <0x11110000 0x00001099 0x00991099>;
phy-handle = <&phy4>;

View File

@ -20,10 +20,10 @@
};
aliases {
led-boot = &d2;
led-failsafe = &d2;
led-running = &d2;
led-upgrade = &d2;
led-boot = &led_d2;
led-failsafe = &led_d2;
led-running = &led_d2;
led-upgrade = &led_d2;
};
extosc: ref {
@ -36,7 +36,7 @@
leds {
compatible = "gpio-leds";
d2: d2 {
led_d2: d2 {
label = "ja76pf2:green:d2";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
@ -105,6 +105,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -8,10 +8,10 @@
/ {
aliases {
led-boot = &power_orange;
led-failsafe = &power_orange;
led-running = &power_green;
led-upgrade = &power_orange;
led-boot = &led_power_orange;
led-failsafe = &led_power_orange;
led-running = &led_power_green;
led-upgrade = &led_power_orange;
label-mac-device = &eth0;
};
@ -37,7 +37,7 @@
};
};
gpio-leds {
leds {
compatible = "gpio-leds";
wps {
@ -45,12 +45,12 @@
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
power_green: power_green {
led_power_green: power_green {
label = "netgear:green:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
power_orange: power_orange {
led_power_orange: power_orange {
label = "netgear:orange:power";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "on";
@ -69,6 +69,7 @@
ath9k-leds {
compatible = "gpio-leds";
wlan2g {
label = "netgear:green:wlan2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
@ -105,6 +106,7 @@
rtl8366s {
compatible = "realtek,rtl8366s";
gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
@ -177,6 +179,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -12,10 +12,10 @@
};
aliases {
led-boot = &rf;
led-failsafe = &rf;
led-running = &rf;
led-upgrade = &rf;
led-boot = &led_rf;
led-failsafe = &led_rf;
led-running = &led_rf;
led-upgrade = &led_rf;
};
extosc: ref {
@ -28,7 +28,7 @@
leds {
compatible = "gpio-leds";
rf: rf_green {
led_rf: rf_green {
label = "ubnt:green:rf";
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
};

View File

@ -11,9 +11,9 @@
model = "Buffalo WHR-G301N";
aliases {
led-boot = &diag;
led-failsafe = &diag;
led-upgrade = &diag;
led-boot = &led_diag;
led-failsafe = &led_diag;
led-upgrade = &led_diag;
};
keys {
@ -50,7 +50,7 @@
};
};
gpio-leds {
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&switch_led_pins>;
@ -60,7 +60,7 @@
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
diag: diag {
led_diag: diag {
label = "whr-g301n:red:diag";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
@ -109,6 +109,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -15,10 +15,10 @@
};
aliases {
led-boot = &power_amber;
led-failsafe = &power_amber;
led-running = &power_green;
led-upgrade = &power_amber;
led-boot = &led_power_amber;
led-failsafe = &led_power_amber;
led-running = &led_power_green;
led-upgrade = &led_power_amber;
label-mac-device = &eth1;
};
@ -54,12 +54,12 @@
pinctrl-names = "default";
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
power_green: power_green {
led_power_green: power_green {
label = "netgear:green:power";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
power_amber: power_amber {
led_power_amber: power_amber {
label = "netgear:amber:power";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "keep";
@ -134,6 +134,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -8,10 +8,10 @@
/ {
aliases {
led-boot = &power;
led-failsafe = &power;
led-running = &power;
led-upgrade = &power;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &eth1;
};
@ -33,7 +33,7 @@
pinctrl-names = "default";
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
power: power {
led_power: power {
label = "netgear:green:power";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
@ -57,7 +57,7 @@
ath9k-leds {
compatible = "gpio-leds";
wlan: wlan {
wlan {
label = "netgear:green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
@ -67,6 +67,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -32,7 +32,7 @@
};
};
gpio-leds {
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&switch_led_pins>;
@ -86,6 +86,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -15,10 +15,10 @@
};
aliases {
led-boot = &power_amber;
led-failsafe = &power_amber;
led-running = &power_green;
led-upgrade = &power_amber;
led-boot = &led_power_amber;
led-failsafe = &led_power_amber;
led-running = &led_power_green;
led-upgrade = &led_power_amber;
label-mac-device = &eth1;
};
@ -116,12 +116,12 @@
ath9k-leds {
compatible = "gpio-leds";
power_green: power_green {
led_power_green: power_green {
label = "netgear:green:power";
gpios = <&ath9k 3 GPIO_ACTIVE_LOW>;
};
power_amber: power_amber {
led_power_amber: power_amber {
label = "netgear:amber:power";
gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
default-state = "keep";
@ -137,6 +137,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -12,10 +12,10 @@
};
aliases {
led-boot = &power_amber;
led-failsafe = &power_amber;
led-running = &power_green;
led-upgrade = &power_amber;
led-boot = &led_power_amber;
led-failsafe = &led_power_amber;
led-running = &led_power_green;
led-upgrade = &led_power_amber;
label-mac-device = &eth1;
};
@ -117,12 +117,12 @@
ath9k-leds {
compatible = "gpio-leds";
power_green: power_green {
led_power_green: power_green {
label = "netgear:green:power";
gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
};
power_amber: power_amber {
led_power_amber: power_amber {
label = "netgear:amber:power";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
default-state = "keep";

View File

@ -32,7 +32,7 @@
};
};
gpio_leds: gpio-leds {
leds: leds {
compatible = "gpio-leds";
led_system: system {
@ -49,6 +49,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -15,7 +15,7 @@
};
};
&gpio_leds {
&leds {
led3g {
label = "tp-link:green:3g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;

View File

@ -36,7 +36,7 @@
};
};
gpio-leds {
leds {
compatible = "gpio-leds";
led_system: system {
@ -95,6 +95,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -8,17 +8,17 @@
model = "Ubiquiti AirRouter";
aliases {
led-boot = &globe;
led-failsafe = &globe;
led-running = &globe;
led-upgrade = &globe;
led-boot = &led_globe;
led-failsafe = &led_globe;
led-running = &led_globe;
led-upgrade = &led_globe;
label-mac-device = &wifi;
};
airrouter-leds {
compatible = "gpio-leds";
globe: globe {
led_globe: globe {
label = "ubnt:green:globe";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};

View File

@ -11,10 +11,10 @@
model = "Ubiquiti UniFi AP";
aliases {
led-boot = &dome_green;
led-failsafe = &dome_green;
led-running = &dome_green;
led-upgrade = &dome_green;
led-boot = &led_dome_green;
led-failsafe = &led_dome_green;
led-running = &led_dome_green;
led-upgrade = &led_dome_green;
label-mac-device = &wifi;
};
@ -36,12 +36,13 @@
leds {
compatible = "gpio-leds";
dome_green: dome-green {
led_dome_green: dome_green {
label = "ubnt:green:dome";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
dome-orange {
dome_orange {
label = "ubnt:orange:dome";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
@ -58,6 +59,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -1,14 +1,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "ar7241_ubnt_xm.dtsi"
/ {
aliases {
led-boot = &link4;
led-failsafe = &link4;
led-boot = &led_link4;
led-failsafe = &led_link4;
label-mac-device = &wifi;
};
@ -29,7 +26,7 @@
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
link4: link4 {
led_link4: link4 {
label = "ubnt:green:link4";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};

View File

@ -11,10 +11,10 @@
model = "AVM FRITZ!WLAN Repeater 300E";
aliases {
led-boot = &power;
led-failsafe = &power;
led-running = &power;
led-upgrade = &power;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &ath9k;
};
@ -32,7 +32,7 @@
leds {
compatible = "gpio-leds";
power: power {
led_power: power {
label = "fritz300e:green:power";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "on";
@ -96,6 +96,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -8,10 +8,13 @@
model = "Buffalo BHR-4GRV";
};
&leds {
sec_vpn {
label = "buffalo:orange:vpn";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
};
&eth0 {
mtd-mac-address = <&art 0x0>;
};
&sec_vpn {
label = "buffalo:orange:vpn";
};

View File

@ -8,9 +8,9 @@
/ {
aliases {
led-boot = &diag;
led-failsafe = &diag;
led-upgrade = &diag;
led-boot = &led_diag;
led-failsafe = &led_diag;
led-upgrade = &led_diag;
};
extosc: ref {
@ -37,14 +37,10 @@
};
};
leds {
leds: leds {
compatible = "gpio-leds";
sec_vpn: sec_vpn {
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
diag: diag {
led_diag: diag {
label = "buffalo:red:diag";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
@ -111,6 +107,7 @@
&spi {
status = "okay";
cs-gpios = <0>, <0>;
num-cs = <2>;

View File

@ -11,9 +11,9 @@
model = "Buffalo WZR-HP-G302H A1A0";
aliases {
led-boot = &diag;
led-failsafe = &diag;
led-upgrade = &diag;
led-boot = &led_diag;
led-failsafe = &led_diag;
led-upgrade = &led_diag;
};
extosc: ref {
@ -66,7 +66,7 @@
leds {
compatible = "gpio-leds";
diag: diag {
led_diag: diag {
label = "buffalo:red:diag";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
@ -163,6 +163,7 @@
&spi {
status = "okay";
cs-gpios = <0>, <0>;
num-cs = <2>;

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "ar7242_buffalo_wzr-bhr.dtsi"
/ {
@ -60,12 +57,15 @@
};
};
&eth0 {
mtd-mac-address = <&art 0x1002>;
&leds {
sec_vpn {
label = "buffalo:orange:security";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
};
&sec_vpn {
label = "buffalo:orange:security";
&eth0 {
mtd-mac-address = <&art 0x1002>;
};
&pcie {

View File

@ -11,10 +11,10 @@
model = "TP-Link TL-WR2543N/ND";
aliases {
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
led-boot = &led_wps;
led-failsafe = &led_wps;
led-running = &led_wps;
led-upgrade = &led_wps;
label-mac-device = &eth0;
};
@ -49,7 +49,7 @@
leds {
compatible = "gpio-leds";
system: wps {
led_wps: wps {
label = "tplink:green:wps";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
@ -102,6 +102,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -11,10 +11,10 @@
model = "TP-Link TL-WA901ND v2";
aliases {
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
label-mac-device = &eth0;
};
@ -45,7 +45,7 @@
leds {
compatible = "gpio-leds";
system: system {
led_system: system {
label = "tp-link:green:system";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
@ -73,6 +73,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {
@ -126,6 +127,7 @@
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>;
};

View File

@ -11,10 +11,10 @@
model = "TP-Link TL-WR1043ND v1";
aliases {
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
label-mac-device = &eth0;
};
@ -44,6 +44,7 @@
leds {
compatible = "gpio-leds";
usb {
label = "tp-link:green:usb";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
@ -51,7 +52,7 @@
linux,default-trigger = "usbport";
};
system: system {
led_system: system {
label = "tp-link:green:system";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat";
@ -104,6 +105,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {
@ -151,6 +153,7 @@
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>;
};

View File

@ -12,16 +12,16 @@
aliases {
serial0 = &uart;
led-boot = &wlan;
led-failsafe = &wlan;
led-upgrade = &wlan;
led-boot = &led_wlan;
led-failsafe = &led_wlan;
led-upgrade = &led_wlan;
label-mac-device = &eth0;
};
leds {
compatible = "gpio-leds";
wlan: wlan {
led_wlan: wlan {
label = "gl-ar150:orange:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
@ -80,9 +80,10 @@
};
&spi {
num-chipselects = <1>;
status = "okay";
num-chipselects = <1>;
flash@0 {
compatible = "jedec,spi-nor";
spi-max-frequency = <104000000>;
@ -140,6 +141,7 @@
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x0>;
};

View File

@ -12,15 +12,15 @@
aliases {
serial0 = &uart;
led-boot = &wlan;
led-failsafe = &wlan;
led-upgrade = &wlan;
led-boot = &led_wlan;
led-failsafe = &led_wlan;
led-upgrade = &led_wlan;
};
leds {
compatible = "gpio-leds";
wlan: wlan {
led_wlan: wlan {
label = "air-pen:blue:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
@ -69,9 +69,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
spi-max-frequency = <104000000>;
@ -135,11 +136,13 @@
&eth1 {
status = "okay";
compatible = "syscon", "simple-mfd";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x2>;
};

View File

@ -12,9 +12,9 @@
aliases {
label-mac-device = &wmac;
led-boot = &vpn;
led-failsafe = &vpn;
led-upgrade = &vpn;
led-boot = &led_vpn;
led-failsafe = &led_vpn;
led-upgrade = &led_vpn;
serial0 = &uart;
};
@ -42,7 +42,7 @@
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
vpn: vpn {
led_vpn: vpn {
label = "ap121f:green:vpn";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
@ -57,6 +57,7 @@
&eth0 {
status = "okay";
mtd-mac-address = <&art 0x0>;
gmac-config {
@ -68,6 +69,7 @@
&eth1 {
status = "okay";
compatible = "syscon", "simple-mfd";
};
@ -77,6 +79,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {
@ -130,5 +133,6 @@
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
};

View File

@ -11,17 +11,17 @@
compatible = "embeddedwireless,dorin", "qca,ar9331";
aliases {
led-boot = &status;
led-failsafe = &status;
led-running = &status;
led-upgrade = &status;
led-boot = &led_status;
led-failsafe = &led_status;
led-running = &led_status;
led-upgrade = &led_status;
serial0 = &uart;
};
leds {
compatible = "gpio-leds";
status: status {
led_status: status {
label = "dorin:green:status";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
@ -62,9 +62,10 @@
};
&spi {
num-chipselects = <1>;
status = "okay";
num-chipselects = <1>;
flash@0 {
compatible = "jedec,spi-nor";
spi-max-frequency = <104000000>;
@ -115,5 +116,6 @@
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
};

View File

@ -12,10 +12,10 @@
aliases {
serial0 = &uart;
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
led-boot = &led_wps;
led-failsafe = &led_wps;
led-running = &led_wps;
led-upgrade = &led_wps;
label-mac-device = &eth0;
};
@ -33,7 +33,7 @@
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
system: wps {
led_wps: wps {
label = "tp-link:green:wps";
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
};
@ -113,9 +113,10 @@
};
&spi {
num-chipselects = <1>;
status = "okay";
num-chipselects = <1>;
/* Spansion S25FL032PIF SPI flash */
flash@0 {
compatible = "jedec,spi-nor";
@ -168,11 +169,13 @@
&eth1 {
status = "okay";
compatible = "syscon", "simple-mfd";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>;
};

View File

@ -18,6 +18,7 @@
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&switch_led_disable_pins>;
@ -107,9 +108,10 @@
};
&spi {
num-chipselects = <1>;
status = "okay";
num-chipselects = <1>;
flash@0 {
compatible = "jedec,spi-nor";
spi-max-frequency = <104000000>;
@ -155,11 +157,13 @@
&eth1 {
status = "okay";
compatible = "syscon", "simple-mfd";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>;
};

View File

@ -9,10 +9,10 @@
/ {
aliases {
serial0 = &uart;
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
label-mac-device = &eth0;
};
@ -30,7 +30,7 @@
leds {
compatible = "gpio-leds";
system: system {
led_system: system {
label = "tl-wr703n:blue:system";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
@ -47,6 +47,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {
@ -65,7 +66,7 @@
read-only;
};
firmware: partition@20000 {
partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x3d0000>;
label = "firmware";
@ -95,6 +96,7 @@
&eth1 {
status = "okay";
compatible = "syscon", "simple-mfd";
};
@ -118,6 +120,7 @@
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>;
};

View File

@ -12,10 +12,10 @@
aliases {
serial0 = &uart;
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
label-mac-device = &wmac;
};
@ -39,6 +39,7 @@
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&switch_led_disable_pins>;
@ -67,7 +68,7 @@
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
system: system {
led_system: system {
label = "tp-link:green:system";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
@ -87,6 +88,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {
@ -151,6 +153,7 @@
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>;
};

View File

@ -12,10 +12,10 @@
aliases {
serial0 = &uart;
led-boot = &status;
led-failsafe = &status;
led-running = &status;
led-upgrade = &status;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
keys {
@ -42,7 +42,7 @@
leds {
compatible = "gpio-leds";
status: power {
led_power: power {
label = "pcs:amber:power";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "on";

View File

@ -12,10 +12,10 @@
aliases {
serial0 = &uart;
led-boot = &wifi;
led-failsafe = &wifi;
led-running = &wifi;
led-upgrade = &wifi;
led-boot = &led_wifi;
led-failsafe = &led_wifi;
led-running = &led_wifi;
led-upgrade = &led_wifi;
};
i2c {
@ -89,7 +89,7 @@
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
};
wifi: wifi {
led_wifi: wifi {
label = "wmb001n:blue:wifi";
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
};

View File

@ -9,10 +9,10 @@
/ {
aliases {
serial0 = &uart;
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &wmac;
};
@ -33,7 +33,7 @@
leds: leds {
compatible = "gpio-leds";
system: power {
led_power: power {
label = "tp-link:green:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on";

View File

@ -37,10 +37,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;

View File

@ -11,16 +11,16 @@
model = "I-O DATA ETG3-R";
aliases {
led-boot = &power;
led-failsafe = &power;
led-running = &power;
led-upgrade = &power;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
power: power {
led_power: power {
label = "etg3-r:green:power";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
default-state = "on";
@ -49,9 +49,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;

View File

@ -74,5 +74,4 @@
status = "okay";
mtd-cal-data = <&eeprom 0x1000>;
mtd-mac-address = <&eeprom 0x1002>;
};

View File

@ -89,5 +89,4 @@
qca,disable-5ghz;
mtd-cal-data = <&eeprom 0x1000>;
mtd-mac-address = <&eeprom 0x1002>;
};

View File

@ -10,10 +10,10 @@
model = "Ubiquiti Networks XW board";
aliases {
led-boot = &system;
led-running = &system;
led-upgrade = &system;
led-failsafe = &system;
led-boot = &led_link4;
led-running = &led_link4;
led-upgrade = &led_link4;
led-failsafe = &led_link4;
label-mac-device = &wmac;
};
@ -35,7 +35,7 @@
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
system: link4 {
led_link4: link4 {
label = "ubnt:green:link4";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
@ -116,7 +116,6 @@
status = "okay";
mtd-cal-data = <&eeprom 0x1000>;
mtd-mac-address = <&eeprom 0x1002>;
};
&eth0 {

View File

@ -11,10 +11,10 @@
model = "Aerohive HiveAP 121";
aliases {
led-boot = &power_white;
led-failsafe = &power_orange;
led-running = &power_white;
led-upgrade = &power_orange;
led-boot = &led_power_white;
led-failsafe = &led_power_orange;
led-running = &led_power_white;
led-upgrade = &led_power_orange;
label-mac-device = &eth0;
};
@ -36,12 +36,12 @@
leds {
compatible = "gpio-leds";
power_orange: power_orange {
led_power_orange: power_orange {
label = "hiveap-121:orange:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
power_white: power_white {
led_power_white: power_white {
label = "hiveap-121:white:power";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
@ -120,6 +120,7 @@
&spi {
status = "okay";
num-cs = <1>;
flash@0 {

View File

@ -12,9 +12,9 @@
aliases {
serial0 = &uart;
led-boot = &wan;
led-failsafe = &wan;
led-upgrade = &wan;
led-boot = &led_wan;
led-failsafe = &led_wan;
led-upgrade = &led_wan;
label-mac-device = &eth0;
};
@ -24,7 +24,7 @@
pinctrl-names = "default";
pinctrl-0 = <&led_rssimediumhigh_pin>;
wan: wan {
led_wan: wan {
label = "cf-e120a-v3:green:wan";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
@ -74,13 +74,14 @@
};
&pinmux {
led_rssimediumhigh_pin: pinmux_rssimediumhigh_pin {
pinctrl-single,bits = <0x10 0x0 0xff>;
};
led_rssimediumhigh_pin: pinmux_rssimediumhigh_pin {
pinctrl-single,bits = <0x10 0x0 0xff>;
};
};
&spi {
status = "okay";
num-cs = <1>;
flash@0 {
@ -93,7 +94,7 @@
#address-cells = <1>;
#size-cells = <1>;
uboot: partition@0 {
partition@0 {
label = "u-boot";
reg = <0x000000 0x010000>;
read-only;
@ -105,13 +106,13 @@
read-only;
};
firmware: partition@20000 {
partition@20000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x020000 0x7d0000>;
};
nvram: partition@7f0000 {
partition@7f0000 {
label = "nvram";
reg = <0x7f0000 0x010000>;
read-only;

View File

@ -8,10 +8,10 @@
compatible = "dlink,dir-825-c1", "qca,ar9344";
aliases {
led-boot = &orange_power;
led-failsafe = &orange_power;
led-running = &blue_power;
led-upgrade = &orange_power;
led-boot = &led_power_orange;
led-failsafe = &led_power_orange;
led-running = &led_power_blue;
led-upgrade = &led_power_orange;
serial0 = &uart;
};
@ -21,40 +21,40 @@
pinctrl-names = "default";
pinctrl-0 = <&enable_gpio_11>;
blue_power: blue_power {
led_power_blue: power_blue {
label = "d-link:blue:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
blue_usb {
usb {
label = "d-link:blue:usb";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "usbport";
trigger-sources = <&hub_port1>;
};
blue_wan {
wan_blue {
label = "d-link:blue:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
blue_wlan2g {
wlan2g {
label = "d-link:blue:wlan2g";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
blue_wps {
wps {
label = "d-link:blue:wps";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
orange_power: orange_power {
led_power_orange: power_orange {
label = "d-link:orange:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
orange_wan {
wan_orange {
label = "d-link:orange:wan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
@ -63,7 +63,7 @@
leds-ath9k {
compatible = "gpio-leds";
blue_wlan5g {
wlan5g {
label = "d-link:blue:wlan5g";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";

View File

@ -8,37 +8,37 @@
compatible = "dlink,dir-835-a1", "qca,ar9344";
aliases {
led-boot = &orange_power;
led-failsafe = &orange_power;
led-running = &green_power;
led-upgrade = &orange_power;
led-boot = &led_power_orange;
led-failsafe = &led_power_orange;
led-running = &led_power_green;
led-upgrade = &led_power_orange;
serial0 = &uart;
};
leds {
compatible = "gpio-leds";
green_power: green_power {
led_power_green: power_green {
label = "d-link:green:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
green_wan {
wan_green {
label = "d-link:green:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
green_wps {
wps {
label = "d-link:green:wps";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
orange_power: orange_power {
led_power_orange: power_orange {
label = "d-link:orange:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
orange_wan {
wan_orange {
label = "d-link:orange:wan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};

View File

@ -0,0 +1,293 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "ar9344.dtsi"
/ {
compatible = "netgear,wndr4300", "qca,ar9344";
model = "Netgear WNDR4300";
chosen {
bootargs = "console=ttyS0,115200n8";
};
aliases {
led-boot = &led_power_amber;
led-failsafe = &led_power_amber;
led-running = &led_power_green;
led-upgrade = &led_power_amber;
label-mac-device = &eth0;
};
keys {
compatible = "gpio-keys";
wps {
label = "wps";
linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
reset {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
rfkill {
label = "rfkill";
linux,code = <KEY_RFKILL>;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
};
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&enable_gpio_11>;
led_power_green: power_green {
label = "netgear:green:power";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
led_power_amber: power_amber {
label = "netgear:amber:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
wan_green {
label = "netgear:green:wan";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
wan_amber {
label = "netgear:amber:wan";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
wlan2g_green {
label = "netgear:green:wlan2g";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan5g_blue {
label = "netgear:blue:wlan5g";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wps_green {
label = "netgear:green:wps";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
wps_amber {
label = "netgear:amber:wps";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
usb_green {
label = "netgear:green:usb";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
};
};
&pinmux {
enable_gpio_11: pinmux_enable_gpio_11 {
pinctrl-single,bits = <0x8 0x0 0xff000000>;
};
};
&nand {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x40000>;
read-only;
};
partition@40000 {
label = "u-boot-env";
reg = <0x40000 0x40000>;
};
art: partition@80000 {
label = "caldata";
reg = <0x80000 0x40000>;
read-only;
};
partition@c0000 {
label = "pot";
reg = <0xc0000 0x80000>;
};
partition@140000 {
label = "language";
reg = <0x140000 0x200000>;
};
partition@340000 {
label = "config";
reg = <0x340000 0x80000>;
};
partition@3c0000 {
label = "traffic_meter";
reg = <0x3c0000 0x300000>;
};
kernel@6c0000 {
label = "kernel";
reg = <0x6c0000 0x200000>;
};
ubi@8c0000 {
label = "ubi";
reg = <0x8c0000 0x1700000>;
};
partition@6c0000 {
label = "firmware";
reg = <0x6c0000 0x1900000>;
compatible = "netgear,uimage";
};
partition@1fc0000 {
label = "caldata_backup";
reg = <0x1fc0000 0x40000>;
read-only;
};
partition@2000000 {
label = "reserved";
reg = <0x2000000 0x6000000>;
read-only;
};
};
};
&ref {
clock-frequency = <40000000>;
};
&builtin_switch {
resets = <&rst 8>, <&rst 12>;
reset-names = "switch", "switch-analog";
};
&mdio0 {
status = "okay";
phy-mask = <0>;
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "rgmii";
qca,mib-poll-interval = <500>;
qca,ar8327-initvals = <
0x04 0x07600000
0x0c 0x01000000
0x10 0xc1000000
0x50 0xcc35cc35
0x54 0xcb37cb37
0x58 0x00000000
0x5c 0x00f3cf00
0x7c 0x0000007e
0x94 0x0000007e
>;
};
};
&eth0 {
status = "okay";
/* default for ar934x, except for 1000M */
pll-data = <0x06000000 0x00000101 0x00001616>;
mtd-mac-address = <&art 0x0>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
};
&gpio {
status = "okay";
lna0 {
gpio-hog;
line-name = "netgear:ext:lna0";
gpios = <18 GPIO_ACTIVE_HIGH>;
output-high;
};
lna1 {
gpio-hog;
line-name = "netgear:ext:lna1";
gpios = <19 GPIO_ACTIVE_HIGH>;
output-high;
};
};
&wmac {
status = "okay";
mtd-mac-address = <&art 0x0>;
qca,no-eeprom;
};
&pcie {
status = "okay";
ath9k: wifi@0,0 {
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0xc>;
qca,no-eeprom;
#gpio-cells = <2>;
gpio-controller;
usb_power {
gpio-hog;
line-name = "netgear:power:usb";
gpios = <0 GPIO_ACTIVE_HIGH>;
output-high;
};
};
};
&usb_phy {
status = "okay";
};
&usb {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&uart {
status = "okay";
};

View File

@ -15,10 +15,10 @@
};
aliases {
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
};
leds {
@ -36,7 +36,7 @@
linux,default-trigger = "phy0tpt";
};
system: system {
led_system: system {
label = "raccoon:blue:sys";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
@ -76,10 +76,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;

View File

@ -12,10 +12,10 @@
aliases {
serial0 = &uart;
led-boot = &status;
led-failsafe = &status;
led-running = &running;
led-upgrade = &status;
led-boot = &led_power_amber;
led-failsafe = &led_power_amber;
led-running = &led_power_green;
led-upgrade = &led_power_amber;
};
keys {
@ -35,12 +35,12 @@
leds {
compatible = "gpio-leds";
status: power_amber {
led_power_amber: power_amber {
label = "pcs:amber:power";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
running: power_green {
led_power_green: power_green {
label = "pcs:green:power";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "on";
@ -83,10 +83,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;

View File

@ -12,10 +12,10 @@
aliases {
serial0 = &uart;
led-boot = &status;
led-failsafe = &status;
led-running = &status;
led-upgrade = &status;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
keys {
@ -42,7 +42,7 @@
leds {
compatible = "gpio-leds";
status: power {
led_power: power {
label = "pcs:amber:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>,
<&gpio 4 GPIO_ACTIVE_LOW>;
@ -75,10 +75,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;

View File

@ -7,3 +7,7 @@
compatible = "tplink,cpe210-v1", "qca,ar9344";
model = "TP-Link CPE210 v1";
};
&led_link4 {
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};

View File

@ -7,3 +7,7 @@
compatible = "tplink,cpe220-v2", "qca,ar9344";
model = "TP-Link CPE220 v2";
};
&led_link4 {
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};

View File

@ -7,3 +7,7 @@
compatible = "tplink,cpe510-v1", "qca,ar9344";
model = "TP-Link CPE510 v1";
};
&led_link4 {
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};

View File

@ -5,10 +5,10 @@
/ {
aliases {
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
};
leds {
@ -34,23 +34,15 @@
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
system: link4 {
led_system: link4 {
label = "tp-link:green:link4";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
};
};
&eth0 {
status = "okay";
mtd-mac-address = <&info 0x08>;
phy-mode = "mii";
phy-handle = <&swphy4>;
};
&eth1 {
status = "okay";
compatible = "syscon", "simple-mfd";
};

View File

@ -8,15 +8,15 @@
compatible = "tplink,cpe610-v1", "qca,ar9344";
aliases {
led-boot = &system;
led-failsafe = &system;
led-upgrade = &system;
led-boot = &led_lan;
led-failsafe = &led_lan;
led-upgrade = &led_lan;
};
leds {
compatible = "gpio-leds";
system: lan {
led_lan: lan {
label = "tp-link:green:lan";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
@ -29,16 +29,8 @@
};
};
&eth0 {
status = "okay";
mtd-mac-address = <&info 0x08>;
phy-mode = "mii";
phy-handle = <&swphy4>;
};
&eth1 {
status = "okay";
compatible = "syscon", "simple-mfd";
};

View File

@ -5,10 +5,10 @@
/ {
aliases {
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
led-boot = &led_link4;
led-failsafe = &led_link4;
led-running = &led_link4;
led-upgrade = &led_link4;
};
leds {
@ -39,9 +39,8 @@
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
system: link4 {
led_link4: link4 {
label = "tp-link:green:link4";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
};
};
@ -73,11 +72,3 @@
switch-only-mode = <1>;
};
};
&eth0 {
status = "okay";
phy-handle = <&swphy4>;
mtd-mac-address = <&info 0x8>;
};

View File

@ -31,10 +31,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
@ -103,3 +103,11 @@
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&info 0x08>;
};
&eth0 {
status = "okay";
phy-handle = <&swphy4>;
mtd-mac-address = <&info 0x8>;
};

View File

@ -7,10 +7,10 @@
/ {
aliases {
led-boot = &system;
led-failsafe = &system;
led-running = &system;
led-upgrade = &system;
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
};
leds: leds {
@ -22,7 +22,7 @@
linux,default-trigger = "phy0tpt";
};
system: system {
led_system: system {
label = "tp-link:green:system";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on";
@ -71,10 +71,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;

View File

@ -0,0 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "ar9344_tplink_cpexxx-v1.dtsi"
/ {
compatible = "tplink,wbs210-v2", "qca,ar9344";
model = "TP-Link WBS210 v2";
};
&led_link4 {
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};

View File

@ -15,10 +15,10 @@
};
aliases {
led-boot = &power;
led-failsafe = &power;
led-running = &power;
led-upgrade = &power;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
@ -39,7 +39,7 @@
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
power: power {
led_power: power {
label = "mynet-n750:blue:power";
gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
};
@ -87,10 +87,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
@ -179,11 +179,13 @@
&wmac {
status = "okay";
qca,no-eeprom;
};
&mdio0 {
status = "okay";
phy-mask = <0>;
switch0@1f {

View File

@ -15,16 +15,16 @@
};
aliases {
led-boot = &power;
led-failsafe = &power;
led-running = &power;
led-upgrade = &power;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
power: power {
led_power: power {
label = "mynet-wifi-rangeextender:blue:power";
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
/* LED has no off state. It's either on or it blinks */
@ -87,10 +87,10 @@
};
&spi {
num-cs = <1>;
status = "okay";
num-cs = <1>;
flash@0 {
compatible = /* "s25fl064k", */ "jedec,spi-nor";
reg = <0>;

View File

@ -12,9 +12,9 @@
aliases {
serial0 = &uart;
led-boot = &rssihigh;
led-failsafe = &rssihigh;
led-upgrade = &rssihigh;
led-boot = &led_rssihigh;
led-failsafe = &led_rssihigh;
led-upgrade = &led_rssihigh;
label-mac-device = &eth1;
};
@ -53,7 +53,7 @@
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
rssihigh: rssihigh {
led_rssihigh: rssihigh {
label = "cf-e313ac:green:rssihigh";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};

View File

@ -12,9 +12,9 @@
aliases {
serial0 = &uart;
led-boot = &system;
led-failsafe = &system;
led-upgrade = &system;
led-boot = &led_rssihigh;
led-failsafe = &led_rssihigh;
led-upgrade = &led_rssihigh;
};
leds {
@ -48,7 +48,7 @@
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
system: rssihigh {
led_rssihigh: rssihigh {
label = "cf-e314n-v2:green:signal4";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};

View File

@ -10,6 +10,13 @@
compatible = "engenius,ews511ap", "qca,qca9531";
model = "EnGenius EWS511AP";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
keys {
compatible = "gpio-keys";
@ -23,17 +30,10 @@
};
};
aliases {
led-boot = &power_led;
led-failsafe = &power_led;
led-running = &power_led;
led-upgrade = &power_led;
};
leds {
compatible = "gpio-leds";
power_led: power {
led_power: power {
label = "ews511ap:amber:power";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
default-state = "on";
@ -91,6 +91,7 @@
&spi {
status = "okay";
num-cs = <0>;
flash@0 {
@ -131,6 +132,7 @@
&eth0 {
status = "okay";
phy-handle = <&swphy4>;
};
@ -140,5 +142,6 @@
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
};

Some files were not shown because too many files have changed in this diff Show More