Skip to content

Commit

Permalink
Merge Official Source
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Jan 14, 2025
2 parents 51272fc + dac8021 commit 73b7d39
Show file tree
Hide file tree
Showing 12 changed files with 346 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From: Felix Fietkau <[email protected]>
Date: Tue, 14 Jan 2025 11:42:25 +0100
Subject: [PATCH] backport-include: fix linux/acpi_amd_wbrf.h inclusion

Fix building for kernel >= 6.8 by adjusting incorrect guard usage,
otherwise an #include_next header is masked and compilation will fail
for net/mac80211/wbrf.c in the mac80211 kernel module.

Fixes: 52cdcaab ("backport-include: backport linux/acpi_amd_wbrf.h")
Reported-by: Tony Ambardar <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
---

--- a/backport-include/linux/acpi_amd_wbrf.h
+++ b/backport-include/linux/acpi_amd_wbrf.h
@@ -4,8 +4,8 @@
* Copyright (C) 2023 Advanced Micro Devices
*/

-#ifndef _ACPI_AMD_WBRF_H
-#define _ACPI_AMD_WBRF_H
+#ifndef __BACKPORT_ACPI_AMD_WBRF_H
+#define __BACKPORT_ACPI_AMD_WBRF_H

#if LINUX_VERSION_IS_GEQ(6,8,0)
#include_next <linux/acpi_amd_wbrf.h>
@@ -83,4 +83,4 @@ int amd_wbrf_unregister_notifier(struct
}

#endif /* >=6,8,0 */
-#endif /* _ACPI_AMD_WBRF_H */
+#endif /* __BACKPORT_ACPI_AMD_WBRF_H */
6 changes: 3 additions & 3 deletions package/kernel/mt76/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ PKG_LICENSE_FILES:=

PKG_SOURCE_URL:=https://github.com/openwrt/mt76
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2025-01-04
PKG_SOURCE_VERSION:=e354436db4402552bcb0cbe9abab2a46fb1ad31c
PKG_MIRROR_HASH:=7e3894e1f2641e172f87be1ae0cc6adda318d989350ebd53500a7df02f0afd8f
PKG_SOURCE_DATE:=2025-01-14
PKG_SOURCE_VERSION:=8e4f72b682e9070108536507c5e2720b18c3816d
PKG_MIRROR_HASH:=fa8c5a2ece9e7287605910d9f906b601711c7863613addaadd666f9e3858a9e7

PKG_MAINTAINER:=Felix Fietkau <[email protected]>
PKG_USE_NINJA:=0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ function generate(config) {
if (!phy_features.radar_background || config.band != '5g')
delete config.enable_background_radar;
else
set_default(config, 'enable_background_radar', phy_features.radar_background);
set_default(config, 'enable_background_radar', false);

append_vars(config, [ 'acs_chan_bias', 'acs_exclude_dfs', 'enable_background_radar' ]);

Expand Down
6 changes: 3 additions & 3 deletions package/network/services/lldpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=lldpd
PKG_VERSION:=1.0.17
PKG_RELEASE:=5
PKG_VERSION:=1.0.18
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/lldpd/lldpd/releases/download/$(PKG_VERSION)/
PKG_HASH:=89ae691a4917ac9e0ec3b8b2c1e634cc402d43b804f98850c73bd1c7df380882
PKG_HASH:=38cd319aa02ab61d9a2ad130e22f906795ccca9ac73a0a0d9dac19ca99a8a870

PKG_MAINTAINER:=Stijn Tintel <[email protected]>
PKG_LICENSE:=ISC
Expand Down
2 changes: 1 addition & 1 deletion rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ TARGET_SUFFIX=$(call qstrip,$(CONFIG_TARGET_SUFFIX))
BUILD_SUFFIX:=$(call qstrip,$(CONFIG_BUILD_SUFFIX))
SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR})
BUILD_SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR})
NPROC:=$(shell sysctl -n hw.ncpu 2>/dev/null || nproc)
NPROC=$(shell sysctl -n hw.ncpu 2>/dev/null || nproc)
export SHELL:=/usr/bin/env bash

IS_PACKAGE_BUILD := $(if $(filter package/%,$(BUILD_SUBDIR)),1)
Expand Down
4 changes: 4 additions & 0 deletions target/linux/d1/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
board_config_update

