openwrt/openwrt.git
8 months agosunxi: backport h616 thermal sensor support
Chukun Pan [Sat, 9 Mar 2024 15:16:25 +0000 (23:16 +0800)]
sunxi: backport h616 thermal sensor support

Backport H616 thermal sensor support from linux-next.
Tested on the Orange Pi Zero 3 (H618 SoC).

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
8 months agosunxi: add support for Orange Pi Zero 3
Chukun Pan [Sat, 18 Nov 2023 15:10:25 +0000 (23:10 +0800)]
sunxi: add support for Orange Pi Zero 3

Key features:
  Allwinner H618 SoC (Quad core Cortex-A53)
  1/1.5/2/4 GiB LPDDR4 DRAM
  1 USB 2.0 type C port (Power + OTG)
  1 USB 2.0 host port
  1Gbps Ethernet port
  Micro-HDMI port
  MicroSD slot

Installation:
  Write the image to SD Card with dd.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
8 months agogeneric: 6.1: backport AXP PMIC support
Chukun Pan [Fri, 8 Dec 2023 15:10:21 +0000 (23:10 +0800)]
generic: 6.1: backport AXP PMIC support

Backport AXP15060, AXP313a and AXP192 support.
The AXP15060 PMIC is used for starfive boards,
and the AXP313a PMIC is used for sunxi boards.
Remove conflicting patches from starfive target.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
8 months agouboot-sunxi: bump to 2024.01
Chukun Pan [Fri, 5 Jan 2024 15:16:16 +0000 (23:16 +0800)]
uboot-sunxi: bump to 2024.01

This version supports LPDDR4 DRAM of H618 SoC.

Runtime-tested:
  Olimex Olinuxino Micro (A20)
  Orange Pi Zero 3 (H618)
  Pine64 SoPine (A64)

Tested-by: Zoltan HERPAI <wigyori@uid0.hu>
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
8 months agokernel: qca-ssdk: fix C45 MDIO support on kernel 6.6
Robert Marko [Tue, 26 Mar 2024 11:36:27 +0000 (12:36 +0100)]
kernel: qca-ssdk: fix C45 MDIO support on kernel 6.6

Kernel 6.3 has introduced separate C45 read/write operations, and thus
split them out of the C22 operations completely so the old way of marking
C45 reads and writes via the register value does not work anymore.

This is causing SSDK to fail and find C45 only PHY-s such as Aquantia ones:
[   22.187877] ssdk_phy_driver_init[371]:INFO:dev_id = 0, phy_adress = 8, phy_id = 0x0 phytype doesn't match
[   22.209924] ssdk_phy_driver_init[371]:INFO:dev_id = 0, phy_adress = 0, phy_id = 0x0 phytype doesn't match

This in turn causes USXGMII MAC autoneg bit to not get set and then UNIPHY
autoneg will time out, causing the 10G ports not to work:
[   37.292784] uniphy autoneg time out!

So, lets detect C45 reads and writes by the magic BIT(30) in the register
argument and if so call separate C45 mdiobus read/write functions.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agotools/expat: update to version 2.6.2
Josef Schlehofer [Tue, 26 Mar 2024 09:37:37 +0000 (10:37 +0100)]
tools/expat: update to version 2.6.2

Release notes:
https://github.com/libexpat/libexpat/blob/R_2_6_2/expat/Changes

Fixes:
CVE-2024-28757

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
8 months agogeneric: phy-mediatek-xfi-tphy: fix SGMII issue
Daniel Golle [Mon, 25 Mar 2024 21:58:49 +0000 (21:58 +0000)]
generic: phy-mediatek-xfi-tphy: fix SGMII issue

Fix issue of transmitting abnormal data which leads to link problems
in 1G and 2.5G SerDes modes (SGMII, 1000Base-X, 2500Base-X) on the
MediaTek MT7988 SoC.

Link: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/b72d6cba92bf9e29fb035c03052fa1e86664a25b
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 months agorealtek: add Zyxel GS1900-8 v2
Goetz Goerisch [Sun, 24 Mar 2024 17:31:06 +0000 (18:31 +0100)]
realtek: add Zyxel GS1900-8 v2

The Zyxel GS1900-8 v2 or Rev.B1 is a newer variant of the GS1900-8, but
otherwise similar to the other GS1900 switches.

Differences
------------
* Front Button labeled RESTORE
* NO Power Switch on rear
* Serial Header next to the barrel power connector
* Part Number ends 0102F

Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
8 months agomediatek: filogic: add Unielec U7981-01 support
Allen Zhao [Sat, 9 Mar 2024 02:44:58 +0000 (10:44 +0800)]
mediatek: filogic: add Unielec U7981-01 support

Hardware specification:
  SoC: MediaTek MT7981B 2x A53
  Flash: 8GB eMMC or 128 MB SPI-NAND
  RAM: 256MB
  Ethernet: 5x 10/100/1000 Mbps
  Switch: MediaTek MT7531AE
  WiFi: MediaTek MT7976C
  Button: Reset
  USB: M.2(B-key) for 4G/5G Module
  Power: DC 12V 1A
  UART: 3.3v, 115200n8
  --------------------------
  |         Layout         |
  |   -----------------    |
  | 4 | VCC RX TX GND | <= |
  |   -----------------    |
  --------------------------

The U-boot menu will automatically appear at startup, and then select
the required options through UP/DOWN Key.

NAND Flash and eMMC Flash instructions:
1. Set your computers IP adress to 192.168.1.2.
2. Run a TFTP server providing the sysupgrade.bin image.
3. Power on the router, into the U-Boot menu.
4. Select "2. Upgrade firmware"
5. Update sysupgrade.bin file name, input server IP and input device
   IP (if they deviate from the defaults)
6. Wait for automatic startup after burning

Signed-off-by: Allen Zhao <allenzhao@unielecinc.com>
8 months agoprocd: update to Git HEAD (2024-03-25)
Robert Marko [Mon, 25 Mar 2024 10:50:06 +0000 (11:50 +0100)]
procd: update to Git HEAD (2024-03-25)

79f8cfa58ee7 ci: add github test workflow
428f40e7984f test commit fixing warnings
63058d1f81a5 ci: enable ujail builds
49ea930a862c utils: add key-value offset support to get_cmdline_val()
ca8c30208d5e inittab: fallback when multiple "console=" is detected

Required for the recent Elecom multiple console commits.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agohostapd: fix Argument list too long build error
Robert Marko [Sun, 24 Mar 2024 19:54:26 +0000 (20:54 +0100)]
hostapd: fix Argument list too long build error

Currently, both CI and local builds of wpa-supplicant will fail with:
/bin/sh: Argument list too long

Its happening as the argument list for mkdir in build.rules is too large
and over the MAX_ARG_STRLEN limit.

It seems that recent introduction of APK compatible version schema has
increased the argument size and thus pushed it over the limit uncovering
the issue.

