mirror of
https://github.com/LiBwrt-op/openwrt-6.x.git
synced 2026-01-08 12:14:47 +00:00
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
commit
264ea4a5f6
@ -7,77 +7,74 @@ touch /etc/config/ubootenv
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
ubootenv_add_mtd() {
|
||||
local idx="$(find_mtd_index "${1}")"
|
||||
[ -n "$idx" ] && \
|
||||
ubootenv_add_uci_config "/dev/mtd$idx" "${2}" "${3}" "${4}"
|
||||
}
|
||||
|
||||
ubootenv_add_sys_mtd() {
|
||||
local idx="$(find_mtd_index "${1}")"
|
||||
[ -n "$idx" ] && \
|
||||
ubootenv_add_uci_sys_config "/dev/mtd$idx" "${2}" "${3}" "${4}"
|
||||
}
|
||||
|
||||
ubootenv_add_mmc() {
|
||||
local mmcpart="$(find_mmc_part "${1}")"
|
||||
[ -n "$mmcpart" ] && \
|
||||
ubootenv_add_uci_config "$mmcpart" "${2}" "${3}" "${4}" "${5}"
|
||||
}
|
||||
|
||||
case "$board" in
|
||||
dynalink,dl-wrx36|\
|
||||
netgear,rax120v2|\
|
||||
netgear,sxr80|\
|
||||
netgear,sxs80|\
|
||||
netgear,wax218|\
|
||||
netgear,wax620|\
|
||||
netgear,wax630)
|
||||
idx="$(find_mtd_index 0:appsblenv)"
|
||||
[ -n "$idx" ] && \
|
||||
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
|
||||
netgear,wax630|\
|
||||
tplink,eap620hd-v1|\
|
||||
tplink,eap660hd-v1)
|
||||
ubootenv_add_mtd "0:appsblenv" "0x0" "0x40000" "0x20000"
|
||||
;;
|
||||
compex,wpq873|\
|
||||
edgecore,eap102|\
|
||||
zyxel,nbg7815)
|
||||
idx="$(find_mtd_index 0:appsblenv)"
|
||||
[ -n "$idx" ] && \
|
||||
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000" "1"
|
||||
ubootenv_add_mtd "0:appsblenv" "0x0" "0x10000" "0x10000"
|
||||
;;
|
||||
edimax,cax1800|\
|
||||
zte,mf269)
|
||||
idx="$(find_mtd_index 0:appsblenv)"
|
||||
[ -n "$idx" ] && \
|
||||
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
|
||||
ubootenv_add_mtd "0:appsblenv" "0x0" "0x10000" "0x20000"
|
||||
;;
|
||||
linksys,homewrk)
|
||||
ubootenv_add_mtd "0:appsblenv" "0x0" "0x40000" "0x40000"
|
||||
;;
|
||||
linksys,mx4200v1|\
|
||||
linksys,mx4200v2|\
|
||||
linksys,mx5300|\
|
||||
linksys,mx8500)
|
||||
idx="$(find_mtd_index u_env)"
|
||||
[ -n "$idx" ] && \
|
||||
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
|
||||
ubootenv_add_mtd "u_env" "0x0" "0x40000" "0x20000"
|
||||
;;
|
||||
linksys,mx4300)
|
||||
idx="$(find_mtd_index u_env)"
|
||||
[ -n "$idx" ] && \
|
||||
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x40000" "1"
|
||||
;;
|
||||
netgear,sxr80|\
|
||||
netgear,sxs80|\
|
||||
tplink,eap620hd-v1|\
|
||||
tplink,eap660hd-v1)
|
||||
idx="$(find_mtd_index 0:appsblenv)"
|
||||
[ -n "$idx" ] && \
|
||||
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000"
|
||||
ubootenv_add_mtd "u_env" "0x0" "0x40000" "0x40000"
|
||||
;;
|
||||
redmi,ax6|\
|
||||
redmi,ax6-stock|\
|
||||
xiaomi,ax3600|\
|
||||
xiaomi,ax3600-stock|\
|
||||
xiaomi,ax9000)
|
||||
idx="$(find_mtd_index 0:appsblenv)"
|
||||
[ -n "$idx" ] && \
|
||||
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
|
||||
idx2="$(find_mtd_index bdata)"
|
||||
[ -n "$idx2" ] && \
|
||||
ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x10000" "0x20000"
|
||||
ubootenv_add_mtd "0:appsblenv" "0x0" "0x10000" "0x20000"
|
||||
ubootenv_add_sys_mtd "bdata" "0x0" "0x10000" "0x20000"
|
||||
;;
|
||||
prpl,haze)
|
||||
mmcpart="$(find_mmc_part 0:APPSBLENV)"
|
||||
[ -n "$mmcpart" ] && \
|
||||
ubootenv_add_uci_config "$mmcpart" "0x0" "0x40000" "0x400" "0x100"
|
||||
ubootenv_add_mmc "0:APPSBLENV" "0x0" "0x40000" "0x400" "0x100"
|
||||
;;
|
||||
asus,rt-ax89x|\
|
||||
qnap,301w)
|
||||
idx="$(find_mtd_index 0:appsblenv)"
|
||||
[ -n "$idx" ] && \
|
||||
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x20000" "0x20000" "1"
|
||||
ubootenv_add_mtd "0:appsblenv" "0x0" "0x20000" "0x20000"
|
||||
;;
|
||||
spectrum,sax1v1k)
|
||||
mmcpart="$(find_mmc_part 0:APPSBLENV)"
|
||||
[ -n "$mmcpart" ] && \
|
||||
ubootenv_add_uci_config "$mmcpart" "0x0" "0x40000" "0x40000" "1"
|
||||
ubootenv_add_mmc "0:APPSBLENV" "0x0" "0x40000" "0x40000" "1"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@ -6,9 +6,9 @@ PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/firmware/qca-wireless.git
|
||||
PKG_SOURCE_DATE:=2024-12-18
|
||||
PKG_SOURCE_VERSION:=4b849214b137b14a903112af3c2016ad9acf48c2
|
||||
PKG_MIRROR_HASH:=28162682fe7612460e42398ecc669e245fc0ece873361e3910c2dd8a56111f1c
|
||||
PKG_SOURCE_DATE:=2025-01-15
|
||||
PKG_SOURCE_VERSION:=6e1801a4992fe72a98a2219f2dcd038194785971
|
||||
PKG_MIRROR_HASH:=569cf6894e21712ed6a5553b4fad0bbdeed14e0cc4b9292f5f86343f7897fc7e
|
||||
PKG_FLAGS:=nonshared
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
@ -37,6 +37,7 @@ ALLWIFIBOARDS:= \
|
||||
dynalink_dl-wrx36 \
|
||||
edgecore_eap102 \
|
||||
edimax_cax1800 \
|
||||
linksys_homewrk \
|
||||
linksys_mr7350 \
|
||||
linksys_mx4200 \
|
||||
linksys_mx5300 \
|
||||
@ -168,6 +169,7 @@ $(eval $(call generate-ipq-wifi-package,compex_wpq873,Compex WPQ-873))
|
||||
$(eval $(call generate-ipq-wifi-package,dynalink_dl-wrx36,Dynalink DL-WRX36))
|
||||
$(eval $(call generate-ipq-wifi-package,edgecore_eap102,Edgecore EAP102))
|
||||
$(eval $(call generate-ipq-wifi-package,edimax_cax1800,Edimax CAX1800))
|
||||
$(eval $(call generate-ipq-wifi-package,linksys_homewrk,Linksys HomeWRK))
|
||||
$(eval $(call generate-ipq-wifi-package,linksys_mr7350,Linksys MR7350))
|
||||
$(eval $(call generate-ipq-wifi-package,linksys_mx4200,Linksys MX4200))
|
||||
$(eval $(call generate-ipq-wifi-package,linksys_mx5300,Linksys MX5300))
|
||||
|
||||
@ -87,7 +87,7 @@ function set_netdev_cpu(dev, cpu) {
|
||||
|
||||
function task_device_match(name, device)
|
||||
{
|
||||
let napi_match = match(name, /napi\/([^-+])-\d+/);
|
||||
let napi_match = match(name, /napi\/([^-]*)-\d+/);
|
||||
if (!napi_match)
|
||||
napi_match = match(name, /mt76-tx (phy\d+)/);
|
||||
if (napi_match &&
|
||||
|
||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=lldpd
|
||||
PKG_VERSION:=1.0.18
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/lldpd/lldpd/releases/download/$(PKG_VERSION)/
|
||||
@ -90,6 +90,8 @@ endif
|
||||
ifneq ($(CONFIG_LLDPD_WITH_LLDPMED),y)
|
||||
sed -i -e 's/CONFIG_LLDPD_WITH_LLDPMED=y/CONFIG_LLDPD_WITH_LLDPMED=n/g' $(1)/etc/init.d/lldpd
|
||||
sed -i -e '/agentxsocket/d' $(1)/etc/config/lldpd
|
||||
sed -i -e '/lldp_class/d' $(1)/etc/config/lldpd
|
||||
sed -i -e '/lldp_location/d' $(1)/etc/config/lldpd
|
||||
endif
|
||||
endef
|
||||
|
||||
|
||||
@ -39,7 +39,6 @@ get_config_restart_hash() {
|
||||
|
||||
config_load 'lldpd'
|
||||
|
||||
config_get v 'config' 'lldp_class'; append _string "$v" ","
|
||||
if [ "$CONFIG_LLDPD_WITH_SNMP" = "y" ]; then
|
||||
config_get v 'config' 'agentxsocket'; append _string "$v" ","
|
||||
fi
|
||||
@ -49,6 +48,7 @@ get_config_restart_hash() {
|
||||
config_get_bool v 'config' 'lldp_no_version'; append _string "$v" ","
|
||||
if [ "$CONFIG_LLDPD_WITH_LLDPMED" = "y" ]; then
|
||||
config_get_bool v 'config' 'lldpmed_no_inventory'; append _string "$v" ","
|
||||
config_get v 'config' 'lldp_class'; append _string "$v" ","
|
||||
fi
|
||||
config_get_bool v 'config' 'enable_lldp' 1; append _string "$v" ","
|
||||
config_get_bool v 'config' 'force_lldp'; append _string "$v" ","
|
||||
@ -243,10 +243,10 @@ start_service() {
|
||||
config_get_bool enable_edp 'config' 'enable_edp' 0
|
||||
config_get_bool force_edp 'config' 'force_edp' 0
|
||||
fi
|
||||
config_get lldp_class 'config' 'lldp_class'
|
||||
config_get_bool lldp_no_version 'config' 'lldp_no_version' 0
|
||||
if [ "$CONFIG_LLDPD_WITH_LLDPMED" = "y" ]; then
|
||||
config_get_bool lldpmed_no_inventory 'config' 'lldpmed_no_inventory' 0
|
||||
config_get lldp_class 'config' 'lldp_class'
|
||||
fi
|
||||
config_get_bool readonly_mode 'config' 'readonly_mode' 0
|
||||
if [ "$CONFIG_LLDPD_WITH_SNMP" = "y" ]; then
|
||||
|
||||
@ -0,0 +1,68 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "ipq8174-mx4x00.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Linksys HomeWRK";
|
||||
compatible = "linksys,homewrk", "qcom,ipq8074";
|
||||
|
||||
aliases {
|
||||
ethernet3 = &dp4;
|
||||
ethernet4 = &dp5;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs-append = " root=/dev/ubiblock0_1";
|
||||
};
|
||||
};
|
||||
|
||||
&qpic_nand {
|
||||
status = "okay";
|
||||
|
||||
nand@0 {
|
||||
reg = <0>;
|
||||
/*
|
||||
* Some devices use Micron NAND with with 8 bit ECC
|
||||
* other AMD/Spansion NAND with 4 bit ECC
|
||||
*nand-ecc-strength = <4>;
|
||||
*nand-ecc-step-size = <512>;
|
||||
*/
|
||||
nand-bus-width = <8>;
|
||||
|
||||
partitions {
|
||||
compatible = "qcom,smem-part";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&dp2 {
|
||||
status = "okay";
|
||||
phy-handle = <&qca8075_1>;
|
||||
label = "wan";
|
||||
};
|
||||
|
||||
&dp3 {
|
||||
status = "okay";
|
||||
phy-handle = <&qca8075_2>;
|
||||
label = "lan3";
|
||||
};
|
||||
|
||||
&dp4 {
|
||||
status = "okay";
|
||||
phy-handle = <&qca8075_3>;
|
||||
label = "lan2";
|
||||
};
|
||||
|
||||
&dp5 {
|
||||
status = "okay";
|
||||
phy-handle = <&qca8075_4>;
|
||||
label = "lan1";
|
||||
};
|
||||
|
||||
&wifi {
|
||||
status = "okay";
|
||||
|
||||
qcom,ath11k-calibration-variant = "Linksys-HomeWRK";
|
||||
};
|
||||
@ -156,6 +156,21 @@ define Device/edimax_cax1800
|
||||
endef
|
||||
TARGET_DEVICES += edimax_cax1800
|
||||
|
||||
define Device/linksys_homewrk
|
||||
$(call Device/FitImage)
|
||||
$(call Device/UbiFit)
|
||||
DEVICE_VENDOR := Linksys
|
||||
DEVICE_MODEL := HomeWRK
|
||||
DEVICE_DTS_CONFIG := config@oak03
|
||||
BLOCKSIZE := 256k
|
||||
PAGESIZE := 4096
|
||||
IMAGE_SIZE := 475m
|
||||
NAND_SIZE := 1024m
|
||||
SOC := ipq8174
|
||||
DEVICE_PACKAGES += kmod-leds-pca963x ipq-wifi-linksys_homewrk
|
||||
endef
|
||||
TARGET_DEVICES += linksys_homewrk
|
||||
|
||||
define Device/linksys_mx
|
||||
$(call Device/FitImage)
|
||||
DEVICE_VENDOR := Linksys
|
||||
|
||||
@ -27,6 +27,7 @@ ipq807x_setup_interfaces()
|
||||
ucidef_set_interfaces_lan_wan "lan plc" "wan"
|
||||
;;
|
||||
compex,wpq873|\
|
||||
linksys,homewrk|\
|
||||
linksys,mx4200v1|\
|
||||
linksys,mx4200v2|\
|
||||
linksys,mx4300|\
|
||||
|
||||
@ -33,6 +33,7 @@ case "$FIRMWARE" in
|
||||
zte,mf269-stock)
|
||||
caldata_extract "0:art" 0x1000 0x20000
|
||||
;;
|
||||
linksys,homewrk|\
|
||||
linksys,mx4200v1|\
|
||||
linksys,mx8500)
|
||||
caldata_extract "0:art" 0x1000 0x20000
|
||||
|
||||
@ -166,6 +166,11 @@ platform_do_upgrade() {
|
||||
fw_setenv upgrade_available 1
|
||||
nand_do_upgrade "$1"
|
||||
;;
|
||||
linksys,homewrk)
|
||||
CI_UBIPART="rootfs"
|
||||
remove_oem_ubi_volume ubi_rootfs
|
||||
nand_do_upgrade "$1"
|
||||
;;
|
||||
linksys,mx4200v1|\
|
||||
linksys,mx4200v2|\
|
||||
linksys,mx4300|\
|
||||
|
||||
215
target/linux/ramips/dts/mt7621_confiabits_mt7621-v1.dts
Normal file
215
target/linux/ramips/dts/mt7621_confiabits_mt7621-v1.dts
Normal file
@ -0,0 +1,215 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "mt7621.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/ {
|
||||
compatible = "confiabits,mt7621-v1", "mediatek,mt7621-soc";
|
||||
model = "Confiabits MT7621 v1";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_power_green;
|
||||
led-failsafe = &led_power_green;
|
||||
led-running = &led_power_green;
|
||||
led-upgrade = &led_power_green;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,57600";
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
button-wps {
|
||||
label = "wps";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
};
|
||||
|
||||
button-reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power_green: led-power-green {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = LED_FUNCTION_POWER;
|
||||
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led-wan-red {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
function = LED_FUNCTION_WAN;
|
||||
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led-wlan5 {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = LED_FUNCTION_WLAN_5GHZ;
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy1tpt";
|
||||
};
|
||||
|
||||
led-wps {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = LED_FUNCTION_WPS;
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led-wlan24 {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = LED_FUNCTION_WLAN_2GHZ;
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
led-wan-green {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = LED_FUNCTION_WAN;
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <40000000>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x0 0x30000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@30000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x30000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "radio";
|
||||
reg = <0x40000 0x10000>;
|
||||
read-only;
|
||||
|
||||
nvmem-layout {
|
||||
compatible = "fixed-layout";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
eeprom_radio_0: eeprom@0 {
|
||||
reg = <0x0 0x400>;
|
||||
};
|
||||
|
||||
eeprom_radio_8000: eeprom@8000 {
|
||||
reg = <0x8000 0x4da8>;
|
||||
};
|
||||
|
||||
macaddr_radio_4: macaddr@4 {
|
||||
reg = <0x4 0x6>;
|
||||
};
|
||||
|
||||
macaddr_radio_8004: macaddr@8004 {
|
||||
reg = <0x8004 0x6>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
label = "firmware";
|
||||
compatible = "denx,uimage";
|
||||
reg = <0x50000 0xfb0000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_radio_4>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
status = "okay";
|
||||
label = "wan";
|
||||
phy-handle = <ðphy4>;
|
||||
|
||||
nvmem-cells = <&macaddr_radio_4>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
ðphy4 {
|
||||
/delete-property/ interrupts;
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
ieee80211-freq-limit = <2400000 2500000>;
|
||||
|
||||
nvmem-cells = <&eeprom_radio_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
};
|
||||
};
|
||||
|
||||
&pcie1 {
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
|
||||
nvmem-cells = <&eeprom_radio_8000>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
};
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "i2c", "jtag", "wdt";
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&switch0 {
|
||||
ports {
|
||||
port@0 {
|
||||
status = "okay";
|
||||
label = "lan1";
|
||||
};
|
||||
|
||||
port@1 {
|
||||
status = "okay";
|
||||
label = "lan2";
|
||||
};
|
||||
|
||||
port@2 {
|
||||
status = "okay";
|
||||
label = "lan3";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -688,6 +688,18 @@ define Device/comfast_cf-ew72-v2
|
||||
endef
|
||||
TARGET_DEVICES += comfast_cf-ew72-v2
|
||||
|
||||
define Device/confiabits_mt7621-v1
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Confiabits
|
||||
DEVICE_MODEL := MT7621
|
||||
DEVICE_VARIANT := v1
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7663-firmware-ap \
|
||||
-uboot-envtools
|
||||
endef
|
||||
TARGET_DEVICES += confiabits_mt7621-v1
|
||||
|
||||
define Device/cudy_m1800
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_VENDOR := Cudy
|
||||
|
||||
@ -58,6 +58,10 @@ wifire,s1500-nbn)
|
||||
belkin,rt1800)
|
||||
ucidef_set_led_netdev "wan" "wan" "white:wan" "wan"
|
||||
;;
|
||||
confiabits,mt7621-v1|\
|
||||
netis,n6)
|
||||
ucidef_set_led_netdev "wan" "wan" "green:wan" "wan" "link tx rx"
|
||||
;;
|
||||
cudy,wr2100)
|
||||
ucidef_set_led_netdev "lan1" "lan1" "green:lan1" "lan1"
|
||||
ucidef_set_led_netdev "lan2" "lan2" "green:lan2" "lan2"
|
||||
@ -189,9 +193,6 @@ netgear,r7450)
|
||||
netgear,wax202)
|
||||
ucidef_set_led_netdev "internet" "Internet" "green:net" "wan"
|
||||
;;
|
||||
netis,n6)
|
||||
ucidef_set_led_netdev "wan" "wan" "green:wan" "wan" "link tx rx"
|
||||
;;
|
||||
oraybox,x3a)
|
||||
ucidef_set_led_netdev "wan" "wan link" "red:status" "wan"
|
||||
ucidef_set_led_netdev "lan" "lan link" "green:status" "br-lan"
|
||||
|
||||
@ -13,6 +13,7 @@ ramips_setup_interfaces()
|
||||
asus,rt-ax53u|\
|
||||
buffalo,wsr-2533dhpl2|\
|
||||
buffalo,wsr-2533dhpls|\
|
||||
confiabits,mt7621-v1|\
|
||||
gehua,ghl-r-001|\
|
||||
h3c,tx1800-plus|\
|
||||
h3c,tx1801-plus|\
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
|
||||
. /lib/functions/uci-defaults.sh
|
||||
|
||||
board_config_update
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
hpe,1920-8g-poe-180w|\
|
||||
hpe,1920-24g-poe-180w|\
|
||||
hpe,1920-24g-poe-370w)
|
||||
ucidef_add_gpio_switch "fan_ctrl" "Fan control" "456" "0"
|
||||
;;
|
||||
esac
|
||||
|
||||
board_config_flush
|
||||
|
||||
exit 0
|
||||
@ -8,6 +8,11 @@
|
||||
board_config_update
|
||||
|
||||
case "$(board_name)" in
|
||||
hpe,1920-8g-poe-180w | \
|
||||
hpe,1920-24g-poe-180w | \
|
||||
hpe,1920-24g-poe-370w)
|
||||
ucidef_set_compat_version "1.1"
|
||||
;;
|
||||
zyxel,gs1900-8 | \
|
||||
zyxel,gs1900-8hp-v1 | \
|
||||
zyxel,gs1900-8hp-v2 | \
|
||||
|
||||
@ -5,6 +5,17 @@
|
||||
/ {
|
||||
compatible = "hpe,1920-8g-poe-180w", "realtek,rtl838x-soc";
|
||||
model = "HPE 1920-8G-PoE+ 180W (JG922A)";
|
||||
|
||||
gpio_fan_array {
|
||||
compatible = "gpio-fan";
|
||||
|
||||
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
|
||||
gpio-fan,speed-map = <5000 0>,
|
||||
<8200 1>;
|
||||
|
||||
alarm-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
&uart1 {
|
||||
|
||||
@ -5,6 +5,17 @@
|
||||
/ {
|
||||
compatible = "hpe,1920-24g-poe-180w", "realtek,rtl838x-soc";
|
||||
model = "HPE 1920-24G-PoE+ 180W (JG925A)";
|
||||
|
||||
gpio_fan_array {
|
||||
compatible = "gpio-fan";
|
||||
|
||||
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
|
||||
gpio-fan,speed-map = <5000 0>,
|
||||
<8200 1>;
|
||||
|
||||
alarm-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
&uart1 {
|
||||
|
||||
@ -5,6 +5,17 @@
|
||||
/ {
|
||||
compatible = "hpe,1920-24g-poe-370w", "realtek,rtl838x-soc";
|
||||
model = "HPE 1920-24G-PoE+ 370W (JG926A)";
|
||||
|
||||
gpio_fan_array {
|
||||
compatible = "gpio-fan";
|
||||
|
||||
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
|
||||
gpio-fan,speed-map = <5000 0>,
|
||||
<8200 1>;
|
||||
|
||||
alarm-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
&uart1 {
|
||||
|
||||
@ -56,6 +56,14 @@ define Device/hpe_1920
|
||||
append-metadata
|
||||
endef
|
||||
|
||||
define Device/hwmon-fan-migration
|
||||
DEVICE_COMPAT_VERSION := 1.1
|
||||
DEVICE_COMPAT_MESSAGE := Fan control switched to hwmon. Your fans will retain \
|
||||
bootloader speed unless another control scheme is in place. \
|
||||
Config cannot be kept due to conflict in gpio_switch config 'fan_ctrl' under \
|
||||
/etc/config/system.
|
||||
endef
|
||||
|
||||
define Device/zyxel_gs1900
|
||||
DEVICE_COMPAT_VERSION := 2.0
|
||||
DEVICE_COMPAT_MESSAGE := Dual firmware paritition merged due to size constraints. \
|
||||
|
||||
@ -120,9 +120,10 @@ TARGET_DEVICES += hpe_1920-8g-poe-65w
|
||||
|
||||
define Device/hpe_1920-8g-poe-180w
|
||||
$(Device/hpe_1920)
|
||||
$(Device/hwmon-fan-migration)
|
||||
SOC := rtl8380
|
||||
DEVICE_MODEL := 1920-8G-PoE+ 180W (JG922A)
|
||||
DEVICE_PACKAGES += realtek-poe
|
||||
DEVICE_PACKAGES += realtek-poe kmod-hwmon-gpiofan
|
||||
H3C_DEVICE_ID := 0x00010025
|
||||
SUPPORTED_DEVICES += hpe_1920-8g-poe
|
||||
endef
|
||||
@ -146,18 +147,20 @@ TARGET_DEVICES += hpe_1920-24g
|
||||
|
||||
define Device/hpe_1920-24g-poe-180w
|
||||
$(Device/hpe_1920)
|
||||
$(Device/hwmon-fan-migration)
|
||||
SOC := rtl8382
|
||||
DEVICE_MODEL := 1920-24G-PoE+ 180W (JG925A)
|
||||
DEVICE_PACKAGES += realtek-poe
|
||||
DEVICE_PACKAGES += realtek-poe kmod-hwmon-gpiofan
|
||||
H3C_DEVICE_ID := 0x00010028
|
||||
endef
|
||||
TARGET_DEVICES += hpe_1920-24g-poe-180w
|
||||
|
||||
define Device/hpe_1920-24g-poe-370w
|
||||
$(Device/hpe_1920)
|
||||
$(Device/hwmon-fan-migration)
|
||||
SOC := rtl8382
|
||||
DEVICE_MODEL := 1920-24G-PoE+ 370W (JG926A)
|
||||
DEVICE_PACKAGES += realtek-poe
|
||||
DEVICE_PACKAGES += realtek-poe kmod-hwmon-gpiofan
|
||||
H3C_DEVICE_ID := 0x00010029
|
||||
endef
|
||||
TARGET_DEVICES += hpe_1920-24g-poe-370w
|
||||
|
||||
Loading…
Reference in New Issue
Block a user