case "$(board_name)" in
sipeed,lichee-rv-dock |\
widora,mangopi-mq-pro)
ucidef_set_interface_lan "wlan0"
;;
*)
ucidef_set_interface_lan 'eth0'
;;
Expand Down
4 changes: 2 additions & 2 deletions target/linux/d1/image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ define Device/sipeed_lichee-rv-dock
DEVICE_MODEL := LicheePi RV (dock)
DEVICE_DTS := allwinner/sun20i-d1-lichee-rv-dock
SUPPORTED_DEVICES += lichee_rv_dock
DEVICE_PACKAGES += kmod-rtl8723bs
DEVICE_PACKAGES += kmod-rtw88-8723ds wpad-basic-mbedtls
UBOOT := lichee_rv_dock
endef
TARGET_DEVICES += sipeed_lichee-rv-dock
Expand All @@ -76,7 +76,7 @@ define Device/widora_mangopi-mq-pro
DEVICE_MODEL := MQ Pro
DEVICE_DTS := allwinner/sun20i-d1-mangopi-mq-pro
SUPPORTED_DEVICES += mangopi_mq_pro
DEVICE_PACKAGES += kmod-rtl8723bs
DEVICE_PACKAGES += kmod-rtw88-8723ds wpad-basic-mbedtls
UBOOT := mangopi_mq_pro
endef
TARGET_DEVICES += widora_mangopi-mq-pro
Expand Down
2 changes: 1 addition & 1 deletion target/linux/mvebu/image/cortexa9.mk
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ define Device/wd_cloud-mirror-gen2
$(Device/NAND-128K)
DEVICE_VENDOR := Western Digital
DEVICE_MODEL := MyCloud Mirror Gen 2 (BWVZ/Grand Teton)
DEVICE_PACKAGES += -uboot-envtools coreutils-stty mkf2fs e2fsprogs \
DEVICE_PACKAGES += -uboot-envtools mkf2fs e2fsprogs \
partx-utils kmod-hwmon-drivetemp -ppp -kmod-nft-offload -dnsmasq \
-odhcpd-ipv6only
DEVICE_DTS := armada-385-wd_cloud-mirror-gen2
Expand Down
280 changes: 280 additions & 0 deletions target/linux/ramips/dts/mt7621_keenetic_kn-1910.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,280 @@
// 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 = "keenetic,kn-1910", "mediatek,mt7621-soc";
model = "Keenetic KN-1910";

aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &gmac0;
};

reg_usb_vbus: regulator-usb {
compatible = "regulator-fixed";
regulator-name = "usb_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
enable-active-high;
};

reg_3p3v: regulator-3p3v {
compatible = "regulator-fixed";
regulator-name = "fixed-3.3V";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
enable-active-high;
};

keys {
compatible = "gpio-keys";

restart {
label = "restart";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};

wps {
label = "wps";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};

fn1 {
label = "fn1";
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>;
};

fn2 {
label = "fn2";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
linux,code = <BTN_2>;
};
};

leds {
compatible = "gpio-leds";

led_power: power {
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
};

internet {
function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
};

fn {
function = LED_FUNCTION_WLAN_2GHZ;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};

wifi {
function = LED_FUNCTION_WLAN_5GHZ;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy1tpt";
};
};

virtual_flash {
compatible = "mtd-concat";
devices = <&firmware1 &firmware2 &storage_a &storage_b>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

partition@0 {
label = "kernel";
reg = <0x0 0x400000>;
};

partition@400000 {
label = "ubi";
reg = <0x400000 0x7540000>;
};
};
};
};

&xhci {
vbus-supply = <&reg_usb_vbus>;
vusb33-supply = <&reg_3p3v>;
};

&nand {
status = "okay";

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

partition@0 {
label = "U-Boot";
reg = <0x0 0x80000>;
read-only;
};

partition@80000 {
label = "U-Config";
reg = <0x80000 0x80000>;
read-only;
};

partition@100000 {
label = "RF-EEPROM";
reg = <0x100000 0x80000>;
read-only;

nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x4da8>;
};

macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};

macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};
};

firmware1: partition@180000 {
label = "Firmware_1";
reg = <0x180000 0x1bc0000>;
};

partition@1d40000 {
label = "Config_1";
reg = <0x1d40000 0x80000>;
read-only;
};

partition@1dc0000 {
label = "Storage_Legacy";
reg = <0x1dc0000 0x200000>;
read-only;
};

partition@1fc0000 {
label = "Dump";
reg = <0x1fc0000 0x40000>;
read-only;
};

storage_a: partition@2000000 {
label = "Storage_A";
reg = <0x2000000 0x1fc0000>;
};

partition@3fc0000 {
label = "U-State";
reg = <0x3fc0000 0x80000>;
read-only;
};

partition@4040000 {
label = "U-Config_res";
reg = <0x4040000 0x80000>;
read-only;
};

partition@40c0000 {
label = "RF-EEPROM_res";
reg = <0x40c0000 0x80000>;
read-only;
};

firmware2: partition@4140000 {
label = "Firmware_2";
reg = <0x4140000 0x1bc0000>;
};

partition@5d00000 {
label = "Config_2";
reg = <0x5d00000 0x80000>;
read-only;
};

storage_b: partition@5d80000 {
label = "Storage_B";
reg = <0x5d80000 0x2200000>;
};
};
};

&pcie {
status = "okay";
};

&pcie0 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
nvmem-cells = <&eeprom_factory_0>;
nvmem-cell-names = "eeprom";
};
};

&ethphy0 {
/delete-property/ interrupts;
};

&gmac0 {
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
};

&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;

nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
};

&switch0 {
ports {
port@1 {
status = "okay";
};

port@2 {
status = "okay";
};

port@3 {
status = "okay";
};

port@4 {
status = "okay";
};
};
};
Loading

0 comments on commit 73b7d39

Please sign in to comment.