Fixes: e8725a932e16 ("treewide: use APK compatible version schema")
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agotreewide: update PKG_MIRROR_HASH after APK version schema
Paul Spooren [Sat, 23 Mar 2024 12:07:25 +0000 (13:07 +0100)]
treewide: update PKG_MIRROR_HASH after APK version schema

With the change in version schema the downloaded files changed, too,
mostly the hash is now prefixed with a tilde `~` instead of a dash `-`.

Since each downloaded archive contains folder with the same name as the
archive, the checksum changed.

Signed-off-by: Paul Spooren <mail@aparcar.org>
8 months agompc85xx: add 6.6 testing kernel
Pawel Dembicki [Wed, 13 Mar 2024 11:35:04 +0000 (12:35 +0100)]
mpc85xx: add 6.6 testing kernel

This commit adds 6.6 kernel as testing verion.

Run tested:
p2020/p2020-rdb
p1010/TL-WDR4900-V1
p1010/BR200-WP

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agompc85xx: kernel: 6.6: refresh config
Pawel Dembicki [Wed, 13 Mar 2024 10:07:13 +0000 (11:07 +0100)]
mpc85xx: kernel: 6.6: refresh config

config-6.6 refreshed by 'make kernel_oldconfig'
p2020 config-default refreshed manually

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agompc85xx: kernel: 6.6: refresh patches
Pawel Dembicki [Wed, 13 Mar 2024 10:01:01 +0000 (11:01 +0100)]
mpc85xx: kernel: 6.6: refresh patches

Manualy refreshed:
101-powerpc-85xx-hiveap-330-support.patch
105-powerpc-85xx-panda-support.patch

Rest done by 'make target/linux/refresh'

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agokernel/mpc85xx: Restore kernel files for v6.1
Pawel Dembicki [Wed, 13 Mar 2024 09:38:57 +0000 (10:38 +0100)]
kernel/mpc85xx: Restore kernel files for v6.1

This is an automatically generated commit which aids following Kernel patch history,
as git will see the move and copy as a rename thus defeating the purpose.

See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html
for the original discussion.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agokernel/mpc85xx: Create kernel files for v6.6 (from v6.1)
Pawel Dembicki [Wed, 13 Mar 2024 09:38:57 +0000 (10:38 +0100)]
kernel/mpc85xx: Create kernel files for v6.6 (from v6.1)

This is an automatically generated commit.

During a `git bisect` session, `git bisect --skip` is recommended.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agompc85xx: refresh kernel config
Pawel Dembicki [Wed, 13 Mar 2024 09:38:08 +0000 (10:38 +0100)]
mpc85xx: refresh kernel config

Done by 'make kernel_oldconfig'.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agokernel: generic: add missing symbol
Pawel Dembicki [Wed, 13 Mar 2024 09:35:47 +0000 (10:35 +0100)]
kernel: generic: add missing symbol

Found durring 'make kernel_oldconfig'.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agompc85xx: remove 5.15 support
Pawel Dembicki [Wed, 13 Mar 2024 07:50:06 +0000 (08:50 +0100)]
mpc85xx: remove 5.15 support

Kernel is switched to 6.1. Lets remove 5.15 support.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agompc85xx: switch to 6.1 kernel
Pawel Dembicki [Wed, 13 Mar 2024 07:48:39 +0000 (08:48 +0100)]
mpc85xx: switch to 6.1 kernel

We need to prepare for 6.6. Switch to 6.1 for wider testing.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agompc85xx: copy missing patch from 5.15 to 6.1
Pawel Dembicki [Wed, 13 Mar 2024 12:13:51 +0000 (13:13 +0100)]
mpc85xx: copy missing patch from 5.15 to 6.1

patch 150-arch-powerpc-simpleboot-prevent-overwrite-of-CPU1-sp.patch
was missed durring copy from 5.15 to 6.1.

This patch restore it.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agoimx: kernel: add imx8mp PCI support
Tim Harvey [Mon, 22 Jan 2024 23:30:18 +0000 (15:30 -0800)]
imx: kernel: add imx8mp PCI support

IMX8MP PCI support requires a few patches backported from Linux 6.2.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
8 months agoimx: add Gateworks Venice support
Tim Harvey [Fri, 12 Jan 2024 19:34:28 +0000 (11:34 -0800)]
imx: add Gateworks Venice support

Add support for Gateworks Venice imx8m family of boards:
 - required kernel modules for on-board devices
 - image generation
 - initial network config
 - sysupgrade support

The resulting compressed disk image
(bin/targets/imx/cortexa53/openwrt-imx-cortexa53-gateworks_venice-squashfs-img.gz)
can be installed on a Gateworks venice board via U-Boot:

u-boot=> tftpboot $loadaddr openwrt-imx-cortexa53-gateworks_venice-squashfs-img.gz && \
         gzwrite mmc $dev $loadaddr $filesize

WARNING: this will overwrite any boot firmware on the eMMC user hardware
partition which if being used will brick your board requiring JTAG to
re-program boot firmware and recover

The compressed disk image contains the partition table and filesystems only
and that it is expected that boot firmware is installed properly on the
eMMC boot0 hardware partition. The easiest way to ensure this is to
use the Gateworks JTAG adapter/process to install the latest boot firmware
as follows from a Linux host:
  wget http://dev.gateworks.com/jtag/jtag_usbv4
  chmod +x jtag_usbv4
  wget http://dev.gateworks.com/venice/images/firmware-venice-imx8mm.bin
  sudo ./jtag_usbv4 -p firmware-venice-imx8mm.bin

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
8 months agoimx: add imx8m support
Tim Harvey [Mon, 8 Jan 2024 22:04:15 +0000 (14:04 -0800)]
imx: add imx8m support

Add imx8m support:
 - add a cortexa53 subtarget to imx
 - move ARCH and KERNELNAME to subtargets
 - account for kernel modules that are not used for cortexa53

No device-specific targets or firmware images are created yet but all
imx8m* dtbs will be built.

enabling CONFIG_TARGET_ROOTFS_INITRAMFS results in
openwrt-imx-cortexa53-imx8m-initramfs-kernel.bin which has been
successfully booted on an imx8mm-evk using the following:

u-boot=> tftpboot $fdt_addr_r image-imx8mm-evk.dtb && \
tftpboot $kernel_addr_r openwrt-imx-cortexa53-imx8m-initramfs-kernel.bin && \
booti $kernel_addr_r - $fdt_addr_r

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
8 months agolinux-firmware: package Intel AX201 firmware
Petr Štetiar [Mon, 4 Mar 2024 07:16:19 +0000 (07:16 +0000)]
linux-firmware: package Intel AX201 firmware

Alexander reported following:

 iwlwifi 0000:00:14.3: Detected crf-id 0x3617, cnv-id 0x20000302 wfpm id 0x80000000
 iwlwifi 0000:00:14.3: PCI dev a0f0/0074, rev=0x351, rfid=0x10a100
 iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-QuZ-a0-hr-b0-77.ucode failed with error -2

