Skip to content

Commit

Permalink
Merge branch 'coolsnowwolf:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ali2liu authored Feb 3, 2024
2 parents 0bd4cf6 + 63c106f commit f9ec5e6
Show file tree
Hide file tree
Showing 29 changed files with 430 additions and 32 deletions.
4 changes: 2 additions & 2 deletions include/kernel-6.1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-6.1 = .75
LINUX_KERNEL_HASH-6.1.75 = 6cd19410330c13ec4c18fd28a83d3e40fc12a152815fb7c3e1b0764329093a56
LINUX_VERSION-6.1 = .76
LINUX_KERNEL_HASH-6.1.76 = 0580cc0e81ff9aee245f79531d8c1c5c7d711eee227cd4cf52d1ff335727b1fd
4 changes: 2 additions & 2 deletions include/kernel-6.6
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-6.6 = .14
LINUX_KERNEL_HASH-6.6.14 = fbe96b2db3f962cd2a96a849d554300e7a4555995160082d4f323c2a1dfa1584
LINUX_VERSION-6.6 = .15
LINUX_KERNEL_HASH-6.6.15 = ab290c7f8687f2f8af96e14abd0700ba8b282426151873690f51621d8d5f5faa
46 changes: 46 additions & 0 deletions package/kernel/linux/modules/sound.mk
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,40 @@ endef
$(eval $(call KernelPackage,sound-soc-imx))


define KernelPackage/sound-soc-mt7986
TITLE:=MediaTek MT7986 Audio support
KCONFIG:=CONFIG_SND_SOC_MT7986 CONFIG_SND_SOC_MT7986_WM8960
FILES:= \
$(LINUX_DIR)/sound/soc/mediatek/common/snd-soc-mtk-common.ko \
$(LINUX_DIR)/sound/soc/mediatek/mt7986/snd-soc-mt7986-afe.ko
AUTOLOAD:=$(call AutoLoad,56,snd-soc-mtk-common snd-soc-mt7986-afe)
DEPENDS:=@TARGET_mediatek_filogic +kmod-sound-soc-core
$(call AddDepends/sound)
endef

define KernelPackage/sound-soc-mt7986/description
Support for audio on systems using the MediaTek MT7986 SoC.
endef

$(eval $(call KernelPackage,sound-soc-mt7986))


define KernelPackage/sound-soc-mt7986-wm8960
TITLE:=MediaTek MT7986 Audio support
KCONFIG:=CONFIG_SND_SOC_MT7986_WM8960
FILES:=$(LINUX_DIR)/sound/soc/mediatek/mt7986/mt7986-wm8960.ko
AUTOLOAD:=$(call AutoLoad,57,mt7986-wm8960)
DEPENDS:=@TARGET_mediatek_filogic +kmod-sound-soc-wm8960 +kmod-sound-soc-mt7986
$(call AddDepends/sound)
endef

define KernelPackage/sound-soc-mt7986-wm8960/description
Support for use of the Wolfson Audio WM8960 codec with the MediaTek MT7986 SoC.
endef

$(eval $(call KernelPackage,sound-soc-mt7986-wm8960))


define KernelPackage/sound-soc-imx-sgtl5000
TITLE:=IMX SoC support for SGTL5000
KCONFIG:=CONFIG_SND_SOC_IMX_SGTL5000
Expand All @@ -254,6 +288,18 @@ endef
$(eval $(call KernelPackage,sound-soc-imx-sgtl5000))


define KernelPackage/sound-soc-wm8960
TITLE:=SoC WM8960 codec support
KCONFIG:=CONFIG_SND_SOC_WM8960
FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
DEPENDS:=+kmod-sound-soc-core +kmod-i2c-core +kmod-regmap-i2c
AUTOLOAD:=$(call AutoProbe,snd-soc-wm8960)
$(call AddDepends/sound)
endef

$(eval $(call KernelPackage,sound-soc-wm8960))


define KernelPackage/sound-soc-spdif
TITLE:=SoC S/PDIF codec support
KCONFIG:=CONFIG_SND_SOC_SPDIF
Expand Down
2 changes: 1 addition & 1 deletion package/lean/default-settings/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=default-settings
PKG_VERSION:=3
PKG_RELEASE:=9
PKG_RELEASE:=10
PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=LICENSE

Expand Down
2 changes: 1 addition & 1 deletion package/lean/default-settings/files/zzz-default-settings
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sed -i '/option disabled/d' /etc/config/wireless
sed -i '/set wireless.radio${devidx}.disabled/d' /lib/wifi/mac80211.sh