It seems, that as of the current date, the highest firmware API version
supported by Linux 6.8-rc7 is still 77.

Closes: #14771
Signed-off-by: Petr Štetiar <ynezz@true.cz>
8 months agoath79: register ttyATH1 as OpenWrt console for ELECOM WAB-I1750-PS
INAGAKI Hiroshi [Mon, 11 Mar 2024 14:30:26 +0000 (23:30 +0900)]
ath79: register ttyATH1 as OpenWrt console for ELECOM WAB-I1750-PS

Add a hotplug script and add ttyATH1 on ELECOM WAB-I1750-PS to
/etc/inittab while booting for using that console as an OpenWrt console.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
8 months agoath79: register all ttys as Linux console for ELECOM WAB-I1750-PS
INAGAKI Hiroshi [Tue, 12 Mar 2024 09:16:12 +0000 (18:16 +0900)]
ath79: register all ttys as Linux console for ELECOM WAB-I1750-PS

Register ttyS0 and ttyATH1 as Linux console on ELECOM WAB-I1750-PS.
ttyS0 provides "SERVICE" port and internal pin header for debugging and
recoverying by maker, ttyATH1 provides "SERIAL" port for configuration
by users.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
8 months agokirkwood: resize kernel partition for kirkwood devices
Pawel Dembicki [Thu, 14 Mar 2024 12:57:25 +0000 (13:57 +0100)]
kirkwood: resize kernel partition for kirkwood devices

The 6.1 kernel has caused another increase in kernel size, and now
it's more than 3MB:

WARNING: Image file iom_ix4-200d-uImage is too big: 3170394 > 3145728
WARNING: Image file iom_ix2-200-uImage is too big: 3171494 > 3145728
WARNING: Image file linksys_e4200-v2-uImage is too big: 3171879 > 3145728
WARNING: Image file linksys_ea4500-uImage is too big: 3171871 > 3145728
WARNING: Image file linksys_ea3500-uImage is too big: 3171651 > 3145728

This causes problems for 5 devices:
  - Iomega StorCenter ix2/ix4
  - Linksys EA3500/EA4200/EA4500

They have enough resources for proper operation with 6.1, but all of
them had a 3MB kernel size limit. Let's keep them alive and
resize kernel partitions to 4MB.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agokirkwood: remove 5.15 kernel support
Pawel Dembicki [Tue, 5 Mar 2024 21:34:58 +0000 (22:34 +0100)]
kirkwood: remove 5.15 kernel support

Kernel was switched to 6.1. Lets drop 5.15 support.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agokirkwood: switch kernel version to 6.1
Pawel Dembicki [Tue, 5 Mar 2024 21:26:56 +0000 (22:26 +0100)]
kirkwood: switch kernel version to 6.1

6.1 testing version was introduced some time ago. Kernel size issues
are resolved now. Time to bump kernel version.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agokirkwood: Add missing package dependency
Pawel Dembicki [Wed, 6 Mar 2024 09:50:08 +0000 (10:50 +0100)]
kirkwood: Add missing package dependency

When build images with the 6.1 kernel for all devices and all kmods,
there is one dependancy error:

  pkg_hash_check_unresolved: cannot find dependency kmod-thermal
  for kmod-hwmon-gpiofan

This commit fix that issue.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agokirkwood: 6.1: backport Marvell 88E6171 init fix patch
Pawel Dembicki [Tue, 5 Mar 2024 20:52:52 +0000 (21:52 +0100)]
kirkwood: 6.1: backport Marvell 88E6171 init fix patch

After commit de5c9bf40c45 ("net: phylink: require supported_interfaces to
be filled") Marvell 88e6171 switches fail to be probed:

[    1.263852] mv88e6085 f1072004.mdio-bus-mii:10: switch 0x1710 detected: Marvell 88E6171, revision 2
[    2.177654] mv88e6085 f1072004.mdio-bus-mii:10: OF node /ocp@f1000000/mdio-bus@72004/switch@10/ports/port@5 of CPU port 5 lacks the required "phy-mode" property
[    2.194230] mv88e6085 f1072004.mdio-bus-mii:10: phylink: error: empty supported_interfaces
[    2.202554] error creating PHYLINK: -22
[    2.214109] mv88e6085: probe of f1072004.mdio-bus-mii:10 failed with error -22

Upstream handled it. Lets backport patch.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agokirkwood: Add missing phy-mode and fixed links
Pawel Dembicki [Tue, 5 Mar 2024 14:23:31 +0000 (15:23 +0100)]
kirkwood: Add missing phy-mode and fixed links

Copied from original Andrew's Lunn commit message:

    The DSA framework has got more picky about always having a phy-mode
    for the CPU port. The Kirkwood Ethernet is an RGMII port. Set the
    switch to impose the RGMII delays.

    Additionally, the cpu label has never actually been used in the
    binding, so remove it.

This commit backport change from upstream and fix downstream EA3500 dts.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agotoolchain: gcc: switch default to 13
Nick Hainke [Fri, 12 May 2023 16:11:10 +0000 (18:11 +0200)]
toolchain: gcc: switch default to 13

Use GCC 13 instead of GCC 12 by default.

All target kernels are building with GCC 13.
Most packages from the feed are building fine.

The root file systems is getting a little bit smaller for MIPS 32 BE
and aarch64.

With GCC 12 I got these sizes for lantiq/xrx200:
7,005,867 openwrt-lantiq-xrx200-tplink_tdw8970-initramfs-kernel.bin

With GCC 13 I got these sizes for lantiq/xrx200:
6,989,754 openwrt-lantiq-xrx200-tplink_tdw8970-initramfs-kernel.bin

With GCC 12 I got these sizes for armsr/armv8:
13,083,836 openwrt-armsr-armv8-generic-ext4-combined.img.gz
 4,900,240 openwrt-armsr-armv8-generic-ext4-rootfs.img.gz
20,142,592 openwrt-armsr-armv8-generic-kernel.bin

With GCC 13 I got these sizes for armsr/armv8:
13,068,966 openwrt-armsr-armv8-generic-ext4-combined.img.gz
 4,893,078 openwrt-armsr-armv8-generic-ext4-rootfs.img.gz
20,142,592 openwrt-armsr-armv8-generic-kernel.bin

Signed-off-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 months agoramips: add support for TP-Link RE205 v3
Steffen Loley [Sat, 10 Feb 2024 15:50:50 +0000 (16:50 +0100)]
ramips: add support for TP-Link RE205 v3

TP-Link RE205 v3 is a wireless range extender with Ethernet and 2.4G and 5G
WiFi with external antennas.
It's based on MediaTek MT7628AN+MT7610EN like the RE200 v3/v4 but with
external antennas.

Specifications
--------------

- MediaTek MT7628AN (580 Mhz)
- 64 MB of RAM
- 8 MB of FLASH
- 2T2R 2.4 GHz and 1T1R 5 GHz
- 1x 10/100 Mbps Ethernet
- 5x LED (GPIO-controlled), 2x button
- UART connection holes on PCB (57600 8n1)

There are 2.4G and 5G LEDs in blue which are controlled separately.

Installation
------------

Installation is identical to RE200 v3 devices as described at
https://openwrt.org/toh/tp-link/re200#installation

Web Interface
-------------

It is possible to upgrade to OpenWrt via the web interface. Simply flash
the -factory.bin from OEM. In contrast to a stock firmware, this will not
overwrite U-Boot.

Recovery
--------

U-Boot seems to be locked on newer versions, if not it can be accessed over
the UART as described in the link above.

Signed-off-by: Steffen Loley <slo-src@web.de>
8 months agouml: restore 6.1 config + patches
Christian Lamparter [Sat, 23 Mar 2024 19:35:28 +0000 (20:35 +0100)]
uml: restore 6.1 config + patches

keep the main 6.1 files around until they too will be deleted.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
8 months agouml: add 6.6 testing kernel config + patches
Christian Lamparter [Sat, 23 Mar 2024 19:34:40 +0000 (20:34 +0100)]
uml: add 6.6 testing kernel config + patches

apart from refreshes to both config and patches, nothing has changed.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
8 months agouml: remove 5.15 config + patches
Christian Lamparter [Sat, 23 Mar 2024 19:35:59 +0000 (20:35 +0100)]
uml: remove 5.15 config + patches

no longer in use as we migrate to 6.6 shortly.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
8 months agouml: promote to 6.1 kernel
Christian Lamparter [Sat, 23 Mar 2024 19:32:20 +0000 (20:32 +0100)]
uml: promote to 6.1 kernel

there have been no reports of any problems with 6.1.
let's make it the default kernel.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
8 months agoapm821xx: WNDR4700: fix fan-control
Christian Lamparter [Sat, 23 Mar 2024 18:50:22 +0000 (19:50 +0100)]
apm821xx: WNDR4700: fix fan-control

This service was unfunctional due to not having its executable bit set.
Furthermore, sysupgrade complains about the file being present in images.

Also, the tc654 driver doesn't provide pwm1_enable sysfs file, instead its
now called pwm1_mode.

Please note that the fan was always spinning. It should now turn off, when
there's enough the thermal headroom.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
8 months agotreewide: disable spectre mitigation on unaffected Arm64 targets
Qingfang Deng [Mon, 26 Feb 2024 08:38:53 +0000 (16:38 +0800)]
treewide: disable spectre mitigation on unaffected Arm64 targets

Cortex-A53 is not vulnerable to any Spectre variants.

Ref: https://developer.arm.com/Arm%20Security%20Center/Speculative%20Processor%20Vulnerability
Signed-off-by: Qingfang Deng <dqfext@gmail.com>
8 months agotreewide: disable spectre mitigation on unaffected Arm32 targets
Qingfang Deng [Mon, 26 Feb 2024 08:38:52 +0000 (16:38 +0800)]
treewide: disable spectre mitigation on unaffected Arm32 targets

Cortex-A5 and Cortex-A7 are not vulnerable to any Spectre variants.

Ref: https://developer.arm.com/Arm%20Security%20Center/Speculative%20Processor%20Vulnerability
Signed-off-by: Qingfang Deng <dqfext@gmail.com>
8 months agolibiwinfo: update to Git HEAD (2024-03-23)
Hauke Mehrtens [Sat, 23 Mar 2024 18:34:22 +0000 (19:34 +0100)]
libiwinfo: update to Git HEAD (2024-03-23)

3aa2b6b devices: add device id for MediaTek MT7601U
79a9615 devices: add device id for Realtek RTL8188CU and RTL8188FTV

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 months agorealtek: support common GPIOs on D-Link DGS-1210-16
Richard Kunze [Wed, 20 Mar 2024 18:26:27 +0000 (19:26 +0100)]
realtek: support common GPIOs on D-Link DGS-1210-16

D-Link DGS-1210-16 hangs when rebooting and has no support for the reset
button.

Fix both by enabling the same GPIOs for reboot and the reset button as
already used for D-Link DGS-1210-20 and D-Link DGS-1210-28.

Signed-off-by: Richard Kunze <kunze@tivano.de>
8 months agokernel: fix iptables offload build without nftables
Qingfang Deng [Tue, 12 Mar 2024 02:05:13 +0000 (10:05 +0800)]
kernel: fix iptables offload build without nftables

When rebasing patches on top of 6.1, a change that removed NF_TABLES
from NF_FLOW_TABLE's dependency was dropped accidentally, and iptables
flow offload module can only be built when nftables is selected.
Restore the change to fix it.

Fixes: 19a246bb6503 ("generic: 6.1: manually refresh hack patches")
Signed-off-by: Qingfang Deng <dqfext@gmail.com>
8 months agokernel: support RISC-V PMU
Qingfang Deng [Tue, 12 Mar 2024 02:08:30 +0000 (10:08 +0800)]
kernel: support RISC-V PMU

Add RISC-V PMU config symbols and enable them for riscv64.

Signed-off-by: Qingfang Deng <dqfext@gmail.com>
8 months agomac80211: add missing config for third 160MHz width for 5GHz radio
Paweł Owoc [Mon, 18 Mar 2024 20:53:51 +0000 (21:53 +0100)]
mac80211: add missing config for third 160MHz width for 5GHz radio

Without this configuration it is not possible to run the radio using HE160 on channels 149-177.

Fixes: #14906
Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
8 months agofirmware-utils: update to git HEAD
Hauke Mehrtens [Sat, 23 Mar 2024 14:16:19 +0000 (15:16 +0100)]
firmware-utils: update to git HEAD

9067281 tplink-safeloader: add RE365 v1
e87f238 zycast: new tool for ZyXEL bootloader flashing
c1e69e6 tplink-safeloader: show compat_level with FW info
335d063 tplink-safeloader: bump EAP225-Outdoor v1 compat
c1e06da tplink-safeloader: bump EAP225-V3 compat_level
a5dfb5f tplink-safeloader: add TP-Link RE205 v3 support
17de365 zycast: disable build on non-Linux OS
6b24299 ptgen: fix limitation for active partition in GPT

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 months agotools: firmware-utils: update to git HEAD
Hauke Mehrtens [Sat, 23 Mar 2024 14:14:01 +0000 (15:14 +0100)]
tools: firmware-utils: update to git HEAD

6b24299 ptgen: fix limitation for active partition in GPT

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 months agotools: firmware-utils: update to git HEAD
Sander Vanheule [Sat, 23 Mar 2024 14:36:34 +0000 (15:36 +0100)]
tools: firmware-utils: update to git HEAD

Add the new 'zycast' tool for remote flashing of Zyxel devices, support
for factory image generation for two new TP-Link devices, and improved
compatibility with two other devices.

    17de36575f1e zycast: disable build on non-Linux OS
    a5dfb5fb5e6e tplink-safeloader: add TP-Link RE205 v3 support
    c1e06daf4622 tplink-safeloader: bump EAP225-V3 compat_level
    335d063cff23 tplink-safeloader: bump EAP225-Outdoor v1 compat
    c1e69e6f9c0d tplink-safeloader: show compat_level with FW info
    e87f23849790 zycast: new tool for ZyXEL bootloader flashing
    9067281d17da tplink-safeloader: add RE365 v1

Signed-off-by: Sander Vanheule <sander@svanheule.net>
8 months agokirkwood: add ix4-200d support to uboot-envtools
Sander van Deijck [Tue, 12 Mar 2024 00:54:38 +0000 (01:54 +0100)]
kirkwood: add ix4-200d support to uboot-envtools

This adds support for the Iomega ix4-200d device in uboot-envtools.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
8 months agomac80211: carl9170: re-fix fortified-memset warning
Mieczyslaw Nalewaj [Fri, 22 Mar 2024 22:15:59 +0000 (23:15 +0100)]
mac80211: carl9170: re-fix fortified-memset warning

The carl9170_tx_release() function sometimes triggers a fortified-memset
warning in my randconfig builds:

In file included from include/linux/string.h:254,
                 from drivers/net/wireless/ath/carl9170/tx.c:40:
In function 'fortify_memset_chk',
    inlined from 'carl9170_tx_release' at drivers/net/wireless/ath/carl9170/tx.c:283:2,
    inlined from 'kref_put' at include/linux/kref.h:65:3,
    inlined from 'carl9170_tx_put_skb' at drivers/net/wireless/ath/carl9170/tx.c:342:9:
include/linux/fortify-string.h:493:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  493 |                         __write_overflow_field(p_size_field, size);

Kees previously tried to avoid this by using memset_after(), but it seems
this does not fully address the problem. I noticed that the memset_after()
here is done on a different part of the union (status) than the original
cast was from (rate_driver_data), which may confuse the compiler.

Unfortunately, the memset_after() trick does not work on driver_rates[]
because that is part of an anonymous struct, and I could not get
struct_group() to do this either. Using two separate memset() calls
on the two members does address the warning though.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
8 months agorockchip: add Radxa E25 board support
Marius Durbaca [Wed, 28 Feb 2024 09:39:44 +0000 (09:39 +0000)]
rockchip: add Radxa E25 board support

Radxa E25 is a network application carrier board for the Radxa CM3
Industrial (CM3I) SoM, which is based on the Rockchip RK3568 SoC.

It has the following features:

- MicroSD card socket, on board eMMC flash
- 2x 2.5GbE Realtek RTL8125B Ethernet transceiver
- 1x USB Type-C port (Power and Serial console)
- 1x USB 3.0 OTG port
- mini PCIe socket (USB or PCIe)
- ngff PCIe socket (USB or SATA)
- 1x User LED and 16x RGB LEDs
- 26-pin expansion header

Installation:
Uncompress the OpenWrt sysupgrade and write it to a micro SD card or
internal eMMC using dd.

Signed-off-by: Marius Durbaca <mariusd84@gmail.com>
8 months agouboot-rockchip: add Radxa E25 board support
Marius Durbaca [Wed, 28 Feb 2024 08:41:31 +0000 (08:41 +0000)]
uboot-rockchip: add Radxa E25 board support

add Radxa E25 board support in uboot-rockchip

Signed-off-by: Marius Durbaca <mariusd84@gmail.com>
Reviewed-by: Tianling Shen <cnsztl@immortalwrt.org>
8 months agokernel: kmod-ata-ahci-platform: enable support for RK35xx
Marius Durbaca [Wed, 28 Feb 2024 08:37:44 +0000 (08:37 +0000)]
kernel: kmod-ata-ahci-platform: enable support for RK35xx

enable support for RK35xx in kmod-ata-ahci-platform kernel module

Suggested-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: Marius Durbaca <mariusd84@gmail.com>
8 months agotreewide: use APK compatible version schema
Paul Spooren [Sun, 17 Mar 2024 17:43:10 +0000 (18:43 +0100)]
treewide: use APK compatible version schema

Different from OPKG, APK uses a deterministic version schema which chips
the version into chunks and compares them individually. This enforces a
certain schema which was previously entirely flexible.

 - Releases are added at the very and end prefixed with an `r` like
`1.2.3-r3`.
- Hashes are prefixed with a `~` like `1.2.3~abc123`.
- Dates become semantic versions, like `2024.04.01`
- Extra tags are possible like `_git`, `_alpha` and more.

For full details see the APK test list:
https://gitlab.alpinelinux.org/alpine/apk-tools/-/blob/master/test/version.data

Signed-off-by: Paul Spooren <mail@aparcar.org>
8 months agoqualcommax: add 6.6 as testing kernel
Robert Marko [Thu, 29 Feb 2024 20:42:06 +0000 (21:42 +0100)]
qualcommax: add 6.6 as testing kernel

Provide kernel 6.6 as the testing kernel for qualcommax.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agoqualcommax: ipq807x: add WLAN device path migration
Robert Marko [Sat, 9 Mar 2024 10:22:05 +0000 (11:22 +0100)]
qualcommax: ipq807x: add WLAN device path migration

Kernel 6.6 has changed the path of WLAN devices as the soc node was updated
to include an adress as well because according to spec it needed one:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm64/boot/dts/qcom/ipq8074.dtsi?h=v6.6.21&id=da6aa1111a17db11367817ddc10c5a6c188cdc44

So, this will break existing configuration as device path was changed for
example:
"platform/soc/c000000.wifi" to "platform/soc@0/c000000.wifi"
"platform/soc/c000000.wifi+1" to "platform/soc@0/c000000.wifi+1"

PCIe attached devices also have their path changed, so lets add a script
that will migrate the paths based on the detected running kernel version
so returning to kernel 6.1 will work as well.

Co-developed-by: Sean Khan <datapronix@protonmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agokernel: qca-nss-dp: enable compiling against 6.6
Robert Marko [Thu, 29 Feb 2024 21:35:52 +0000 (22:35 +0100)]
kernel: qca-nss-dp: enable compiling against 6.6

Since 6.5 netdev_rx_queue was moved out of netdevice.h so include the new
header since that is where it lives now.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agokernel: qca-ssdk: allow compiling against 6.6
Robert Marko [Thu, 29 Feb 2024 21:18:53 +0000 (22:18 +0100)]
kernel: qca-ssdk: allow compiling against 6.6

Add a patch that makes SSDK recognize kernel 6.6 and thus allows
compiling against it.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agoqualcommax: 6.6: fix SCM header include path for WCSS
Robert Marko [Thu, 29 Feb 2024 21:04:52 +0000 (22:04 +0100)]
qualcommax: 6.6: fix SCM header include path for WCSS

SCM header was moved to <linux/firmware/qcom/qcom_scm.h> so adjust the
WCSS patch accordingly.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agoqualcommax: 6.6: refresh config
Robert Marko [Fri, 22 Mar 2024 10:33:33 +0000 (11:33 +0100)]
qualcommax: 6.6: refresh config

Refresh 6.6 qualcommax kernel config via kernel_menuconfig.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agoqualcommax: 6.6: make patches apply
Robert Marko [Fri, 22 Mar 2024 10:08:54 +0000 (11:08 +0100)]
qualcommax: 6.6: make patches apply

Drop backported patches already included in 6.6 and refresh the rest to
apply.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agokernel/qualcommax: Restore kernel files for v6.1
Robert Marko [Fri, 22 Mar 2024 09:01:17 +0000 (10:01 +0100)]
kernel/qualcommax: Restore kernel files for v6.1

This is an automatically generated commit which aids following Kernel patch history,
as git will see the move and copy as a rename thus defeating the purpose.

See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html
for the original discussion.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agokernel/qualcommax: Create kernel files for v6.6 (from v6.1)
Robert Marko [Fri, 22 Mar 2024 09:01:17 +0000 (10:01 +0100)]
kernel/qualcommax: Create kernel files for v6.6 (from v6.1)

This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agomediatek: mt7629: 6.6: disable LEDS_SMARTRG_LED by default
Robert Marko [Fri, 22 Mar 2024 13:17:50 +0000 (14:17 +0100)]
mediatek: mt7629: 6.6: disable LEDS_SMARTRG_LED by default

When building MT7629 with ALL_KMODS then we get prompted for
LEDS_SMARTRG_LED and this will break CI and in future buildbot compilation.

It depends on I2C so the symbol is hidden until ALL_KMODS is used and I2C
support is available, so disable the LEDS_SMARTRG_LED symbol in 6.6 config
intentionally as is done in the 6.1 mt7629 config.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agokernel: config: 6.6: add missing ARM64 SM4 CE symbols
Robert Marko [Fri, 22 Mar 2024 10:31:51 +0000 (11:31 +0100)]
kernel: config: 6.6: add missing ARM64 SM4 CE symbols

Disable CONFIG_CRYPTO_SM4_ARM64_CE_CCM and CONFIG_CRYPTO_SM4_ARM64_CE_GCM
in the generic config like we do with similar CE symbols.

This avoids the need to disable them in individual targets.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agomvebu: puzzle-m90x: optimize thermal zone
Daniel Golle [Thu, 21 Mar 2024 20:59:13 +0000 (20:59 +0000)]
mvebu: puzzle-m90x: optimize thermal zone

 * have more defined PWM steps similar to the vendor's shell script doing
   the same thing
 * replace PWM values with experiencal values provided by forum users
 * increase hyteresis to prevent changing fan speed every second
   (just because it's annoying to listen to)
 * add 'hot' trip point at 75 deg. to warn users that shutdown is imminent

Tested on Puzzle M902 only for now, PWM values for Puzzle M901 might be
slightly different but should quite certainly also be rised.

Suggested-by: Martin Gierschner <martin_gierschner@gmx.de>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 months agokernel: update deprecated license information
Florian Eckert [Thu, 21 Mar 2024 11:55:01 +0000 (12:55 +0100)]
kernel: update deprecated license information

Update the deprecated license information from GPL-2.0 to GPL-2.0-only
as written in the COPYING file of the linux source tree.

Also add the 'COPYING' file to the PKG_LICENSE_FILES variable.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
8 months agomac80211: add missing license information
Florian Eckert [Fri, 15 Mar 2024 10:57:14 +0000 (11:57 +0100)]
mac80211: add missing license information

The lincense information for the packages mac80211 are missing.
This commit adds the missing information.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
8 months agoca-certificates: add missing license information
Florian Eckert [Wed, 13 Mar 2024 11:41:38 +0000 (12:41 +0100)]
ca-certificates: add missing license information

The package has no licence information. So let's fix it.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
8 months agowireless-regdb: add missing license information
Florian Eckert [Tue, 19 Mar 2024 14:44:44 +0000 (15:44 +0100)]
wireless-regdb: add missing license information

Add the missing license information PKG_LICENSE and PKG_LICENSE_FILES.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
8 months agomediatek: mt7622: add a second u-boot for redmi-ax6s
Chuanhong Guo [Sat, 2 Mar 2024 13:12:54 +0000 (21:12 +0800)]
mediatek: mt7622: add a second u-boot for redmi-ax6s

The vendor u-boot knows nothing about UBI, and we used to have a
fixed-size kernel partition for vendor u-boot and UBI for rootfs.
However, that fixed partition becomes too small eventually, and
expanding it requires complicated procedure.

This commit changed the flash layout and added a second u-boot
where the kernel supposed to be.
Now the vendor u-boot chainloads our mainline u-boot, and our
u-boot reads kernel+rootfs from UBI, verifies it, and boot
into OpenWrt.

There are two possible ways to convert from the old fw:
Flash the factory image using mtd (provided by @rany2):

mount -o remount,ro /
mount -o remount,ro /overlay
cd /tmp
dd if=factory.bin bs=1M count=4 | mtd write - kernel
dd if=factory.bin bs=1M skip=4 | mtd -r write - ubi

Or, flash the 2nd u-boot via mtd and upload the firmware
to the 2nd u-boot using tftp:

1. prepare a tftp server at 192.168.1.254 to serve the
   sysupgrade image:
   openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-sysupgrade.itb
2. upload the ubi-loader.itb to OpenWrt /tmp, and flash it to
   the old kernel partition:
   mtd -r write openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-ubi-loader.itb
3. The router should reboot and flash the sysupgrade image via TFTP.

Procedure for flashing from vendor firmware shouldn't change.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
8 months agouboot-mediatek: add support for GD5F1GQ5UE
Chuanhong Guo [Sat, 9 Mar 2024 04:06:31 +0000 (12:06 +0800)]
uboot-mediatek: add support for GD5F1GQ5UE

This patch adds support for GigaDevice GD5F1GQ5UExxG to the
mtk-snfi driver in u-boot.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
8 months agouboot-mediatek: add Redmi AX6S as UBI loader
Chuanhong Guo [Sat, 2 Mar 2024 13:07:37 +0000 (21:07 +0800)]
uboot-mediatek: add Redmi AX6S as UBI loader

Add support for Xiaomi Redmi AX6S to be used as a second-stage
UBI loader.
The defconfig/env is minimal: Boot fit from UBI. If that failed,
load and boot initramfs image from TFTP.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
8 months agoglibc: don't ship /etc/localtime -> /tmp/localtime symlink
Daniel Golle [Wed, 20 Mar 2024 22:56:00 +0000 (22:56 +0000)]
glibc: don't ship /etc/localtime -> /tmp/localtime symlink

The symlink is already part of the base-files package. We don't need
to ship it with glibc again.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 months agoumdns: fix PKG_MIRROR_HASH
Daniel Golle [Wed, 20 Mar 2024 23:43:05 +0000 (23:43 +0000)]
umdns: fix PKG_MIRROR_HASH

PKG_MIRROR_HASH was accidentally generated with already APK-adapted
version string in the filename. That can't work (yet). Regenerate and
hash the file with the currently used version scheme to fix that.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 months agoumdns: update to git HEAD
Daniel Golle [Wed, 20 Mar 2024 19:42:46 +0000 (19:42 +0000)]
umdns: update to git HEAD

 e91ed40 ubus: assume that the service iface can be NULL
 4094a3c interface: remove unused peer field
 8a0c9db interface: add missing cache cleanup on interface free
 3b341f4 add the ability to announce additional hostnames

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 months agoumdns: add /etc/umdns/ to mount namespace jail
Daniel Golle [Wed, 20 Mar 2024 19:22:46 +0000 (19:22 +0000)]
umdns: add /etc/umdns/ to mount namespace jail

Make sure /etc/umdns/ is accessiable for the umdns process if it
exists and umdns is run with umdns.@umdns[0].jail='1'.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 months agoramips: mt7621: disable Edgerouter X image generation
Robert Marko [Wed, 20 Mar 2024 10:38:58 +0000 (11:38 +0100)]
ramips: mt7621: disable Edgerouter X image generation

With kernel 6.1 image size is too large for Edgerouter X current size
limit and is causing the buildbots to fail building so images for other
devices are not updated as well.

So, disable building Edgerouter X images until a workaround is found.

Signed-off-by: Robert Marko <robimarko@gmail.com>
8 months agodnsmasq: Backport 2 upstream patches
Hauke Mehrtens [Mon, 18 Mar 2024 21:39:56 +0000 (22:39 +0100)]
dnsmasq: Backport 2 upstream patches

These two patches are fixing minor problems with DNSSEC found shortly
after the dnsmasq 2.90 release.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 months agoath11k-firmware: update IPQ6018 to 2.5.0.1-03982
Dirk Buchwalder [Sun, 17 Mar 2024 15:21:45 +0000 (16:21 +0100)]
ath11k-firmware: update IPQ6018 to 2.5.0.1-03982

That new version seems to work more stable including mesh.
On version 2.4.0.1-01746 rproc was immediately crashing if mesh was
active.

Signed-off-by: Dirk Buchwalder <buchwalder@posteo.de>
8 months agokernel: bump 6.1 to 6.1.82
John Audia [Sat, 16 Mar 2024 05:40:36 +0000 (01:40 -0400)]
kernel: bump 6.1 to 6.1.82

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.82

All patches automatically rebased.

Build system: x86/64
Build-tested: x86/64/AMD Cezanne, ramips/tplink_archer-a6-v3
Run-tested: x86/64/AMD Cezanne, ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
8 months agokernel: config: add symbol introduced with 6.1.82
John Audia [Sat, 16 Mar 2024 05:51:15 +0000 (01:51 -0400)]
kernel: config: add symbol introduced with 6.1.82

Add CONFIG_MITIGATION_RFDS=y to the default config[1]

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/arch/x86/Kconfig?id=v6.1.82&id2=v6.1.81

Signed-off-by: John Audia <therealgraysky@proton.me>
8 months agolinux-firmware: Update Intel wifi firmware
Hauke Mehrtens [Sun, 17 Mar 2024 15:17:07 +0000 (16:17 +0100)]
linux-firmware: Update Intel wifi firmware

Update Intel wifi firmware to most recent versions supported by the
iwlwifi driver from kernel 6.6.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 months agogeneric: kernel: fix libata ledtrig support in 6.6
Pawel Dembicki [Sun, 17 Mar 2024 05:55:12 +0000 (06:55 +0100)]
generic: kernel: fix libata ledtrig support in 6.6

Upstream commit e298d8a38b23 [0] changed method how to blink delays are pased
to function. Downstream commit must follow it.

[0] https://lore.kernel.org/r/20230510162234.291439-2-hdegoede@redhat.com

Reported-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
8 months agoqualcommax: ipq807x: Fix MAC addresses usage for RAX120v2
Paweł Owoc [Fri, 1 Mar 2024 22:56:36 +0000 (23:56 +0100)]
qualcommax: ipq807x: Fix MAC addresses usage for RAX120v2

Currently, 6 MAC addresses are read from the "boarddata1" partition and set for network interfaces in sequence.
This partition only contains 3 MAC addresses:
1. lan mac
2. wan mac
3. wlan5g mac
As result only lan2, lan3 and lan4 have correct (OUI) MAC addresses.
lan1, lan5 and wan interfaces get MAC addresses with incorrect OUI from random data on "boarddata1" partition.

This commit fix this and use first MAC for lan and second MAC for wan interfaces.

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
8 months agoqualcommax: ipq60xx: set PHY mode to psgmii for port 5
Chukun Pan [Sat, 17 Feb 2024 15:15:39 +0000 (23:15 +0800)]
qualcommax: ipq60xx: set PHY mode to psgmii for port 5

The port 5 of most ipq60xx devices is connected to qca8075,
a few are connected to qca8081. So assume that the default
connection is qca8075 and set the phy mode to psgmii.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
8 months agoqualcommax: set phy-mode to sgmii for QCA8081
Chukun Pan [Thu, 15 Feb 2024 15:18:30 +0000 (23:18 +0800)]
qualcommax: set phy-mode to sgmii for QCA8081

The dp5 node uses psgmii by default, corrected
the phy-mode to sgmii for the qca8081 phy.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
8 months agoqualcommax: dts: cleanup whitespace
Chukun Pan [Tue, 13 Feb 2024 15:17:10 +0000 (23:17 +0800)]
qualcommax: dts: cleanup whitespace

Replace blanks with tabs, remove extra blank lines.
Also add new lines as appropriate.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
8 months agomt76: update to Git HEAD (2024-03-18)
Felix Fietkau [Mon, 18 Mar 2024 12:19:46 +0000 (13:19 +0100)]
mt76: update to Git HEAD (2024-03-18)

a903d3169193 wifi: mt76: mt7921: fix a potential association failure upon resuming
eb0d0ce344f3 wifi: mt76: mt7921: fix suspend issue on MediaTek COB platform
841bf82e9958 wifi: mt76: fix the issue of missing txpwr settings from ch153 to ch177
ce7ccc540168 wifi: mt76: Remove redundant assignment to variable tidno
a238df940d6f wifi: mt76: mt7915: initialize rssi on adding stations
46c7d1849dbd wifi: mt76: replace skb_put with skb_put_zero
b5640b3153c7 wifi: mt76: fix tx packet loss when scanning on DBDC
7b054e5cb3af wifi: mt76: mt7915: fix mcu command format for mt7915 tx stats
3f27a64a8010 wifi: mt76: mt7915: fix bogus Tx/Rx airtime duration values
4f681a8fbc91 wifi: mt76: mt7915: fix HE PHY capabilities IE for station mode
8ede229eb8b5 wifi: mt76: mt7915: only set MT76_MCU_RESET for the main phy
2330781b8c5f wifi: mt76: mt7996: only set MT76_MCU_RESET for the main phy
e5fb6995e7eb wifi: mt76: mt7915: add support for disabling in-band discovery
b4a917417c85 wifi: mt76: mt7915: add mt7986, mt7916 and mt7981 pre-calibration
2135e201e7a9 mt76: mt7915: add fallback in case of missing precal data

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 months agokernel: modules: package driver for MediaTek T7xx PCIe 5G modem
Daniel Golle [Sun, 17 Mar 2024 22:38:58 +0000 (22:38 +0000)]
kernel: modules: package driver for MediaTek T7xx PCIe 5G modem

Build and package driver for MediaTek PCIe 5G WWAN modem T7xx device
available in Linux 6.1 and 6.6 as kmod-mtk-t7xx.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 months agokernel: backport some useful LED_FUNCTION_* defines for DT
Rafał Miłecki [Sun, 17 Mar 2024 21:20:14 +0000 (22:20 +0100)]
kernel: backport some useful LED_FUNCTION_* defines for DT

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 months agokernel: bump 6.6 to 6.6.22
John Audia [Sat, 16 Mar 2024 10:49:35 +0000 (06:49 -0400)]
kernel: bump 6.6 to 6.6.22

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.22

Affected Patch automatically rebased.

Build system: x86/64
Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, flogic/glinet_gl-mt6000, ramips/tplink_archer-a6-v3
Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, flogic/glinet_gl-mt6000, ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
8 months agokernel: bump 6.6 to 6.6.21
John Audia [Sat, 16 Mar 2024 10:48:39 +0000 (06:48 -0400)]
kernel: bump 6.6 to 6.6.21

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.21

All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>
8 months agomvebu: enable thermal zone polling for IEI Puzzle devices
Daniel Golle [Sun, 17 Mar 2024 15:55:09 +0000 (15:55 +0000)]
mvebu: enable thermal zone polling for IEI Puzzle devices

Marvell's thermal sensors do not support interrupts, so we need to
poll them. Reading temperature every second should be enough to
control the fan.
While at it, also make sure fan speed is reduced again if temperature
goes down.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 months agouci: fix variable declaration
Paul Spooren [Sat, 16 Mar 2024 17:30:37 +0000 (18:30 +0100)]
uci: fix variable declaration

Using := doesn't fly well when including other variables. In fact this
would cause the variable to be empty and break cloning of the git repo.

Fix: "c354c069b3 uci: fix Makefile formatting"

Signed-off-by: Paul Spooren <mail@aparcar.org>
8 months agoqualcommax: ipq807x: fix LEDs on Buffalo WXR-5950AX12
INAGAKI Hiroshi [Sat, 16 Mar 2024 10:12:20 +0000 (19:12 +0900)]
qualcommax: ipq807x: fix LEDs on Buffalo WXR-5950AX12

On Buffalo WXR-5590AX12, some LEDs don't have "function" property and
only "color" property is available for the newer binding of LED on
Linux Kernel.
2e659930d3 ("qualcommax: drop redundant label with new LED
color/function format") removes "label" property from LEDs, then,
multiple "<color>:" (ex.: "white:"/"red:") will be appeared as LED names
and renamed to "<color>:_<num>" ("ex.: "white:_1", "green:_2", ...) by
kernel.

logs:

[    5.372863] leds-gpio leds: Led white: renamed to white:_1 due to name collision
[    5.375796] leds-gpio leds: Led red: renamed to red:_1 due to name collision

/sys/class/leds:

root@OpenWrt:/# ls /sys/class/leds/
red:         red:power    white:       white:power
red:_1       red:wlan     white:_1     white:wlan

Fix this issue by adding missing "function" property to LEDs on Buffalo
WXR-5950AX12.
Note: there are no appropriate functions in dt-bindings/leds/common.h
for some LEDs, so use the hardcoded strings for them instead.

Fixes: 2e659930d3 ("qualcommax: drop redundant label with new LED color/function format")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
8 months agoqualcommax: ipq807x: fix LEDs on QNAP QHora-301W
INAGAKI Hiroshi [Sat, 16 Mar 2024 06:28:31 +0000 (15:28 +0900)]
qualcommax: ipq807x: fix LEDs on QNAP QHora-301W

On QNAP QHora-301W, all LEDs don't have "function" property and only
"color" property is available for the newer binding of LED on Linux
Kernel.
2e659930d3 ("qualcommax: drop redundant label with new LED
color/function format") removes "label" property from LEDs, then,
multiple "<color>:" (ex.: "amber:"/"green:"/"red:") will be appeared as
LED names and renamed to "<color>:_<num>" ("ex.: "green:_1", "green:_2",
...) by kernel.

logs:

[    4.246494] leds-gpio leds: Led green: renamed to green:_1 due to name collision
[    4.248978] leds-gpio leds: Led green: renamed to green:_2 due to name collision
[    4.256345] leds-gpio leds: Led green: renamed to green:_3 due to name collision
[    4.263770] leds-gpio leds: Led green: renamed to green:_4 due to name collision
[    4.271105] leds-gpio leds: Led amber: renamed to amber:_1 due to name collision
[    4.278487] leds-gpio leds: Led green: renamed to green:_5 due to name collision
[    4.285856] leds-gpio leds: Led amber: renamed to amber:_2 due to name collision
[    4.293257] leds-gpio leds: Led green: renamed to green:_6 due to name collision
[    4.300616] leds-gpio leds: Led amber: renamed to amber:_3 due to name collision
[    4.308002] leds-gpio leds: Led green: renamed to green:_7 due to name collision
[    4.315384] leds-gpio leds: Led amber: renamed to amber:_4 due to name collision
[    4.322760] leds-gpio leds: Led green: renamed to green:_8 due to name collision
[    4.330135] leds-gpio leds: Led amber: renamed to amber:_5 due to name collision

/sys/class/leds:

amber:          amber:_4        green:_2        green:_6
amber:_1        green:_5        green:_3        green:_7
amber:_2        green:          green:_4        green:_8
amber:_3        green:_1        green:_5        red:

Fix this issue by adding missing "function" (and "function-enumerator")
property to LEDs on QNAP QHora-301W.
Note: there are no appropriate functions in dt-bindings/leds/common.h
for some LEDs, so use the hardcoded strings for them instead.

Fixes: 2e659930d3 ("qualcommax: drop redundant label with new LED color/function format")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>