sed -i '/DISTRIB_REVISION/d' /etc/openwrt_release
echo "DISTRIB_REVISION='R24.1.13'" >> /etc/openwrt_release
echo "DISTRIB_REVISION='R24.2.2'" >> /etc/openwrt_release
sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release
echo "DISTRIB_DESCRIPTION='OpenWrt '" >> /etc/openwrt_release

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Signed-off-by: Greg Kroah-Hartman <[email protected]>
* of_find_node_by_phandle - Find a node given a phandle
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -2326,8 +2326,8 @@ of_register_spi_device(struct spi_contro
@@ -2330,8 +2330,8 @@ of_register_spi_device(struct spi_contro
}

/* Select device driver */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Subject: [PATCH] kernel: add block fit partition parser
/* everything is up and running, commence */
err = xa_insert(&disk->part_tbl, partno, bdev, GFP_KERNEL);
if (err)
@@ -585,6 +597,11 @@ static bool blk_add_partition(struct gen
@@ -590,6 +602,11 @@ static bool blk_add_partition(struct gen
(state->parts[p].flags & ADDPART_FLAG_RAID))
md_autodetect_dev(part->bd_dev);

Expand Down
8 changes: 4 additions & 4 deletions target/linux/generic/hack-6.1/901-debloat_sock_diag.patch
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,23 @@ Signed-off-by: Felix Fietkau <[email protected]>
obj-$(CONFIG_PROC_FS) += net-procfs.o
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -114,6 +114,7 @@
@@ -115,6 +115,7 @@
#include <linux/memcontrol.h>
#include <linux/prefetch.h>
#include <linux/compat.h>
+#include <linux/cookie.h>

#include <linux/uaccess.h>

@@ -145,6 +146,7 @@
@@ -146,6 +147,7 @@

static DEFINE_MUTEX(proto_list_mutex);
static LIST_HEAD(proto_list);
+DEFINE_COOKIE(sock_cookie);

static void sock_def_write_space_wfree(struct sock *sk);
static void sock_def_write_space(struct sock *sk);
@@ -584,6 +586,18 @@ discard_and_relse:
@@ -585,6 +587,18 @@ discard_and_relse:
}
EXPORT_SYMBOL(__sk_receive_skb);

Expand All @@ -79,7 +79,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
INDIRECT_CALLABLE_DECLARE(struct dst_entry *ip6_dst_check(struct dst_entry *,
u32));
INDIRECT_CALLABLE_DECLARE(struct dst_entry *ipv4_dst_check(struct dst_entry *,
@@ -2187,9 +2201,11 @@ static void __sk_free(struct sock *sk)
@@ -2188,9 +2202,11 @@ static void __sk_free(struct sock *sk)
if (likely(sk->sk_net_refcnt))
sock_inuse_add(sock_net(sk), -1);

Expand Down
2 changes: 1 addition & 1 deletion target/linux/generic/hack-6.1/902-debloat_proc.patch
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ Signed-off-by: Felix Fietkau <[email protected]>

--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -4113,6 +4113,8 @@ static __net_initdata struct pernet_oper
@@ -4114,6 +4114,8 @@ static __net_initdata struct pernet_oper

static int __init proto_init(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
/* everything is up and running, commence */
err = xa_insert(&disk->part_tbl, partno, bdev, GFP_KERNEL);
if (err)
@@ -579,6 +591,11 @@ static bool blk_add_partition(struct gen
@@ -584,6 +596,11 @@ static bool blk_add_partition(struct gen
(state->parts[p].flags & ADDPART_FLAG_RAID))
md_autodetect_dev(part->bd_dev);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Signed-off-by: Felix Fietkau <[email protected]>

--- a/include/net/sch_generic.h
+++ b/include/net/sch_generic.h
@@ -589,12 +589,13 @@ extern struct Qdisc_ops noop_qdisc_ops;
@@ -593,12 +593,13 @@ extern struct Qdisc_ops noop_qdisc_ops;
extern struct Qdisc_ops pfifo_fast_ops;
extern struct Qdisc_ops mq_qdisc_ops;
extern struct Qdisc_ops noqueue_qdisc_ops;
Expand Down
2 changes: 1 addition & 1 deletion target/linux/generic/hack-6.6/902-debloat_proc.patch
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ Signed-off-by: Felix Fietkau <[email protected]>

--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -4124,6 +4124,8 @@ static __net_initdata struct pernet_oper
@@ -4125,6 +4125,8 @@ static __net_initdata struct pernet_oper

static int __init proto_init(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#endif /* _LINUX_U64_STATS_SYNC_H */
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -1270,7 +1270,7 @@ thermal_zone_device_register_with_trips(
@@ -1275,7 +1275,7 @@ thermal_zone_device_register_with_trips(
return ERR_PTR(-EINVAL);
}

Expand All @@ -53,7 +53,7 @@
return ERR_PTR(-EINVAL);

if (!thermal_class)
@@ -1392,6 +1392,17 @@ free_tz:
@@ -1397,6 +1397,17 @@ free_tz:
}
EXPORT_SYMBOL_GPL(thermal_zone_device_register_with_trips);

Expand All @@ -73,7 +73,7 @@
void *devdata,
--- a/drivers/thermal/thermal_trip.c
+++ b/drivers/thermal/thermal_trip.c
@@ -116,11 +116,29 @@ void __thermal_zone_set_trips(struct the
@@ -113,11 +113,29 @@ void __thermal_zone_set_trips(struct the
int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
struct thermal_trip *trip)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Signed-off-by: Steve French <[email protected]>

--- a/fs/smb/server/oplock.c
+++ b/fs/smb/server/oplock.c
@@ -1197,6 +1197,12 @@ int smb_grant_oplock(struct ksmbd_work *
@@ -1203,6 +1203,12 @@ int smb_grant_oplock(struct ksmbd_work *
return 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Signed-off-by: Pablo Neira Ayuso <[email protected]>
}
--- a/net/netfilter/nft_flow_offload.c
+++ b/net/netfilter/nft_flow_offload.c
@@ -470,47 +470,14 @@ static struct nft_expr_type nft_flow_off
@@ -475,47 +475,14 @@ static struct nft_expr_type nft_flow_off
.owner = THIS_MODULE,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
#ifdef CONFIG_RPS
remsd = oldsd->rps_ipi_list;
oldsd->rps_ipi_list = NULL;
@@ -11486,6 +11560,7 @@ static int __init net_dev_init(void)
@@ -11495,6 +11569,7 @@ static int __init net_dev_init(void)
INIT_CSD(&sd->defer_csd, trigger_rx_softirq, sd);
spin_lock_init(&sd->defer_lock);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Signed-off-by: Robert Marko <[email protected]>

--- a/drivers/bus/mhi/host/main.c
+++ b/drivers/bus/mhi/host/main.c
@@ -900,6 +900,7 @@ int mhi_process_ctrl_ev_ring(struct mhi_
@@ -905,6 +905,7 @@ int mhi_process_ctrl_ev_ring(struct mhi_
switch (event) {
case MHI_EE_SBL:
st = DEV_ST_TRANSITION_SBL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Signed-off-by: Felix Fietkau <[email protected]>

--- a/net/netfilter/nf_tables_api.c
+++ b/net/netfilter/nf_tables_api.c
@@ -8202,7 +8202,7 @@ static int nft_register_flowtable_net_ho
@@ -8206,7 +8206,7 @@ static int nft_register_flowtable_net_ho
err = flowtable->data.type->setup(&flowtable->data,
hook->ops.dev,
FLOW_BLOCK_BIND);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Signed-off-by: Robert Marko <[email protected]>

--- a/drivers/bus/mhi/host/main.c
+++ b/drivers/bus/mhi/host/main.c
@@ -900,6 +900,7 @@ int mhi_process_ctrl_ev_ring(struct mhi_
@@ -905,6 +905,7 @@ int mhi_process_ctrl_ev_ring(struct mhi_
switch (event) {
case MHI_EE_SBL:
st = DEV_ST_TRANSITION_SBL;
Expand Down
42 changes: 42 additions & 0 deletions target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-emmc.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

/dts-v1/;
#include "mt7981b-cmcc-rax3000m.dts"

/ {
model = "CMCC RAX3000M (eMMC version)";
compatible = "cmcc,rax3000m-emmc", "mediatek,mt7981";

chosen {
bootargs = "root=PARTLABEL=rootfs rootwait rootfstype=squashfs,f2fs";
};
};

&mmc0 {
bus-width = <8>;
max-frequency = <26000000>;
no-sd;
no-sdio;
non-removable;
pinctrl-names = "default", "state_uhs";
pinctrl-0 = <&mmc0_pins_default>;
pinctrl-1 = <&mmc0_pins_uhs>;
vmmc-supply = <&reg_3p3v>;
status = "okay";
};

&pio {
mmc0_pins_default: mmc0-pins {
mux {
function = "flash";
groups = "emmc_45";
};
};

mmc0_pins_uhs: mmc0-uhs-pins {
mux {
function = "flash";
groups = "emmc_45";
};
};
};
92 changes: 92 additions & 0 deletions target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

/dts-v1/;
#include "mt7981b-cmcc-rax3000m.dts"

/ {
model = "CMCC RAX3000M (NAND version)";
compatible = "cmcc,rax3000m-nand", "mediatek,mt7981";

aliases {
label-mac-device = &gmac1;
};
};

&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_flash_pins>;
status = "okay";

spi_nand: flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "spi-nand";
reg = <0>;

spi-max-frequency = <52000000>;
spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>;
mediatek,nmbm;
mediatek,bmt-max-ratio = <1>;
mediatek,bmt-max-reserved-blocks = <64>;

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

partition@0 {
label = "bl2";
reg = <0x00000 0x0100000>;
read-only;
};

partition@100000 {
label = "u-boot-env";
reg = <0x100000 0x80000>;
};

factory: partition@180000 {
label = "factory";
reg = <0x180000 0x200000>;
read-only;
};

partition@380000 {
label = "fip";
reg = <0x380000 0x200000>;
read-only;
};

partition@580000 {
label = "ubi";
reg = <0x580000 0x7200000>;
};
};
};
};

&pio {
spi0_flash_pins: spi0-pins {
mux {
function = "spi";
groups = "spi0", "spi0_wp_hold";
};

conf-pu {
pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
drive-strength = <8>;
mediatek,pull-up-adv = <0>; /* bias-disable */
};

conf-pd {
pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
drive-strength = <8>;
mediatek,pull-up-adv = <0>; /* bias-disable */
};
};
};

&wifi {
mediatek,mtd-eeprom = <&factory 0x0>;
};
Loading

0 comments on commit f9ec5e6

Please sign in to comment.